Shooting method and terminal

The embodiment of the invention provides a shooting method and a terminal. The shooting method comprises the steps of obtaining a residual system memory after a camera is started up; if the residual system memory is less than a first preset memory threshold, calling a camera control interface provid...

Ausführliche Beschreibung

Gespeichert in:
Bibliographische Detailangaben
1. Verfasser: ZHUANG XIAOJIAN
Format: Patent
Sprache:chi ; eng
Schlagworte:
Online-Zugang:Volltext bestellen
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
Beschreibung
Zusammenfassung:The embodiment of the invention provides a shooting method and a terminal. The shooting method comprises the steps of obtaining a residual system memory after a camera is started up; if the residual system memory is less than a first preset memory threshold, calling a camera control interface provided by the system to carry out configuration so as to enable the camera to work in a non-zero delay shooting mode; and in response to a shooting instruction triggered by a user, controlling the camera to shoot based on the configured shooting mode. The terminal controls the camera to work in a shooting mode with a relatively low memory occupation rate when the system memory is insufficient, so that the phenomena such as system halt or restart due to insufficient memory are avoided. 本发明实施例公开了种拍照方法及终端,其中,拍照方法包括:在相机启动后获取系统剩余内存;若所述系统剩余内存小于第预设内存阈值,则调用系统提供的相机控制接口执行配置,使所述相机工作于非零延时拍照模式;响应用户触发的拍照指令,控制所述相机根据所配置的拍照模式拍照。终端在系统内存不足时控制相机工作于内存占用率较低的拍照模式,避免了因内存不足导致的死机或重启等现象。