CN105760226B - A kind of method, device and mobile terminal of quick start mobile terminal camera - Google Patents

A kind of method, device and mobile terminal of quick start mobile terminal camera Download PDF

Info

Publication number
CN105760226B
CN105760226B CN201610069788.0A CN201610069788A CN105760226B CN 105760226 B CN105760226 B CN 105760226B CN 201610069788 A CN201610069788 A CN 201610069788A CN 105760226 B CN105760226 B CN 105760226B
Authority
CN
China
Prior art keywords
camera
mobile terminal
memory
image data
specified file
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
CN201610069788.0A
Other languages
Chinese (zh)
Other versions
CN105760226A (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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp 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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610069788.0A priority Critical patent/CN105760226B/en
Publication of CN105760226A publication Critical patent/CN105760226A/en
Application granted granted Critical
Publication of CN105760226B publication Critical patent/CN105760226B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]
    • G06F9/5005Allocation of resources, e.g. of the central processing unit [CPU] to service a request
    • G06F9/5011Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals
    • G06F9/5016Allocation of resources, e.g. of the central processing unit [CPU] to service a request the resources being hardware resources other than CPUs, Servers and Terminals the resource being the memory
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2209/00Indexing scheme relating to G06F9/00
    • G06F2209/50Indexing scheme relating to G06F9/50
    • G06F2209/5013Request control

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Telephone Function (AREA)

Abstract

The invention discloses the method, device and mobile terminal of quick start mobile terminal camera.The method of quick start mobile terminal camera provided by the invention includes: to read the Memory Allocation information saved in specified file after receiving mobile terminal camera starting request;The memory headroom being directed toward in the Memory Allocation information is distributed into the camera and carries out image data caching.Utilize this method, it eliminates in camera starting, operation is configured to the image data of mobile terminal camera, i.e., eliminate every time receive camera starting request after, repeat the application and batch operation of the memory headroom of the image data for caching camera, thereby save 60ms~80ms be image data distribution and application memory headroom time, and then the starting of mobile terminal camera is accelerated, reduce the time-consuming of camera starting.

Description

A kind of method, device and mobile terminal of quick start mobile terminal camera
Technical field
The present embodiments relate to technical field of mobile terminals more particularly to a kind of sides of quick start mobile terminal camera Method, device and mobile terminal.
Background technique
Camera is a very important function in the mobile devices such as mobile phone, tablet computer, and for liking capturing beauty For the user of good moment, the starting speed of camera is more very important.But the start-up course based on Current camera can be with Find out, after receiving mobile terminal camera starting request, it is necessary first to the image data configuration of camera is carried out for camera, with The image data application that is embodied as when camera is taken pictures simultaneously distributes corresponding spatial cache, then could start camera and enters and take pictures Display interface take pictures and preview or to be taken pictures based on camera.
It in general, be the image data configuration that camera carries out camera include mainly preview for camera based on camera Data and/or photographed data distribution for camera based on camera and apply for the memory headroom for caching above-mentioned image data. In existing camera start-up course, in the image data configuration phase to mobile terminal camera, need to complete multiple be used for The distribution and application operation of the memory headroom of caching image data, occupy the more time of camera starting, and existing camera In starting, after being connected to mobile terminal camera starting request every time, require to carry out memory headroom for the image data of camera Application and batch operation, which largely occupies the starting time of camera, so that entire camera start-up course Expend more time.
Summary of the invention
The purpose of the present invention is to propose to a kind of method, device and mobile terminal of quick start mobile terminal camera, to Solve the problems, such as that the camera starting time is long in mobile terminal.
On the one hand, the embodiment of the invention provides a kind of methods of quick start mobile terminal camera, comprising:
After receiving mobile terminal camera starting request, the Memory Allocation information saved in specified file is read;
The memory headroom being directed toward in the Memory Allocation information is distributed into the camera and carries out image data caching.
On the other hand, the embodiment of the invention provides a kind of devices of quick start mobile terminal camera, comprising:
Information reading module, for being saved in reading specified file after receiving mobile terminal camera starting request Memory Allocation information;
Memory allocating module is carried out for the memory headroom being directed toward in the Memory Allocation information to be distributed to the camera Image data caching.
Another aspect, the embodiment of the invention provides a kind of mobile terminal, which is integrated with the embodiment of the present invention A kind of device of the quick start mobile terminal camera provided
The embodiment of the invention provides the method, device and mobile terminal of quick start mobile terminal camera, the present invention is mentioned The method of the quick start mobile terminal camera of confession can be summarized as: on receiving mobile terminal after the starting request of camera, read Take the Memory Allocation information saved in specified file;And the memory headroom being directed toward in Memory Allocation information is distributed into camera and is carried out The caching of camera image data.Using this method, eliminate in camera starting, to the image data of mobile terminal camera Configuration operation, that is, eliminate every time receive camera starting request after, repeat the image data for caching camera Memory headroom application operation, thereby save 60ms~80ms be image data distribution and application memory headroom when Between, and then the starting of mobile terminal camera is accelerated, reduce the time-consuming of camera starting, improves user to the use of mobile terminal Family experience.
Detailed description of the invention
Fig. 1 is a kind of flow diagram of the method for quick start mobile terminal camera that the embodiment of the present invention one provides;
Fig. 2 is a kind of flow diagram of the method for quick start mobile terminal camera provided by Embodiment 2 of the present invention;
Fig. 3 is a kind of flow diagram of the method for quick start mobile terminal camera that the embodiment of the present invention three provides;
Fig. 4 is a kind of structural block diagram of the device for quick start mobile terminal camera that the embodiment of the present invention four provides;
Fig. 5 is a kind of structural block diagram of the device for quick start mobile terminal camera that the embodiment of the present invention five provides.
Specific embodiment
To further illustrate the technical scheme of the present invention below with reference to the accompanying drawings and specific embodiments.It is understood that It is that specific embodiment described herein is used only for explaining the present invention rather than limiting the invention.It further needs exist for illustrating , only the parts related to the present invention are shown for ease of description, in attached drawing rather than entire infrastructure.
It typically, for the start-up course of mobile terminal camera, generally speaking specifically can be summarized as: clicking camera in user After camera starting shortcut key set by icon or click, phase chance, which gives an order, open the operation of camera to camera bottom (primary operational that the operation is camera starting).Operation for opening camera can be divided into three steps again and carry out, first is that camera shooting Head carries out the initial work such as powering on;Another is the application and distribution that memory headroom is carried out to the output of the image data of camera Operation is realized and is configured to the image data of camera;Another is to wait camera output image preview data, shows camera Interface of taking pictures.Wherein it is possible to understand, the three steps operation for opening camera is that sequence carries out.Illustratively, it is assumed that phase The starting time of machine is 500ms, then in the operation for opening camera, the first step carries out camera the initial work such as to power on Time-consuming may be 150ms~200ms, carry out the time-consuming of memory headroom application and distribution in second step to the image data of camera It may be 60ms~80ms, it may also be 150ms~200ms that the time-consuming of camera output image preview data is waited in third step (there are also the startings of some hardware performances in camera start-up course, therefore also expend some starting times).
The start-up course of camera is analyzed, under normal circumstances, removes the influence that starts to camera of hardware performance, it is existing on software Be difficult fundamentally to reduce in technology camera bottom to camera power on etc. initial works and camera image data configuration and Time-consuming ratio of the camera output data in entire camera start-up course is waited, because camera bottom has to etc. to receive camera and open It just gives an order after dynamic request and just removes to complete camera and initial works and camera image data configuration and the waiting camera such as power on The work of output data, and then realize the start-up operation of camera.Therefore, it is mobile to propose a kind of quick start for the embodiment of the present invention The method of terminal camera, the thought to reduce image data setup time (i.e. shortening memory headroom application and distribution time) are come fast Speed starting mobile terminal camera.
It should be noted that the embodiment of the present invention only in camera start-up course to the image data application of camera and point Development with memory headroom is described, no longer other operating procedures of the camera in detailed description camera start-up course, because To carry out memory headroom application to the image data to camera based on the embodiment of the present invention and distributing carried out improvement step Description, in conjunction with other operations in existing camera start-up course, those skilled in the art be may be implemented to mobile terminal phase The quick start of machine.
Embodiment one
Fig. 1 is a kind of flow diagram of the method for quick start mobile terminal camera that the embodiment of the present invention one provides. This method the case where camera starting, can be executed suitable for mobile terminal by the device of quick start mobile terminal camera, Wherein the device can be implemented by software and/or hardware, and generally be integrated in mobile terminal.
Specifically, as shown in Figure 1, the embodiment of the present invention one provide a kind of quick start mobile terminal camera method, Including operating as follows:
Step S101, after receiving mobile terminal camera starting request, the Memory Allocation saved in specified file is read Information.
Step S102, the memory headroom being directed toward in the Memory Allocation information is distributed into the camera and carries out image data Caching.
In the aforesaid operations step of the present embodiment, the mobile terminal is that mobile phone, tablet computer etc. are provided with camera Electronic equipment with camera function of taking pictures.The process for receiving mobile terminal camera starting request, can be briefly described are as follows: User on mobile terminal camera icon or other quickly starting camera icons carried out trigger action, thus form camera Starting request.
In the present embodiment, after receiving mobile terminal camera starting request, the figure for camera can be directly read As the Memory Allocation information of data buffer storage.Correspondingly, the Memory Allocation information preservation is in specified file, the specified file To be arranged in advance for saving the file of Memory Allocation information.It further, mainly include interior in the Memory Allocation information Address is deposited, the memory address can be directed toward the memory headroom of the image data for caching the camera, thus no longer need Repeat memory application, the image data of camera camera can be directly completed by memory headroom pointed by memory address Memory headroom distribution.It should be noted that the memory address for including in the Memory Allocation information can be for one or more A, memory address number is corresponding with the image data number for needing to cache, that is, an image data for needing to cache is corresponding One memory address, and since memory address is directed toward memory headroom, so being realized easily as image data storage allocation address Operation.
Generally, when camera starts, it is often necessary to for the image data storage allocation space more than 10, these images Data are typically used for process or frame during configuration image signal process (Image Signal Processing, ISP) Frame, or for starting camera output image preview data.
Further, described image data include: that preview data and/or camera of the camera based on camera are based on camera Photographed data.
In the present embodiment, described image data can be summarized as two kinds, the preview data one is camera based on camera, The preview data is specific it is understood that after entering camera display interface after camera starts, and user is in mobile terminal screen The image data information obtained based on camera arrived, these preview datas can be with the movement of camera and in mobile terminal screen Up conversion;Another kind is the photographed data based on camera, and the photographed data is specific it is understood that entering phase after camera starting After machine display interface, user obtain desired preview data through camera and click the picture number obtained after shooting button it is believed that Breath, these image datas can finally store in the corresponding photo or video file folder of mobile terminal.
The method that the present invention implements a kind of quick start mobile terminal camera that one provides, the phase on receiving mobile terminal After the starting request of machine, the Memory Allocation information saved in specified file is read;And the memory that will be directed toward in Memory Allocation information Distribute to the caching that camera carries out camera image data in space.Using this method, eliminates and receiving camera starting every time After request, repeat the memory headroom of the image data for caching camera application operation, thereby save 60ms~ 80ms is the time of image data application memory headroom, and then accelerates the starting of mobile terminal camera, reduces camera and opens Dynamic time-consuming improves user to the user experience of mobile terminal.
Embodiment two
Fig. 2 is a kind of flow diagram of the method for quick start mobile terminal camera provided by Embodiment 2 of the present invention. The embodiment of the present invention two is based on above-described embodiment, further, step " is being received mobile terminal camera starting request Afterwards, the Memory Allocation information saved in specified file is read " specifically optimization are as follows: after the request for receiving camera starting, detection Whether the content stored in the specified file is empty;If the content stored in the specified file is not sky, institute is read State the Memory Allocation information stored in specified file.In addition, also advanced optimizing and including: in the request for receiving camera starting Afterwards, it detects after whether the content stored in the specified file be sky, if the content of specified file storage is sky, The application distribution of memory headroom is carried out for the image data of the mobile terminal camera.
Further, if the content in specified file storage is sky, for the mobile terminal camera Image data carry out memory headroom application distribution after, further includes: retain applied be used for cache described image number According to memory headroom, and the corresponding memory address of the memory headroom is saved to the specified file, as described image number According to Memory Allocation information.
As shown in Fig. 2, a kind of method of quick start mobile terminal camera provided by Embodiment 2 of the present invention, specifically includes Following operation:
Step S201, the request of camera starting is received.
In the present embodiment, after user triggers camera icon or camera quick key on mobile terminal, it can produce camera The request of starting.
Step S202, determine whether the content stored in the specified file is sky, if it is not, only carrying out step S203;If It is to then follow the steps S204.
In the present embodiment, the specified file is to be arranged in advance for storing the file of Memory Allocation information.It is passing through After crossing the request of step S201, can determine whether the content in the specified file is sky based on step S202, if not empty, Step S203 then can be performed;Otherwise, step S204 can be performed.
Step S203, the Memory Allocation information stored in the specified file is read, wherein in the Memory Allocation information Image data of the memory headroom of direction for the camera caches.
In the present embodiment, when the content for determining the specified file is not sky, it is known that in the specified file Storage is had Memory Allocation information, then the Memory Allocation information can be directly read, in based on including in the Memory Allocation information It deposits address and obtains the memory headroom for being used for caching image data.Based on the step, to image data when can save camera starting Carry out the time spent by the operation of memory headroom application and distribution, can thus be camera starting whole process save 60ms~ The time-consuming of 70ms.
Step S204, the application distribution of memory headroom is carried out for the image data of the mobile terminal camera.
In the present embodiment, when the content for determining the specified file (is usually opened to mobile terminal execution for sky After machine operation, before starting camera for the first time, after the static vector table of setting one is as specified file, the initial specified file is sky) When, the application batch operation of memory headroom can be carried out for the image data of mobile terminal camera.
Further, the image data for the mobile terminal camera carries out the application distribution of memory headroom, packet It includes:
Obtain the corresponding pixel size of the mobile terminal camera;According to the pixel size, determines and taken the photograph described in caching The memory size as needed for the image data of head;Based on the memory size, it is the application of described image data and distributes corresponding Memory headroom.
In the present embodiment, the application batch operation of memory headroom is carried out in the image data to mobile terminal camera When, (generally, the Pixel Information of the camera can lead to the pixel size information of the mobile terminal camera available first The configuration information for crossing inquiry mobile terminal obtains, which is typically maintained in the setting options of mobile terminal);Then, After getting the pixel size information of camera, so that it may determine the image data when institute of caching camera based on the pixel size (generally, memory size is exactly the size of storage pixel unit needed for the camera to the memory size needed, illustratively, right As soon as being required to store when caching the image data of the camera in the mobile terminal camera for possessing 1,300,000 pixels Size of data is the memory of 4208*3120);Finally, after getting memory size required for caching described image data, just It needs to be the application of described image data and the corresponding memory headroom of distribution based on fixed memory size.This completes be used for The memory headroom application and batch operation of the image data of camera.
Step S205, retain the memory headroom for being used to cache described image data applied, and the memory is empty Between corresponding memory address save to the specified file, the Memory Allocation information as described image data.
In the present embodiment, after completing the application and distribution to image data memory space based on step S204, in order to It is not repeated to carry out the application operation of memory headroom when being again started up mobile terminal camera later, it may be considered that will directly apply Good memory headroom is retained, directly using the memory headroom currently applied when starting in order to next camera.Accordingly , if only retained the space applied, in the starting of next camera, camera bottom is not aware which memory is empty Between be for carry out image data caching retained, so also need to be arranged one include memory address index file so that Camera bottom can be found quickly based on the index file for memory headroom corresponding to caching image data.
Specifically, above-mentioned the mentioned index file comprising memory address is equivalent to the specified text mentioned in step S205 Part, that is, the corresponding memory address of the allocated memory headroom is stored in the specified file, forms the text that can be indexed Part, wherein the memory address information saved just can be the Memory Allocation information of camera bottom needs.Based on right in embodiment one The description of Memory Allocation information, be used for index memory address not only one, can have multiple, the number of memory address The quantity for the image data that amount is mainly cached according to needs.In addition, in order to ensure the Memory Allocation information that has saved is not with camera Exiting and disappearing for application, needs when above-mentioned specified file is arranged, and a static vector table is set to, since static state is sweared Scale does not disappear with exiting for camera applications, ensure that the Memory Allocation information will not with exiting for camera applications and It disappears.
A kind of method of quick start mobile terminal camera provided by Embodiment 2 of the present invention, further embodies to take the photograph As the process of head image data acquisition memory headroom, first after receiving camera starting request, can determine to give directions in file It is interior it is calm whether be it is empty, the Memory Allocation information in specified file can be directly based upon when being not empty and is carried out in image data corresponds to Deposit the determination in space;When for sky, it is necessary to carry out the application batch operation of memory headroom for image data, will also retain later The memory headroom applied is with being again started up for camera.Using this method, eliminates and receiving camera starting every time After request, repeat the memory headroom of the image data for caching camera application operation, thereby save 60ms~ 80ms is the time of image data distribution and application memory headroom, and then accelerates the starting of mobile terminal camera.
Embodiment three
Fig. 3 is a kind of flow diagram of the method for quick start mobile terminal camera provided in an embodiment of the present invention.This Inventive embodiments three are based on above-described embodiment, in the present embodiment, before receiving mobile terminal camera starting request, Further include: when the specified file is not present, the static vector table of setting one initializes the finger as the specified file File is determined for sky, to store the Memory Allocation information.
In addition, the embodiment of the present invention two still further preferably includes: when detect to mobile terminal execution shut down or again When opening operation, release deletes the specified file for caching the memory headroom of described image data.
As shown in figure 3, a kind of method for quick start mobile terminal camera that the embodiment of the present invention three provides, specifically includes Following operation:
Step S301, when the specified file is not present, a static vector table is set as the specified file, and just The beginningization specified file is sky, to store the Memory Allocation information.
In the present embodiment, step S301 gives the specific opportunity of setting specified file, it is preferable that can receive phase Before machine starting request, and there is no when the specified file, the static vector table of creation one is as specified file.And it is somebody's turn to do in creation When static vector table, carry out the static state vector table to be initialized as sky, in order to subsequent operation.
Step S302, the request of camera starting is received.
Step S303, determine whether the content stored in the specified file is sky, if it is not, only carrying out step S304;If It is to then follow the steps S305.
Step S304, the Memory Allocation information stored in the specified file is read, wherein in the Memory Allocation information Image data of the memory headroom of direction for the camera caches.
Step S305, the application distribution of memory headroom is carried out for the image data of the mobile terminal camera.
Step S306, retain the memory headroom for being used to cache described image data applied, and the memory is empty Between corresponding memory address save to the specified file, the Memory Allocation information as described image data.
In the present embodiment, step S302~step S306 operation will not be described in more detail, can refer in embodiment two To the specific descriptions of above-mentioned steps.
Step S307, it when detecting to mobile terminal execution shutdown or reboot operation, discharges for caching described image The memory headroom of data, and delete the specified file.
In the present embodiment, the memory size as possessed by mobile terminal is limited, due to mobile terminal camera work It is very big for caching the memory headroom of the image data of camera when making, if still maintain always by upper after camera applications exit The memory headroom for stating step acquisition, it will cause the excessive occupancy of mobile terminal memory headroom resource, prevent mobile terminal from Corresponding memory headroom effectively is distributed for other function application, and then is likely to decrease mobile terminal to other applications The speed of response.Therefore, the embodiment of the present invention is defined the release opportunity of the memory headroom, that is, when detecting to shifting When dynamic terminal has carried out shutdown or reboot operation, so that it may memory headroom needed for discharging camera caching described image data;And And after discharging the memory headroom, delete the specified file accordingly, to avoid when starting again to camera because not having Have and deletes specified file and generate unnecessary mistake.
A kind of method for quick start mobile terminal camera that the embodiment of the present invention three provides, has advanced optimized specified text The setting condition of part and the deletion condition of specified file allow specified file to store the memory point for camera starting With information, the distribution time of memory headroom needed for image data when thus reducing camera starting, so that the starting time of camera contracts Short 60ms~70ms;Meanwhile the deletion condition based on specified file can also discharge retained memory headroom, and delete institute The Memory Allocation information of storage, it is possible thereby to the release of mobile terminal memory headroom be realized, to avoid the mistake of mobile terminal memory Divide and occupies.
Example IV
Fig. 4 is a kind of structural block diagram of the device for quick start mobile terminal camera that the embodiment of the present invention four provides.It should Device can be implemented by software and/or hardware, and suitable for mobile terminal the case where camera quick start, and generally be integrated in shifting In dynamic terminal.As shown in figure 4, the specific structure of the device is as follows, comprising: information reading module 41 and memory allocating module 42. Wherein,
Information reading module 41, for reading in specified file and saving after receiving mobile terminal camera starting request Memory Allocation information.
Memory allocating module 42, for by the memory headroom being directed toward in the Memory Allocation information distribute to the camera into Row image data caching.
In the present embodiment, which can be read by information reading module 41 after receiving camera starting request The Memory Allocation information saved in specified file, and it is slow for the image data of camera to complete by memory allocating module 42 The distribution for the memory headroom deposited.
Further, the information reading module 41, is specifically used for:
After the request for receiving camera starting, detect whether the content stored in the specified file is empty;
If the content stored in the specified file is not sky, the Memory Allocation stored in the specified file is obtained Information.
Further, described image data include: that preview data and/or camera of the camera based on camera are based on camera Photographed data.
A kind of device for quick start mobile terminal camera that the embodiment of the present invention four provides is asked receiving camera starting After asking, the mistake for repeating application and the batch operation of the memory headroom of the image data for caching camera can be saved Journey therefore saves on 60ms~80ms and is the time of image data distribution and application memory headroom, and then accelerates mobile terminal The starting of camera reduces the time-consuming of camera starting, improves user to the user experience of mobile terminal.
Embodiment five
Fig. 5 is a kind of structural block diagram of the device for quick start mobile terminal camera that the embodiment of the present invention five provides.This Inventive embodiments five are optimized based on above-mentioned example IV, and in the present embodiment, it includes information that the structure of the device, which is removed, It outside read module 51 and memory allocating module 52, also specifically includes: specified file setup module 50, memory headroom application module 53, information preservation module 54 and space release module 55 are distributed.Wherein,
Specified file setup module 50, for before receiving mobile terminal camera starting request, when there is no described When specified file, the static vector table of setting one initializes the specified file for sky, to store as the specified file State Memory Allocation information.
Memory headroom application module 53, for detecting and being stored in the specified file in the request for receiving camera starting Content whether be sky after, be the image of the mobile terminal camera when the content of specified file storage is empty Data carry out the application distribution of memory headroom;
Correspondingly, the image data for the mobile terminal camera carries out the application distribution of memory headroom, comprising: Obtain the corresponding pixel size of the mobile terminal camera;According to the pixel size, the figure for caching the camera is determined The memory size as needed for data;Based on the memory size, for the application of described image data and corresponding memory headroom is distributed.
Information preservation module 54 is distributed, is the mobile terminal for being sky when the content of specified file storage Camera distributes after the memory headroom of caching image data, retains the memory for being used to cache described image data applied Space, and the corresponding memory address of the memory headroom is saved to the memory to the specified file, as described image data Distribute information.
Space release module 55, for discharging for delaying when detecting to mobile terminal execution shutdown or reboot operation The memory headroom of described image data is deposited, and deletes the specified file.
In the present embodiment, mobile terminal phase can received by specified file setup module 50 first based on the device Before machine starting request, when the specified file is not present, a static vector table is set as the specified file, and initial Change the specified file for sky, to store the Memory Allocation information for obtaining image data spatial cache;Then, letter can be passed through For breath read module 51 after receiving mobile terminal camera starting request, it is empty for detecting the content stored in the specified file not When, read the Memory Allocation information saved in specified file;Movement is either being received by memory headroom application module 53 It is the mobile terminal camera when to detect the content stored in the specified file be empty after terminal camera starting request Image data carries out the application distribution of memory headroom;And by distribution information preservation module 54 by it is allocated be used to cache it is described The memory headroom of image data is retained, and the corresponding memory address of the memory headroom is saved to the specified file, Memory Allocation information as described image data;Finally, it can also detected by space release module 55 to mobile terminal When executing shutdown or reboot operation, release deletes the specified file for caching the memory headroom of described image data.
A kind of device of quick start mobile terminal camera provided by the invention further increases specified file setting mould Block, memory headroom application module, distribution information preservation module and space release module.Enable the device of the embodiment of the present invention It is determined as that the image data of camera carries out the opportunity of memory application and distribution, while can also determines retained memory headroom Release opportunity.Using the device, the distribution time of memory headroom needed for image data, makes when can not only save camera starting The starting time for obtaining camera shortens 60ms~70ms and achievees the effect that quick start camera;Simultaneously, it is thus also avoided that mobile terminal The excessive occupancy of memory.
Further, a kind of mobile terminal that the embodiment of the present invention five also provides, the mobile terminal are integrated with of the invention real Apply the device for any quick start mobile terminal camera that example four or embodiment five provide.Using the mobile terminal, work as user When clicking camera icon or camera quick key, compared with existing mobile terminal, the starting time of 60ms~70ms can be shortened, reached The effect of quick start mobile terminal camera has been arrived, has thus further improved user to the experience effect of mobile terminal.
Note that the above is only a better embodiment of the present invention and the applied technical principle.It will be appreciated by those skilled in the art that The invention is not limited to the specific embodiments described herein, be able to carry out for a person skilled in the art it is various it is apparent variation, It readjusts and substitutes without departing from protection scope of the present invention.Therefore, although being carried out by above embodiments to the present invention It is described in further detail, but the present invention is not limited to the above embodiments only, without departing from the inventive concept, also It may include more other equivalent embodiments, and the scope of the invention is determined by the scope of the appended claims.

Claims (11)

1. a kind of method of quick start mobile terminal camera characterized by comprising
After receiving mobile terminal camera starting request, the Memory Allocation information saved in specified file is read;
After the request for receiving camera starting, detect whether the content stored in the specified file is empty;
If the content of the specified file storage is sky, memory sky is carried out for the image data of the mobile terminal camera Between application distribution;
The image data for the mobile terminal camera carries out the application distribution of memory headroom, comprising:
Obtain the corresponding pixel size of the mobile terminal camera;
According to the pixel size, memory size needed for determining the image data for caching the camera;
Based on the memory size, for the application of described image data and corresponding memory headroom is distributed;
If the content stored in the specified file is not sky, the Memory Allocation letter stored in the specified file is read Breath;
The memory headroom being directed toward in the Memory Allocation information is distributed into the camera and carries out image data caching.
2. if the method according to claim 1, wherein the content in specified file storage is Sky, then after the application distribution for carrying out memory headroom for the image data of the mobile terminal camera, further includes:
Retain applied for caching the memory headrooms of described image data, and by the corresponding memory address of the memory headroom Save the Memory Allocation information to the specified file, as described image data.
3. method according to claim 1 to 2, which is characterized in that it is described receive mobile terminal camera starting ask Before asking, further includes:
When the specified file is not present, the static vector table of setting one initializes described specified as the specified file File is sky, to store the Memory Allocation information.
4. method according to claim 1 to 2, which is characterized in that further include:
When detecting to mobile terminal execution shutdown or reboot operation, the memory discharged for caching described image data is empty Between, and delete the specified file.
5. according to the method described in claim 4, it is characterized in that, described image data include: camera based on the pre- of camera Look at the photographed data of data and/or camera based on camera.
6. a kind of device of quick start mobile terminal camera characterized by comprising
Information reading module, for reading the memory saved in specified file after receiving mobile terminal camera starting request Distribute information;
The information reading module, is specifically used for:
After the request for receiving camera starting, detect whether the content stored in the specified file is empty;
If the content stored in the specified file is not sky, the Memory Allocation letter stored in the specified file is obtained Breath;
Memory headroom application module, for detecting the content stored in the specified file in the request for receiving camera starting After whether being sky, when the content of specified file storage is empty, be the mobile terminal camera image data into The application of row memory headroom distributes;
Correspondingly, the image data for the mobile terminal camera carries out the application distribution of memory headroom, comprising:
Obtain the corresponding pixel size of the mobile terminal camera;
According to the pixel size, memory size needed for determining the image data for caching the camera;
Based on the memory size, for the application of described image data and corresponding memory headroom is distributed;
Memory allocating module carries out image for the memory headroom being directed toward in the Memory Allocation information to be distributed to the camera Data buffer storage.
7. device according to claim 6, which is characterized in that further include:
Information preservation module is distributed, is the mobile terminal camera for being sky when the content of specified file storage It distributes after the memory headroom of caching image data, retains the memory headroom for being used to cache described image data applied, And save the corresponding memory address of the memory headroom to the specified file, the Memory Allocation as described image data is believed Breath.
8. according to any device of claim 6-7, which is characterized in that further include:
Specified file setup module, for receive mobile terminal camera starting request before, when be not present the specified text When part, the static vector table of setting one initializes the specified file for sky, to store the memory as the specified file Distribute information.
9. according to any device of claim 6-7, which is characterized in that further include:
Space release module, for when detecting to mobile terminal execution shutdown or reboot operation, release to be described for caching The memory headroom of image data, and delete the specified file.
10. device according to claim 9, which is characterized in that described image data include: camera based on the pre- of camera Look at the photographed data of data and/or camera based on camera.
11. a kind of mobile terminal, which is characterized in that the mobile terminal is integrated with quickly opening as described in claim 6-10 is any The device of dynamic mobile terminal camera.
CN201610069788.0A 2016-02-01 2016-02-01 A kind of method, device and mobile terminal of quick start mobile terminal camera Active CN105760226B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610069788.0A CN105760226B (en) 2016-02-01 2016-02-01 A kind of method, device and mobile terminal of quick start mobile terminal camera

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610069788.0A CN105760226B (en) 2016-02-01 2016-02-01 A kind of method, device and mobile terminal of quick start mobile terminal camera

Publications (2)

Publication Number Publication Date
CN105760226A CN105760226A (en) 2016-07-13
CN105760226B true CN105760226B (en) 2019-06-28

Family

ID=56342906

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610069788.0A Active CN105760226B (en) 2016-02-01 2016-02-01 A kind of method, device and mobile terminal of quick start mobile terminal camera

Country Status (1)

Country Link
CN (1) CN105760226B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107465875A (en) * 2017-09-13 2017-12-12 北京元心科技有限公司 Camera preview data cache method and device
CN108710539B (en) * 2018-05-18 2021-03-16 珠海格力电器股份有限公司 Information processing method, terminal and readable storage medium
CN111447424B (en) * 2020-04-10 2022-04-22 中航国画(上海)激光显示科技有限公司 Projection system with safety enhancement function
CN112312023B (en) * 2020-10-30 2022-04-08 北京小米移动软件有限公司 Camera buffer queue allocation method and device, electronic equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530186A (en) * 2013-05-30 2014-01-22 Tcl集团股份有限公司 Method and system for achieving multi-position storage supported by camera application

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102262102B1 (en) * 2014-04-09 2021-06-09 삼성전자 주식회사 Method and apparatus for application execution

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103530186A (en) * 2013-05-30 2014-01-22 Tcl集团股份有限公司 Method and system for achieving multi-position storage supported by camera application

Also Published As

Publication number Publication date
CN105760226A (en) 2016-07-13

Similar Documents

Publication Publication Date Title
JP6326411B2 (en) Video communication method, video communication apparatus, program, and recording medium
CN105760226B (en) A kind of method, device and mobile terminal of quick start mobile terminal camera
KR20170045257A (en) Quick navigation of message conversation history
WO2014154003A1 (en) Method and apparatus for displaying self-taken images
US9451159B2 (en) Photographing starting apparatus and method for built-in camera of portable data processing device
CN106453572B (en) Method and system based on Cloud Server synchronous images
US20220417417A1 (en) Content Operation Method and Device, Terminal, and Storage Medium
KR20110003571A (en) Methods, computer program products and apparatus providing improved image capturing
AU2021229220B2 (en) Image processing method and device
CN107908337A (en) Share the method and apparatus of picture material
KR20230133970A (en) Photography methods, devices and electronics
CN110798615A (en) Shooting method, shooting device, storage medium and terminal
CN105868420A (en) Network resource loading mode configuration method and device
CN106879263A (en) A kind of image pickup method and mobile device
EP2870747A1 (en) Computer-implemented image composition method and apparatus using the same
JP2024506639A (en) Image display methods, devices, equipment and media
WO2015110060A1 (en) Filter realization method and apparatus of camera application
CN108184056A (en) Grasp shoot method and terminal device
CN110969587A (en) Image acquisition method and device and electronic equipment
CN114640798B (en) Image processing method, electronic device, and computer storage medium
CN112312058B (en) Interaction method and device and electronic equipment
KR20230086770A (en) Shooting method, shooting device, electronic device and readable storage medium
CN113037996A (en) Image processing method and device and electronic equipment
JP2005292918A (en) Portable terminal device
CN111597363A (en) Method for detecting repeated photos, mobile terminal and device with storage function

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: OPPO Guangdong Mobile Communications Co., Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: Guangdong OPPO Mobile Communications Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant