CN112672046A - Storage method and device for continuous shooting image, electronic equipment and storage medium - Google Patents

Storage method and device for continuous shooting image, electronic equipment and storage medium Download PDF

Info

Publication number
CN112672046A
CN112672046A CN202011511111.0A CN202011511111A CN112672046A CN 112672046 A CN112672046 A CN 112672046A CN 202011511111 A CN202011511111 A CN 202011511111A CN 112672046 A CN112672046 A CN 112672046A
Authority
CN
China
Prior art keywords
storage space
continuous shooting
images
hardware abstraction
abstraction layer
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
CN202011511111.0A
Other languages
Chinese (zh)
Other versions
CN112672046B (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.)
Wingtech Communication Co Ltd
Original Assignee
Wingtech Communication Co 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 Wingtech Communication Co Ltd filed Critical Wingtech Communication Co Ltd
Priority to CN202011511111.0A priority Critical patent/CN112672046B/en
Publication of CN112672046A publication Critical patent/CN112672046A/en
Application granted granted Critical
Publication of CN112672046B publication Critical patent/CN112672046B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Devices (AREA)

Abstract

The application relates to the technical field of photographing, and provides a storage method and device for continuously photographed images, electronic equipment and a storage medium. The method comprises the following steps: the electronic equipment receives a first continuous shooting starting instruction through an application layer and allocates a storage space corresponding to the first continuous shooting instruction; generating a second continuous shooting starting instruction according to the first continuous shooting starting instruction and the storage space through the application layer, wherein the second continuous shooting starting instruction comprises address information of the storage space; sending a second continuous shooting starting instruction to the hardware abstraction layer through the application layer; acquiring a plurality of images within a preset interval time according to a second continuous shooting starting instruction through a hardware abstraction layer; and storing the plurality of images in the storage space according to the address information of the storage space through the hardware abstraction layer. By adopting the method, the continuous shooting efficiency can be improved.

Description

Storage method and device for continuous shooting image, electronic equipment and storage medium
Technical Field
The present disclosure relates to the field of photographing technologies, and in particular, to a method and an apparatus for storing a continuously shot image, an electronic device, and a storage medium.
Background
The continuous shooting function is used for rapidly obtaining a plurality of images at the same time, and the continuous shooting function is needed in various scenes at present. For example, a motion of a certain motion needs to be captured, and if only one image is captured, it is difficult to capture the motion, and therefore continuous shooting is necessary.
In the existing method for storing the continuous shooting images, after the electronic device receives a continuous shooting starting instruction input by a user, the electronic device performs continuous shooting operation to obtain a plurality of images, and stores the plurality of images obtained by continuous shooting.
However, this makes continuous shooting inefficient.
Disclosure of Invention
In view of the above, it is desirable to provide a method and apparatus for storing a continuous shooting image, an electronic device, and a storage medium, which can improve the continuous shooting efficiency.
The embodiment of the application provides a storage method of continuous shooting images, which is applied to electronic equipment, wherein the electronic equipment is provided with an operating system, the operating system comprises an application layer and a hardware abstraction layer, and the method comprises the following steps:
receiving a first continuous shooting starting instruction through the application layer, and distributing a storage space corresponding to the first continuous shooting instruction;
generating a second continuous shooting starting instruction according to the first continuous shooting starting instruction and the storage space through the application layer, wherein the second continuous shooting starting instruction comprises address information of the storage space;
sending the second continuous shooting starting instruction to the hardware abstraction layer through the application layer;
acquiring a plurality of images within a preset interval time according to the second continuous shooting starting instruction through the hardware abstraction layer;
and storing the plurality of images in the storage space according to the address information of the storage space through the hardware abstraction layer.
In one embodiment, the method further comprises:
sending, by the hardware abstraction layer, a storage end notification to the application layer, the storage end notification indicating that the plurality of images have been stored to the storage space;
and determining the residual storage space in the storage space and modifying the access authority of the residual storage space through the application layer according to the storage end notice.
In one embodiment, the storage end notification includes address information of a remaining storage space of the storage space, or address information of a used storage space,
determining, by the application layer according to the storage end notification, a remaining storage space in the storage space, including:
determining the residual storage space in the storage space according to the address information of the residual storage space of the storage space through the application layer;
alternatively, the first and second electrodes may be,
and determining the residual storage space in the storage space according to the address information of the used storage space of the storage space by the application layer.
In one embodiment, the plurality of images are acquired by the hardware abstraction layer according to the second continuous shooting starting instruction within a preset interval time; storing the plurality of images into the storage space according to the address information of the storage space through the hardware abstraction layer, including:
acquiring and storing N images to a cache within a preset interval time through the hardware abstraction layer according to the second continuous shooting starting instruction, wherein N is an integer greater than or equal to 1, and N is the maximum number of images acquired by one continuous shooting;
and storing the N images in the cache in the storage space according to the address information of the storage space through the hardware abstraction layer.
In one embodiment, the plurality of images are acquired by the hardware abstraction layer according to the second continuous shooting starting instruction within a preset interval time; storing the plurality of images in the storage space according to the address information of the storage space through the hardware abstraction layer, including:
acquiring and storing M images to a cache within a preset interval time through the hardware abstraction layer according to the second continuous shooting starting instruction, wherein M is an integer greater than or equal to 1, and M is smaller than the maximum number of images acquired by one continuous shooting;
receiving a continuous shooting ending instruction sent by the application layer through the hardware abstraction layer;
and storing the M images in the cache in the storage space according to the address information of the storage space through the hardware abstraction layer.
In one embodiment, the acquiring, by the hardware abstraction layer, a plurality of images within a preset interval according to the second continuous shooting start instruction, and storing the plurality of images in the storage space according to the address information of the storage space includes:
acquiring and storing S images to a cache within a preset interval time according to the second continuous shooting starting instruction through the hardware abstraction layer; storing the S images in the cache to the storage space according to the address information of the storage space, wherein S is an integer larger than or equal to 1 and is smaller than the maximum number of images acquired by one continuous shooting;
returning and executing S images acquired and stored in a preset interval time to a cache through the hardware abstraction layer, and storing the S images in the cache to the storage space according to the address information of the storage space until the hardware abstraction layer determines that the continuous shooting is finished;
and acquiring the images which are not stored in the storage space in the cache through the hardware abstraction layer, and storing the images which are not stored in the storage space in the cache to the storage space.
In one embodiment, the determining, by the hardware abstraction layer, that the continuous shooting is finished includes:
receiving a continuous shooting ending instruction sent by the application layer through the hardware abstraction layer;
alternatively, the first and second electrodes may be,
and determining the number of the images acquired and stored to the cache as the maximum number of the images acquired by one continuous shooting through the hardware abstraction layer.
The embodiment of the application provides a storage device of continuous shooting image, the device includes:
the application layer is used for receiving a first continuous shooting starting instruction and distributing a storage space corresponding to the first continuous shooting instruction; generating a second continuous shooting starting instruction according to the first continuous shooting starting instruction and the storage space, wherein the second continuous shooting starting instruction comprises address information of the storage space; sending the second continuous shooting starting instruction to the hardware abstraction layer;
the hardware abstraction layer is used for acquiring a plurality of images within a preset interval time according to the second continuous shooting starting instruction; and storing the plurality of images in the storage space according to the address information of the storage space through the hardware abstraction layer.
In one embodiment, the hardware abstraction layer is further configured to:
sending a storage end notification to the application layer, wherein the storage end notification is used for indicating that the plurality of images are stored in the storage space;
the application layer is further configured to: and determining the residual storage space in the storage space according to the storage end notice, and modifying the access authority of the residual storage space.
In one embodiment, the storage end notification includes address information of a remaining storage space of the storage space, or address information of a used storage space,
the application layer is specifically configured to:
determining the residual storage space in the storage space according to the address information of the residual storage space in the storage space;
alternatively, the first and second electrodes may be,
and determining the residual storage space in the storage space according to the address information of the used storage space of the storage space.
In one embodiment, the hardware abstraction layer is specifically configured to:
acquiring and storing N images to a cache within a preset interval time according to the second continuous shooting starting instruction, wherein N is an integer greater than or equal to 1, and N is the maximum number of images acquired by one continuous shooting;
and storing the N images in the cache in the storage space according to the address information of the storage space.
In one embodiment, the hardware abstraction layer is specifically configured to:
acquiring and storing M images to a cache within a preset interval time according to the second continuous shooting starting instruction, wherein M is an integer greater than or equal to 1, and M is smaller than the maximum number of images acquired by one continuous shooting;
receiving a continuous shooting ending instruction sent by the application layer;
and storing the M images in the cache in the storage space according to the address information of the storage space.
In one embodiment, the hardware abstraction layer is specifically configured to:
acquiring and storing S images to a cache within a preset interval time according to the second continuous shooting starting instruction; storing the S images in the cache to the storage space according to the address information of the storage space, wherein S is an integer larger than or equal to 1 and is smaller than the maximum number of images acquired by one continuous shooting;
returning to execute the S images acquired and stored in the preset interval time to the cache, and storing the S images in the cache to the storage space according to the address information of the storage space until the end of continuous shooting is determined;
and acquiring the images which are not stored in the storage space in the cache, and storing the images which are not stored in the storage space in the cache to the storage space.
In one embodiment, the determining that the continuous shooting is over includes:
receiving a continuous shooting ending instruction sent by the application layer;
alternatively, the first and second electrodes may be,
and determining the number of the images acquired and stored to the cache as the maximum number of the images acquired in one continuous shooting.
An embodiment of the present application provides an electronic device, which includes a memory and a processor, where the memory stores a computer program, and the processor implements the steps of the method for storing a continuous shooting image according to the first aspect when executing the computer program.
The embodiment of the application provides a computer readable storage medium, on which a computer program is stored, and the computer program is executed by a processor to realize the steps of the storage method of the continuous shooting image provided by any embodiment of the application.
The method, the apparatus, the electronic device and the storage medium for storing continuous shooting images provided by the embodiments of the present application, the electronic device receives a first continuous shooting start instruction through an application layer, allocates a storage space, generates a second continuous shooting start instruction according to the first continuous shooting start instruction and the storage space, the second continuous shooting start instruction includes address information of the storage space, and sends the second continuous shooting start instruction to a hardware abstraction layer, and obtains a plurality of images at a preset interval time according to the second continuous shooting start instruction through the hardware abstraction layer, the electronic device does not need to transmit the plurality of images to the application layer through the hardware abstraction layer, but directly stores the plurality of images in the storage space according to the address information of the storage space through the hardware abstraction layer, thereby completing storage of the continuous shooting images, because the electronic device uses less time to execute operations of storing the images through the hardware abstraction layer than the application layer, a plurality of images are directly stored in the storage space through the hardware abstraction layer, and the storage speed is higher than that of the application layer, so that the continuous shooting speed is high, and the continuous shooting efficiency is high. In addition, the electronic equipment stores a plurality of images through the hardware abstraction layer, the plurality of images do not need to be transmitted to the application layer, transmission time is shortened, and accordingly continuous shooting efficiency is improved.
Drawings
FIG. 1 is an application scenario of a method for storing a continuously shot image according to an embodiment;
FIG. 2 is a flowchart illustrating a method for storing a continuously shot image according to an embodiment;
FIG. 3 is a diagram illustrating a capture interface of an electronic device in accordance with an embodiment;
FIG. 4 is a flowchart illustrating a method for storing a continuously shot image according to another embodiment;
FIG. 5 is a flowchart illustrating a method of storing a continuously shot image according to still another embodiment;
FIG. 6 is a flowchart illustrating a method for storing a continuously shot image according to still another embodiment;
FIG. 7 is a flowchart illustrating a method for storing a continuously shot image according to still another embodiment;
FIG. 8 is a block diagram showing the structure of a continuous shooting apparatus according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
The method for storing the continuous shooting image can be applied to the application environment shown in fig. 1. The storage method of the continuous shooting image is applied to electronic equipment. The electronic device includes: the device comprises a processor, a memory, a display screen and a camera. The operating system of the electronic device may adopt a layered architecture that divides the operating system into a number of layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. The operating system of the electronic device may include, from top to bottom, an application layer, a framework layer, a system library, and a hardware abstraction layer. The hardware abstraction layer may include: hardware Abstraction Layer (HAL for short). The operating system of the electronic device may further include: kernel (kernel). The hardware abstraction layer is the interface layer between the operating system and the hardware. The storage method of the continuous shooting image can be realized through an application layer and a hardware abstraction layer of the electronic equipment, after a user inputs a continuous shooting starting instruction, the electronic equipment receives the continuous shooting starting instruction through the application layer, allocates the corresponding storage space, sending a continuous shooting starting instruction containing address information of a storage space to a hardware abstraction layer through a frame layer (in the disclosure, the frame layer is not described in the case of data transmission through the frame layer), directly storing the image on the storage space allocated by an application layer after the hardware abstraction layer acquires the continuously shot image, because the electronic device stores the image through the hardware abstraction layer faster than the application layer, the image is directly stored in the corresponding storage space through the hardware abstraction layer, the storage speed of the image is faster, and further the continuous shooting speed is faster, so that the continuous shooting efficiency is improved.
In one embodiment, as shown in FIG. 2, a method of storing a burst image is provided. The execution subject of the embodiment is an electronic device, and the embodiment illustrates that the method is applied to the electronic device in fig. 1, and includes the following steps:
step 201, receiving a first continuous shooting start instruction through an application layer, and allocating a storage space corresponding to the first continuous shooting instruction.
The received first continuous shooting starting instruction can be instructions in various forms. The first continuous shooting starting instruction may be a touch instruction received by the electronic device at a specified position in a preset interface, for example, a continuous shooting operation is started by long pressing a shooting button in a shooting interface, or a continuous shooting operation is started by clicking a "continuous shooting" option in the shooting interface. The first continuous shooting starting instruction may also be a voice instruction, for example, the electronic device receives a voice message such as "continuous shooting", "start continuous shooting", and the like, which is input by voice, and starts continuous shooting operation. The first continuous shooting starting instruction may also be a preset air-isolated gesture instruction, for example, when the electronic device receives a preset sliding gesture, or a user draws a preset shape in the air, the continuous shooting operation is started. It is to be understood that the first continuous shooting start command is not limited to the above form, and may be in other predefined forms. The received first continuous shooting starting instruction can be in various forms, and a user can conveniently select the first continuous shooting starting instruction according to actual needs, so that continuous shooting operation is started.
Specifically, the electronic device receives a first continuous shooting starting instruction through the application layer, where the first continuous shooting starting instruction indicates that the electronic device needs to start a continuous shooting operation, and the application layer allocates a storage space for storing an image corresponding to the continuous shooting, where the storage space is used for storing the image obtained by the continuous shooting, where a maximum number of images obtained in one continuous shooting operation may be preset, and may be 3, 20, or 100, and this application is not limited. The application layer allocates a storage space according to the maximum number of images acquired in one continuous shooting operation, and the storage space can be larger than or equal to the storage space required for storing the maximum number of images.
For example, fig. 3 is a schematic view of a shooting interface of an electronic device in one embodiment, as shown in fig. 3, in the photographing mode, the electronic device may determine whether to initiate a continuous photographing, if the user clicks the photographing key 31, the duration of the pressure received by the electronic device at the photographing key 31 is less than a preset time threshold, i.e., the electronic device receives an instruction to photograph a single image, if the user presses the photographing key 31 for a long time, the duration of the pressure received by the electronic device at the shooting key 31 is greater than or equal to the preset time threshold, that is, when the first continuous shooting start instruction is received, the electronic device starts a continuous shooting operation, and during the process that the user presses the shooting key 31 for a long time, that is, the electronic device continuously receives the pressure value greater than the preset pressure threshold value at the shooting key 31, and the electronic device continuously performs continuous shooting operation. For example, the preset time threshold may be 1 second, and the electronic device starts a continuous shooting operation when the duration of the pressure received at the shooting key 31 is greater than or equal to 1 second.
And 202, generating a second continuous shooting starting instruction according to the first continuous shooting starting instruction and the storage space through the application layer.
And step 203, sending a second continuous shooting starting instruction to a hardware abstraction layer of the electronic device through the application layer.
And the second continuous shooting starting instruction comprises address information of the storage space.
Specifically, after the electronic device allocates the storage space through the application layer, the electronic device sends a second continuous shooting start instruction containing address information of the storage space to the hardware abstraction layer, where the second continuous shooting start instruction is used to instruct the hardware abstraction layer to start a continuous shooting operation, and stores an image obtained by the continuous shooting operation according to the address information of the storage space.
In one embodiment, the storage space of the electronic device may include a file node table and a data area, where the file node table includes a plurality of file nodes, the file nodes include attribute information of files and addresses of the file contents stored in the data area, and the data area is used for storing the contents of the files. The electronic device may allocate a plurality of file nodes to the continuous shooting through the application layer, where the plurality of file nodes correspond to the storage space of the data area, and the attribute information of the storage space may include address information of the storage space and attribute information of a file stored in the storage space. Optionally, each file node in the plurality of file nodes corresponds to an image.
And step 204, acquiring a plurality of images within a preset interval time through the hardware abstraction layer according to the second continuous shooting starting instruction, and storing the plurality of images in a storage space according to the address information of the storage space.
The preset interval time is the time interval for acquiring two adjacent images in the preset continuous shooting process.
Specifically, after the electronic device receives a second continuous shooting start instruction sent by the application layer through the hardware abstraction layer, the electronic device can control the camera to shoot for multiple times within a preset interval time, that is, to shoot continuously (continuously shoot), the hardware abstraction layer acquires a plurality of image information through the camera, and performs image generation processing on the plurality of image information, so as to obtain a plurality of images corresponding to the plurality of image information respectively. The hardware abstraction layer stores the acquired plurality of images in a storage space.
In one embodiment, the acquired images are stored in a cache of the electronic device through a hardware abstraction layer, and the images are stored in a storage space according to address information of the storage space.
In one embodiment, the image generation process may include: the hardware abstraction layer performs image format coding on the image information to generate an image in a corresponding image format, where the image format may be a Jpeg format or other image formats, and the application is not limited thereto.
In one embodiment, the image generation process may further include: 3A image processing of Automatic White Balance (AWB), Automatic Focusing (AF) and Automatic Exposure (AE) is carried out on image information obtained by shooting of a camera; or, performing AI image processing such as face recognition and scene recognition on the image information; alternatively, the image information is subjected to image processing such as beauty processing, blurring processing, and anti-shake processing.
In the method for storing the continuous shooting images, the electronic device receives a first continuous shooting starting instruction through the application layer, allocates the storage space, generates a second continuous shooting starting instruction according to the first continuous shooting starting instruction and the storage space, the second continuous shooting starting instruction comprises address information of the storage space, sends the second continuous shooting starting instruction to the hardware abstraction layer, acquires a plurality of images in a preset interval time according to the second continuous shooting starting instruction through the hardware abstraction layer, does not need to transmit the plurality of images to the application layer through the hardware abstraction layer, but directly stores the plurality of images in the storage space according to the address information of the storage space through the hardware abstraction layer, so that the storage of the continuous shooting images is finished, because the time for the electronic device to execute the operation of storing the images through the hardware abstraction layer is less than that of the application layer, the plurality of images are directly stored in the storage space through the hardware abstraction layer, the storage speed is faster than the application layer, so that the continuous shooting speed is high and the continuous shooting efficiency is high. In addition, the electronic equipment stores a plurality of images through the hardware abstraction layer, the plurality of images do not need to be transmitted to the application layer, transmission time is shortened, and accordingly continuous shooting efficiency is improved.
In one embodiment, as shown in FIG. 4, a method of storing a burst image is provided. Based on the embodiment shown in fig. 2, the present embodiment further includes, after step 204, step 205 and step 206:
step 205, sending a storage end notification to the application layer through the hardware abstraction layer.
Wherein the storage end notification is used to indicate that the plurality of images have been stored to the storage space.
Specifically, after the electronic device stores the multiple images obtained by the continuous shooting through the hardware abstraction layer, the electronic device sends a storage end notification to the application layer through the hardware abstraction layer, where the storage end notification is used to notify the application layer that the images obtained by the continuous shooting have been stored in the storage space.
In one embodiment, the hardware abstraction layer may send a first storage end notification to the application layer every time K images are stored, where the first storage end notification is used to notify the application layer that the K images obtained by continuous shooting have been stored in the storage space, K is an integer greater than or equal to 1, and K is less than or equal to the number of the plurality of images, for example, K may be 1 or 3 or the number of the plurality of images, and K may also be another value, which is not limited in this application.
And step 206, determining the residual storage space in the storage space through the application layer according to the storage end notification, and modifying the access authority of the residual storage space.
Specifically, the electronic device determines the remaining storage space in the storage space according to the storage end notification through the application layer, and since the images obtained by the continuous shooting are all stored in the storage space, the access right of the remaining storage space can be modified without continuously occupying the remaining storage space in which the images are not stored, that is, the access right of the remaining storage space is not occupied, so that other applications can use the remaining storage space, that is, the remaining storage space is released.
In one embodiment, the storing of the end notification includes: address information of a remaining memory space of the memory space, or address information of a used memory space.
Specifically, the electronic device sends the storage condition of the storage space to the application layer through the hardware abstraction layer according to the size of the storage space, that is, the address information of the used storage space is sent to the application layer, and the address information of the remaining storage space can also be sent to the application layer.
For example, the electronic device allocates 100 file nodes to the continuous shooting operation through the application layer, and if 49 images are stored in the continuous shooting operation, 49 file nodes are stored, and the electronic device sends a storage end notification to the application layer through the hardware abstraction layer, where the storage end notification includes the 49 file nodes in which the images are stored, or may also be 51 file nodes in which the images are not stored.
Correspondingly, the electronic device determines the remaining storage space in the storage space through the application layer according to the storage end notification, wherein in one possible implementation manner, the application layer determines the remaining storage space in the storage space according to the address information of the remaining storage space in the storage space.
Specifically, if the storage end notification includes: and directly determining the residual storage space according to the address information of the residual storage space of the storage space.
In another possible implementation manner, the application layer determines the remaining storage space in the storage space according to the address information of the used storage space of the storage space.
Specifically, if the storage end notification includes: and determining the residual storage space of the storage space according to the address information of the storage space and the address information of the used storage space. Namely, the used storage space is removed from the storage space, and the residual storage space can be obtained.
In the method for storing the continuous shooting image, the electronic device stores the image obtained by the continuous shooting at this time through the hardware abstraction layer, then sends a storage end notification to the application layer, determines the remaining storage space in the storage space according to the storage end notification through the application layer, and modifies the access authority of the remaining storage space, so that the access authority of the storage space which does not store the image obtained by the continuous shooting at this time is not occupied, the remaining storage space is prevented from being occupied, and the remaining storage space can be used for storing other files.
In one embodiment, as shown in FIG. 5, a method of storing a burst image is provided. Based on the embodiment shown in fig. 2 or fig. 4, step 204 may further include step 20411 and step 20412:
step 20411, acquiring and storing N images to the cache within a preset interval time according to the second continuous shooting start instruction through the hardware abstraction layer.
Wherein, N is an integer greater than or equal to 1, and N is the maximum number of images acquired by one continuous shooting.
The maximum number of images acquired by one continuous shooting can be sent to the hardware abstraction layer by the application layer after the continuous shooting is started, or can be pre-stored by the hardware abstraction layer.
Specifically, the electronic device stores the images acquired within the preset interval time to a cache according to the second continuous shooting start instruction through the hardware abstraction layer, and can judge whether the shooting of the continuous shooting operation is finished according to whether the number of the acquired multiple images reaches the maximum number of the images acquired in one continuous shooting. In the shooting process of the continuous shooting operation, if the number of the images acquired and stored in the cache reaches the maximum number of the images acquired in one continuous shooting, the shooting of the continuous shooting operation can be ended, that is, the images are not acquired any more.
Step 20412, storing the N images in the cache to the storage space through the hardware abstraction layer according to the address information of the storage space.
Specifically, after the electronic device determines that the shooting is finished through the hardware abstraction layer, the electronic device stores the N images obtained by the shooting of the continuous shooting operation to the storage space according to the address information of the storage space.
For example, in a scene in which a user presses the shooting button 31 for a long time to start continuous shooting, as shown in the display interface of fig. 3, assuming that the maximum number of images acquired in one continuous shooting is 100, if the user presses 100 images already in the process of the long-time pressing, the shooting is finished, and the hardware abstraction layer stores the 100 images in the storage space.
In the method for storing the continuous shooting images, the electronic device obtains and stores N images to the cache within a preset interval time according to a second continuous shooting starting instruction through the hardware abstraction layer, wherein N is an integer greater than or equal to 1, N is the maximum number of images obtained by one continuous shooting, and the N images in the cache are stored in the storage space through the hardware abstraction layer according to the address information of the storage space. The electronic equipment acquires the maximum number of images through the hardware abstraction layer and stores the images to the cache, the shooting of the continuous shooting operation can be finished, then the images acquired by the maximum number are stored in the storage space through the hardware abstraction layer, the continuous shooting images are not stored in the shooting process, and the continuous shooting images are stored after the shooting is finished, so that the time interval between two adjacent images is shorter, the continuous shooting frequency is higher, and the wonderful moment is captured more easily.
In one embodiment, as shown in FIG. 6, a method of storing a burst image is provided. Based on the embodiment shown in fig. 2 or fig. 4, step 204 may further include step 20421, step 20422, and step 20423:
step 20421, obtaining and storing M images to the cache within a preset interval time according to the second continuous shooting start instruction through the hardware abstraction layer.
And M is an integer larger than or equal to 1 and is smaller than the maximum number of images acquired by one continuous shooting.
The maximum number of images acquired by one continuous shooting can be sent to the hardware abstraction layer by the application layer after the continuous shooting is started, or can be pre-stored by the hardware abstraction layer.
Step 20422, the hardware abstraction layer receives the continuous shooting end command sent by the application layer.
The continuous shooting ending instruction can be a continuous shooting ending instruction which is triggered by a user and received by the application layer, and then the application layer sends the continuous shooting ending instruction to the hardware abstraction layer.
Specifically, the electronic device stores the images acquired within the preset interval time to a cache according to the second continuous shooting starting instruction through the hardware abstraction layer, and when the number of the acquired multiple images does not reach the maximum number of the images acquired by one continuous shooting, the continuous shooting ending instruction sent by the application layer is received through the hardware abstraction layer, so that the shooting of the continuous shooting operation is ended through the hardware abstraction layer, that is, the images are not acquired any more.
And step 20423, storing the M images in the cache in the storage space according to the address information of the storage space through the hardware abstraction layer.
Specifically, after the electronic device determines that the shooting is finished through the hardware abstraction layer, the electronic device stores M images obtained through the shooting in the continuous shooting operation to the storage space according to the address information of the storage space.
For example, as shown in the display interface shown in fig. 3, in a scene in which a user presses the shooting key 31 for a long time to start continuous shooting, it is assumed that the maximum number of images obtained by one continuous shooting is 100, if the user presses the shooting key for a long time, the user stops pressing for a long time at any time when 100 images are not shot yet, that is, the electronic device detects that the pressure value on the shooting key 31 is smaller than the preset pressure value through the application layer, that is, the electronic device receives a continuous shooting end instruction through the application layer, the electronic device sends the continuous shooting end instruction to the hardware abstraction layer through the application layer, and if the hardware abstraction layer has obtained 11 images at this time, the 11 images are stored.
In the method for storing the continuous shooting images, the electronic equipment acquires and stores M images to a cache within a preset interval time through a hardware abstraction layer according to a second continuous shooting starting instruction, wherein M is an integer greater than or equal to 1, and M is smaller than the maximum number of images acquired by one continuous shooting; receiving a continuous shooting ending instruction sent by an application layer through a hardware abstraction layer; and storing the M images in the cache in the storage space through a hardware abstraction layer according to the address information of the storage space. The electronic equipment obtains and stores the image to the in-process of buffer memory through the hardware abstraction layer, receives the continuous shooting end instruction that the application layer sent, can end this shooting of continuous shooting operation, then will obtain the image storage to the memory space of maximum quantity through the hardware abstraction layer to do not store the continuous shooting image at the shooting in-process, store the continuous shooting image after the shooting end, make the time interval between two adjacent images shorter, make the shooting frequency of continuous shooting higher, it is in the twinkling of an eye to change to catch the wonderful.
In one embodiment, as shown in FIG. 7, a method of storing a burst image is provided. Based on the embodiment shown in fig. 2 or fig. 4, step 204 may further include step 20431, step 20432, and step 20433:
20431, acquiring and storing S images to a cache within a preset interval time through a hardware abstraction layer according to the second continuous shooting starting instruction; and storing the S images in the cache into the storage space according to the address information of the storage space.
And S is an integer larger than or equal to 1 and is smaller than the maximum number of images acquired by one continuous shooting. S is a predetermined integer, for example, S may be 1, 3 or 6, which is not limited in this application. For example, the hardware abstraction layer may store each 1 image acquired to the storage space. For another example, the hardware abstraction layer may store 5 images into the storage space every time 5 images are acquired, and it can be understood that the smaller the S value is, the smaller the cache occupied by the hardware abstraction layer in the process of acquiring and storing the images is, so that the processing speed of the system is faster.
The maximum number of images acquired by one continuous shooting can be sent to the hardware abstraction layer by the application layer after the continuous shooting is started, or can be pre-stored by the hardware abstraction layer.
Step 20432, determine whether the burst is over through the hardware abstraction layer.
Specifically, the electronic device stores the images acquired within the preset interval time to the cache according to the second continuous shooting start instruction through the hardware abstraction layer, and after S images are stored in the cache, the S images in the cache are stored to the storage space according to the address information of the storage space, that is, after the S images are acquired and stored to the cache, the S images in the cache are stored to the storage space according to the address information of the storage space. And returning to execute the S images acquired and stored in the preset interval time to the cache, storing the S images in the cache to the storage space according to the address information of the storage space until the hardware abstraction layer determines that the continuous shooting is finished, and finishing the shooting of the continuous shooting operation through the hardware abstraction layer, namely not acquiring the images.
After step 20431 is executed each time, it is determined whether the continuous shooting is finished, if it is determined that the continuous shooting is not finished by the hardware abstraction layer, step 20431 is continuously executed, and if it is determined that the continuous shooting is finished by the hardware abstraction layer, step 20433 is continuously executed.
Step 20433, the images not stored in the storage space in the cache are obtained through the hardware abstraction layer, and the images not stored in the storage space in the cache are stored in the storage space.
Specifically, after the electronic device determines that shooting is finished through the hardware abstraction layer, it determines that images which are not stored in the storage space in the current cache are not stored in the storage space, and stores the images which are not stored in the storage space in the cache into the storage space according to the address information of the storage space, where the number of the images which are not stored in the storage space in the cache may be 0, and may also be other integer values which are less than or equal to S and greater than 0. If the number of the images which are not stored in the storage space in the cache is 0, the images which are not stored in the storage space in the cache are not required to be stored in the storage space.
In one embodiment, the manner in which the hardware abstraction layer determines that the beat is to be ended may be that the hardware abstraction layer receives a burst end instruction sent by the application layer.
The continuous shooting ending instruction can be a continuous shooting ending instruction which is triggered by a user and received by the application layer, and then the application layer sends the continuous shooting ending instruction to the hardware abstraction layer.
Specifically, when the number of all the images stored in the cache in the continuous shooting at this time does not reach the maximum number of the images obtained in the continuous shooting at one time, the electronic device receives a continuous shooting ending instruction sent by the application layer through the hardware abstraction layer, and then ends the shooting of the continuous shooting operation at this time through the hardware abstraction layer, that is, does not obtain the images any more.
For example, as shown in the display interface shown in fig. 3, in a scene in which a user presses the shooting key 31 for a long time to start continuous shooting, assuming that the maximum number of images acquired in one continuous shooting is 100, in the process of pressing for a long time by the user, after acquiring and storing 1 image into the cache, the hardware abstraction layer stores the 1 image into the storage space according to the address information of the storage space. If the user stops long pressing at any time when the 100 images are not shot, namely the electronic device detects that the pressure value on the shooting key 31 is smaller than the preset pressure value through the application layer, namely the electronic device receives a continuous shooting ending instruction through the application layer, the electronic device sends the continuous shooting ending instruction to the hardware abstraction layer through the application layer, and the continuous shooting ending instruction is stored after the hardware abstraction layer acquires and stores 11 images to the cache and stores the images to the storage space.
In one embodiment, the manner in which the hardware abstraction layer determines that the end of a beat is determined may be that the number of images acquired and stored to the cache is the maximum number of images acquired in a single continuous beat.
Specifically, when the number of all the images stored to the cache in the continuous shooting reaches the maximum number of the images obtained in the continuous shooting at one time, the electronic device finishes the shooting of the continuous shooting operation through the hardware abstraction layer, that is, does not obtain any more images.
For example, as shown in the display interface shown in fig. 3, in a scene in which a user presses the shooting key 31 for a long time to start continuous shooting, assuming that the maximum number of images acquired in one continuous shooting is 100, in the process of pressing for a long time by the user, after each time 3 images are acquired and stored in the cache, the hardware abstraction layer stores the 3 images in the storage space according to the address information of the storage space. If 100 images have been shot, the electronic device finishes shooting of the continuous shooting operation through the hardware abstraction layer, and if the hardware abstraction layer stores 99 images in the storage space at the moment, 1 image in the cache is not stored in the storage space, and the 1 image is stored in the storage space, the storage of the continuous shooting image is finished.
In the method for storing the continuous shooting images, the electronic equipment acquires and stores S images to a cache within a preset interval time through a hardware abstraction layer according to a second continuous shooting starting instruction; storing S images in the cache to a storage space according to address information of the storage space, wherein S is an integer greater than or equal to 1 and is smaller than the maximum number of images acquired by one continuous shooting; returning and executing the S images acquired and stored in the preset interval time to the cache through the hardware abstraction layer, and storing the S images in the cache to the storage space according to the address information of the storage space until the hardware abstraction layer receives a continuous shooting ending instruction sent by the application layer; and acquiring the images which are not stored in the storage space in the cache through the hardware abstraction layer, and storing the images which are not stored in the storage space in the cache into the storage space. The electronic equipment acquires and stores the S images to the cache through the hardware abstraction layer, stores the S images to the storage space, receives the continuous shooting ending instruction sent by the application layer, can end the shooting of the continuous shooting operation, and stores the images which are not stored to the storage space through the hardware abstraction layer, so that the occupied cache resources in the shooting process are small, and the continuous shooting process consumes less resources of the electronic equipment.
In the method for storing the continuous shooting images, the continuous shooting images are stored through the hardware abstraction layer, so that the images shot in the continuous shooting process are stored in the electronic equipment and can be checked, screened and the like by a user.
It should be understood that although the various steps in the flow charts of fig. 2-7 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-7 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, a continuous shooting method is provided. The embodiment is executed by an electronic device, and the method of the embodiment includes:
step 301, receiving a continuous shooting starting instruction input by a user.
Step 302, displaying the image stored by the storage method of the continuous shooting image.
In the continuous shooting method, the electronic device receives a continuous shooting starting instruction input by a user, receives the first continuous shooting starting instruction through the application layer, allocates the storage space, generates a second continuous shooting starting instruction according to the first continuous shooting starting instruction and the storage space, the second continuous shooting starting instruction comprises address information of the storage space, sends the second continuous shooting starting instruction to the hardware abstraction layer, and obtains a plurality of images according to the second continuous shooting starting instruction in a preset interval time through the hardware abstraction layer, the electronic device does not need to transmit the plurality of images to the application layer through the hardware abstraction layer, but directly stores the plurality of images in the storage space according to the address information of the storage space through the hardware abstraction layer, so that the storage of the continuously shot images is completed, the time for the electronic device to execute the operation of storing the images through the hardware abstraction layer is less than that of the application layer, and the plurality of images are directly stored in the storage space through the hardware abstraction layer, the storage speed is faster than the application layer, so that the continuous shooting speed is high and the continuous shooting efficiency is high. Moreover, the plurality of images are stored through the hardware abstraction layer, the plurality of images do not need to be transmitted to the application layer, transmission time is shortened, and continuous shooting efficiency is improved.
In one embodiment, as shown in fig. 8, there is provided a storage device for continuously shot images, including: an application layer 801 and a hardware abstraction layer 802, wherein:
the application layer 801 is used for receiving a first continuous shooting starting instruction and allocating a storage space corresponding to the first continuous shooting instruction; generating a second continuous shooting starting instruction according to the first continuous shooting starting instruction and the storage space, wherein the second continuous shooting starting instruction comprises address information of the storage space; sending a second continuous shooting start instruction to the hardware abstraction layer 802;
the hardware abstraction layer 802 is configured to obtain a plurality of images within a preset interval time according to the second continuous shooting start instruction; and storing the plurality of images in the storage space according to the address information of the storage space through the hardware abstraction layer.
In one embodiment, the hardware abstraction layer 802 is further configured to:
sending a storage end notification to the application layer 801, the storage end notification indicating that the plurality of images have been stored in the storage space;
the application layer 801 is also used to: and determining the residual storage space in the storage space according to the storage end notice, and modifying the access authority of the residual storage space.
In one embodiment, the storage end notification includes address information of the remaining storage space of the storage space, or, address information of the used storage space,
the application layer 801 is specifically used for:
determining the residual storage space in the storage space according to the address information of the residual storage space in the storage space;
alternatively, the first and second electrodes may be,
and determining the residual storage space in the storage space according to the address information of the used storage space of the storage space.
In one embodiment, the hardware abstraction layer 802 is specifically configured to:
acquiring and storing N images to a cache within a preset interval time according to a second continuous shooting starting instruction, wherein N is an integer greater than or equal to 1, and N is the maximum number of images acquired by one continuous shooting;
and storing the N images in the cache in the storage space according to the address information of the storage space.
In one embodiment, the hardware abstraction layer 802 is specifically configured to:
acquiring and storing M images to a cache within a preset interval time according to a second continuous shooting starting instruction, wherein M is an integer greater than or equal to 1, and M is smaller than the maximum number of images acquired by one continuous shooting;
receiving a continuous shooting ending instruction sent by an application layer;
and storing the M images in the cache in the storage space according to the address information of the storage space.
In one embodiment, the hardware abstraction layer 802 is specifically configured to:
acquiring and storing S images to a cache within a preset interval time according to a second continuous shooting starting instruction; storing S images in the cache to a storage space according to address information of the storage space, wherein S is an integer greater than or equal to 1 and is smaller than the maximum number of images acquired by one continuous shooting;
returning to execute the S images acquired and stored in the preset interval time to the cache, and storing the S images in the cache to the storage space according to the address information of the storage space until the end of the continuous shooting is determined;
and acquiring images which are not stored in the storage space in the cache, and storing the images which are not stored in the storage space in the cache into the storage space.
In one embodiment, determining the end of the burst comprises:
receiving a continuous shooting ending instruction sent by an application layer 801;
alternatively, the first and second electrodes may be,
and determining the number of the images acquired and stored to the cache as the maximum number of the images acquired in one continuous shooting.
In the storage device for continuously shooting images, the electronic equipment receives a first continuous shooting starting instruction through the application layer, allocates the storage space, generates a second continuous shooting starting instruction according to the first continuous shooting starting instruction and the storage space, the second continuous shooting starting instruction comprises address information of the storage space, and sends the second continuous shooting starting instruction to the hardware abstraction layer, and acquires a plurality of images in a preset interval time according to the second continuous shooting starting instruction through the hardware abstraction layer, the electronic equipment does not need to transmit the plurality of images to the application layer through the hardware abstraction layer, but directly stores the plurality of images in the storage space according to the address information of the storage space through the hardware abstraction layer, so that the storage of the continuously shot images is finished, because the time for the electronic equipment to execute the operation of storing the images through the hardware abstraction layer is less than that of the application layer, the plurality of images are directly stored in the storage space through the hardware abstraction layer, the storage speed is faster than the application layer, so that the continuous shooting speed is high and the continuous shooting efficiency is high. Moreover, the plurality of images are stored through the hardware abstraction layer, the plurality of images do not need to be transmitted to the application layer, transmission time is shortened, and continuous shooting efficiency is improved.
For specific limitations of the storage device for the continuous shooting images, reference may be made to the above limitations on the storage method for the continuous shooting images, and details are not repeated here. The modules in the continuous shooting device can be wholly or partially realized by software, hardware and a combination thereof. The above layers may be embedded in a hardware form or independent from a processor in the computer device, or may be stored in a memory in the computer device in a software form, so that the processor calls and executes operations corresponding to the above modules.
In one embodiment, an electronic device is provided, which may be various personal computers, notebook computers, smart phones, tablet computers and portable wearable devices, the internal structure of which may be as shown in fig. 1. The electronic device comprises a processor, a memory, a communication interface, a display screen and an input device which are connected through a system bus. Wherein the processor of the electronic device is configured to provide computing and control capabilities. The memory of the electronic equipment comprises a nonvolatile 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 an operating system and computer programs in the non-volatile storage medium. The communication interface of the electronic device is used for carrying out wired or wireless communication with an external terminal, and the wireless communication can be realized through WIFI, an operator network, Near Field Communication (NFC) or other technologies. The computer program is executed by a processor to implement a method of storing a burst image. The display screen of the electronic equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the electronic equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the electronic equipment, an external keyboard, a touch pad or a mouse and the like.
In one embodiment, the processor may include one or more processing units, such as: the processor may include an Application Processor (AP), a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a modem processor, a controller, a memory, a video codec, a Digital Signal Processor (DSP), and/or a neural-Network Processing Unit (NPU), among others. The different processing units may be separate devices or may be integrated into one or more processors.
In one embodiment, the electronic device further comprises a camera. The camera is used to capture still images or video. The object generates an optical image through the lens and projects the optical image to the photosensitive element. The photosensitive element may be a Charge Coupled Device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and transmits the electrical signal to a processor of the electronic device. In some embodiments, the electronic device may include 1 or more cameras.
Those skilled in the art will appreciate that the architecture shown in fig. 1 is a block diagram of only a portion of the architecture associated with the subject application, and does not constitute a limitation on the electronic devices to which the subject application may be applied, and that a particular electronic device may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the storage device for continuously shooting images provided by the present application can be implemented in the form of a computer program, and the computer program can be run on an electronic device as shown in fig. 1. The memory of the electronic device may store various program modules constituting the continuous shooting apparatus, such as an application layer and a hardware abstraction layer shown in fig. 8. The computer program constituted by the respective program modules causes the processor to execute the steps in the storage method of the continuously shot images of the embodiments of the present application described in the present specification.
For example, the electronic device shown in fig. 1 may perform steps 201 to 203 through an application layer in the continuous shooting apparatus shown in fig. 8. The electronic device may perform step 204 through a hardware abstraction layer.
In one embodiment, an electronic device is provided, comprising a memory storing a computer program and a processor implementing the following steps when the processor executes the computer program:
step 201, receiving a first continuous shooting starting instruction through an application layer, and allocating a storage space corresponding to the first continuous shooting instruction;
step 202, generating a second continuous shooting starting instruction according to the first continuous shooting starting instruction and the storage space through the application layer;
step 203, sending a second continuous shooting starting instruction to a hardware abstraction layer of the electronic device through an application layer;
and step 204, acquiring a plurality of images within a preset interval time through the hardware abstraction layer according to the second continuous shooting starting instruction, and storing the plurality of images in a storage space according to the address information of the storage space.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
step 205, sending a storage end notification to the application layer through the hardware abstraction layer.
And step 206, determining the residual storage space in the storage space through the application layer according to the storage end notification, and modifying the access authority of the residual storage space.
In one embodiment, the storage end notification includes address information of a remaining storage space of the storage space or address information of a used storage space, and step 206 includes:
determining the residual storage space in the storage space according to the address information of the residual storage space of the storage space through the application layer;
alternatively, the first and second electrodes may be,
and determining the residual storage space in the storage space by the application layer according to the address information of the used storage space of the storage space.
In one embodiment, step 204 includes:
acquiring and storing N images to a cache within a preset interval time through a hardware abstraction layer according to a second continuous shooting starting instruction, wherein N is an integer greater than or equal to 1, and N is the maximum number of images acquired by one continuous shooting;
and storing the N images in the cache in the storage space through a hardware abstraction layer according to the address information of the storage space.
In one embodiment, step 204 includes:
acquiring and storing M images to a cache within a preset interval time through a hardware abstraction layer according to a second continuous shooting starting instruction, wherein M is an integer greater than or equal to 1, and M is smaller than the maximum number of images acquired by one continuous shooting;
receiving a continuous shooting ending instruction sent by an application layer through a hardware abstraction layer;
and storing the M images in the cache in the storage space through a hardware abstraction layer according to the address information of the storage space.
In one embodiment, step 204 includes:
acquiring and storing S images to a cache within a preset interval time according to a second continuous shooting starting instruction through a hardware abstraction layer; storing S images in the cache to a storage space according to address information of the storage space, wherein S is an integer greater than or equal to 1 and is smaller than the maximum number of images acquired by one continuous shooting;
returning and executing the S images acquired and stored in the preset interval time to the cache through the hardware abstraction layer, and storing the S images in the cache to the storage space according to the address information of the storage space until the end of the continuous shooting is determined through the hardware abstraction layer;
and acquiring the images which are not stored in the storage space in the cache through the hardware abstraction layer, and storing the images which are not stored in the storage space in the cache into the storage space.
In one embodiment, determining the end of the burst through the hardware abstraction layer includes:
receiving a continuous shooting ending instruction sent by an application layer through a hardware abstraction layer;
alternatively, the first and second electrodes may be,
and determining the number of the images acquired and stored to the cache as the maximum number of the images acquired in one continuous shooting through the hardware abstraction layer.
In the electronic device, the electronic device receives a first continuous shooting starting instruction through the application layer, allocates a storage space, generates a second continuous shooting starting instruction according to the first continuous shooting starting instruction and the storage space, the second continuous shooting starting instruction comprises address information of the storage space, and sends the second continuous shooting starting instruction to the hardware abstraction layer, and acquires a plurality of images in a preset interval time according to the second continuous shooting starting instruction through the hardware abstraction layer, the electronic device does not need to transmit the plurality of images to the application layer through the hardware abstraction layer, but directly stores the plurality of images in the storage space according to the address information of the storage space through the hardware abstraction layer, so that the storage of the continuously shot images is completed, and the time for the electronic device to execute the operation of storing the images through the hardware abstraction layer is less than that of the application layer, and the plurality of images are directly stored in the storage space through the hardware abstraction layer, the storage speed is faster than the application layer, so that the continuous shooting speed is high and the continuous shooting efficiency is high. Moreover, the plurality of images are stored through the hardware abstraction layer, the plurality of images do not need to be transmitted to the application layer, transmission time is shortened, and continuous shooting efficiency is improved.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
step 201, receiving a first continuous shooting starting instruction through an application layer, and allocating a storage space corresponding to the first continuous shooting instruction;
step 202, generating a second continuous shooting starting instruction according to the first continuous shooting starting instruction and the storage space through the application layer;
step 203, sending a second continuous shooting starting instruction to a hardware abstraction layer of the electronic device through an application layer;
and step 204, acquiring a plurality of images within a preset interval time through the hardware abstraction layer according to the second continuous shooting starting instruction, and storing the plurality of images in a storage space according to the address information of the storage space.
In one embodiment, the computer program when executed by the processor further performs the steps of:
step 205, sending a storage end notification to the application layer through the hardware abstraction layer.
And step 206, determining the residual storage space in the storage space through the application layer according to the storage end notification, and modifying the access authority of the residual storage space.
In one embodiment, the storage end notification includes address information of a remaining storage space of the storage space or address information of a used storage space, and step 206 includes:
determining the residual storage space in the storage space according to the address information of the residual storage space of the storage space through the application layer;
alternatively, the first and second electrodes may be,
and determining the residual storage space in the storage space by the application layer according to the address information of the used storage space of the storage space.
In one embodiment, step 204 includes:
acquiring and storing N images to a cache within a preset interval time through a hardware abstraction layer according to a second continuous shooting starting instruction, wherein N is an integer greater than or equal to 1, and N is the maximum number of images acquired by one continuous shooting;
and storing the N images in the cache in the storage space through a hardware abstraction layer according to the address information of the storage space.
In one embodiment, step 204 includes:
acquiring and storing M images to a cache within a preset interval time through a hardware abstraction layer according to a second continuous shooting starting instruction, wherein M is an integer greater than or equal to 1, and M is smaller than the maximum number of images acquired by one continuous shooting;
receiving a continuous shooting ending instruction sent by an application layer through a hardware abstraction layer;
and storing the M images in the cache in the storage space through a hardware abstraction layer according to the address information of the storage space.
In one embodiment, step 204 includes:
acquiring and storing S images to a cache within a preset interval time according to a second continuous shooting starting instruction through a hardware abstraction layer; storing S images in the cache to a storage space according to address information of the storage space, wherein S is an integer greater than or equal to 1 and is smaller than the maximum number of images acquired by one continuous shooting;
returning and executing the S images acquired and stored in the preset interval time to the cache through the hardware abstraction layer, and storing the S images in the cache to the storage space according to the address information of the storage space until the end of the continuous shooting is determined through the hardware abstraction layer;
and acquiring the images which are not stored in the storage space in the cache through the hardware abstraction layer, and storing the images which are not stored in the storage space in the cache into the storage space.
In one embodiment, determining the end of the burst through the hardware abstraction layer includes:
receiving a continuous shooting ending instruction sent by an application layer through a hardware abstraction layer;
alternatively, the first and second electrodes may be,
and determining the number of the images acquired and stored to the cache as the maximum number of the images acquired in one continuous shooting through the hardware abstraction layer.
In the computer-readable storage medium, the electronic device receives a first continuous shooting start instruction through the application layer, allocates a storage space, generates a second continuous shooting start instruction according to the first continuous shooting start instruction and the storage space, the second continuous shooting start instruction includes address information of the storage space and sends the second continuous shooting start instruction to the hardware abstraction layer, and acquires a plurality of images in a preset interval time according to the second continuous shooting start instruction through the hardware abstraction layer, the electronic device does not need to transmit the plurality of images to the application layer through the hardware abstraction layer, but directly stores the plurality of images in the storage space according to the address information of the storage space through the hardware abstraction layer, so that the storage of the continuously shot images is completed, and because the time for the electronic device to execute the operation of storing the images through the hardware abstraction layer is less than that of the application layer, the plurality of images are directly stored in the storage space through the hardware abstraction layer, the storage speed is faster than the application layer, so that the continuous shooting speed is high and the continuous shooting efficiency is high. Moreover, the plurality of images are stored through the hardware abstraction layer, the plurality of images do not need to be transmitted to the application layer, transmission time is shortened, and continuous shooting efficiency is improved.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, database, or other medium used in the embodiments provided herein may include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical storage, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM is available in many forms, such as Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), and the like.
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A storage method of continuous shooting images is applied to electronic equipment, the electronic equipment is provided with an operating system, the operating system comprises an application layer and a hardware abstraction layer, and the method comprises the following steps:
receiving a first continuous shooting starting instruction through the application layer, and distributing a storage space corresponding to the first continuous shooting instruction;
generating a second continuous shooting starting instruction according to the first continuous shooting starting instruction and the storage space through the application layer, wherein the second continuous shooting starting instruction comprises address information of the storage space;
sending the second continuous shooting starting instruction to the hardware abstraction layer through the application layer;
acquiring a plurality of images within a preset interval time according to the second continuous shooting starting instruction through the hardware abstraction layer;
and storing the plurality of images in the storage space according to the address information of the storage space through the hardware abstraction layer.
2. The method of claim 1, further comprising:
sending, by the hardware abstraction layer, a storage end notification to the application layer, the storage end notification indicating that the plurality of images have been stored to the storage space;
and determining the residual storage space in the storage space and modifying the access authority of the residual storage space through the application layer according to the storage end notice.
3. The method according to claim 2, wherein the storage end notification includes address information of a remaining storage space of the storage space, or address information of a used storage space,
determining, by the application layer according to the storage end notification, a remaining storage space in the storage space, including:
determining the residual storage space in the storage space according to the address information of the residual storage space of the storage space through the application layer;
alternatively, the first and second electrodes may be,
and determining the residual storage space in the storage space according to the address information of the used storage space of the storage space by the application layer.
4. The method according to any one of claims 1 to 3, wherein a plurality of images are acquired by the hardware abstraction layer according to the second continuous shooting start instruction within a preset interval time; storing the plurality of images into the storage space according to the address information of the storage space through the hardware abstraction layer, including:
acquiring and storing N images to a cache within a preset interval time through the hardware abstraction layer according to the second continuous shooting starting instruction, wherein N is an integer greater than or equal to 1, and N is the maximum number of images acquired by one continuous shooting;
and storing the N images in the cache in the storage space according to the address information of the storage space through the hardware abstraction layer.
5. The method according to any one of claims 1 to 3, wherein a plurality of images are acquired by the hardware abstraction layer according to the second continuous shooting start instruction within a preset interval time; storing the plurality of images in the storage space according to the address information of the storage space through the hardware abstraction layer, including:
acquiring and storing M images to a cache within a preset interval time through the hardware abstraction layer according to the second continuous shooting starting instruction, wherein M is an integer greater than or equal to 1, and M is smaller than the maximum number of images acquired by one continuous shooting;
receiving a continuous shooting ending instruction sent by the application layer through the hardware abstraction layer;
and storing the M images in the cache in the storage space according to the address information of the storage space through the hardware abstraction layer.
6. The method according to any one of claims 1 to 3, wherein the obtaining, by the hardware abstraction layer, a plurality of images according to the second continuous shooting start instruction within a preset interval time, and storing the plurality of images in the storage space according to the address information of the storage space, comprises:
acquiring and storing S images to a cache within a preset interval time according to the second continuous shooting starting instruction through the hardware abstraction layer; storing the S images in the cache to the storage space according to the address information of the storage space, wherein S is an integer larger than or equal to 1 and is smaller than the maximum number of images acquired by one continuous shooting;
returning and executing S images acquired and stored in a preset interval time to a cache through the hardware abstraction layer, and storing the S images in the cache to the storage space according to the address information of the storage space until the end of continuous shooting is determined through the hardware abstraction layer;
and acquiring the images which are not stored in the storage space in the cache through the hardware abstraction layer, and storing the images which are not stored in the storage space in the cache to the storage space.
7. The method according to any one of claims 1-3, wherein the determining, by the hardware abstraction layer, the end of the burst comprises:
receiving a continuous shooting ending instruction sent by the application layer through the hardware abstraction layer;
alternatively, the first and second electrodes may be,
and determining the number of the images acquired and stored to the cache as the maximum number of the images acquired by one continuous shooting through the hardware abstraction layer.
8. A device for storing a continuous shot image, the device comprising:
the application layer is used for receiving a first continuous shooting starting instruction and distributing a storage space corresponding to the first continuous shooting instruction; generating a second continuous shooting starting instruction according to the first continuous shooting starting instruction and the storage space, wherein the second continuous shooting starting instruction comprises address information of the storage space; sending the second continuous shooting starting instruction;
and the hardware abstraction layer is used for acquiring a plurality of images within a preset interval time according to the second continuous shooting starting instruction and storing the images in the storage space according to the address information of the storage space.
9. An electronic device comprising a memory and a processor, the memory storing a computer program, wherein the processor implements the steps of the method for storing a continuous shooting image according to any one of claims 1 to 7 when executing the computer program.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN202011511111.0A 2020-12-18 2020-12-18 Method and device for storing continuous shooting images, electronic equipment and storage medium Active CN112672046B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011511111.0A CN112672046B (en) 2020-12-18 2020-12-18 Method and device for storing continuous shooting images, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011511111.0A CN112672046B (en) 2020-12-18 2020-12-18 Method and device for storing continuous shooting images, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112672046A true CN112672046A (en) 2021-04-16
CN112672046B CN112672046B (en) 2022-05-03

Family

ID=75406208

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011511111.0A Active CN112672046B (en) 2020-12-18 2020-12-18 Method and device for storing continuous shooting images, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112672046B (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110138117A1 (en) * 2009-05-21 2011-06-09 Masahiro Nakamura Memory controller, nonvolatile storage device, accessing device, nonvolatile storage system, and method and program for writing data
WO2017166507A1 (en) * 2016-03-30 2017-10-05 乐视控股(北京)有限公司 Energy efficiency control method and device for television and television
CN107295243A (en) * 2016-04-05 2017-10-24 希姆通信息技术(上海)有限公司 The method and mobile terminal of mobile terminal collection image
CN107317973A (en) * 2017-08-17 2017-11-03 珠海市魅族科技有限公司 A kind of information processing method and device, computer installation and readable storage medium storing program for executing
WO2018046705A2 (en) * 2016-09-08 2018-03-15 Koninklijke Kpn N.V. Partial video decoding method, device and system
CN108241645A (en) * 2016-12-23 2018-07-03 腾讯科技(深圳)有限公司 Image processing method and device
CN109885260A (en) * 2019-02-27 2019-06-14 广州三星通信技术研究有限公司 The method and apparatus of storing data for electric terminal
CN110933314A (en) * 2019-12-09 2020-03-27 Oppo广东移动通信有限公司 Focus-following shooting method and related product
CN110933275A (en) * 2019-12-09 2020-03-27 Oppo广东移动通信有限公司 Photographing method and related equipment
CN110990088A (en) * 2019-12-09 2020-04-10 Oppo广东移动通信有限公司 Data processing method and related equipment
CN111567033A (en) * 2019-05-15 2020-08-21 深圳市大疆创新科技有限公司 Shooting device, unmanned aerial vehicle, control terminal and shooting method
WO2020171492A1 (en) * 2019-02-19 2020-08-27 삼성전자 주식회사 Method for processing photographed image and electronic device therefor

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110138117A1 (en) * 2009-05-21 2011-06-09 Masahiro Nakamura Memory controller, nonvolatile storage device, accessing device, nonvolatile storage system, and method and program for writing data
WO2017166507A1 (en) * 2016-03-30 2017-10-05 乐视控股(北京)有限公司 Energy efficiency control method and device for television and television
CN107295243A (en) * 2016-04-05 2017-10-24 希姆通信息技术(上海)有限公司 The method and mobile terminal of mobile terminal collection image
WO2018046705A2 (en) * 2016-09-08 2018-03-15 Koninklijke Kpn N.V. Partial video decoding method, device and system
CN108241645A (en) * 2016-12-23 2018-07-03 腾讯科技(深圳)有限公司 Image processing method and device
CN107317973A (en) * 2017-08-17 2017-11-03 珠海市魅族科技有限公司 A kind of information processing method and device, computer installation and readable storage medium storing program for executing
WO2020171492A1 (en) * 2019-02-19 2020-08-27 삼성전자 주식회사 Method for processing photographed image and electronic device therefor
CN109885260A (en) * 2019-02-27 2019-06-14 广州三星通信技术研究有限公司 The method and apparatus of storing data for electric terminal
CN111567033A (en) * 2019-05-15 2020-08-21 深圳市大疆创新科技有限公司 Shooting device, unmanned aerial vehicle, control terminal and shooting method
CN110933314A (en) * 2019-12-09 2020-03-27 Oppo广东移动通信有限公司 Focus-following shooting method and related product
CN110933275A (en) * 2019-12-09 2020-03-27 Oppo广东移动通信有限公司 Photographing method and related equipment
CN110990088A (en) * 2019-12-09 2020-04-10 Oppo广东移动通信有限公司 Data processing method and related equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘红保: "Android***下Camera子***的设计、实现与优化", 《北京邮电大学硕士论文》 *

Also Published As

Publication number Publication date
CN112672046B (en) 2022-05-03

Similar Documents

Publication Publication Date Title
CN103152489B (en) A kind of exhibiting method of image of autodyning and device
US20150244916A1 (en) Electronic device and control method of the same
CN104869305B (en) Method and apparatus for processing image data
CN109068059B (en) Method for calling camera, mobile terminal and storage medium
CN104509092B (en) Control the method and related computing devices and computer-readable recording medium of camera
CN102016912A (en) Methods, computer program products and apparatus providing improved image capturing
CN113727035A (en) Image processing method, system, electronic device and storage medium
CN110955541B (en) Data processing method, device, chip, electronic equipment and readable storage medium
CN112954212B (en) Video generation method, device and equipment
CN112770059A (en) Photographing method and device and electronic equipment
CN115484403B (en) Video recording method and related device
CN111259441B (en) Device control method, device, storage medium and electronic device
CN111314606B (en) Photographing method and device, electronic equipment and storage medium
CN110913138B (en) Continuous shooting method, device, terminal and computer readable storage medium
CN110231962B (en) Process performance configuration method, device, terminal and storage medium
CN108184056B (en) Snapshot method and terminal equipment
CN112672046B (en) Method and device for storing continuous shooting images, electronic equipment and storage medium
JP6347636B2 (en) Image processing system, data management method, and program
CN116723383B (en) Shooting method and related equipment
KR20200101226A (en) Method for processing shooted image and electronic device thereof
CN111666124A (en) Image acquisition equipment calling method and device, computer equipment and storage medium
CN115514894B (en) Processing method and electronic equipment
US20190278638A1 (en) Image data management apparatus and method therefor
CN117156293B (en) Photographing method and related device
JP2012231208A (en) Electronic apparatus

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