CN105760226A - Method, device and mobile terminal for quickly starting mobile terminal camera - Google Patents
Method, device and mobile terminal for quickly starting mobile terminal camera Download PDFInfo
- Publication number
- CN105760226A CN105760226A CN201610069788.0A CN201610069788A CN105760226A CN 105760226 A CN105760226 A CN 105760226A CN 201610069788 A CN201610069788 A CN 201610069788A CN 105760226 A CN105760226 A CN 105760226A
- Authority
- CN
- China
- Prior art keywords
- camera
- mobile terminal
- image data
- specified file
- memory
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 51
- 230000003068 static effect Effects 0.000 claims description 12
- 230000008569 process Effects 0.000 description 16
- 230000004913 activation Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000009471 action Effects 0.000 description 2
- 230000003139 buffering effect Effects 0.000 description 2
- 238000012217 deletion Methods 0.000 description 2
- 230000037430 deletion Effects 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 238000005457 optimization Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000004904 shortening Methods 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements 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/46—Multiprogramming arrangements
- G06F9/50—Allocation of resources, e.g. of the central processing unit [CPU]
- G06F9/5005—Allocation of resources, e.g. of the central processing unit [CPU] to service a request
- G06F9/5011—Allocation 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/5016—Allocation 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2209/00—Indexing scheme relating to G06F9/00
- G06F2209/50—Indexing scheme relating to G06F9/50
- G06F2209/5013—Request 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
本发明公开了快速启动移动终端相机的方法、装置及移动终端。本发明提供的快速启动移动终端相机的方法包括:在接收到移动终端相机启动请求后,读取指定文件中保存的内存分配信息;将所述内存分配信息中指向的内存空间分配给所述相机进行图像数据缓存。利用该方法,省去了在相机启动时,对移动终端摄像头的图像数据配置操作,即,省去了每次在接收到相机启动请求后,重复执行用于缓存摄像头的图像数据的内存空间的申请和分配操作,由此节省了60ms~80ms的为图像数据分配和申请内存空间的时间,进而加快了移动终端相机的启动,减少了相机启动的耗时。
The present invention discloses a method, device and mobile terminal for quickly starting a mobile terminal camera. The method for quickly starting a mobile terminal camera provided by the present invention comprises: after receiving a mobile terminal camera start request, reading memory allocation information saved in a specified file; allocating the memory space pointed to in the memory allocation information to the camera for image data caching. Utilizing this method, the image data configuration operation of the mobile terminal camera is omitted when the camera is started, that is, the repeated application and allocation operation of the memory space for caching the camera's image data is omitted each time after receiving a camera start request, thereby saving 60ms to 80ms of time for allocating and applying for memory space for image data, thereby accelerating the startup of the mobile terminal camera and reducing the time consumption of the camera startup.
Description
技术领域technical field
本发明实施例涉及移动终端技术领域,尤其涉及一种快速启动移动终端相机的方法、装置及移动终端。Embodiments of the present invention relate to the technical field of mobile terminals, and in particular, to a method and device for quickly starting a camera of a mobile terminal, and a mobile terminal.
背景技术Background technique
相机是手机、平板电脑等移动设备中一项非常重要的功能,而且对于喜欢抓拍美好瞬间的用户而言,相机的启动速度更是非常重要的。但是基于当前相机的启动过程可以看出,在接收到移动终端相机启动请求后,首先需要为相机进行摄像头的图像数据配置,以实现为相机拍照时的图像数据申请并分配相应的缓存空间,然后才能启动相机进入拍照的显示界面,进行拍照预览或是基于相机拍照。The camera is a very important function in mobile devices such as mobile phones and tablet computers, and for users who like to capture beautiful moments, the startup speed of the camera is very important. However, based on the current camera start-up process, it can be seen that after receiving the mobile terminal camera start-up request, it is first necessary to configure the image data of the camera for the camera, so as to apply for and allocate corresponding cache space for the image data when the camera takes pictures, and then Only then can the camera be started to enter the display interface for taking pictures, to preview pictures or take pictures based on the camera.
一般来说,为相机进行摄像头的图像数据配置主要包括为相机基于摄像头的预览数据和/或为相机基于摄像头的拍摄数据分配和申请用于缓存上述图像数据的内存空间。在现有的相机启动过程中,在对移动终端摄像头的图像数据配置阶段,需要完成多个用于缓存图像数据的内存空间的分配和申请操作,占用了相机启动的较多时间,且现有的相机启动中,在每次接到移动终端相机启动请求后,都需要为摄像头的图像数据进行内存空间的申请和分配操作,该过程很大程度占用了相机的启动时间,进而使得整个相机启动过程耗费较多时间。Generally speaking, configuring the image data of the camera for the camera mainly includes allocating and applying for memory space for caching the above-mentioned image data for the preview data of the camera based on the camera and/or for the shooting data of the camera based on the camera. In the existing camera start-up process, in the image data configuration stage of the mobile terminal camera, it is necessary to complete the allocation and application of multiple memory spaces for caching image data, which takes up a lot of time for camera start-up, and the existing During the startup of the camera, every time a mobile terminal camera startup request is received, it is necessary to apply for and allocate memory space for the image data of the camera. The process takes more time.
发明内容Contents of the invention
本发明的目的是提出一种快速启动移动终端相机的方法、装置及移动终端,用以解决移动终端中相机启动时间长的问题。The purpose of the present invention is to propose a method, device and mobile terminal for quickly starting the camera of a mobile terminal, so as to solve the problem of long camera start-up time in the mobile terminal.
一方面,本发明实施例提供了一种快速启动移动终端相机的方法,包括:On the one hand, an embodiment of the present invention provides a method for quickly starting a mobile terminal camera, including:
在接收到移动终端相机启动请求后,读取指定文件中保存的内存分配信息;After receiving the mobile terminal camera startup request, read the memory allocation information saved in the specified file;
将所述内存分配信息中指向的内存空间分配给所述相机进行图像数据缓存。Allocating the memory space pointed to in the memory allocation information to the camera for image data caching.
另一方面,本发明实施例提供了一种快速启动移动终端相机的装置,包括:On the other hand, an embodiment of the present invention provides a device for quickly starting a mobile terminal camera, including:
信息读取模块,用于在接收到移动终端相机启动请求后,读取指定文件中保存的内存分配信息;The information reading module is used to read the memory allocation information stored in the specified file after receiving the mobile terminal camera startup request;
内存分配模块,用于将所述内存分配信息中指向的内存空间分配给所述相机进行图像数据缓存。A memory allocation module, configured to allocate the memory space pointed to in the memory allocation information to the camera for image data caching.
又一方面,本发明实施例提供了一种移动终端,该移动终端集成了本发明实施例提供的一种快速启动移动终端相机的装置In yet another aspect, an embodiment of the present invention provides a mobile terminal, which integrates a device for quickly starting a mobile terminal camera provided by an embodiment of the present invention
本发明实施例提供了快速启动移动终端相机的方法、装置及移动终端,本发明提供的快速启动移动终端相机的方法可概括为:在接收到移动终端上相机的启动请求后,读取指定文件中保存的内存分配信息;并将内存分配信息中指向的内存空间分配给相机进行摄像头图像数据的缓存。利用该方法,省去了在相机启动时,对移动终端摄像头的图像数据配置操作,即,省去了每次在接收到相机启动请求后,重复执行用于缓存摄像头的图像数据的内存空间的申请操作,由此节省了60ms~80ms的为图像数据分配和申请内存空间的时间,进而加快了移动终端相机的启动,减少了相机启动的耗时,提高了用户对移动终端的用户体验。Embodiments of the present invention provide a method, a device, and a mobile terminal for quickly starting the camera of a mobile terminal. The method for quickly starting the camera of a mobile terminal provided by the present invention can be summarized as: after receiving a start request of the camera on the mobile terminal, read the specified file The memory allocation information saved in; and the memory space pointed to in the memory allocation information is allocated to the camera for caching the camera image data. With this method, when the camera is started, the image data configuration operation of the camera of the mobile terminal is omitted, that is, the memory space for caching the image data of the camera is repeatedly executed each time after receiving the camera start request. The application operation saves 60 ms to 80 ms of time for allocating image data and applying for memory space, thereby speeding up the start-up of the mobile terminal camera, reducing the time-consuming of camera start-up, and improving the user experience of the mobile terminal.
附图说明Description of drawings
图1为本发明实施例一提供的一种快速启动移动终端相机的方法的流程示意图;FIG. 1 is a schematic flowchart of a method for quickly starting a camera of a mobile terminal provided by Embodiment 1 of the present invention;
图2为本发明实施例二提供的一种快速启动移动终端相机的方法的流程示意图;FIG. 2 is a schematic flowchart of a method for quickly starting a mobile terminal camera provided by Embodiment 2 of the present invention;
图3为本发明实施例三提供的一种快速启动移动终端相机的方法的流程示意图;FIG. 3 is a schematic flowchart of a method for quickly starting a camera of a mobile terminal provided by Embodiment 3 of the present invention;
图4为本发明实施例四提供的一种快速启动移动终端相机的装置的结构框图;FIG. 4 is a structural block diagram of a device for quickly starting a mobile terminal camera provided by Embodiment 4 of the present invention;
图5为本发明实施例五提供的一种快速启动移动终端相机的装置的结构框图。FIG. 5 is a structural block diagram of an apparatus for quickly starting a camera of a mobile terminal provided by Embodiment 5 of the present invention.
具体实施方式detailed description
下面结合附图并通过具体实施方式来进一步说明本发明的技术方案。可以理解的是,此处所描述的具体实施例仅仅用于解释本发明,而非对本发明的限定。另外还需要说明的是,为了便于描述,附图中仅示出了与本发明相关的部分而非全部结构。The technical solution of the present invention will be further described below in conjunction with the accompanying drawings and through specific implementation methods. It should be understood that the specific embodiments described here are only used to explain the present invention, but not to limit the present invention. In addition, it should be noted that, for the convenience of description, only some structures related to the present invention are shown in the drawings but not all structures.
一般地,对于移动终端相机的启动过程,总的来说具体可概括为:在用户点击相机图标或点击所设置的相机启动快捷键后,相机会下指令给相机底层进行打开摄像头的操作(该操作为相机启动的主要操作)。对于打开摄像头的操作又可分为三步进行,一是对摄像头进行上电等初始化工作;另一是对摄像头的图像数据的输出进行内存空间的申请和分配操作,即实现对摄像头的图像数据配置;又一是等待摄像头输出图像预览数据,显示出相机的拍照界面。其中,可以理解的是,打开摄像头的三步操作是顺序进行的。示例性的,假设相机的启动时间为500ms,则打开摄像头的操作中,第一步对摄像头进行上电等初始化工作的耗时可能为150ms~200ms,第二步中对摄像头的图像数据进行内存空间申请和分配的耗时可能为60ms~80ms,第三步中等待摄像头输出图像预览数据的耗时也可能为150ms~200ms(相机启动过程中还有一些硬件性能的启动,因此也耗费一些启动时间)。Generally speaking, the startup process of the mobile terminal camera can be generally summarized as follows: after the user clicks the camera icon or clicks the set camera startup shortcut key, the camera will issue an instruction to the bottom layer of the camera to open the camera (the action is the main action initiated by the camera). The operation of opening the camera can be divided into three steps, one is to power on the camera and other initialization work; the other is to apply for and allocate memory space for the output of the image data of the camera, that is, to realize the image data of the camera configuration; the other is to wait for the camera to output image preview data, and display the camera interface of the camera. Wherein, it can be understood that the three-step operation of turning on the camera is performed sequentially. Exemplarily, assuming that the start-up time of the camera is 500ms, in the operation of turning on the camera, the initial work such as powering on the camera in the first step may take 150ms to 200ms, and in the second step, the image data of the camera is stored in memory The space application and allocation may take 60ms to 80ms, and the time spent waiting for the camera to output image preview data in the third step may also be 150ms to 200ms. time).
分析相机的启动过程,一般情况下,除去硬件性能对相机启动的影响,软件上现有技术中很难从根本上减小相机底层对摄像头上电等初始化工作和相机图像数据配置以及等待摄像头输出数据在整个相机启动过程中的耗时比,因为相机底层必须要等接收相机启动请求后才下指令才去完成摄像头上电等初始化工作和相机图像数据配置及等待摄像头输出数据的工作,进而实现相机的启动操作。因此,本发明实施例提出了一种快速启动移动终端相机的方法,以减小图像数据配置时间(即缩短内存空间申请和分配时间)的思想来快速启动移动终端相机。Analyzing the startup process of the camera, in general, except for the influence of hardware performance on the startup of the camera, it is difficult to fundamentally reduce the bottom layer of the camera, the initialization work such as powering on the camera, the configuration of the camera image data, and the waiting for the output of the camera. The time-consuming ratio of data during the entire camera startup process, because the bottom layer of the camera must wait for the camera startup request to be issued before completing the initialization work such as powering on the camera, configuring the camera image data, and waiting for the camera to output data. The startup operation of the camera. Therefore, the embodiment of the present invention proposes a method for quickly starting the camera of the mobile terminal, to quickly start the camera of the mobile terminal with the idea of reducing image data configuration time (that is, shortening the memory space application and allocation time).
需要说明的是,本发明实施例仅对相机启动过程中对摄像头的图像数据申请和分配内存空间的改进过程进行描述,不再详述相机启动过程中的摄像头的其他操作步骤,因为基于本发明实施例对对摄像头的图像数据进行内存空间申请和分配所进行的改进步骤的描述,结合现有的相机启动过程中的其他操作,本领域技术人员可以实现对移动终端相机的快速启动。It should be noted that the embodiment of the present invention only describes the improvement process of image data application and allocation of memory space of the camera during the camera startup process, and does not describe other operation steps of the camera during the camera startup process in detail, because based on the present invention The embodiment describes the improvement steps of applying for and allocating the memory space of the image data of the camera, combined with other operations in the existing camera startup process, those skilled in the art can realize the quick startup of the mobile terminal camera.
实施例一Embodiment one
图1为本发明实施例一提供的一种快速启动移动终端相机的方法的流程示意图。该方法适用于对移动终端中相机启动的情况,可以由快速启动移动终端相机的装置执行,其中该装置可由软件和/或硬件实现,并一般集成于移动终端中。FIG. 1 is a schematic flowchart of a method for quickly starting a camera of a mobile terminal according to Embodiment 1 of the present invention. The method is applicable to the situation of starting the camera in the mobile terminal, and can be executed by a device for quickly starting the camera of the mobile terminal, wherein the device can be implemented by software and/or hardware, and is generally integrated in the mobile terminal.
具体的,如图1所示,本发明实施例一提供的一种快速启动移动终端相机的方法,包括如下操作:Specifically, as shown in FIG. 1, a method for quickly starting a mobile terminal camera provided by Embodiment 1 of the present invention includes the following operations:
步骤S101、在接收到移动终端相机启动请求后,读取指定文件中保存的内存分配信息。Step S101, after receiving the mobile terminal camera startup request, read the memory allocation information saved in the specified file.
步骤S102、将所述内存分配信息中指向的内存空间分配给所述相机进行图像数据缓存。Step S102. Allocate the memory space pointed to in the memory allocation information to the camera for image data caching.
在本实施例的上述操作步骤中,所述移动终端为手机、平板电脑等设置有摄像头具有拍照摄像功能的电子设备。所述接收到移动终端相机启动请求的过程,可简单描述为:用户对移动终端上的相机图标或其他快捷启动相机图标进行了触发操作,由此形成了相机的启动请求。In the above operation steps of this embodiment, the mobile terminal is an electronic device such as a mobile phone, a tablet computer, etc. that is provided with a camera and has a camera function. The process of receiving the mobile terminal camera activation request can be simply described as: the user performs a trigger operation on the camera icon on the mobile terminal or other quick activation camera icons, thereby forming a camera activation request.
在本实施例中,在接收到移动终端相机启动请求后,可直接读取用于摄像头的图像数据缓存的内存分配信息。相应的,所述内存分配信息保存在指定文件中,所述指定文件为提前设置的用于保存内存分配信息的文件。进一步地,所述内存分配信息中主要包括内存地址,所述内存地址可以指向用于缓存所述摄像头的图像数据的内存空间,由此不再需要重复进行内存申请,可直接通过内存地址所指向的内存空间完成相机摄像头的图像数据的内存空间分配。需要注意的是,所述内存分配信息中包括的内存地址可以为一个或者多个,其内存地址个数与需要缓存的图像数据个数相对应,即,一个需要缓存的图像数据对应一个内存地址,且由于内存地址指向内存空间,所以轻易实现了为图像数据分配内存地址的操作。In this embodiment, after receiving the mobile terminal camera activation request, the memory allocation information for the image data cache of the camera can be directly read. Correspondingly, the memory allocation information is saved in a specified file, and the specified file is a file set in advance for storing the memory allocation information. Further, the memory allocation information mainly includes a memory address, and the memory address can point to the memory space used to cache the image data of the camera, so that it is no longer necessary to repeat the memory application, and the memory address can be directly pointed to The memory space of the camera completes the memory space allocation of the image data of the camera. It should be noted that the memory address included in the memory allocation information can be one or more, and the number of memory addresses corresponds to the number of image data that needs to be cached, that is, one image data that needs to be cached corresponds to one memory address , and since the memory address points to the memory space, the operation of allocating the memory address for the image data is easily realized.
一般地,在相机启动时,常常需要为多于10个的图像数据分配内存空间,这些图像数据一般可用于配置图像信号处理(ImageSignalProcessing,ISP)过程中的流程或框架,或者用于启动摄像头输出图像预览数据。Generally, when the camera is started, it is often necessary to allocate memory space for more than 10 image data, and these image data can generally be used to configure the process or framework in the image signal processing (ImageSignalProcessing, ISP) process, or to start the camera output Image preview data.
进一步地,所述图像数据包括:相机基于摄像头的预览数据和/或相机基于摄像头的拍摄数据。Further, the image data includes: preview data of the camera based on the camera and/or shooting data of the camera based on the camera.
在本实施例中,所述图像数据可概括为两种,一种是相机基于摄像头的预览数据,该预览数据具体可理解为,在相机启动后进入相机显示界面后,用户在移动终端屏幕上看到的基于摄像头获取的图像数据信息,这些预览数据可随摄像头的移动而在移动终端屏幕上变换;另一种是基于摄像头的拍摄数据,该拍摄数据具体可理解为,在相机启动后进入相机显示界面后,用户透过摄像头获取想要的预览数据并点击拍摄按钮后获取的图像数据信息,这些图像数据最终可存储到移动终端的相应照片或视频文件夹中。In this embodiment, the image data can be summarized into two types, one is the preview data of the camera based on the camera, and the preview data can be specifically understood as, after the camera starts and enters the camera display interface, the user displays the image on the screen of the mobile terminal The image data information seen based on the camera, these preview data can be changed on the screen of the mobile terminal with the movement of the camera; the other is the shooting data based on the camera, which can be specifically understood as entering the After the camera displays the interface, the user obtains the desired preview data through the camera and clicks the shooting button to obtain the image data information. These image data can be finally stored in the corresponding photo or video folder of the mobile terminal.
本发明实施一提供的一种快速启动移动终端相机的方法,在接收到移动终端上相机的启动请求后,读取指定文件中保存的内存分配信息;并将内存分配信息中指向的内存空间分配给相机进行摄像头图像数据的缓存。利用该方法,省去了每次在接收到相机启动请求后,重复执行用于缓存摄像头的图像数据的内存空间的申请操作,由此节省了60ms~80ms的为图像数据申请内存空间的时间,进而加快了移动终端相机的启动,减少了相机启动的耗时,提高了用户对移动终端的用户体验。Implementation 1 of the present invention provides a method for quickly starting a mobile terminal camera. After receiving a camera startup request on a mobile terminal, read the memory allocation information stored in the specified file; and allocate the memory space pointed to in the memory allocation information Cache the camera image data for the camera. Using this method saves the need to repeat the application operation of the memory space for caching the image data of the camera each time after receiving the camera startup request, thereby saving 60ms to 80ms of time for applying for the memory space for the image data. Furthermore, the starting of the camera of the mobile terminal is accelerated, the time-consuming of starting the camera is reduced, and the user experience of the user on the mobile terminal is improved.
实施例二Embodiment two
图2为本发明实施例二提供的一种快速启动移动终端相机的方法的流程示意图。本发明实施例二以上述实施例为基础,进一步地,将步骤“在接收到移动终端相机启动请求后,读取指定文件中保存的内存分配信息”具体优化为:在接收到相机启动的请求后,检测所述指定文件中存放的内容是否为空;如果所述指定文件中存放的内容不为空,则读取所述指定文件中存放的内存分配信息。此外,还进一步优化包括了:在接收到相机启动的请求后,检测所述指定文件中存放的内容是否为空之后,如果所述指定文件存放的内容为空,则为所述移动终端摄像头的图像数据进行内存空间的申请分配。FIG. 2 is a schematic flowchart of a method for quickly starting a camera of a mobile terminal provided by Embodiment 2 of the present invention. Embodiment 2 of the present invention is based on the above-mentioned embodiments, and further, the step "after receiving the mobile terminal camera startup request, read the memory allocation information stored in the specified file" is specifically optimized as follows: after receiving the camera startup request Afterwards, detecting whether the content stored in the specified file is empty; if the content stored in the specified file is not empty, then read the memory allocation information stored in the specified file. In addition, further optimization includes: after receiving the request for starting the camera, after detecting whether the content stored in the specified file is empty, if the content stored in the specified file is empty, then for the mobile terminal camera The image data is allocated for the application of the memory space.
进一步地,在所述如果所述指定文件存放的内容为空,则为所述移动终端摄像头的图像数据进行内存空间的申请分配之后,还包括:保留已申请好的用于缓存所述图像数据的内存空间,并将所述内存空间对应的内存地址保存至所述指定文件,作为所述图像数据的内存分配信息。Further, after the said if the content stored in the specified file is empty, after the memory space application allocation is performed for the image data of the mobile terminal camera, it also includes: reserving the application for caching the image data memory space, and save the memory address corresponding to the memory space to the specified file as the memory allocation information of the image data.
如图2所示,本发明实施例二提供的一种快速启动移动终端相机的方法,具体包括如下操作:As shown in Figure 2, a method for quickly starting a mobile terminal camera provided by Embodiment 2 of the present invention specifically includes the following operations:
步骤S201、接收相机启动的请求。Step S201, receiving a camera start request.
在本实施例中,在用户触发移动终端上的相机图标或相机快捷键后,可产生相机启动的请求。In this embodiment, after the user triggers the camera icon or the camera shortcut key on the mobile terminal, a request for starting the camera may be generated.
步骤S202、判定所述指定文件中存放的内容是否为空,若否,只执行步骤S203;若是,则执行步骤S204。Step S202, determine whether the content stored in the specified file is empty, if not, only execute step S203; if yes, execute step S204.
在本实施例中,所述指定文件为提前设置的用于存放内存分配信息的文件。在经过步骤S201的请求后,可以基于步骤S202判定所述指定文件中的内容是否为空,若不为空,则可执行步骤S203;否则,可执行步骤S204。In this embodiment, the specified file is a file set in advance for storing memory allocation information. After the request in step S201, it may be determined based on step S202 whether the content in the specified file is empty, and if not, step S203 may be executed; otherwise, step S204 may be executed.
步骤S203、读取所述指定文件中存放的内存分配信息,其中,所述内存分配信息中指向的内存空间用于所述摄像头的图像数据缓存。Step S203. Read the memory allocation information stored in the specified file, wherein the memory space pointed to by the memory allocation information is used for image data buffering of the camera.
在本实施例中,当判定出所述指定文件的内容不为空时,可知在该指定文件中已存放有内存分配信息,则可直接读取该内存分配信息,以基于该内存分配信息中包括的内存地址获取用于缓存图像数据的内存空间。基于该步骤,能够节省相机启动时对图像数据进行内存空间申请和分配的操作所耗费的时间,由此可为相机启动的整个过程节省60ms~70ms的耗时。In this embodiment, when it is determined that the content of the specified file is not empty, it can be known that memory allocation information has been stored in the specified file, then the memory allocation information can be directly read to use the memory allocation information based on the memory allocation information. The included memory address gets the memory space used to cache the image data. Based on this step, the time spent on memory space application and allocation of image data can be saved when the camera is started, thereby saving 60 ms to 70 ms of time in the entire process of camera start.
步骤S204、为所述移动终端摄像头的图像数据进行内存空间的申请分配。Step S204, applying for allocation of memory space for the image data of the camera of the mobile terminal.
在本实施例中,当判定出所述指定文件的内容为空(一般是在对移动终端执行开机操作后,第一次启动相机前,设置一静态矢量表作为指定文件后,初始该指定文件为空)时,可以为移动终端摄像头的图像数据进行内存空间的申请分配操作。In this embodiment, when it is determined that the content of the specified file is empty (generally after the mobile terminal is powered on, before starting the camera for the first time, after setting a static vector table as the specified file, the specified file is initialized. is empty), the memory space application allocation operation can be performed for the image data of the mobile terminal camera.
进一步地,所述为所述移动终端摄像头的图像数据进行内存空间的申请分配,包括:Further, the allocation of memory space for the image data of the mobile terminal camera includes:
获取所述移动终端摄像头对应的像素大小;根据所述像素大小,确定缓存所述摄像头的图像数据所需的内存大小;基于所述内存大小,为所述图像数据申请并分配相应的内存空间。Obtain the pixel size corresponding to the camera of the mobile terminal; determine the memory size required for caching the image data of the camera according to the pixel size; apply for and allocate corresponding memory space for the image data based on the memory size.
在本实施例中,在对移动终端摄像头的图像数据进行内存空间的申请分配操作时,首先可以获取该移动终端摄像头的像素大小信息(一般地,所述摄像头的像素信息可通过查询移动终端的配置信息获取,该配置信息一般保存在移动终端的设置选项中);然后,在获取到摄像头的像素大小信息后,就可基于该像素大小确定缓存摄像头的图像数据时所需的内存大小(一般地,其内存大小,就是该摄像头所需存放像素单元的大小,示例性的,对于一个拥有130万像素的移动终端摄像头,在缓存该摄像头的图像数据时就需要能够存放数据大小为4208*3120的内存);最终,在获取到缓存所述图像数据所需要的内存大小后,就需要基于已确定的内存大小为所述图像数据申请和分配相应的内存空间。由此完成了用于摄像头的图像数据的内存空间申请和分配操作。In this embodiment, when the image data of the camera of the mobile terminal is applied for allocation of memory space, the pixel size information of the camera of the mobile terminal can be obtained first (generally, the pixel information of the camera can be obtained by querying the mobile terminal The configuration information is obtained, and the configuration information is generally stored in the setting options of the mobile terminal); then, after obtaining the pixel size information of the camera, the memory size required for caching the image data of the camera can be determined based on the pixel size (generally Specifically, its memory size is the size of the pixel unit that the camera needs to store. For example, for a mobile terminal camera with 1.3 million pixels, when caching the image data of the camera, it needs to be able to store data with a size of 4208*3120 memory); finally, after obtaining the memory size required for caching the image data, it is necessary to apply for and allocate corresponding memory space for the image data based on the determined memory size. Thus, the memory space application and allocation operation for the image data of the camera is completed.
步骤S205、保留已申请好的用于缓存所述图像数据的内存空间,并将所述内存空间对应的内存地址保存至所述指定文件,作为所述图像数据的内存分配信息。Step S205 , reserving the applied memory space for caching the image data, and saving the memory address corresponding to the memory space to the specified file as the memory allocation information of the image data.
在本实施例中,当基于步骤S204完成对图像数据内存空间的申请和分配后,为了以后再次启动移动终端相机时不再重复进行内存空间的申请操作,可以考虑直接将已申请好的内存空间进行保留,以便于下次相机启动时直接使用当前已申请好的内存空间。相应的,如果仅将已申请好的空间进行保留,在下次相机启动时,相机底层并不知道哪些内存空间是为进行图像数据的缓存所保留的,所以还需要设置一包含内存地址的索引文件,使得相机底层能够基于该索引文件很快找到用于缓存图像数据所对应的内存空间。In this embodiment, after completing the application and allocation of the image data memory space based on step S204, in order not to repeat the memory space application operation when starting the mobile terminal camera again in the future, it may be considered to directly allocate the applied memory space Reserve it so that the memory space that has been applied for can be used directly when the camera is started next time. Correspondingly, if only the allocated space is reserved, the bottom layer of the camera does not know which memory space is reserved for image data caching when the camera is started next time, so it is necessary to set an index file containing the memory address , so that the bottom layer of the camera can quickly find the corresponding memory space for caching image data based on the index file.
具体的,上述所提的包含内存地址的索引文件就相当于步骤S205中所提的指定文件,即,将所述已分配的内存空间对应的内存地址保存在该指定文件中,形成可索引的文件,其中,所保存的内存地址信息就可是相机底层需要的内存分配信息。基于实施例一中对内存分配信息的描述,其用于索引的内存地址并不只有一个,可以有多个,其内存地址的数量主要依据需要缓存的图像数据的数量。此外,为了确保已保存的内存分配信息不随相机应用的退出而消失,需要在设置上述指定文件时,将其设置成一个静态矢量表,由于静态矢量表不随相机应用的退出而消失,就保证了所述内存分配信息不会随着相机应用的退出而消失。Specifically, the above-mentioned index file containing the memory address is equivalent to the specified file mentioned in step S205, that is, the memory address corresponding to the allocated memory space is stored in the specified file to form an indexable file. file, wherein the stored memory address information is the memory allocation information required by the bottom layer of the camera. Based on the description of memory allocation information in Embodiment 1, there may be more than one memory address for indexing, and the number of memory addresses is mainly based on the amount of image data to be cached. In addition, in order to ensure that the saved memory allocation information does not disappear with the exit of the camera application, it is necessary to set it as a static vector table when setting the above specified file. Since the static vector table does not disappear with the exit of the camera application, it is guaranteed The memory allocation information will not disappear with the exit of the camera application.
本发明实施例二提供的一种快速启动移动终端相机的方法,进一步具体化了为摄像头图像数据获取内存空间的过程,首先在接收到相机启动请求后,会判定指点文件中的内从容是否为空,当不为空时可直接基于指定文件中的内存分配信息进行图像数据对应内存空间的确定;当为空时,就需要为图像数据进行内存空间的申请分配操作,之后还将保留已申请好的内存空间以用于相机的再次启动。利用该方法,省去了每次在接收到相机启动请求后,重复执行用于缓存摄像头的图像数据的内存空间的申请操作,由此节省了60ms~80ms的为图像数据分配和申请内存空间的时间,进而加快了移动终端相机的启动。The second embodiment of the present invention provides a method for quickly starting the camera of a mobile terminal, which further specifies the process of obtaining memory space for the camera image data. First, after receiving the camera start request, it will determine whether the content in the pointing file is Empty, when it is not empty, you can directly determine the memory space corresponding to the image data based on the memory allocation information in the specified file; when it is empty, you need to apply for memory space allocation for the image data, and then the applied Good memory space for restarting the camera. Using this method saves the need to repeatedly execute the memory space application operation for caching the image data of the camera after receiving the camera startup request, thereby saving 60ms to 80ms of allocating and applying for memory space for image data time, thereby speeding up the startup of the mobile terminal camera.
实施例三Embodiment three
图3为本发明实施例提供的一种快速启动移动终端相机的方法的流程示意图。本发明实施例三以上述实施例为基础,在本实施例中,在接收到移动终端相机启动请求之前,还包括:当不存在所述指定文件时,设置一静态矢量表作为所述指定文件,并初始化所述指定文件为空,以存放所述内存分配信息。FIG. 3 is a schematic flowchart of a method for quickly starting a camera of a mobile terminal provided by an embodiment of the present invention. Embodiment 3 of the present invention is based on the above embodiments. In this embodiment, before receiving the mobile terminal camera startup request, it also includes: when the specified file does not exist, setting a static vector table as the specified file , and initialize the specified file to be empty to store the memory allocation information.
此外,本发明实施例二还进一步优选包括了:当检测到对移动终端执行关机或重启操作时,释放用于缓存所述图像数据的内存空间,并删除所述指定文件。In addition, the second embodiment of the present invention further preferably includes: releasing the memory space for caching the image data and deleting the specified file when it is detected that the mobile terminal is powered off or restarted.
如图3所示,本发明实施例三提供的一种快速启动移动终端相机的方法,具体包括如下操作:As shown in Figure 3, a method for quickly starting a mobile terminal camera provided by Embodiment 3 of the present invention specifically includes the following operations:
步骤S301、当不存在所述指定文件时,设置一静态矢量表作为所述指定文件,并初始化所述指定文件为空,以存放所述内存分配信息。Step S301. When the specified file does not exist, set a static vector table as the specified file, and initialize the specified file to be empty to store the memory allocation information.
在本实施例中,步骤S301给出了设置指定文件的具体时机,优选地,可以在接收相机启动请求之前,且不存在所述指定文件时,创建一静态矢量表作为指定文件。并在创建该静态矢量表时,将该静态矢量表进行初始化为空,以便于后续的操作。In this embodiment, step S301 provides a specific timing for setting the specified file. Preferably, before receiving the camera startup request and when the specified file does not exist, a static vector table may be created as the specified file. And when the static vector table is created, the static vector table is initialized to be empty, so as to facilitate subsequent operations.
步骤S302、接收相机启动的请求。Step S302, receiving a camera start request.
步骤S303、判定所述指定文件中存放的内容是否为空,若否,只执行步骤S304;若是,则执行步骤S305。Step S303, determine whether the content stored in the specified file is empty, if not, only execute step S304; if yes, execute step S305.
步骤S304、读取所述指定文件中存放的内存分配信息,其中,所述内存分配信息中指向的内存空间用于所述摄像头的图像数据缓存。Step S304. Read the memory allocation information stored in the specified file, wherein the memory space pointed to by the memory allocation information is used for image data buffering of the camera.
步骤S305、为所述移动终端摄像头的图像数据进行内存空间的申请分配。Step S305, apply for allocation of memory space for the image data of the camera of the mobile terminal.
步骤S306、保留已申请好的用于缓存所述图像数据的内存空间,并将所述内存空间对应的内存地址保存至所述指定文件,作为所述图像数据的内存分配信息。Step S306, reserve the memory space that has been applied for to cache the image data, and save the memory address corresponding to the memory space to the specified file as memory allocation information of the image data.
在本实施例中,将不再详细介绍步骤S302~步骤S306的操作,可参考实施例二中对上述步骤的具体描述。In this embodiment, the operations of steps S302 to S306 will not be described in detail, and reference may be made to the specific description of the above steps in Embodiment 2.
步骤S307、当检测到对移动终端执行关机或重启操作时,释放用于缓存所述图像数据的内存空间,并删除所述指定文件。Step S307, when it is detected that the mobile terminal is powered off or restarted, release the memory space used for caching the image data, and delete the specified file.
在本实施例中,由于移动终端所具有的内存大小是有限的,由于移动终端相机工作时用于缓存摄像头的图像数据的内存空间很大,若在相机应用退出后仍一直保留着由上述步骤获取的内存空间,则会造成移动终端内存空间资源的过度占用,使得移动终端不能有效的为其他功能应用分配相应的内存空间,进而有可能降低移动终端对其他应用程序的响应速率。因此,本发明实施例对所述内存空间的释放时机进行了限定,即,当检测到对移动终端进行了关机或重启操作时,就可以释放相机缓存所述图像数据所需的内存空间;并且在释放所述内存空间后,相应的删除所述指定文件,以避免再次对相机进行启动时因没有删除指定文件而产生不必要的错误。In this embodiment, since the memory size of the mobile terminal is limited, and the memory space for caching the image data of the camera is large when the camera of the mobile terminal is working, if the camera application exits and still retains the image data obtained by the above steps The acquired memory space will cause excessive occupancy of memory space resources of the mobile terminal, so that the mobile terminal cannot effectively allocate corresponding memory space for other functional applications, thereby possibly reducing the response rate of the mobile terminal to other application programs. Therefore, the embodiment of the present invention limits the release timing of the memory space, that is, when it is detected that the mobile terminal is shut down or restarted, the memory space required by the camera to cache the image data can be released; and After the memory space is released, the specified file is correspondingly deleted, so as to avoid unnecessary errors caused by not deleting the specified file when the camera is started again.
本发明实施例三提供的一种快速启动移动终端相机的方法,进一步优化了指定文件的设置条件,以及指定文件的删除条件,使得指定文件可以存放用于相机启动的内存分配信息,由此减少相机启动时图像数据所需内存空间的分配时间,使得相机的启动时间缩短了60ms~70ms;同时,基于指定文件的删除条件还能释放所保留的内存空间,以及删除所存放的内存分配信息,由此可以实现移动终端内存空间的释放,以避免移动终端内存的过分占用。The third embodiment of the present invention provides a method for quickly starting the camera of a mobile terminal, which further optimizes the setting conditions of the specified file and the deletion conditions of the specified file, so that the specified file can store memory allocation information for camera startup, thereby reducing The allocation time of the memory space required for the image data when the camera starts shortens the camera start-up time by 60ms to 70ms; at the same time, based on the deletion conditions of the specified files, the reserved memory space can be released and the stored memory allocation information can be deleted. In this way, the memory space of the mobile terminal can be released, so as to avoid excessive occupation of the memory of the mobile terminal.
实施例四Embodiment Four
图4为本发明实施例四提供的一种快速启动移动终端相机的装置的结构框图。该装置可由软件和/或硬件实现,适用于对移动终端中相机快速启动的情况,并一般集成于移动终端中。如图4所示,该装置的具体结构如下,包括:信息读取模块41和内存分配模块42。其中,FIG. 4 is a structural block diagram of an apparatus for quickly starting a camera of a mobile terminal provided by Embodiment 4 of the present invention. The device can be implemented by software and/or hardware, and is suitable for quickly starting the camera in the mobile terminal, and is generally integrated in the mobile terminal. As shown in FIG. 4 , the specific structure of the device is as follows, including: an information reading module 41 and a memory allocation module 42 . in,
信息读取模块41,用于在接收到移动终端相机启动请求后,读取指定文件中保存的内存分配信息。The information reading module 41 is configured to read the memory allocation information stored in the specified file after receiving the mobile terminal camera startup request.
内存分配模块42,用于将所述内存分配信息中指向的内存空间分配给所述相机进行图像数据缓存。The memory allocation module 42 is configured to allocate the memory space pointed to in the memory allocation information to the camera for image data caching.
在本实施例中,该装置通过信息读取模块41能够在接收到相机启动请求后,读取指定文件中保存的内存分配信息,并通过内存分配模块42以完成用于摄像头的图像数据缓存的内存空间的分配。In this embodiment, the device can read the memory allocation information stored in the specified file through the information reading module 41 after receiving the camera startup request, and use the memory allocation module 42 to complete the image data cache for the camera Allocation of memory space.
进一步的,所述信息读取模块41,具体用于:Further, the information reading module 41 is specifically used for:
在接收到相机启动的请求后,检测所述指定文件中存放的内容是否为空;After receiving the camera startup request, detect whether the content stored in the specified file is empty;
如果所述指定文件中存放的内容不为空,则获取所述指定文件中存放的内存分配信息。If the content stored in the specified file is not empty, then acquire the memory allocation information stored in the specified file.
进一步的,所述图像数据包括:相机基于摄像头的预览数据和/或相机基于摄像头的拍摄数据。Further, the image data includes: preview data of the camera based on the camera and/or shooting data of the camera based on the camera.
本发明实施例四提供的一种快速启动移动终端相机的装置,在接收到相机启动请求后,能够省去重复执行用于缓存摄像头的图像数据的内存空间的申请和分配操作的过程,由此节省60ms~80ms的为图像数据分配和申请内存空间的时间,进而加快了移动终端相机的启动,减少了相机启动的耗时,提高了用户对移动终端的用户体验。The fourth embodiment of the present invention provides a device for quickly starting the camera of a mobile terminal. After receiving the camera start request, it can save the process of repeatedly executing the application and allocation of the memory space for caching the image data of the camera, thereby It saves 60ms-80ms time for allocating and applying for memory space for image data, thereby speeding up the start-up of the mobile terminal camera, reducing the time-consuming of camera start-up, and improving the user experience of the mobile terminal.
实施例五Embodiment five
图5为本发明实施例五提供的一种快速启动移动终端相机的装置的结构框图。本发明实施例五以上述实施例四为基础进行优化,在本实施例中,该装置的结构除包括信息读取模块51和内存分配模块52外,还具体包括了:指定文件设置模块50、内存空间申请模块53、分配信息保存模块54和空间释放模块55。其中,FIG. 5 is a structural block diagram of an apparatus for quickly starting a camera of a mobile terminal provided by Embodiment 5 of the present invention. Embodiment 5 of the present invention is optimized on the basis of Embodiment 4 above. In this embodiment, in addition to information reading module 51 and memory allocation module 52, the structure of the device also specifically includes: specified file setting module 50, memory space application module 53 , allocation information storage module 54 and space release module 55 . in,
指定文件设置模块50,用于在接收到移动终端相机启动请求之前,当不存在所述指定文件时,设置一静态矢量表作为所述指定文件,并初始化所述指定文件为空,以存放所述内存分配信息。Designated file setting module 50 is used to set a static vector table as the designated file when the designated file does not exist before receiving the mobile terminal camera startup request, and initialize the designated file to be empty to store the designated file. The above memory allocation information.
内存空间申请模块53,用于在接收到相机启动的请求,检测所述指定文件中存放的内容是否为空之后,当所述指定文件存放的内容为空时,为所述移动终端摄像头的图像数据进行内存空间的申请分配;Memory space application module 53, is used for after receiving the request that camera starts, detects whether the content stored in the designated file is empty, when the content stored in the designated file is empty, for the image of the mobile terminal camera Data allocation for memory space application;
相应的,所述为所述移动终端摄像头的图像数据进行内存空间的申请分配,包括:获取所述移动终端摄像头对应的像素大小;根据所述像素大小,确定缓存所述摄像头的图像数据所需的内存大小;基于所述内存大小,为所述图像数据申请并分配相应的内存空间。Correspondingly, the allocating the memory space application for the image data of the mobile terminal camera includes: obtaining the pixel size corresponding to the mobile terminal camera; memory size; based on the memory size, apply for and allocate corresponding memory space for the image data.
分配信息保存模块54,用于在当所述指定文件存放的内容为空,为所述移动终端摄像头分配缓存图像数据的内存空间之后,保留已申请好的用于缓存所述图像数据的内存空间,并将所述内存空间对应的内存地址保存至所述指定文件,作为所述图像数据的内存分配信息。The allocation information storage module 54 is used to reserve the memory space for caching the image data that has been applied for after the memory space for caching image data is allocated for the mobile terminal camera when the content stored in the specified file is empty , and save the memory address corresponding to the memory space to the specified file as the memory allocation information of the image data.
空间释放模块55,用于当检测到对移动终端执行关机或重启操作时,释放用于缓存所述图像数据的内存空间,并删除所述指定文件。The space release module 55 is configured to release the memory space for caching the image data and delete the specified file when it is detected that the mobile terminal is shut down or restarted.
在本实施例中,基于该装置首先可通过指定文件设置模块50在接收到移动终端相机启动请求之前,当不存在所述指定文件时,设置一静态矢量表作为所述指定文件,并初始化所述指定文件为空,以存放用于获取图像数据缓存空间的内存分配信息;然后,可通过信息读取模块51在接收到移动终端相机启动请求后,检测所述指定文件中存放的内容不为空时,读取指定文件中保存的内存分配信息;或者是通过内存空间申请模块53在接收到移动终端相机启动请求后,检测所述指定文件中存放的内容为空时,为所述移动终端摄像头的图像数据进行内存空间的申请分配;并通过分配信息保存模块54将已分配的用于缓存所述图像数据的内存空间进行保留,并将所述内存空间对应的内存地址保存至所述指定文件,作为所述图像数据的内存分配信息;最终,还可通过空间释放模块55在检测到对移动终端执行关机或重启操作时,释放用于缓存所述图像数据的内存空间,并删除所述指定文件。In this embodiment, based on the device, at first the specified file setting module 50 can set a static vector table as the specified file and initialize the specified file when the specified file does not exist before receiving the mobile terminal camera startup request. The specified file is empty to store the memory allocation information used to obtain the image data cache space; then, after receiving the mobile terminal camera startup request, the information reading module 51 can detect that the content stored in the specified file is not When it is empty, read the memory allocation information preserved in the specified file; or after receiving the mobile terminal camera startup request by the memory space application module 53, when detecting that the content stored in the specified file is empty, the mobile terminal The image data of the camera carries out the application allocation of the memory space; and the allocated memory space for caching the image data is reserved by the allocation information preservation module 54, and the memory address corresponding to the memory space is saved to the specified file, as the memory allocation information of the image data; finally, the space release module 55 can also be used to release the memory space for caching the image data when detecting that the mobile terminal is shut down or restarted, and delete the Specify the file.
本发明提供的一种快速启动移动终端相机的装置,进一步增加了指定文件设置模块、内存空间申请模块、分配信息保存模块和空间释放模块。使得本发明实施例的装置能够判定为摄像头的图像数据进行内存申请和分配的时机,同时还能够判定所保留的内存空间的释放时机。利用该装置,不仅能够节省相机启动时图像数据所需内存空间的分配时间,使得相机的启动时间缩短60ms~70ms达到快速启动相机的效果;同时,还避免了对移动终端内存的过分占用。The device for quickly starting the camera of a mobile terminal provided by the present invention further adds a specified file setting module, a memory space application module, an allocation information storage module and a space release module. This enables the device in the embodiment of the present invention to determine the timing of memory application and allocation for the image data of the camera, and also determine the timing of releasing the reserved memory space. The device can not only save the allocation time of the memory space required by the image data when the camera is started, shorten the camera start-up time by 60ms to 70ms to achieve the effect of quickly starting the camera; at the same time, it also avoids excessive occupation of the memory of the mobile terminal.
进一步的,本发明实施例五还提供的一种移动终端,该移动终端集成了本发明实施例四或实施例五提供的任一种快速启动移动终端相机的装置。利用该移动终端,当用户点击相机图标或相机快捷键时,与现有移动终端相比,能够缩短60ms~70ms的启动时间,达到了快速启动移动终端相机的效果,由此进一步提升了用户对移动终端的体验效果。Furthermore, Embodiment 5 of the present invention also provides a mobile terminal, which integrates any device for quickly starting the camera of the mobile terminal provided in Embodiment 4 or Embodiment 5 of the present invention. With this mobile terminal, when the user clicks the camera icon or the camera shortcut key, compared with the existing mobile terminal, the start-up time can be shortened by 60ms to 70ms, achieving the effect of quickly starting the camera of the mobile terminal, thereby further improving the user's awareness of The experience effect of mobile terminals.
注意,上述仅为本发明的较佳实施例及所运用技术原理。本领域技术人员会理解,本发明不限于这里所述的特定实施例,对本领域技术人员来说能够进行各种明显的变化、重新调整和替代而不会脱离本发明的保护范围。因此,虽然通过以上实施例对本发明进行了较为详细的说明,但是本发明不仅仅限于以上实施例,在不脱离本发明构思的情况下,还可以包括更多其他等效实施例,而本发明的范围由所附的权利要求范围决定。Note that the above are only preferred embodiments of the present invention and applied technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and can also include more other equivalent embodiments without departing from the concept of the present invention, and the present invention The scope is determined by the scope of the appended claims.
Claims (15)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610069788.0A CN105760226B (en) | 2016-02-01 | 2016-02-01 | Method and device for quickly starting camera of mobile terminal and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610069788.0A CN105760226B (en) | 2016-02-01 | 2016-02-01 | Method and device for quickly starting camera of mobile terminal and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105760226A true CN105760226A (en) | 2016-07-13 |
CN105760226B CN105760226B (en) | 2019-06-28 |
Family
ID=56342906
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610069788.0A Expired - Fee Related CN105760226B (en) | 2016-02-01 | 2016-02-01 | Method and device for quickly starting camera of mobile terminal and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105760226B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107465875A (en) * | 2017-09-13 | 2017-12-12 | 北京元心科技有限公司 | Camera preview data cache method and device |
CN108710539A (en) * | 2018-05-18 | 2018-10-26 | 珠海格力电器股份有限公司 | Information processing method, terminal and readable storage medium |
CN111447424A (en) * | 2020-04-10 | 2020-07-24 | 中航国画(上海)激光显示科技有限公司 | Projection system with safety enhancement function |
CN112312023A (en) * | 2020-10-30 | 2021-02-02 | 北京小米移动软件有限公司 | Camera buffer queue allocation method and device, electronic equipment and storage medium |
Citations (2)
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 |
US20150293701A1 (en) * | 2014-04-09 | 2015-10-15 | Samsung Electronics Co., Ltd. | Execution method and apparatus |
-
2016
- 2016-02-01 CN CN201610069788.0A patent/CN105760226B/en not_active Expired - Fee Related
Patent Citations (2)
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 |
US20150293701A1 (en) * | 2014-04-09 | 2015-10-15 | Samsung Electronics Co., Ltd. | Execution method and apparatus |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107465875A (en) * | 2017-09-13 | 2017-12-12 | 北京元心科技有限公司 | Camera preview data cache method and device |
CN108710539A (en) * | 2018-05-18 | 2018-10-26 | 珠海格力电器股份有限公司 | Information processing method, terminal and readable storage medium |
CN111447424A (en) * | 2020-04-10 | 2020-07-24 | 中航国画(上海)激光显示科技有限公司 | Projection system with safety enhancement function |
CN112312023A (en) * | 2020-10-30 | 2021-02-02 | 北京小米移动软件有限公司 | Camera buffer queue allocation method and device, electronic equipment and storage medium |
CN112312023B (en) * | 2020-10-30 | 2022-04-08 | 北京小米移动软件有限公司 | Camera buffer queue allocation method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN105760226B (en) | 2019-06-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP7604493B2 (en) | Multi-screen collaboration method and system, and electronic device | |
CN108496198B (en) | An image processing method and device | |
CN107870716B (en) | Method and device for calling background application | |
WO2018032782A1 (en) | Method and device for starting application | |
JP5887419B2 (en) | Method and apparatus for taking a screen shot of an application screen in a mobile terminal | |
CN110300328B (en) | Video playing control method and device and readable storage medium | |
US20220058772A1 (en) | Image Processing Method and Device | |
US10609276B2 (en) | Electronic device and method for controlling operation of camera-related application based on memory status of the electronic device thereof | |
JP2017532645A (en) | Real-time sharing during a call | |
CN102541538A (en) | Picture displaying method and device based on mobile terminal | |
CN105359121A (en) | Remote operation of applications using received data | |
CN105760226B (en) | Method and device for quickly starting camera of mobile terminal and mobile terminal | |
CN105335178B (en) | Starting control method and device | |
CN104133711A (en) | Camera safe switching method based on Android system | |
WO2015078211A1 (en) | Method and device for browser to decode picture, and client | |
WO2022218111A1 (en) | Method and apparatus for displaying application interface, and terminal and storage medium | |
WO2023087897A1 (en) | Page display method and device | |
CN107678656A (en) | Method, device, mobile terminal and storage medium for enabling shortcut function | |
CN112312058B (en) | Interaction method and device and electronic equipment | |
JP6257424B2 (en) | Information processing apparatus and computer program | |
WO2025055729A1 (en) | Picture switching method and apparatus for head unit screen, and electronic device, and storage medium | |
CN107395901A (en) | Camera activation method, device and terminal | |
CN107943533B (en) | Image acquisition method, device, storage medium and electronic device | |
Liu et al. | ACES-Application cloud for embedded systems | |
CN119166539A (en) | Method, device and electronic device for managing memory |
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: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CB02 | Change of applicant information | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190628 |
|
CF01 | Termination of patent right due to non-payment of annual fee |