The invention discloses a mobile phone quick photographing method based on external interruption and a photographing shortcut key. The mobile phone is equipped with a central processing unit for detecting and responding to external interruption, which comprises the following steps: (1) the mobile phone waits for the user's operation in the mobile phone lock screen state; (2) the user enters the photographing through the interruption current program issued by the interruption source. Procedure requests; (3) The CPU determines whether the interrupt is allowed and whether the interrupt is blocked; (4) Priority queuing; (5) The CPU stops the current program, protects the breakpoint address and the current state of the mobile phone, and transfers to the photographing program; (6) executes the photographing program; (7) restores the protected state and executes the \interrupt return\ instruction back. To the interrupted program, the invention can enter the photographing program by pressing the photographing shortcut key in the state of the mobile phone locking screen, which is convenient and fast.
【技术实现步骤摘要】
一种基于外部中断的手机快捷拍照方法及手机拍照快捷键
本专利技术涉及电子产品领域,具体涉及一种手机快捷拍照的方法及手机拍照快捷键。
技术介绍
随着智能手机的迅速发展,人们的生活越来越离不开手机,人们可以利用手机进行通话、通信、拍照、录像、游戏等等,在实际生活中,当人们想利用手机进行拍照时,需进行手机解锁、寻找拍照APP、打开APP并调节至需要的模式,而人们想要拍摄的事物往往转瞬即逝,上述流程过于复杂费时,因此提供一种快捷拍照的方法和快捷拍照的按键成为本领域人员亟需解决的一个问题。
技术实现思路
有鉴于此,本专利技术提供了一种基于外部中断的手机快捷拍照方法,手机安装有检测和响应外部中断的中央处理器,包括以下步骤:(1)在手机锁屏状态下,手机等待用户的操作;(2)用户通过中断源发出的中断当前程序进入拍照程序请求;(3)中央处理器判断是否允许中断和该中断是否被屏蔽;(4)优先权排队;(5)中央处理器停止当前程序,保护断点地址和手机当前状态,转入拍照程序;(6)执行拍照程序;(7)恢复被保护的状态,执行“中断返回”指令回到被中断的程序。一种应用所述基于外部中断的手机快捷拍照方法的手机拍照快捷键,所述手机拍照快捷键有两个并且相邻设置于手机的同一侧,所述手机拍照快捷键电连接所述步骤(2)中的中断源。进一步的,手机拍照快捷键可以为圆形、椭圆形、多边形中的任意一种形状。进一步的,手机拍照快捷键采用按压启动方式。进一步的,两个手机拍照快捷键需同时按压才可以发送步骤(2)所述的中断当前程序进入拍照程序请求。本专利技术的有益效果是:在手机锁屏状态下,通过按压拍照快捷键即可发送中断锁屏 ...
【技术保护点】
1.一种基于外部中断的手机快捷拍照方法,手机(1)安装有检测和响应外部中断的中央处理器,其特征在于,包括以下步骤:(1)在手机(1)锁屏状态下,等待用户的操作;(2)用户通过中断源发出的中断当前程序进入拍照程序请求;(3)中央处理器判断是否允许中断和该中断是否被屏蔽;(4)优先权排队;(5)中央处理器停止当前程序,保护断点地址和手机当前状态,转入拍照程序;(6)执行拍照程序;(7)恢复被保护的状态,执行“中断返回”指令回到被中断的程序。
【技术特征摘要】
1.一种基于外部中断的手机快捷拍照方法,手机(1)安装有检测和响应外部中断的中央处理器,其特征在于,包括以下步骤:(1)在手机(1)锁屏状态下,等待用户的操作;(2)用户通过中断源发出的中断当前程序进入拍照程序请求;(3)中央处理器判断是否允许中断和该中断是否被屏蔽;(4)优先权排队;(5)中央处理器停止当前程序,保护断点地址和手机当前状态,转入拍照程序;(6)执行拍照程序;(7)恢复被保护的状态,执行“中断返回”指令回到被中断的程序。2.一种应用权利要求1所述基于外部中断的手机快捷拍照方法的手机...
还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。