CN112312023B - Camera buffer queue allocation method and device, electronic equipment and storage medium - Google Patents

Camera buffer queue allocation method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112312023B
CN112312023B CN202011195694.0A CN202011195694A CN112312023B CN 112312023 B CN112312023 B CN 112312023B CN 202011195694 A CN202011195694 A CN 202011195694A CN 112312023 B CN112312023 B CN 112312023B
Authority
CN
China
Prior art keywords
capacity
camera
cache
queue
buffer queue
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011195694.0A
Other languages
Chinese (zh)
Other versions
CN112312023A (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.)
Beijing Xiaomi Mobile Software Co Ltd
Original Assignee
Beijing Xiaomi Mobile Software 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 Beijing Xiaomi Mobile Software Co Ltd filed Critical Beijing Xiaomi Mobile Software Co Ltd
Priority to CN202011195694.0A priority Critical patent/CN112312023B/en
Publication of CN112312023A publication Critical patent/CN112312023A/en
Application granted granted Critical
Publication of CN112312023B publication Critical patent/CN112312023B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Studio Devices (AREA)

Abstract

The invention discloses a method and a device for allocating a cache queue of a camera, electronic equipment and a storage medium, wherein the method comprises the following steps: detecting a starting instruction of the camera; determining a first cache queue for caching preview images in the process of starting the camera based on the starting instruction; after the camera startup process is completed, allocating a second buffer queue, wherein the second buffer queue is: and generating a cache queue of the shot image according to the preview image. By allocating the first buffer queue, but not the second buffer queue, before the camera is started, image preview is not affected. And the second cache queue is reallocated after the camera is started, so that the allocated memory in the camera starting process is reduced, the peak period of the allocated memory is staggered, and the starting efficiency of the camera is accelerated.

Description

Camera buffer queue allocation method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method and an apparatus for allocating a cache queue of a camera, an electronic device, and a storage medium.
Background
With the continuous development of electronic equipment such as mobile phones, cameras integrated on the electronic equipment are more and more, and the resolution of the cameras is also higher and higher. In order to realize smooth switching of multi-shot and support various multi-frame synthesis algorithms, more and more resources are required to be created in the starting process of the camera, and the used memory is also larger and larger. After the electronic device is heavily used for a long time, the fragments of the system memory are serious, and at the moment, when a user starts a camera, the camera is started slowly, so that the user experience is influenced.
Disclosure of Invention
The invention provides a buffer queue allocation method and device for a camera, electronic equipment and a storage medium.
According to a first aspect of the embodiments of the present invention, there is provided a method for allocating a buffer queue of a camera, including:
detecting a starting instruction of the camera;
determining a first cache queue for caching preview images in the process of starting the camera based on the starting instruction;
after the camera startup process is completed, allocating a second buffer queue, wherein the second buffer queue is: and generating a cache queue of the shot image according to the preview image.
In some embodiments, said allocating a second buffer queue after completion of said camera boot process comprises:
predicting the available memory capacity of the electronic equipment after the electronic equipment caches the images to be shot according to the number of the images to be shot, the memory capacity required by a single shot image and the current idle cache capacity of the electronic equipment during shooting;
and allocating the second buffer queue according to the available memory capacity.
In some embodiments, when the available memory capacity belongs to a first range, the capacity of the second buffer queue is equal to the capacity of a buffer space required for shooting;
when the available memory capacity belongs to a second range, the initial capacity of the second cache queue is smaller than the capacity of the cache space required by shooting, and the capacity of the second cache queue is increased to be equal to the capacity of the cache space required by shooting by taking a preset capacity as a step length;
the minimum value of the first range is greater than the maximum value of the second range.
In some embodiments, the method further comprises:
determining the preset number of sheets according to the preview frame rate; wherein the preset number of sheets is as follows: and increasing the number of the shot images between the capacity of the second buffer queue and the capacity of the second buffer queue at two adjacent times.
In some embodiments, if the available memory capacity belongs to a first capacity interval in the second range, the predetermined number is N;
if the available memory capacity belongs to a second capacity interval in the second range, the preset number is M;
wherein a minimum value of the first capacity interval is greater than a maximum value of the second capacity interval; n, M are all positive integers greater than 0, and M is greater than N;
the first range is larger than or equal to the memory capacity occupied by the first background process;
the second range is smaller than the memory capacity occupied by the first background process;
wherein the first background process is: and the background process positioned at the first position in descending order of priority according to descending order of occupied memory capacity.
In some embodiments, the method further comprises:
and after previewing the preset number of previewing pictures, increasing the capacity of the second cache queue by taking the preset capacity as a step length.
In some embodiments, the first capacity interval is located between a memory capacity occupied by a second background process and a memory capacity occupied by the first background process; wherein the second background process is: the background process at the second position in descending order of priority according to the descending order of the occupied memory capacity;
the second capacity interval is less than or equal to the memory capacity occupied by the second background process.
According to a second aspect of the embodiments of the present invention, there is provided a camera buffer queue allocation apparatus, including:
the first detection module is used for detecting a starting instruction of the camera;
the first distribution module is used for determining a first cache queue for caching the preview image in the process of starting the camera based on the starting instruction;
a second allocating module, configured to allocate a second cache queue after the camera starting process is completed, where the second cache queue is: and generating a cache queue of the shot image according to the preview image.
In some embodiments, the second allocating module is specifically configured to:
predicting the available memory capacity of the electronic equipment after the current available memory caches the shot images according to the number of the shot images, the memory capacity required by a single shot image and the current idle cache capacity of the electronic equipment;
and allocating the second buffer queue according to the available memory capacity.
In some embodiments, the second allocation module is further specifically configured to at least one of:
when the available memory capacity belongs to a first capacity range, the capacity of the second cache queue is equal to the capacity of the cache space required by the shot image;
when the available memory capacity belongs to a second capacity range, the initial capacity of the second cache queue is smaller than the capacity of the cache space required by the shot image, and the capacity of the second cache queue is increased to be equal to the capacity of the cache space required by the shot image by taking the preset capacity as a step length;
the minimum value of the first capacity range is greater than the maximum value of the second capacity range.
In some embodiments, the second allocating module is further specifically configured to:
determining the preset number of sheets according to the preview frame rate; wherein the preset number of sheets is as follows: and increasing the number of preview images between the capacities of the second buffer queue two times.
In some embodiments, the second allocating module is further specifically configured to:
and after previewing the preset number of previewing pictures, increasing the capacity of the second cache queue by taking the preset capacity as a step length.
According to a third aspect of the embodiments of the present invention, there is provided an electronic device, including a processor, a memory, and an executable program stored on the memory and capable of being executed by the processor, wherein the processor executes the executable program to perform the steps of the method for allocating the cache queue of the camera according to any one of the above embodiments.
According to a fourth aspect of the embodiments of the present invention, there is provided a storage medium having an executable program stored thereon, wherein the executable program, when executed by a processor, implements the steps of the method for allocating a buffer queue of a camera according to any one of the above embodiments.
The embodiment of the invention discloses a method and a device for allocating a cache queue of a camera, electronic equipment and a storage medium;
by allocating a first buffer queue, but not a second buffer queue, before the camera is started. Since the first buffer queue for buffering the preview image is allocated during the camera booting process, the image previewed by the camera immediately after booting is not affected, so that the allocation of the first buffer queue is transparent to the user. And the second buffer queue for buffering the shot images is distributed after the camera is started, so that the operations required to be executed by the camera in the starting process are reduced compared with the distribution of the second buffer queue in the starting process of the camera, the starting process of the camera is shortened, and the starting speed of the camera is accelerated. Especially, when the buffer capacity corresponding to the second buffer queue is large, the starting speed of the camera is accelerated more obviously.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the invention, as claimed.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a method for allocating a buffer queue of a camera according to an exemplary embodiment;
FIG. 2 is one of the block diagrams of a buffer queue allocation arrangement of a camera shown in accordance with an example embodiment;
fig. 3 is a block diagram illustrating a configuration of a buffer queue allocation apparatus of a camera according to an exemplary embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with embodiments of the invention. Rather, they are merely examples of apparatus and methods consistent with certain aspects of embodiments of the invention, as detailed in the following claims.
The terminology used in the embodiments of the invention is for the purpose of describing particular embodiments only and is not intended to be limiting of the embodiments of the invention. As used in the examples of the present invention and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It should be understood that although the terms first, second, third, etc. may be used to describe various information in embodiments of the present invention, the information should not be limited by these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of embodiments of the present invention. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Fig. 1 is a flowchart illustrating a method for allocating a buffer queue of a camera according to an exemplary embodiment, where as shown in fig. 1, the method includes the following specific steps:
step 101: detecting a starting instruction of the camera;
step 102: determining a first cache queue for caching preview images in the process of starting the camera based on the starting instruction;
step 103: after the camera startup process is completed, allocating a second buffer queue, wherein the second buffer queue is: and generating a cache queue of the shot image according to the preview image.
In a specific application, without limitation, a user performs a trigger operation on a camera icon or other icon for quickly starting a camera on the electronic device to form a starting instruction of the camera.
The preview images in the first cache queue can be used for being output to a screen of the electronic equipment to display previews, and a preview interface is entered. In the preview interface, a user can see image data acquired by the camera on the screen of the electronic equipment, and the preview images can be transformed on the screen of the electronic equipment along with the movement of the camera. After the first frame preview image is displayed, it represents that the camera startup is complete.
Without limitation, the method for allocating the cache queue of the camera according to the embodiment of the present disclosure may be used in electronic devices such as various mobile terminals, such as a mobile phone and a tablet computer.
Generally, the user does not perform a shooting operation while the camera is opened to enter the preview interface, but performs the shooting operation after selecting a suitable preview image, and the process of the electronic device performing the shooting includes storing the shot image cached in the second cache queue into a corresponding photo or video folder. Therefore, a certain preview process is carried out from the display of the first frame preview image to the shooting, the second buffer queue can be allocated at a proper time in the preview process, the preview and the shooting are not influenced, the peak period of memory allocation is staggered, and the starting efficiency of the camera is accelerated.
In the embodiment of the disclosure, since the first buffer queue for buffering the preview image is allocated in the camera starting process, the image previewed by the camera immediately after the camera is started is not affected, so that the allocation of the first buffer queue is transparent for the user. And the second buffer queue for buffering the shot images is distributed after the camera is started, so that the operations required to be executed by the camera in the starting process are reduced compared with the distribution of the second buffer queue in the starting process of the camera, the starting process of the camera is shortened, and the starting speed of the camera is accelerated. Especially, when the buffer capacity corresponding to the second buffer queue is large, the starting speed of the camera is accelerated more obviously.
The first buffer queue is used for buffering images for previewing, and the second buffer queue is used for buffering images for shooting and forming final photos. Since the preview requires less pixels of the image than a photograph, for example: the pixels of the screen displaying the preview interface are lower than the pixels of the photos, so that the amount of data buffered in the first buffer queue can be smaller than the amount of data buffered in the second buffer queue, and therefore the capacity of the first buffer queue is smaller than that of the second buffer queue. For example: the camera sensor is only capable of capturing 1440 x 1080 pixels of raw images, each preview image and each captured image is also 1440 x 1080 pixels, only one preview picture may be buffered in the first buffer queue, and a plurality of captured images may need to be buffered in the second buffer queue in order to compose a higher pixel picture, for example, a 4000 x 3000 pixel picture.
The preview image and the shot image may both refer to an original image obtained by the camera collecting a current shot object in real time.
After the camera is started, the previewed preview images reach the preset number and then serve as the opportunity for starting to distribute the second cache queue. In one embodiment, the frame rate of the camera is 30 frames/second, and the electronic device may start allocating the second buffer queue after previewing the 30 frames of preview images. I.e. approximately 1 second after the camera is started, a second buffer queue is allocated. At this time, the memory peak value is reduced in the camera starting process, and the camera starting process is accelerated. And no second buffer queue is allocated until approximately 1 second of camera startup.
In one embodiment, S102 may include:
in the process of starting the camera based on the starting instruction, determining the first buffer queue by reading the pre-allocated queue information of the first buffer queue;
alternatively, the first and second electrodes may be,
temporarily allocating the first buffer queue in a process of starting the camera based on the starting instruction.
If the first cache rank is pre-allocated, the startup of the camera may be further accelerated.
In one embodiment, the capacity of the second buffer queue is generally larger than or even much larger than the capacity of the first buffer queue.
In some embodiments, said allocating a second buffer queue after completion of said camera boot process comprises:
predicting the available memory capacity of the electronic equipment after the electronic equipment caches the images to be shot according to the number of the images to be shot, the memory capacity required by a single shot image and the current idle cache capacity of the electronic equipment during shooting;
and allocating the second buffer queue according to the available memory capacity.
In specific application, as more memories need to be applied in the camera starting process, and after some electronic devices are heavily used for a long time, the memory fragments of the electronic devices are serious, and the starting speed is reduced. If the available memory of the current electronic equipment is insufficient, the electronic equipment triggers memory recovery. The recovery process can seize a Central Processing Unit (CPU) resource, affect the preview process, and cause problems such as frame dropping in preview after the camera is started, and jamming of the start animation.
Generally, in different shooting modes, the arrangement of cameras is different, and the number of shot images required for shooting in the electronic device arrangement is also different. Generally, the camera may be a camera composed of a front camera or a rear camera; the number of the cameras may be one, or two or more. The selected shooting modes are different, the selection of the cameras is different, the camera configuration is also different, and further different image number required for shooting is configured. Different camera configurations cause different resolutions and formats of each shot image, so that the memory capacity occupied by each shot image is different in different shooting modes, and the capacity of the second buffer queue required in each shooting mode is different. For example: when a user starts a camera, the user may directly enter a default photographing mode, the corresponding default photographing mode may be a post-photographing mode, and the camera configuration in the post-photographing mode may be that all rear cameras are simultaneously turned on. Therefore, during shooting, n shot images need to be cached in the second cache queue, wherein n is a positive integer larger than 0. At this time, the capacity of the second buffer queue is S ═ n × S, that is, the capacity of the buffer space required for shooting.
It is understood that when the photographing mode is changed, the size of each photographed picture may be changed. During shooting, the number of the shot images cached in the second cache queue and the capacity of the second cache queue are changed. Therefore, after the shooting mode is changed, the available memory capacity of the electronic device after caching and shooting the required shot image is changed.
The photographing mode change includes, but is not limited to: the user selects the portrait mode when opening the camera, which is changed from the post-shooting default mode when opening. Or, when the camera is in an open state, the user is adjusted from the current back-shooting mode to the front-shooting mode.
In the embodiment of the disclosure, before the second cache queue is allocated, the available memory capacity of the electronic device after the image needing to be shot is cached and shot is predicted, and then the allocation of the second cache queue is performed according to the prediction result, so that the memory recovery triggered after the electronic device caches the second queue can be reduced, further the occupation of CPU resources due to the allocation of the second cache queue is reduced, and the problems of frame dropping in preview, starting animation jamming and the like are solved.
In practical applications, the memory capacity consumed by the current electronic device may be determined according to the current memory occupation condition and/or other application starting conditions in the electronic device. The capacity of the cache space required by shooting is determined according to the number, pixels, formats and the like of the images required to be shot, and the available memory capacity of the electronic equipment after the images required to be shot are cached is predicted.
In some embodiments, the available memory capacity after the electronic device caches the captured images is predicted according to the number of the captured images required during the capturing, the memory capacity required for a single captured image, and the current free cache capacity of the electronic device; the method comprises the following steps:
predicting the cache space capacity required by the shooting of the electronic equipment according to the number of images required to be shot during shooting and the memory capacity required by a single shot image;
acquiring the current idle cache capacity of the electronic equipment;
and determining the difference value between the current idle cache capacity of the electronic equipment and the required cache space capacity of the shot image to obtain the available memory capacity of the electronic equipment after the shot image is cached.
In practical application, if the free cache capacity of the current electronic device is M and the capacity of the cache space required for shooting is S, the available memory capacity of the electronic device after caching the shot image is predicted to be M-S.
The current free buffer capacity of the electronic device may be understood as the difference between the total memory of the electronic device and the memory that the electronic device has consumed after the camera is started. The memory consumed by the electronic device includes, but is not limited to, a memory occupied during a camera starting process and a memory occupied by a background process that is not closed.
In some embodiments, said allocating said second buffer queue according to said available memory capacity comprises:
determining a distribution strategy according to the capacity range of the available memory capacity;
and distributing the second buffer queue according to the distribution strategy.
Generally, if the available memory capacity range of the electronic device is small, memory reclamation may be triggered, which may impact the preview. If the available memory capacity range of the electronic equipment is large, memory recovery cannot be triggered, and the preview influence is small. Therefore, when the available memory capacity of the electronic device belongs to different ranges, the capacity of the second buffer queue is allocated to the capacity required during shooting by adopting an allocation strategy suitable for the memory consumption of the electronic device and using different specific allocation modes. For example, the specific allocation strategies can be divided into at least two types: one is directly allocated to the capacity required for shooting images, and the other is gradually allocated to the required capacity through multiple allocation, so that the phenomenon that the capacity allocation of the second cache rank fails due to the fact that the capacity cannot be allocated to the required capacity at a single time is reduced, or the time delay caused by the time for waiting for the capacity required for allocating to the second cache queue at a single time is reduced.
In the strategy of gradual distribution, the distributed second buffer queue can be used for buffering the current shot image, so that the problem of unsmooth shooting image buffering delay or interruption and the like caused by the distribution failure of the second buffer queue is solved.
In some embodiments, the allocation policy may include: directly distributing the memory capacity equal to the capacity of the cache space required by shooting after the camera is started; or after the camera is started, allocating the memory capacity smaller than the cache space capacity required by shooting, and then increasing the allocated memory capacity until the allocated second cache queue capacity is equal to the cache space capacity required by shooting.
In some embodiments, when the available memory capacity belongs to a first range, the capacity of the second buffer queue is equal to the capacity of a buffer space required for shooting;
when the available memory capacity falls within a second range; the initial capacity of the second cache queue is smaller than the capacity of the cache space required by the shooting, and the capacity of the second cache queue is increased to be equal to the capacity of the cache space required by the shooting by taking the preset capacity as a step length;
the minimum value of the first range is greater than the maximum value of the second range.
Specifically, the determining the allocation policy according to the capacity range to which the available memory capacity belongs includes at least one of:
when the available memory capacity belongs to a first capacity range, determining a first allocation policy, wherein the first allocation policy is: allocating the second cache degree column with the capacity equal to the capacity of the cache space required for shooting;
when the available memory capacity belongs to a second capacity range, determining a second allocation strategy; wherein the second allocation policy is: the initial capacity of the second cache queue is smaller than the capacity of the cache space required by the shooting, and the capacity of the second cache queue is increased to be equal to the capacity of the cache space required by the shooting by taking the preset capacity as a step length;
the minimum value of the first capacity range is greater than the maximum value of the second capacity range.
In the embodiment of the present disclosure, when the available memory belongs to the first capacity range relative to the second capacity range, it indicates that the remaining memory of the electronic device is still sufficient after the image to be captured is captured in the cache, and at this time, the recovery is not triggered. It also indicates that the currently available memory of the electronic device is sufficient. Here, the currently available memory is a memory available to the electronic device before the image required to be captured is not cached.
The preset capacity is the memory capacity occupied by each shot image. For example, each captured image occupies a memory capacity of s, and the predetermined capacity may be 1 × s. The capacity of the second cache queue is integral multiple of the memory capacity occupied by each shot image.
In a specific example, before the camera starts, the capacity of the second buffer queue is 0, that is, the second buffer queue is not allocated. After the camera is started, the initial capacity of the second buffer queue may be 1 × s, and at this time, the depth of the second buffer queue is 1. When the capacity of the second buffer queue needs to be increased, another shot image can be continuously put into the buffer queue, at this time, 2 shot images are buffered in the second buffer queue, and the capacity of the second buffer queue is 2 × s when the depth of the second buffer queue is 2. And repeating the steps, namely adding one shot image to the second cache queue each time until the number of the shot images in the second cache queue is equal to the number of the shot images, wherein the capacity of the second cache queue is equal to the capacity of the cache space required by shooting.
It is understood that the initial capacity of the second buffer queue is not limited to the memory capacity occupied by one captured image, but may be the memory capacity occupied by two or more captured images.
The first allocation strategy corresponds to a use state with a sufficient memory, and at this time, a second cache queue with sufficient capacity can be directly allocated after the camera is started, so that the capacity of the second cache queue is equal to the capacity of a cache space required for shooting. The second allocation policy corresponds to insufficient memory. After the image to be shot is captured by caching, memory recovery may be triggered, that is, the phenomenon of frame dropping and jamming of preview may be caused. Therefore, in the second allocation strategy, sufficient memory capacity is not directly allocated, so that the initial capacity of the second cache queue is smaller than the capacity of the cache space required by the shooting, and then the capacity of the second cache queue is gradually increased until the required size is reached.
The larger the capacity of the second cache queue is, the larger the memory space of the electronic device occupied in the second cache queue is, and the larger the probability that frame dropping may occur in the preview is when the available memory is small or insufficient. Conversely, the smaller the capacity of the second cache queue is, the smaller the memory space occupied by the second cache queue is, and the smaller the available memory is or the available memory is insufficient, the smaller the probability that frame dropping may occur in the preview is. The second allocation strategy can preview the preview image under the condition of allocating a smaller second cache queue capacity; the impact on the preview when the second cache queue is distributed is reduced, the phenomenon of frame dropping of the preview is reduced, and the smoothness of the preview is improved.
In some embodiments, the method further comprises:
determining the preset number of sheets according to the preview frame rate; wherein the preset number of sheets is as follows: and increasing the number of the shot images between two adjacent times of distribution triggering the capacity of the second buffer queue.
In practical applications, the preset number of images can be determined according to the preview frame rate and the number of images required to be captured. For example: the preview frame rate is f, and when n shot images need to be cached during shooting, the preset number i is f/n. In a specific example, the preview frame rate is 30 frames/second, and when 6 captured images need to be cached during capturing, the preset number i may be 5.
The preset number of sheets may represent the distribution speed of the second buffer queue. The more the preset number is, the longer the time for increasing the memory allocation in two adjacent times is, and the longer the time for increasing the capacity of the second cache queue from the initial capacity to the cache space capacity required by shooting is. On the contrary, the time for increasing the memory allocation in two adjacent times is shorter as the preset number is smaller, and the time for increasing the capacity of the second cache queue from the initial capacity to the capacity of the cache space required by shooting is shorter.
In some embodiments, if the available memory capacity belongs to a first capacity interval within the second capacity range, the predetermined number is N;
if the available memory capacity belongs to a second capacity interval in the second capacity range, the preset number is M;
wherein a minimum value of the first capacity interval is greater than a maximum value of the second capacity interval; n, M are all positive integers greater than 0, and M is greater than N.
The first capacity interval and the second capacity interval may represent a degree of tension of the available memory capacity of the electronic device. The second capacity interval represents that less memory space is available and more tense than the first capacity space. The first capacity interval indicates that the available memory capacity is small, and the second capacity interval indicates that the available memory capacity is insufficient.
Since M is greater than N, for a small available memory capacity, when the memory is insufficient, the electronic device may preview more preview images in the process of increasing the memory allocation twice. That is, when the available memory is insufficient for a small amount of available memory, the preview image of a larger number of frames can be previewed if the second buffer queue capacity is allocated to be small. The second capacity range is further divided into the first capacity interval and the second capacity interval, so that the influence of memory allocation on preview is further reduced, and the preview effect is improved.
In some embodiments, the method further comprises:
and after previewing the preset number of previewing pictures, increasing the capacity of the second cache queue by taking the preset capacity as a step length.
In practical application, in order to ensure that the shot image selected during shooting is consistent with the image viewed by the preview, n shot images before the current preview are dynamically cached in the second cache queue. Wherein n refers to the number of images required to be taken.
In a specific example, in the case where the available memory capacity is predicted to belong to the first capacity interval within the second capacity range, it is assumed that 6 captured images are required for capturing, each captured image has a size of 24MB, and the preview frame rate is 30 frames/second. Accordingly, the capacity of the second buffer queue at the time of photographing is 6 × 24MB, that is, the depth of the second buffer queue at the time of photographing is 6. The preset number of sheets may be N-30/6-5. Assume that the allocation of the second buffer queue is started after 30 frames of preview images are previewed. The initial capacity of the second buffer queue may be 24MB, that is, the initial depth of the second buffer queue is 1. The 31 st to 35 th photographed images corresponding to the 31 st to 35 th preview images for previewing are buffered in the second buffer queue having a queue depth of 1. Specifically, the 31 st picture is placed in the second cache queue first, and after the 32 nd picture collected by the camera comes in, the 32 th picture covers the 31 st picture, until the 35 th photographed image enters the second cache queue, the depth of the second cache queue is increased to 2. At this time, the 36 th to 40 th photographed images are buffered in the second buffer queue having a queue depth of 2. At this time, the 36 th captured image is arranged after the 35 th captured image, when the 37 th captured image comes in, the 35 th image is covered, two images of the 36 th and 37 th images are retained in the second buffer queue, and so on until the depth of the second buffer queue becomes 6, and at this time, 6 captured images are buffered in the second buffer queue.
In some embodiments, the first range is greater than or equal to a memory capacity occupied by the first background process;
the second range is smaller than the memory capacity occupied by the first background process;
wherein the first background process is: and the background process positioned at the first position in descending order of priority according to descending order of occupied memory capacity.
Generally, when the memory of the electronic device is insufficient, the memory recovery may be triggered. And the electronic equipment recovers the memory occupied by the closed process by closing the background process. The background is provided with a plurality of processes, the closing of the processes needs to be carried out according to the priority sequence, and the processes with high priority are closed first.
When the available memory capacity of the electronic equipment after the image needing to be shot is cached and shot is larger than or equal to the memory capacity occupied by the first background process, the current available memory is sufficient, and the memory recovery cannot be triggered after the electronic equipment caches and shoots the image needing to be shot. Otherwise, when the available memory capacity is smaller than the memory capacity occupied by the first background process, memory reclamation may be triggered.
In some embodiments, the first capacity interval is located between a memory capacity occupied by a second background process and a memory capacity occupied by the first background process; wherein the second background process is: the background process at the second position in descending order of priority according to the descending order of the occupied memory capacity;
the second capacity interval is less than or equal to the memory capacity occupied by the second background process.
The available memory capacity after the electronic equipment caches and shoots the images to be shot can be respectively compared with the memory capacity occupied by the first background process and the memory capacity occupied by the second background process, the memory use condition can be judged more accurately, and the memory distribution efficiency is improved.
In some embodiments, after allocating the second buffer queue according to the allocation policy, the method for allocating buffer queues of the camera further includes:
detecting a shooting instruction;
and when the capacity of the second buffer queue is not equal to the capacity of the buffer space for buffering the required shot image, allocating the second buffer queue with the capacity equal to the capacity of the buffer space for the required shot image.
In practical application, after previewing a certain number of frames of preview images, if a user executes a shooting operation, the electronic device may determine whether the current second cache queue capacity is equal to the cache space capacity required for shooting, that is, whether the current second cache queue depth is equal to the number of shot images required for shooting, and if the current second cache queue depth is equal to the number of shot images required for shooting, directly execute shooting. And if the depth of the current second cache queue is not equal to the number of the images required to be shot, directly allocating the second cache queue with the capacity equal to the capacity of the cache space of the images required to be shot. For example, during shooting, if the depth of the current second buffer queue is 2 and 6 required shot images are not reached, the electronic device directly adjusts the depth of the current second buffer queue to 6, and after the second buffer queue is filled up, shooting is performed.
In some embodiments, the general startup process of the camera includes the steps of:
s210, starting a camera, wherein when the camera is started, a camera application starts to issue related configuration according to a shooting mode corresponding to the camera application when the camera is started;
s220, after the camera bottom driver receives the configuration, relevant resources begin to be established; for example, a first buffer queue is allocated for the preview image;
s230, calculating a memory space required by caching each shot image according to the related configuration parameters; wherein, the configuration parameters comprise: shooting the required number n of cache sheets, and calculating the memory occupied by each picture according to the resolution and the format;
s240, opening a screen to enable preview to be output, and starting a camera;
s250, after the camera is started for a plurality of times (1S here), the system starts to distribute a second buffer queue for the shot image and enters a prediction process, and the steps are approximately as follows:
s251, calculating the size S of the cache required by the current photographing to be n × S;
s252, acquiring the current residual memory M of the system, and acquiring the current frame rate f;
s253, assuming that the memory space occupied by the first closed process is L1 and the memory space occupied by the second closed process is L2 when the system performs memory recovery (L1> L2), judging the relationship between M-S and L1 and L2: when M-S > is L1, the memory is sufficient, and the second buffer queue is directly configured to be n; when L2< M-S < L1, the memory is less, and the depth configuration of the second cache queue is increased by one every i frames (i is f/n) until the depth configuration is increased to n; when M-S < ═ L2, the system memory is insufficient, the second buffer queue depth configuration is incremented by one every I frame (I ═ 2 × f/n) until n is added. And when the shooting mode is switched, reading the number of the configuration corresponding to the new shooting mode, and updating the depth of the second cache queue. When a user photographing request is received, firstly, judging whether the current second cache queue configuration x is increased to the cache number n required when photographing, if x is less than n, stopping prediction, directly configuring the depth of the second cache queue to n, and photographing after the bottom-layer cache queue is filled; if x is equal to n, directly performing photographing;
as shown in fig. 2, an embodiment of the present disclosure further provides a device for allocating a buffer queue of a camera, including:
the first detection module is used for detecting a starting instruction of the camera;
the first distribution module is used for determining a first cache queue for caching the preview image in the process of starting the camera based on the starting instruction;
a second allocating module, configured to allocate a second cache queue after the camera starting process is completed, where the second cache queue is: and generating a cache queue of the shot image according to the preview image.
In some embodiments, the second allocating module is specifically configured to:
predicting the available memory capacity of the electronic equipment after the current available memory caches the shot images according to the number of the shot images, the memory capacity required by a single shot image and the current idle cache capacity of the electronic equipment;
and allocating the second buffer queue according to the available memory capacity.
In some embodiments, the second allocating module is further specifically configured to:
predicting the capacity of a cache space required for caching the shot images according to the number of the shot images required during shooting and the memory capacity required by a single shot image;
acquiring the current free memory capacity of the electronic equipment;
and determining the difference value between the current available memory capacity of the electronic equipment and the capacity of the cache space required for caching the shot image to obtain the available memory capacity of the electronic equipment after caching the shot image.
In some embodiments, the second allocation module is further specifically configured to at least one of:
when the available memory capacity belongs to a first capacity range, the capacity of the second cache queue is equal to the capacity of the cache space required by the shot image;
when the available memory capacity belongs to a second capacity range, the initial capacity of the second cache queue is smaller than the capacity of the cache space required by the shot image, and the capacity of the second cache queue is increased to be equal to the capacity of the cache space required by the shot image by taking the preset capacity as a step length;
the minimum value of the first capacity range is greater than the maximum value of the second capacity range.
In some embodiments, the second allocating module is further specifically configured to:
determining the preset number of sheets according to the preview frame rate; wherein the preset number of sheets is as follows: and increasing the number of preview images distributed between the capacities of the second buffer queue two times.
In some embodiments, the second allocating module is further specifically configured to:
and after previewing the preset number of previewing pictures, increasing the capacity of the second cache queue by taking the preset capacity as a step length.
Fig. 3 is a block diagram illustrating an apparatus 800 for camera buffer queue allocation in accordance with an example embodiment. For example, the apparatus 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, an exercise device, a personal digital assistant, and the like.
Referring to fig. 3, the apparatus 800 may include one or more of the following components: processing component 802, memory 804, power component 806, multimedia component 808, audio component 810, input/output (I/O) interface 812, sensor component 814, and communication component 816.
The processing component 802 generally controls overall operation of the device 800, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing components 802 may include one or more processors 820 to execute instructions to perform all or a portion of the steps of the methods described above. Further, the processing component 802 can include one or more modules that facilitate interaction between the processing component 802 and other components. For example, the processing component 802 can include a multimedia module to facilitate interaction between the multimedia component 808 and the processing component 802.
The memory 804 is configured to store various types of data to support operations at the apparatus 800. Examples of such data include instructions for any application or method operating on device 800, contact data, phonebook data, messages, pictures, videos, and so forth. The memory 804 may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
Power components 806 provide power to the various components of device 800. The power components 806 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power for the apparatus 800.
The multimedia component 808 includes a screen that provides an output interface between the device 800 and a user. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive an input signal from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundary of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 808 includes a front facing camera and/or a rear facing camera. The front camera and/or the rear camera may receive external multimedia data when the device 800 is in an operating mode, such as a shooting mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.
The audio component 810 is configured to output and/or input audio signals. For example, the audio component 810 includes a Microphone (MIC) configured to receive external audio signals when the apparatus 800 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may further be stored in the memory 804 or transmitted via the communication component 816. In some embodiments, audio component 810 also includes a speaker for outputting audio signals.
The I/O interface 812 provides an interface between the processing component 802 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to: a home button, a volume button, a start button, and a lock button.
The sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for the device 800. For example, the sensor assembly 814 may detect the open/closed status of the device 800, the relative positioning of components, such as a display and keypad of the device 800, the sensor assembly 814 may also detect a change in the position of the device 800 or a component of the device 800, the presence or absence of user contact with the device 800, the orientation or acceleration/deceleration of the device 800, and a change in the temperature of the device 800. Sensor assembly 814 may include a proximity sensor configured to detect the presence of a nearby object without any physical contact. The sensor assembly 814 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 814 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 816 is configured to facilitate communications between the apparatus 800 and other devices in a wired or wireless manner. The device 800 may access a wireless network based on a communication standard, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, the communication component 816 receives a broadcast signal or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 further includes a Near Field Communication (NFC) module to facilitate short-range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, Ultra Wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, the apparatus 800 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components for performing the above-described methods.
In an exemplary embodiment, a non-transitory computer-readable storage medium comprising instructions, such as the memory 804 comprising instructions, executable by the processor 820 of the device 800 to perform the above-described method is also provided. For example, the non-transitory computer readable storage medium may be a ROM, a Random Access Memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, and the like.
Other embodiments of the invention will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the invention and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the invention being indicated by the following claims.
It will be understood that the invention is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (14)

1. A method for allocating a buffer queue of a camera is characterized by comprising the following steps:
detecting a starting instruction of the camera;
determining a first cache queue for caching preview images in the process of starting the camera based on the starting instruction;
after the camera startup process is completed, allocating a second buffer queue, wherein the second buffer queue is: and generating a cache queue of the shot image according to the preview image.
2. The method of claim 1, wherein allocating a second buffer queue after the camera boot process is completed comprises:
predicting the available memory capacity of the electronic equipment after the electronic equipment caches the images to be shot according to the number of the images to be shot, the memory capacity required by a single shot image and the current idle cache capacity of the electronic equipment during shooting;
and allocating the second buffer queue according to the available memory capacity.
3. The method of claim 2,
when the available memory capacity belongs to a first range, the capacity of the second cache queue is equal to the capacity of a cache space required by shooting;
when the available memory capacity falls within a second range; the initial capacity of the second cache queue is smaller than the capacity of the cache space required by the shooting, and the capacity of the second cache queue is increased to be equal to the capacity of the cache space required by the shooting by taking the preset capacity as a step length;
the minimum value of the first range is greater than the maximum value of the second range.
4. The method of claim 3, further comprising:
determining the preset number of sheets according to the preview frame rate; wherein the preset number of sheets is as follows: and increasing the number of the shot images between the capacity of the second buffer queue and the capacity of the second buffer queue at two adjacent times.
5. The method of claim 4,
if the available memory capacity belongs to a first capacity interval in the second range, the preset number is N;
if the available memory capacity belongs to a second capacity interval in the second range, the preset number is M;
wherein a minimum value of the first capacity interval is greater than a maximum value of the second capacity interval; n, M are all positive integers greater than 0, and M is greater than N;
the first range is larger than or equal to the memory capacity occupied by the first background process;
the second range is smaller than the memory capacity occupied by the first background process;
wherein the first background process is: and the background process positioned at the first position in descending order of priority according to descending order of occupied memory capacity.
6. The method of claim 4, further comprising:
and after previewing the preset number of previewing pictures, increasing the capacity of the second cache queue by taking the preset capacity as a step length.
7. The method of claim 5,
the first capacity interval is positioned between the memory capacity occupied by the second background process and the memory capacity occupied by the first background process; wherein the second background process is: the background process at the second position in descending order of priority according to the descending order of the occupied memory capacity;
the second capacity interval is less than or equal to the memory capacity occupied by the second background process.
8. A buffer queue allocation apparatus of a camera, comprising:
the first detection module is used for detecting a starting instruction of the camera;
the first distribution module is used for determining a first cache queue for caching the preview image in the process of starting the camera based on the starting instruction;
a second allocating module, configured to allocate a second cache queue after the camera starting process is completed, where the second cache queue is: and generating a cache queue of the shot image according to the preview image.
9. The apparatus of claim 8,
the second allocating module is specifically configured to:
predicting the available memory capacity of the electronic equipment after the current available memory caches the shot images according to the number of the shot images, the memory capacity required by a single shot image and the current idle cache capacity of the electronic equipment;
and allocating the second buffer queue according to the available memory capacity.
10. The apparatus of claim 9,
the second allocating module is further specifically configured to at least one of:
when the available memory capacity belongs to a first capacity range, the capacity of the second cache queue is equal to the capacity of the cache space required by the shot image;
when the available memory capacity belongs to a second capacity range, the initial capacity of the second cache queue is smaller than the capacity of the cache space required by the shot image, and the capacity of the second cache queue is increased to be equal to the capacity of the cache space required by the shot image by taking the preset capacity as a step length;
the minimum value of the first capacity range is greater than the maximum value of the second capacity range.
11. The apparatus of claim 10, wherein the second allocating module is further specifically configured to:
determining the preset number of sheets according to the preview frame rate; wherein the preset number of sheets is as follows: and increasing the number of the shot images between the capacity of the second buffer queue and the capacity of the second buffer queue at two adjacent times.
12. The apparatus of claim 11, wherein the second allocating module is further specifically configured to:
and after previewing the preset number of previewing pictures, increasing the capacity of the second cache queue by taking the preset capacity as a step length.
13. An electronic device comprising a processor, a memory and an executable program stored on the memory and executable by the processor, wherein the processor executes the executable program to perform the steps of the method of cache queue allocation for a camera according to any one of claims 1 to 7.
14. A storage medium having stored thereon an executable program, wherein the executable program when executed by a processor implements the steps of the method for cache queue allocation of a camera according to any one of claims 1 to 7.
CN202011195694.0A 2020-10-30 2020-10-30 Camera buffer queue allocation method and device, electronic equipment and storage medium Active CN112312023B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011195694.0A CN112312023B (en) 2020-10-30 2020-10-30 Camera buffer queue allocation method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011195694.0A CN112312023B (en) 2020-10-30 2020-10-30 Camera buffer queue allocation method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112312023A CN112312023A (en) 2021-02-02
CN112312023B true CN112312023B (en) 2022-04-08

Family

ID=74333551

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011195694.0A Active CN112312023B (en) 2020-10-30 2020-10-30 Camera buffer queue allocation method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112312023B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112995504B (en) * 2021-02-08 2023-04-07 北京小米移动软件有限公司 Image display method and device and storage medium
CN117479000A (en) * 2022-08-08 2024-01-30 荣耀终端有限公司 Video recording method and related device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130080932A (en) * 2012-01-06 2013-07-16 삼성전자주식회사 Method and apparatus for storing image of camera
CN103377142A (en) * 2012-04-17 2013-10-30 安凯(广州)微电子技术有限公司 Storage method and image pickup system
CN105120112A (en) * 2015-09-25 2015-12-02 维沃移动通信有限公司 Camera starting method for mobile terminal and mobile terminal
CN105760226A (en) * 2016-02-01 2016-07-13 广东欧珀移动通信有限公司 Method and device for rapidly starting mobile terminal camera and mobile terminal
CN107222669A (en) * 2017-06-30 2017-09-29 维沃移动通信有限公司 The method and mobile terminal of a kind of shooting
CN107465875A (en) * 2017-09-13 2017-12-12 北京元心科技有限公司 Camera preview data cache method and device
CN109831618A (en) * 2018-12-10 2019-05-31 平安科技(深圳)有限公司 Photographic method, computer readable storage medium and terminal device based on expression
CN111447370A (en) * 2020-05-19 2020-07-24 Oppo广东移动通信有限公司 Camera access method, camera access device, terminal equipment and readable storage medium
CN111567033A (en) * 2019-05-15 2020-08-21 深圳市大疆创新科技有限公司 Shooting device, unmanned aerial vehicle, control terminal and shooting method

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9225904B2 (en) * 2012-02-13 2015-12-29 Htc Corporation Image capture method and image capture system thereof
US10230654B2 (en) * 2016-12-28 2019-03-12 Intel IP Corporation Multiband aggregation data encapsulation
US10613870B2 (en) * 2017-09-21 2020-04-07 Qualcomm Incorporated Fully extensible camera processing pipeline interface
CN110198417A (en) * 2019-06-28 2019-09-03 Oppo广东移动通信有限公司 Image processing method, device, storage medium and electronic equipment
CN111131698B (en) * 2019-12-23 2021-08-27 RealMe重庆移动通信有限公司 Image processing method and device, computer readable medium and electronic equipment
CN111726533B (en) * 2020-06-30 2021-11-16 RealMe重庆移动通信有限公司 Image processing method, image processing device, mobile terminal and computer readable storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130080932A (en) * 2012-01-06 2013-07-16 삼성전자주식회사 Method and apparatus for storing image of camera
CN103377142A (en) * 2012-04-17 2013-10-30 安凯(广州)微电子技术有限公司 Storage method and image pickup system
CN105120112A (en) * 2015-09-25 2015-12-02 维沃移动通信有限公司 Camera starting method for mobile terminal and mobile terminal
CN105760226A (en) * 2016-02-01 2016-07-13 广东欧珀移动通信有限公司 Method and device for rapidly starting mobile terminal camera and mobile terminal
CN107222669A (en) * 2017-06-30 2017-09-29 维沃移动通信有限公司 The method and mobile terminal of a kind of shooting
CN107465875A (en) * 2017-09-13 2017-12-12 北京元心科技有限公司 Camera preview data cache method and device
CN109831618A (en) * 2018-12-10 2019-05-31 平安科技(深圳)有限公司 Photographic method, computer readable storage medium and terminal device based on expression
CN111567033A (en) * 2019-05-15 2020-08-21 深圳市大疆创新科技有限公司 Shooting device, unmanned aerial vehicle, control terminal and shooting method
CN111447370A (en) * 2020-05-19 2020-07-24 Oppo广东移动通信有限公司 Camera access method, camera access device, terminal equipment and readable storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
《基于STM32F417的图像采集系统设计》;黄智伟 等;《单片机与嵌入式系统应用》;20121030;第48-51页 *

Also Published As

Publication number Publication date
CN112312023A (en) 2021-02-02

Similar Documents

Publication Publication Date Title
US10511772B2 (en) Image capturing device having continuous image capture
CN108419016B (en) Shooting method and device and terminal
CN107526494B (en) Keyboard display method, device, terminal and storage medium
CN107193653B (en) Bandwidth resource allocation method, device and storage medium
US9451159B2 (en) Photographing starting apparatus and method for built-in camera of portable data processing device
CN111586282A (en) Shooting method, shooting device, terminal and readable storage medium
CN112312023B (en) Camera buffer queue allocation method and device, electronic equipment and storage medium
CN113032030A (en) Camera starting method and device, terminal equipment and storage medium
CN114500821B (en) Photographing method and device, terminal and storage medium
CN115002332A (en) Shooting processing method and device, electronic equipment and storage medium
CN111586280B (en) Shooting method, shooting device, terminal and readable storage medium
CN112188034A (en) Image processing method, device, terminal equipment and medium
CN110968523A (en) Memory defragmentation method and device
CN112765511B (en) Business object display method, device, equipment, storage medium and program product
CN111698414B (en) Image signal processing method and device, electronic device and readable storage medium
CN112286692A (en) Memory recovery method, memory recovery device and storage medium
CN111610899A (en) Interface display method, interface display device and storage medium
CN112995504B (en) Image display method and device and storage medium
US11681351B2 (en) Method and device for controlling screen, and storage medium
CN112188095B (en) Photographing method, photographing device and storage medium
EP4227825A1 (en) Image frame storage method, photographing method, and electronic device
CN112783636B (en) Resource allocation method, device and storage medium
CN115733913A (en) Continuous photographing method and device and storage medium
CN116708987A (en) Image shooting method and device, electronic equipment and storage medium
CN116489498A (en) Image preview method, image preview device, electronic device, and storage medium

Legal Events

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