CN116744106B - Camera application control method and terminal device - Google Patents
Camera application control method and terminal device Download PDFInfo
- Publication number
- CN116744106B CN116744106B CN202211310555.7A CN202211310555A CN116744106B CN 116744106 B CN116744106 B CN 116744106B CN 202211310555 A CN202211310555 A CN 202211310555A CN 116744106 B CN116744106 B CN 116744106B
- Authority
- CN
- China
- Prior art keywords
- camera
- camera module
- terminal device
- moment
- module
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 91
- 230000004044 response Effects 0.000 claims abstract description 24
- 238000004590 computer program Methods 0.000 claims description 15
- 238000003860 storage Methods 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims description 7
- 230000006870 function Effects 0.000 description 23
- 238000010586 diagram Methods 0.000 description 20
- 230000008569 process Effects 0.000 description 11
- 230000009286 beneficial effect Effects 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 6
- 229920001621 AMOLED Polymers 0.000 description 3
- 101100233916 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) KAR5 gene Proteins 0.000 description 3
- 238000004891 communication Methods 0.000 description 3
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004519 manufacturing process Methods 0.000 description 3
- 230000003287 optical effect Effects 0.000 description 3
- 101001121408 Homo sapiens L-amino-acid oxidase Proteins 0.000 description 2
- 101000827703 Homo sapiens Polyphosphoinositide phosphatase Proteins 0.000 description 2
- 102100026388 L-amino-acid oxidase Human genes 0.000 description 2
- 102100023591 Polyphosphoinositide phosphatase Human genes 0.000 description 2
- 101100012902 Saccharomyces cerevisiae (strain ATCC 204508 / S288c) FIG2 gene Proteins 0.000 description 2
- 230000003190 augmentative effect Effects 0.000 description 2
- 238000004422 calculation algorithm Methods 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000010295 mobile communication Methods 0.000 description 2
- 238000009877 rendering Methods 0.000 description 2
- 238000001356 surgical procedure Methods 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 238000003491 array Methods 0.000 description 1
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000015572 biosynthetic process Effects 0.000 description 1
- 210000000988 bone and bone Anatomy 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000014509 gene expression Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000002360 preparation method Methods 0.000 description 1
- 239000002096 quantum dot Substances 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 230000003068 static effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000003786 synthesis reaction Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0481—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
- G06F3/04817—Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D30/00—Reducing energy consumption in communication networks
- Y02D30/70—Reducing energy consumption in communication networks in wireless communication networks
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Studio Devices (AREA)
Abstract
本申请提供了一种相机应用的控制方法和终端设备,该终端设备中包括第一摄像头模组和物理层PHY装置。本申请提供的方法包括:检测到用户对相机应用的第一操作,第一操作用于打开相机应用,或者第一操作用于切换相机应用的相机模式;响应于第一操作,在第一时刻使能第一摄像头模组;在第二时刻使能PHY装置,第二时刻晚于第一时刻,且第二时刻位于第一时段内,第一时段内为第一摄像头模组的上电引脚均为高电平的时段。本申请提供的方法,有利于降低相机应用在打开或者切换相机模式时出现黑屏的概率。
The present application provides a control method and terminal device for a camera application, wherein the terminal device includes a first camera module and a physical layer PHY device. The method provided by the present application includes: detecting a first operation of a user on a camera application, wherein the first operation is used to open the camera application, or the first operation is used to switch the camera mode of the camera application; in response to the first operation, enabling the first camera module at a first moment; enabling the PHY device at a second moment, wherein the second moment is later than the first moment, and the second moment is within a first time period, wherein the power-on pins of the first camera module are all at a high level. The method provided by the present application is conducive to reducing the probability of a black screen when the camera application is opened or the camera mode is switched.
Description
技术领域Technical Field
本申请涉及终端技术领域,尤其涉及一种相机应用的控制方法和终端设备。The present application relates to the field of terminal technology, and in particular to a camera application control method and terminal device.
背景技术Background technique
终端设备一般均包括相机应用,用户可以使用相机应用进行拍照和录像。目前,终端设备在运行相机应用时,会遇到如下问题:Terminal devices generally include a camera application, and users can use the camera application to take photos and videos. Currently, when running the camera application, the terminal device may encounter the following problems:
在打开相机应用或者切换相机模式(例如,从拍照模式切换至录像模式或者从录像模式切换至拍照模式)时,终端设备会出现黑屏的情况,严重影响用户体验。When opening a camera application or switching camera modes (for example, switching from photo mode to video mode or from video mode to photo mode), a black screen may appear on the terminal device, seriously affecting the user experience.
发明内容Summary of the invention
本申请提供一种相机应用的控制方法和终端设备,有利于降低相机应用在打开或者切换相机模式时出现黑屏的概率。The present application provides a control method and terminal device for a camera application, which are helpful in reducing the probability of a black screen appearing when the camera application is opened or the camera mode is switched.
第一方面,本申请提供一种相机应用的控制方法,可以应用于终端设备,该终端设备中包括第一摄像头模组和物理层(Physical,PHY)装置。本申请提供的方法包括:检测到用户对相机应用的第一操作,第一操作用于打开相机应用,或者第一操作用于切换相机应用的相机模式;响应于第一操作,在第一时刻使能第一摄像头模组;在第二时刻使能PHY装置,第二时刻晚于第一时刻,且第二时刻位于第一时段内,第一时段内为第一摄像头模组的上电引脚均为高电平的时段。In a first aspect, the present application provides a method for controlling a camera application, which can be applied to a terminal device, wherein the terminal device includes a first camera module and a physical layer (PHY) device. The method provided by the present application includes: detecting a first operation of a user on a camera application, wherein the first operation is used to open the camera application, or the first operation is used to switch a camera mode of the camera application; in response to the first operation, enabling the first camera module at a first moment; enabling the PHY device at a second moment, wherein the second moment is later than the first moment, and the second moment is within a first time period, wherein the first time period is a time period when the power-on pins of the first camera module are all at a high level.
第一操作可以是用户对相机应用的点击操作、滑动操作或者双击操作,本申请实施例对此不作限定。The first operation may be a click operation, a slide operation, or a double-click operation of the user on the camera application, which is not limited in this embodiment of the present application.
第一摄像头模组是为第一操作所服务的摄像头模组。The first camera module is a camera module serving the first operation.
示例性地,终端设备包括3个摄像头模组,这3个摄像头模组分别为摄像头模组1、摄像头模组2以及摄像头模组3。终端设备可以在相机应用打开时使用摄像头模组1,在人像拍照模式下使用摄像头模组2,在录像模式下使用摄像头模组3。若第一操作用于打开相机应用,终端设备检测到该第一操作,终端设备可以在第一时刻使能摄像头模组1。若第一操作用于切换至相机应用的人像拍照模式,终端设备可以在第一时刻使能摄像头模组2。若第一操作用于切换至相机应用的录像模式,终端设备可以在第一时刻使能摄像头模组3。Exemplarily, the terminal device includes three camera modules, which are camera module 1, camera module 2, and camera module 3. The terminal device can use camera module 1 when the camera application is opened, use camera module 2 in portrait mode, and use camera module 3 in video mode. If the first operation is used to open the camera application, the terminal device detects the first operation, and the terminal device can enable camera module 1 at the first moment. If the first operation is used to switch to the portrait mode of the camera application, the terminal device can enable camera module 2 at the first moment. If the first operation is used to switch to the video mode of the camera application, the terminal device can enable camera module 3 at the first moment.
终端设备响应于第一操作,可以先为第一摄像头模组上电,该第一摄像头模组的上电时序为LP00、LP10以及LP11。第一时刻在此上电时序内。In response to the first operation, the terminal device may first power on the first camera module, and the power-on timing sequence of the first camera module is LP00, LP10 and LP11. The first moment is within this power-on timing sequence.
终端设备在第一时刻使能第一摄像头模组,具体可以包括:终端设备检测第一时刻到达时,向第一摄像头模组发送使能指令,该使能指令用于指示第一摄像头模组使能。第一摄像头模组接收该使能指令后,可以基于使能指令,进行使能。此时,第一摄像头模组具有获取图像数据的能力,但未获取图像数据。The terminal device enables the first camera module at the first moment, which may specifically include: when the terminal device detects that the first moment has arrived, sending an enable instruction to the first camera module, the enable instruction is used to instruct the first camera module to enable. After receiving the enable instruction, the first camera module can be enabled based on the enable instruction. At this time, the first camera module has the ability to obtain image data, but does not obtain image data.
第二时刻晚于第一时刻,也可以称为第二时刻在第一时刻之后,本申请实施例对此不作限定。第二时刻晚于第一时刻,则终端设备先使能第一摄像头模组,再使能PHY装置。The second moment is later than the first moment, which can also be referred to as the second moment being after the first moment, and the present application embodiment does not limit this. If the second moment is later than the first moment, the terminal device first enables the first camera module and then enables the PHY device.
终端设备在第二时刻使能PHY装置,具体可以包括:终端设备检测第二时刻到达时,向PHY装置发送使能指令,该使能指令用于指示PHY装置使能。PHY装置接收该使能指令后,可以基于使能指令,进行使能。The terminal device enables the PHY device at the second moment, which may specifically include: when the terminal device detects that the second moment has arrived, the terminal device sends an enable instruction to the PHY device, the enable instruction being used to instruct the PHY device to enable. After receiving the enable instruction, the PHY device may enable itself based on the enable instruction.
第一时段内为第一摄像头模组的上电引脚均为高电平的时段,即LP11时长内,此时,PHY装置使能,且第一摄像头模组的上电时序处于LP11时长内,PHY装置具有接收获取图像数据的能力。The first time period is the time period when the power-on pins of the first camera module are all at a high level, that is, the LP11 duration. At this time, the PHY device is enabled, and the power-on timing of the first camera module is within the LP11 duration. The PHY device has the ability to receive and acquire image data.
本申请提供的相机应用的控制方法,检测到用户对相机应用的第一操作,响应于该第一操作,可以使摄像头模组使能,再使PHY装置使能,且PHY装置使能后,摄像头模组的上电时序处于LP11,使得PHY装置使能后即可具有接收图像数据的能力,有利于避免相机界面黑屏,可以提高用户体验。The control method of the camera application provided in the present application detects a first operation of the user on the camera application, and in response to the first operation, the camera module can be enabled, and then the PHY device can be enabled. After the PHY device is enabled, the power-on timing of the camera module is in LP11, so that the PHY device can receive image data after being enabled, which is beneficial to avoiding a black screen on the camera interface and can improve the user experience.
结合第一方面,在第一方面的某些实现方式中,第一时刻位于第二时段的起始时刻,第二时刻与第一时刻的差值大于或等于第一时长,且差值小于或等于第二时长,第一时长为第二时段的时长,第二时长为第二时段的时长与第一时段的时长之和,第二时段为第一摄像头模组的上电引脚中第一引脚为高电平且第二引脚为低电平的时段。In combination with the first aspect, in certain implementations of the first aspect, the first moment is at the starting moment of the second time period, the difference between the second moment and the first moment is greater than or equal to the first duration, and the difference is less than or equal to the second duration, the first duration is the duration of the second time period, the second duration is the sum of the duration of the second time period and the duration of the first time period, and the second time period is the time period when the first pin of the power-on pin of the first camera module is at a high level and the second pin is at a low level.
第二时段为第一摄像头模组的上电引脚中第一引脚为高电平且第二引脚为低电平的时段,即LP10。第一时刻可以位于第二时段的起始时刻,则第一时刻位于LP10的起始时刻。第一时长为第二时段的时长,即LP10时长。第二时刻与第一时刻的差值大于或等于LP10时长。The second period is a period in which the first pin of the power-on pin of the first camera module is at a high level and the second pin is at a low level, that is, LP10. The first moment may be located at the starting moment of the second period, and the first moment is located at the starting moment of LP10. The first duration is the duration of the second period, that is, the duration of LP10. The difference between the second moment and the first moment is greater than or equal to the duration of LP10.
第一时段为LP11,第二时长为第二时段的时长与第一时段的时长之和,则第二时长为(LP10+LP11)。第二时刻与第一时刻的差值小于或等于(LP10+LP11)。The first time period is LP11, the second time period is the sum of the second time period and the first time period, and the second time period is (LP10+LP11). The difference between the second moment and the first moment is less than or equal to (LP10+LP11).
第二时刻与第一时刻的差值大于或等于第一时长,且差值小于或等于第二时长,则第二时刻与第一时刻的差值大于或等于LP10时长,且差值小于或等于(LP10+LP11)。If the difference between the second moment and the first moment is greater than or equal to the first duration, and less than or equal to the second duration, then the difference between the second moment and the first moment is greater than or equal to the LP10 duration, and less than or equal to (LP10+LP11).
结合第一方面,在第一方面的某些实现方式中,终端设备包括第一配置信息,第一配置信息用于指示终端设备中需要调整PHY装置的使能时间的摄像头模组;其中,第一配置信息指示的摄像头模组包含第一摄像头模组。In combination with the first aspect, in certain implementations of the first aspect, the terminal device includes first configuration information, and the first configuration information is used to indicate a camera module in the terminal device that needs to adjust the enable time of the PHY device; wherein the camera module indicated by the first configuration information includes a first camera module.
第一配置信息可以以配置文件的形式表示。第一配置信息用于指示终端设备中需要调整PHY装置的使能时间的摄像头模组,第一配置信息可以包括需要调整PHY装置的使能时间的摄像头模组的名称或者标识。The first configuration information may be expressed in the form of a configuration file. The first configuration information is used to indicate the camera module in the terminal device that needs to adjust the enabling time of the PHY device, and the first configuration information may include the name or identifier of the camera module that needs to adjust the enabling time of the PHY device.
若第一配置信息指示的摄像头模组不包含第一摄像头模组,即第一摄像头模组不是需要调整PHY装置的使能时间的摄像头模组,终端设备可以不执行本申请实施例提供的后续步骤,可以采用现有技术的方法启动第一摄像头模组。If the camera module indicated by the first configuration information does not include the first camera module, that is, the first camera module is not a camera module that requires adjusting the enabling time of the PHY device, the terminal device may not execute the subsequent steps provided in the embodiment of the present application, and may use the method of the prior art to start the first camera module.
本申请提供的相机应用的控制方法,通过第一配置信息指示终端设备中需要调整PHY装置的使能时间的摄像头模组,只调整第一配置信息指示的摄像头模组,相比于调整终端设备中所有的摄像头模组,改动较小。The control method of the camera application provided in the present application indicates, through the first configuration information, the camera module in the terminal device whose enabling time of the PHY device needs to be adjusted, and only the camera module indicated by the first configuration information is adjusted. Compared with adjusting all the camera modules in the terminal device, the change is smaller.
结合第一方面,在第一方面的某些实现方式中,终端设备还包括第二摄像头模组,第二摄像头模组不包含于第一配置信息指示的摄像头模组;方法还包括:检测到用户对相机应用的第二操作,第二操作用于切换相机应用的相机模式,第二操作不同于第一操作;响应于第二操作,在第三时刻使能PHY装置;在第四时刻使能第二摄像头模组,第四时刻晚于第三时刻。In combination with the first aspect, in certain implementations of the first aspect, the terminal device also includes a second camera module, which is not included in the camera module indicated by the first configuration information; the method also includes: detecting a second operation of the user on the camera application, the second operation is used to switch the camera mode of the camera application, and the second operation is different from the first operation; in response to the second operation, enabling the PHY device at a third moment; enabling the second camera module at a fourth moment, and the fourth moment is later than the third moment.
第二摄像头模组不包含于第一配置信息指示的摄像头模组,也就是说,第二摄像头模组不是需要调整PHY装置的使能时间的摄像头模组。The second camera module is not included in the camera modules indicated by the first configuration information, that is, the second camera module is not a camera module that requires adjusting the enabling time of the PHY device.
第二操作不同于第一操作。若第一操作用于打开所述相机应用,则第二操作可以是用于切换相机应用的相机模式。若第一操作用于切换相机应用的相机模式,则第二操作也可以是用于切换相机应用的相机模式,但是,第一操作切换的相机模式与第二操作切换的相机模式不同。The second operation is different from the first operation. If the first operation is used to open the camera application, the second operation may be used to switch the camera mode of the camera application. If the first operation is used to switch the camera mode of the camera application, the second operation may also be used to switch the camera mode of the camera application, but the camera mode switched by the first operation is different from the camera mode switched by the second operation.
第二摄像头模组不是需要调整PHY装置的使能时间的摄像头模组,当终端设备检测到启动第二摄像头模组的第二操作时,响应于第二操作,在第三时刻使能PHY装置,在第四时刻使能第二摄像头模组,第四时刻晚于第三时刻,也就是说,终端设在使能第二摄像头模组之前使能PHY装置。The second camera module is not a camera module that requires adjustment of the enabling time of the PHY device. When the terminal device detects the second operation of starting the second camera module, in response to the second operation, the PHY device is enabled at a third moment, and the second camera module is enabled at a fourth moment. The fourth moment is later than the third moment. That is to say, the terminal is configured to enable the PHY device before enabling the second camera module.
终端设备可以采用现有技术的方法,在使能第二摄像头模组之前,使能PHY装置。The terminal device can adopt the method of the prior art to enable the PHY device before enabling the second camera module.
本申请提供的相机应用的控制方法,当第二摄像头模组不是需要调整PHY装置的使能时间的摄像头模组,且终端设备检测到启动第二摄像头模组的第二操作时,可以在使能第二摄像头模组之前,使能PHY装置。这两种控制方法可以根据不同的摄像头模组来回切换,灵活性较高。The control method of the camera application provided by the present application can enable the PHY device before enabling the second camera module when the second camera module is not the camera module that needs to adjust the enabling time of the PHY device and the terminal device detects the second operation of starting the second camera module. These two control methods can be switched back and forth according to different camera modules, which is highly flexible.
结合第一方面,在第一方面的某些实现方式中,第三时刻与第四时刻均位于第三时段内,第三时段内为第二摄像头模组的上电引脚均为高电平的时段。In combination with the first aspect, in certain implementations of the first aspect, the third moment and the fourth moment are both within a third time period, and the third time period is a time period when the power-on pins of the second camera module are all at a high level.
第三时段内为第二摄像头模组的上电引脚均为高电平的时段,即LP11时长内。The third time period is the time period when the power-on pins of the second camera module are all at a high level, that is, the LP11 duration.
终端设备响应于第二操作,可以先为第二摄像头模组上电,第二摄像头模组的上电时序可以为LP11。在第二摄像头模组的上电时序处于LP11内,终端设备可以先使能PHY装置再使能第二摄像头模组。PHY装置时,第二摄像头模组的上电时序处于LP11内,PHY装置使能后即可具有接收图像数据的能力。In response to the second operation, the terminal device may first power on the second camera module, and the power-on timing of the second camera module may be LP11. When the power-on timing of the second camera module is within LP11, the terminal device may first enable the PHY device and then enable the second camera module. When the PHY device is enabled, the power-on timing of the second camera module is within LP11, and the PHY device has the ability to receive image data after being enabled.
本申请提供的相机应用的控制方法,在第三时段内,可以先使能PHY装置再使能第二摄像头模组,无需调整PHY装置使能时间,有利于提高启动第二摄像头模组的效率。The control method of the camera application provided in the present application can enable the PHY device first and then enable the second camera module within the third time period, without adjusting the enabling time of the PHY device, which is beneficial to improving the efficiency of starting the second camera module.
第二方面,本申请提供一种终端设备,该终端设备包括:检测模块和处理设备。该检测模块用于:检测到用户对相机应用的第一操作,第一操作用于打开相机应用,或者第一操作用于切换相机应用的相机模式;处理模块用于:响应于第一操作,在第一时刻使能第一摄像头模组;在第二时刻使能PHY装置,第二时刻晚于第一时刻,且第二时刻位于第一时段内,第一时段内为第一摄像头模组的上电引脚均为高电平的时段。In a second aspect, the present application provides a terminal device, which includes: a detection module and a processing device. The detection module is used to: detect a first operation of a user on a camera application, the first operation is used to open the camera application, or the first operation is used to switch the camera mode of the camera application; the processing module is used to: respond to the first operation, enable the first camera module at a first moment; enable the PHY device at a second moment, the second moment is later than the first moment, and the second moment is within a first time period, and the first time period is a time period when the power-on pins of the first camera module are all high level.
结合第二方面,在第二方面的某些实现方式中,第一时刻位于第二时段的起始时刻,第二时刻与第一时刻的差值大于或等于第一时长,且差值小于或等于第二时长,第一时长为第二时段的时长,第二时长为第二时段的时长与第一时段的时长之和,第二时段为第一摄像头模组的上电引脚中第一引脚为高电平且第二引脚为低电平的时段。In combination with the second aspect, in certain implementations of the second aspect, the first moment is at the starting moment of the second time period, the difference between the second moment and the first moment is greater than or equal to the first duration, and the difference is less than or equal to the second duration, the first duration is the duration of the second time period, the second duration is the sum of the duration of the second time period and the duration of the first time period, and the second time period is the time period when the first pin of the power-on pin of the first camera module is at a high level and the second pin is at a low level.
结合第二方面,在第二方面的某些实现方式中,终端设备包括第一配置信息,第一配置信息用于指示终端设备中需要调整PHY装置的使能时间的摄像头模组;其中,第一配置信息指示的摄像头模组包含第一摄像头模组。In combination with the second aspect, in certain implementations of the second aspect, the terminal device includes first configuration information, and the first configuration information is used to indicate a camera module in the terminal device whose enable time of the PHY device needs to be adjusted; wherein the camera module indicated by the first configuration information includes a first camera module.
结合第二方面,在第二方面的某些实现方式中,终端设备还包括第二摄像头模组,第二摄像头模组不包含于第一配置信息指示的摄像头模组;上述检测模块还用于:检测到用户对相机应用的第二操作,第二操作用于切换相机应用的相机模式,第二操作不同于第一操作;处理模块还用于:响应于第二操作,在第三时刻使能PHY装置;在第四时刻使能第二摄像头模组,第四时刻晚于第三时刻。In combination with the second aspect, in certain implementations of the second aspect, the terminal device also includes a second camera module, which is not included in the camera module indicated by the first configuration information; the above-mentioned detection module is also used to: detect a second operation of the user on the camera application, the second operation is used to switch the camera mode of the camera application, and the second operation is different from the first operation; the processing module is also used to: enable the PHY device at a third moment in response to the second operation; enable the second camera module at a fourth moment, and the fourth moment is later than the third moment.
结合第二方面,在第二方面的某些实现方式中,第三时刻与第四时刻均位于第三时段内,第三时段内为第二摄像头模组的上电引脚均为高电平的时段。In combination with the second aspect, in certain implementations of the second aspect, the third moment and the fourth moment are both within a third time period, and the third time period is a time period when the power-on pins of the second camera module are all at a high level.
第三方面,本申请提供一种终端设备,终端设备也可以称为终端(terminal)、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobile terminal,MT)等。终端设备可以是手机(mobile phone)、智能电视、穿戴式设备、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmentedreality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self-driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。In a third aspect, the present application provides a terminal device, which may also be referred to as a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The terminal device may be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc.
该终端设备包括:处理器和存储器;存储器存储计算机执行指令;处理器执行存储器存储的计算机执行指令,使得终端设备执行如第一方面的方法。The terminal device comprises: a processor and a memory; the memory stores computer-executable instructions; the processor executes the computer-executable instructions stored in the memory, so that the terminal device executes the method of the first aspect.
第四方面,本申请提供一种计算机可读存储介质,计算机可读存储介质存储有计算机程序,计算机程序被处理器执行时实现如第一方面的方法。In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method of the first aspect is implemented.
第五方面,本申请提供一种计算机程序产品,计算机程序产品包括计算机程序,当计算机程序被运行时,使得计算机执行如第一方面的方法。In a fifth aspect, the present application provides a computer program product, which includes a computer program. When the computer program is executed, the computer executes the method of the first aspect.
第六方面,本申请提供了一种芯片,芯片包括处理器,处理器用于调用存储器中的计算机程序,以执行如第一方面所述的方法。In a sixth aspect, the present application provides a chip, the chip comprising a processor, the processor being used to call a computer program in a memory to execute the method described in the first aspect.
应当理解的是,本申请的第二方面至第六方面与本申请的第一方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。It should be understood that the second to sixth aspects of the present application correspond to the technical solutions of the first aspect of the present application, and the beneficial effects achieved by each aspect and the corresponding feasible implementation methods are similar and will not be repeated here.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1是一种相机应用打开的示意性图;FIG1 is a schematic diagram of opening a camera application;
图2是一种相机模式切换的示意性图;FIG2 is a schematic diagram of a camera mode switch;
图3是一种图像数据传输的示意图;FIG3 is a schematic diagram of image data transmission;
图4是一种LP模式的时序的示意图;FIG4 is a schematic diagram of a timing sequence of an LP mode;
图5是本申请实施例提供的一种终端设备的硬件结构图;FIG5 is a hardware structure diagram of a terminal device provided in an embodiment of the present application;
图6是本申请实施例适用的一种终端设备的软件结构框图;FIG6 is a software structure block diagram of a terminal device applicable to an embodiment of the present application;
图7是本申请实施例提供的一种相机应用的控制方法的示意性流程图;FIG. 7 is a schematic flow chart of a method for controlling a camera application provided in an embodiment of the present application;
图8是本申请实施例提供的一种相机应用的控制方法的时序示意图;FIG8 is a timing diagram of a method for controlling a camera application provided in an embodiment of the present application;
图9是本申请实施例提供的另一种相机应用的控制方法的示意性流程图;FIG9 is a schematic flow chart of another camera application control method provided in an embodiment of the present application;
图10是本申请实施例提供的一种终端设备的示意性框图;FIG10 is a schematic block diagram of a terminal device provided in an embodiment of the present application;
图11是本申请实施例提供的另一种终端设备的示意性框图。FIG. 11 is a schematic block diagram of another terminal device provided in an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图,对本申请中的技术方案进行描述。The technical solution in this application will be described below in conjunction with the accompanying drawings.
终端设备一般均包括相机应用,用户可以使用相机应用进行拍照和录像。目前,终端设备在运行相机应用时,会遇到如下问题:在打开相机应用或者切换相机模式(例如,从拍照模式切换至录像模式或者从录像模式切换至拍照模式)时,终端设备会出现黑屏的情况,严重影响用户体验。Terminal devices generally include a camera application, and users can use the camera application to take photos and videos. Currently, when a terminal device runs a camera application, the following problems may occur: when the camera application is opened or the camera mode is switched (for example, from the photo mode to the video mode or from the video mode to the photo mode), the terminal device will display a black screen, which seriously affects the user experience.
本申请实施例以终端设备是手机为例,详细介绍相机应用出现黑屏的场景。The embodiment of the present application takes a mobile phone as an example of a terminal device and introduces in detail the scenario where a black screen appears in a camera application.
在一种可能的场景中,用户在打开相机应用时,手机出现黑屏。图1示出了一种相机应用打开的示意性图。如图1中的a界面所示,手机的桌面包括多个应用的图标,其中,这多个应用的图标包括相机应用。用户可以通过点击相机应用的图标打开相机应用。当手机检测到用户点击相机应用图标的操作时,响应于该操作,手机可以显示相机界面,即显示图1中的b界面。如图1中的b界面所示,相机界面显示黑屏,或者,相机界面黑屏一段时间后显示图像。这种情况,会严重影响用户体验。In one possible scenario, when the user opens the camera application, a black screen appears on the phone. Figure 1 shows a schematic diagram of opening a camera application. As shown in interface a in Figure 1, the desktop of the mobile phone includes icons of multiple applications, wherein the icons of these multiple applications include a camera application. The user can open the camera application by clicking the icon of the camera application. When the mobile phone detects that the user clicks the camera application icon, in response to the operation, the mobile phone can display the camera interface, that is, display interface b in Figure 1. As shown in interface b in Figure 1, the camera interface displays a black screen, or the camera interface displays an image after a period of black screen. This situation will seriously affect the user experience.
在另一种可能的场景中,用户切换相机模式时,手机出现黑屏。图2示出了一种相机模式切换的示意性图。如图2中的a界面所示,手机的相机应用可以为用户提供视频模式、照片模式和人像模式。手机的相机界面可以显示视频选项、照片选项和人像选项。在图2中的a界面中,相机应用处于照片模式。用户可以通过点击人像选项将照片模式切换至人像模式。当手机检测到用户点击人像选项的操作时,响应于该操作,手机切换至人像模式,可以显示图2中的b界面。如图2中的b界面所示,手机切换至人像模式,但界面为黑屏。这种情况,会严重影响用户体验。In another possible scenario, when the user switches the camera mode, a black screen appears on the mobile phone. FIG. 2 shows a schematic diagram of a camera mode switch. As shown in interface a in FIG. 2 , the camera application of the mobile phone can provide the user with video mode, photo mode and portrait mode. The camera interface of the mobile phone can display video options, photo options and portrait options. In interface a in FIG. 2 , the camera application is in photo mode. The user can switch the photo mode to portrait mode by clicking the portrait option. When the mobile phone detects that the user clicks the portrait option, in response to the operation, the mobile phone switches to portrait mode and can display interface b in FIG. 2 . As shown in interface b in FIG. 2 , the mobile phone switches to portrait mode, but the interface is black. This situation will seriously affect the user experience.
用户在打开相机应用或者切换相机模式时,手机出现黑屏,也就是未显示手机的摄像头所获得的图像数据。为了确定手机为什么不能显示摄像头所获得的图像数据,本申请实施例对摄像头所获得的图像数据的传输进行了研究。When the user opens the camera application or switches the camera mode, the mobile phone displays a black screen, that is, the image data obtained by the camera of the mobile phone is not displayed. In order to determine why the mobile phone cannot display the image data obtained by the camera, the embodiment of the present application studies the transmission of the image data obtained by the camera.
示例性地,图3示出了一种图像数据传输的示意图。如图3所示,手机包括摄像头模组、处理器以及显示装置。摄像头模组用于获取图像数据。处理器包括物理层(Physical,PHY)装置。其中,处理器可以是高通处理器(高通处理器也可以称为高通平台),但本申请实施例并不限于此。显示装置用于显示图像数据。PHY装置用于接收摄像头模组发送的图像数据,也可以称为PHY设备或者PHY芯片,本申请实施例对此不作限定。Exemplarily, FIG3 shows a schematic diagram of image data transmission. As shown in FIG3, the mobile phone includes a camera module, a processor and a display device. The camera module is used to acquire image data. The processor includes a physical layer (Physical, PHY) device. Among them, the processor may be a Qualcomm processor (Qualcomm processor may also be referred to as a Qualcomm platform), but the embodiments of the present application are not limited thereto. The display device is used to display image data. The PHY device is used to receive image data sent by the camera module, and may also be referred to as a PHY device or a PHY chip, which is not limited in the embodiments of the present application.
处理器检测到用户打开相机应用或者切换相机模式的操作,响应于该操作,可以指示摄像头模组获取图像数据。处理器可以通过PHY装置使用移动产业处理器接口(mobileindustry processor interface,MIPI)协议接收摄像头模组发送的图像数据。处理器可以控制显示装置显示从PHY装置获取的图像数据。The processor detects the operation of the user opening the camera application or switching the camera mode, and in response to the operation, can instruct the camera module to obtain image data. The processor can receive the image data sent by the camera module through the PHY device using the mobile industry processor interface (MIPI) protocol. The processor can control the display device to display the image data obtained from the PHY device.
PHY装置与摄像头模组之间的数据传输,需要满足MIPI协议规定的时序要求。MIPI协议规定了两种模式,这两种模式分别是低功耗(low power,LP)模式和高速度(highspeed,HS)模式。LP模式是图像数据传输之前的准备阶段,HS模式是图像数据传输阶段。LP模式可以包括LP00、LP10以及LP11。LP00用于表示摄像头模组的上电引脚均为低电平0;LP10用于表示摄像头模组的上电引脚一个引脚为低电平0、另一个引脚为高电平1;LP11用于表示摄像头模组的上电引脚均为高电平1。其中,摄像头模组的上电引脚可以包括PWDN(power down)引脚和RESETB引脚。The data transmission between the PHY device and the camera module needs to meet the timing requirements specified by the MIPI protocol. The MIPI protocol specifies two modes, namely low power (LP) mode and high speed (HS) mode. The LP mode is the preparation stage before image data transmission, and the HS mode is the image data transmission stage. The LP mode may include LP00, LP10, and LP11. LP00 is used to indicate that the power-on pins of the camera module are all low level 0; LP10 is used to indicate that one pin of the power-on pin of the camera module is low level 0 and the other pin is high level 1; LP11 is used to indicate that the power-on pins of the camera module are all high level 1. Among them, the power-on pins of the camera module may include the PWDN (power down) pin and the RESETB pin.
不同厂商生产的摄像头模组所使用的LP模式不同。存在一部分厂商生产的摄像头模组的上电时序为LP00、LP10以及LP11。LP00的时长、LP10的时长以及LP11的时长是厂商生产时设置的。Camera modules produced by different manufacturers use different LP modes. Some manufacturers produce camera modules with power-on timings of LP00, LP10, and LP11. The durations of LP00, LP10, and LP11 are set by the manufacturer during production.
处理器对摄像头模组的控制过程为先上电再使能最后传输图像数据。若摄像头模组的上电时序为LP00、LP10以及LP11,处理器为摄像头模组上电后,摄像头模组的时序处于LP00,当LP00时长到达,处于LP10时,处理器控制摄像头模组使能,并在LP11时长之后HS模式对应的时序中传输图像数据。其中,处理器控制摄像头模组使能,可以理解为摄像头准备开始工作,可以获取图像数据但未获取图像数据的阶段。The process of the processor controlling the camera module is to power on first, enable, and finally transmit image data. If the power-on timing of the camera module is LP00, LP10, and LP11, after the processor powers on the camera module, the timing of the camera module is in LP00. When the LP00 duration is reached and it is in LP10, the processor controls the camera module to be enabled and transmits image data in the timing corresponding to the HS mode after the LP11 duration. Among them, the processor controls the camera module to be enabled, which can be understood as the stage when the camera is ready to start working and can obtain image data but has not obtained image data.
目前,处理器检测到用户打开相机应用或者切换相机模式的操作,响应于该操作,可以为摄像头上电,并先使PHY装置使能,再使摄像头模组使能,最后通过PHY装置接收摄像头模组获取的图像数据,并将图像数据进行显示。Currently, the processor detects the user opening the camera application or switching the camera mode. In response to the operation, the camera can be powered on, and the PHY device can be enabled first, and then the camera module can be enabled. Finally, the image data obtained by the camera module can be received through the PHY device and the image data can be displayed.
若摄像头模组的上电时序为LP00、LP10以及LP11,处理器控制PHY装置使能时,摄像头模组的上电时序处于LP00,处理器控制摄像头模组使能时,摄像头模组的上电时序处于LP10。而PHY装置只能在摄像头模组的上电时序处于LP11时才可以接收摄像头模组发送的图像数据,故这种实现方式,PHY装置使能时,无法正常工作,等待摄像头模组的上电时序处于LP11时,PHY装置才可以接收摄像头模组发送的图像数据。在PHY装置使能至PHY装置可以接收摄像头模组发送的图像数据之间的时长内,手机处于黑屏状态。需要说明的是,PHY装置使能,且摄像头模组的上电时序处于LP11时,PHY装置只是具有接收图像数据的能力,但此时并未接收到图像数据。If the power-on sequence of the camera module is LP00, LP10 and LP11, when the processor controls the PHY device to be enabled, the power-on sequence of the camera module is in LP00, and when the processor controls the camera module to be enabled, the power-on sequence of the camera module is in LP10. However, the PHY device can only receive image data sent by the camera module when the power-on sequence of the camera module is in LP11. Therefore, in this implementation method, the PHY device cannot work normally when it is enabled. The PHY device can only receive image data sent by the camera module when the power-on sequence of the camera module is in LP11. During the time from when the PHY device is enabled to when the PHY device can receive image data sent by the camera module, the mobile phone is in a black screen state. It should be noted that when the PHY device is enabled and the power-on sequence of the camera module is in LP11, the PHY device only has the ability to receive image data, but no image data is received at this time.
示例性地,图4示出了一种LP模式的时序的示意图。摄像头模组的上电时序为LP00、LP10以及LP11,LP00的时长、LP10的时长以及LP11的时长是厂商生产时设置的。处理器检测到用户打开相机应用或者切换相机模式的操作,响应于该操作,可以为摄像头模组上电,摄像头模组的上电时序处于LP00,在LP00时长内,处理器控制PHY装置使能,此时,摄像头模组的上电时序未处于LP11,PHY装置不能正常工作,即不具有接收图像数据的能力。当LP00时长到达,处于LP10时,处理器控制摄像头模组使能。在LP10时长内,PHY装置不具有接收图像数据的能力。当LP10时长到达,处于LP11时,PHY装置具有接收图像数据的能力,且在LP11时长之后处于HS模式对应的时序内,PHY装置接收摄像头模组获取的图像数据。这种实现方式,PHY装置需要等待一段时间才能具有接收图像数据的能力,再发送至显示装置显示,造成相机界面黑屏的现象。Exemplarily, FIG4 shows a schematic diagram of the timing of the LP mode. The power-on timing of the camera module is LP00, LP10 and LP11, and the duration of LP00, the duration of LP10 and the duration of LP11 are set by the manufacturer during production. The processor detects the operation of the user opening the camera application or switching the camera mode. In response to the operation, the camera module can be powered on. The power-on timing of the camera module is in LP00. Within the LP00 duration, the processor controls the PHY device to be enabled. At this time, the power-on timing of the camera module is not in LP11, and the PHY device cannot work normally, that is, it does not have the ability to receive image data. When the LP00 duration is reached and it is in LP10, the processor controls the camera module to be enabled. Within the LP10 duration, the PHY device does not have the ability to receive image data. When the LP10 duration is reached and it is in LP11, the PHY device has the ability to receive image data, and after the LP11 duration, it is in the timing corresponding to the HS mode, and the PHY device receives the image data acquired by the camera module. In this implementation, the PHY device needs to wait for a period of time before it can receive image data and then send it to the display device for display, resulting in a black screen on the camera interface.
综上所述,用户在打开相机应用或者切换相机模式时,终端设备之所以会出现黑屏的情况,是因为终端设备中摄像头模组上电后的时序为LP00、LP10以及LP11,终端设备中处理器包括的接收图像数据的设备(例如上述PHY装置)使能时,摄像头模组的时序处于LP00,需要等待摄像头模组的时序处于LP11时,才能具有接收图像数据的能力。To summarize, the reason why a black screen appears on the terminal device when the user opens the camera application or switches the camera mode is that the timing of the camera module in the terminal device after power-on is LP00, LP10 and LP11, and when the device for receiving image data included in the processor of the terminal device (such as the above-mentioned PHY device) is enabled, the timing of the camera module is in LP00, and it is necessary to wait until the timing of the camera module is in LP11 before it can have the ability to receive image data.
有鉴于此,本申请实施例提供一种相机应用的控制方法和终端设备,检测到用户打开相机应用或者切换相机模式的操作,响应于该操作,可以为摄像头上电,并先使摄像头模组使能,再使PHY装置使能,PHY装置使能后,摄像头模组的时序处于LP11,也就是说,摄像头模组上电后,在摄像头模组的时序处于LP10时,控制摄像头模组使能,在摄像头模组的时序处于LP11时,控制摄像头模组使能,PHY装置使能后即可具有接收图像数据的能力,有利于降低相机界面黑屏的概率,可以提高用户体验。In view of this, an embodiment of the present application provides a camera application control method and terminal device, which detects the operation of a user opening a camera application or switching a camera mode. In response to the operation, the camera can be powered on, and the camera module can be enabled first, and then the PHY device can be enabled. After the PHY device is enabled, the timing of the camera module is in LP11, that is, after the camera module is powered on, when the timing of the camera module is in LP10, the camera module is controlled to be enabled, and when the timing of the camera module is in LP11, the camera module is controlled to be enabled. After the PHY device is enabled, the PHY device has the ability to receive image data, which is beneficial to reduce the probability of a black screen on the camera interface and can improve the user experience.
本申请实施例提供的方法可以应用于包括相机应用的任意终端设备,例如,手机、平板电脑、个人计算机(personal computer,PC)等。终端设备也可以称为终端(terminal)、用户设备(user equipment,UE)、移动台(mobile station,MS)、移动终端(mobileterminal,MT)等。终端设备可以是手机(mobile phone)、智能电视、穿戴式设备、平板电脑(Pad)、带无线收发功能的电脑、虚拟现实(virtual reality,VR)终端设备、增强现实(augmented reality,AR)终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self-driving)中的无线终端、远程手术(remote medical surgery)中的无线终端、智能电网(smart grid)中的无线终端、运输安全(transportation safety)中的无线终端、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的无线终端等等。本申请的实施例对终端设备所采用的具体技术和具体设备形态不做限定。The method provided in the embodiment of the present application can be applied to any terminal device including camera applications, such as mobile phones, tablet computers, personal computers (PC), etc. The terminal device can also be called a terminal, user equipment (UE), mobile station (MS), mobile terminal (MT), etc. The terminal device can be a mobile phone, a smart TV, a wearable device, a tablet computer (Pad), a computer with wireless transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical surgery, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, etc. The embodiment of the present application does not limit the specific technology and specific device form adopted by the terminal device.
为了能够更好地理解本申请实施例,下面对本申请实施例的终端设备的硬件结构进行介绍。示例性地,图5为本申请实施例提供的一种终端设备的硬件结构图。如图5所示,终端设备可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,收话器170B,麦克风170C,传感器模块180,按键190,指示器192,摄像头193,以及显示屏194等。In order to better understand the embodiment of the present application, the hardware structure of the terminal device of the embodiment of the present application is introduced below. Exemplarily, Figure 5 is a hardware structure diagram of a terminal device provided in an embodiment of the present application. As shown in Figure 5, the terminal device may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, a sensor module 180, a button 190, an indicator 192, a camera 193, and a display screen 194, etc.
可选地,上述传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。Optionally, the above-mentioned sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对终端设备的具体限定。在本申请另一些实施例中,终端设备可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the terminal device. In other embodiments of the present application, the terminal device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
本申请实施例只关注终端设备的处理器110,摄像头193,以及显示屏194。图5所示的终端设备可以通过摄像头193获取图像数据,并通过处理器110中的PHY装置接收图像数据,最后由显示屏194显示图像数据,本申请实施例仅对处理器110,摄像头193,以及显示屏194进行说明。The embodiment of the present application only focuses on the processor 110, the camera 193, and the display screen 194 of the terminal device. The terminal device shown in FIG5 can obtain image data through the camera 193, receive the image data through the PHY device in the processor 110, and finally display the image data on the display screen 194. The embodiment of the present application only describes the processor 110, the camera 193, and the display screen 194.
处理器110可以包括一个或多个处理单元。例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processingunit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。处理器110中还可以设置存储器,用于存储指令和数据。可以理解的是,处理器110可以是上述图3所示的示例中的处理器,可以包括PHY装置,可以具有上述图3所示的功能。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and/or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors. A memory may also be provided in the processor 110 for storing instructions and data. It is understandable that the processor 110 may be the processor in the example shown in FIG. 3 above, may include a PHY device, and may have the functions shown in FIG. 3 above.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从存储器中调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuitsound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purposeinput/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver/transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input/output (GPIO) interface, a subscriber identity module (SIM) interface, and/or a universal serial bus (USB) interface, etc.
终端设备通过GPU,显示屏194以及AP等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和AP。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The terminal device implements the display function through the GPU, the display screen 194 and the AP. The GPU is a microprocessor for image processing, which connects the display screen 194 and the AP. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
显示屏194用于显示图像、显示视频和接收滑动操作等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organiclight-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diod,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dotlight emitting diodes,QLED)等。在一些实施例中,终端设备可以包括1个或N个显示屏194,N为大于1的正整数。The display screen 194 is used to display images, display videos, and receive sliding operations, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light emitting diode or an active-matrix organic light emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light emitting diode (QLED), etc. In some embodiments, the terminal device may include 1 or N display screens 194, where N is a positive integer greater than 1.
终端设备可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及AP等实现拍摄功能。The terminal device can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and AP.
其中,ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。Among them, ISP is used to process the data fed back by camera 193. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,终端设备可以包括1个或N个摄像头193,N为大于1的正整数。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the terminal device may include 1 or N cameras 193, where N is a positive integer greater than 1.
视频编解码器用于对数字视频压缩或解压缩。终端设备可以支持一种或多种视频编解码器。这样,终端设备可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital videos. Terminal devices can support one or more video codecs. In this way, terminal devices can play or record videos in multiple coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
AP通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The AP outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.), or displays an image or video through the display screen 194. In some embodiments, the modem processor can be an independent device. In other embodiments, the modem processor can be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
终端设备的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。分层架构可以采用安卓(Android)系统,也可以采用苹果(IOS)系统,还可以采用其他操作系统,本申请实施例对此不作限定。下面以分层架构的Android系统为例,示例性说明终端设备的软件结构。The software system of the terminal device can adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The layered architecture can adopt an Android system, an Apple (IOS) system, or other operating systems, which are not limited in the embodiments of the present application. The following takes the Android system of the layered architecture as an example to illustrate the software structure of the terminal device.
图6为本申请实施例适用的一种终端设备的软件结构框图。分层架构将终端设备的软件系统分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,可以将Android系统分为四层,从上到下依次为应用程序层(applications)、应用程序框架层(application framework)、安卓运行时(Androidruntime)和系统库、硬件抽象层以及内核层(kernel)。本申请实施例仅对硬件抽象层进行了改进。FIG6 is a software structure diagram of a terminal device applicable to an embodiment of the present application. The layered architecture divides the software system of the terminal device into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system can be divided into four layers, from top to bottom, namely, the application layer (applications), the application framework layer (application framework), the Android runtime (Android runtime) and the system library, the hardware abstraction layer and the kernel layer (kernel). The embodiment of the present application only improves the hardware abstraction layer.
应用程序层可以包括一系列应用程序包,应用程序层通过调用应用程序框架层所提供的应用程序接口(application programming interface,API)运行应用程序。如图6所示,应用程序包可以包括相机,图库,日历,备忘录以及地图等应用程序。The application layer may include a series of application packages, and the application layer runs applications by calling the application programming interface (API) provided by the application framework layer. As shown in FIG6 , the application package may include applications such as camera, gallery, calendar, memo, and map.
应用程序框架层为应用程序层的应用程序提供API和编程框架。应用程序框架层包括一些预先定义的函数。如图6所示,应用程序框架层可以包括窗口管理器,内容提供器以及视图系统等。The application framework layer provides API and programming framework for the applications in the application layer. The application framework layer includes some predefined functions. As shown in FIG6 , the application framework layer may include a window manager, a content provider, and a view system.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕等。内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, capture the screen, etc. The content provider is used to store and obtain data and make the data accessible to applications. The data can include video, images, audio, calls made and received, browsing history and bookmarks, phone books, etc. The view system includes visual controls, such as controls for displaying text, controls for displaying pictures, etc. The view system can be used to build applications. The display interface can be composed of one or more views. For example, the display interface including the SMS notification icon can include a view for displaying text and a view for displaying pictures.
安卓系统运行时包括核心库和虚拟机。安卓系统运行时负责安卓系统的调度和管理。核心库包含两部分:一部分是Java语言需要调用的功能函数,另一部分是安卓的核心库。应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的Java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。系统库可以包含多个功能的模块,例如:表面管理器,媒体库以及三维图形处理库等。The Android system runtime includes a core library and a virtual machine. The Android system runtime is responsible for the scheduling and management of the Android system. The core library consists of two parts: one is the function that the Java language needs to call, and the other is the Android core library. The application layer and the application framework layer run in the virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection. The system library can contain modules with multiple functions, such as: surface manager, media library, and 3D graphics processing library.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了二维图层和三维图层的融合。媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:JPG,PNG等。三维图形处理库用于实现三维图形绘图,图像渲染,合成和图层处理等。The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications. The media library supports playback and recording of multiple common audio and video formats, as well as static image files. The media library can support multiple audio and video encoding formats, such as JPG, PNG, etc. The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, synthesis and layer processing.
硬件抽象层包括相机服务模块。相机服务模块用于为相机应用提供服务。相机服务模块可以包括上电模块、使能模块以及配置模块。配置模块包括配置信息,该配置信息用于指示需要调整PHY装置的使能时间的摄像头模组。配置模块可以用于判断用户启动的摄像头模组是否为需要调整PHY装置的使能时间的摄像头模组,并基于判断结果向上电模块发送指示信息。上电模块可以基于配置模块发送的指示信息为终端设备包含的摄像头模组上电。其中,摄像头上电时序可以包括LP00、LP10以及LP11,或者,摄像头上电时序可以为LP11。上电模块还可以确定PHY装置和摄像头模组的使能时间,并将这些信息发送至使能模块。使能模块可以基于上电模块发送的信息使能PHY装置和摄像头模组。The hardware abstraction layer includes a camera service module. The camera service module is used to provide services for camera applications. The camera service module may include a power-on module, an enable module and a configuration module. The configuration module includes configuration information, which is used to indicate the camera module for which the enable time of the PHY device needs to be adjusted. The configuration module can be used to determine whether the camera module started by the user is a camera module for which the enable time of the PHY device needs to be adjusted, and send indication information to the power-on module based on the judgment result. The power-on module can power on the camera module included in the terminal device based on the indication information sent by the configuration module. Among them, the camera power-on timing may include LP00, LP10 and LP11, or the camera power-on timing may be LP11. The power-on module can also determine the enable time of the PHY device and the camera module, and send this information to the enable module. The enable module can enable the PHY device and the camera module based on the information sent by the power-on module.
内核层是硬件和软件之间的层。内核层用于驱动硬件,使得硬件工作。内核层至少包含显示驱动,摄像头驱动以及蓝牙驱动等,本申请实施例对此不做限制。The kernel layer is a layer between hardware and software. The kernel layer is used to drive the hardware to make the hardware work. The kernel layer at least includes a display driver, a camera driver, and a Bluetooth driver, etc., which are not limited in the embodiments of the present application.
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。In order to clearly describe the technical solutions of the embodiments of the present application, in the embodiments of the present application, words such as "first" and "second" are used to distinguish the same or similar items with substantially the same functions and effects. Those skilled in the art can understand that words such as "first" and "second" do not limit the quantity and execution order, and words such as "first" and "second" do not necessarily limit the difference.
需要说明的是,本申请中,“示例性地”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性地”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性地”或者“例如”等词旨在以具体方式呈现相关概念。It should be noted that, in this application, words such as "exemplarily" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplarily" or "for example" in this application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplarily" or "for example" is intended to present related concepts in a specific way.
此外,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a、b和c中的至少一项(个),可以表示:a,或b,或c,或a和b,或a和c,或b和c,或a、b和c,其中a,b,c可以是单个,也可以是多个。In addition, "at least one" means one or more, and "plurality" means two or more. "And/or" describes the association relationship of associated objects, indicating that three relationships may exist. For example, A and/or B can mean: A exists alone, A and B exist at the same time, and B exists alone, where A and B can be singular or plural. The character "/" generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, or b, or c, or a and b, or a and c, or b and c, or a, b and c, where a, b, c can be single or multiple.
示例性地,图7示出了一种相机应用的控制方法700的示意性流程图。该方法700可以由包括第一摄像头模组和PHY装置的终端设备执行,例如,手机。终端设备的硬件结构图可以如上述图5所示,该终端设备的软件结构图可以如上述图6所示,但本申请实施例并不限于此。该方法700可以适用于上述图1和图2所示的场景,但本申请实施例并不限于此。需要说明的是,PHY装置可以包含于终端设备的处理器中,本申请实施例提供的方法也可以具体由终端设备的处理器执行。例如,终端设备中的高通处理器。Exemplarily, FIG7 shows a schematic flow chart of a control method 700 for a camera application. The method 700 can be executed by a terminal device including a first camera module and a PHY device, for example, a mobile phone. The hardware structure diagram of the terminal device can be as shown in FIG5 above, and the software structure diagram of the terminal device can be as shown in FIG6 above, but the embodiments of the present application are not limited thereto. The method 700 can be applicable to the scenarios shown in FIG1 and FIG2 above, but the embodiments of the present application are not limited thereto. It should be noted that the PHY device can be included in the processor of the terminal device, and the method provided in the embodiments of the present application can also be specifically executed by the processor of the terminal device. For example, a Qualcomm processor in a terminal device.
如图7所示,该方法700可以包括如下步骤:As shown in FIG. 7 , the method 700 may include the following steps:
S701、检测到用户对相机应用的第一操作,第一操作用于打开相机应用,或者第一操作用于切换相机应用的相机模式。S701: Detect a first operation of a user on a camera application, where the first operation is used to open the camera application, or the first operation is used to switch a camera mode of the camera application.
第一操作可以是用户对相机应用的点击操作、滑动操作或者双击操作,本申请实施例对此不作限定。The first operation may be a click operation, a slide operation, or a double-click operation of the user on the camera application, which is not limited in this embodiment of the present application.
若第一操作用于打开应用相机,则第一操作可以如上述图1所示的操作,但本申请实施例并不限于此。若第一操作用于切换相机应用的相机模式,则第一操作可以如上述图2所示的操作,但本申请实施例并不限于此。If the first operation is used to open the application camera, the first operation can be the operation shown in Figure 1 above, but the embodiment of the present application is not limited thereto. If the first operation is used to switch the camera mode of the camera application, the first operation can be the operation shown in Figure 2 above, but the embodiment of the present application is not limited thereto.
S702、响应于第一操作,在第一时刻使能第一摄像头模组。S702: In response to a first operation, enable a first camera module at a first moment.
第一摄像头模组是为第一操作所服务的摄像头模组。The first camera module is a camera module serving the first operation.
示例性地,终端设备包括3个摄像头模组,这3个摄像头模组分别为摄像头模组1、摄像头模组2以及摄像头模组3。终端设备可以在相机应用打开时使用摄像头模组1,在人像拍照模式下使用摄像头模组2,在录像模式下使用摄像头模组3。若第一操作用于打开相机应用,终端设备检测到该第一操作,终端设备可以在第一时刻使能摄像头模组1。若第一操作用于切换至相机应用的人像拍照模式,终端设备可以在第一时刻使能摄像头模组2。若第一操作用于切换至相机应用的录像模式,终端设备可以在第一时刻使能摄像头模组3。Exemplarily, the terminal device includes three camera modules, which are camera module 1, camera module 2, and camera module 3. The terminal device can use camera module 1 when the camera application is opened, use camera module 2 in portrait mode, and use camera module 3 in video mode. If the first operation is used to open the camera application, the terminal device detects the first operation, and the terminal device can enable camera module 1 at the first moment. If the first operation is used to switch to the portrait mode of the camera application, the terminal device can enable camera module 2 at the first moment. If the first operation is used to switch to the video mode of the camera application, the terminal device can enable camera module 3 at the first moment.
终端设备响应于第一操作,可以先为第一摄像头模组上电,该第一摄像头模组的上电时序为LP00、LP10以及LP11。第一时刻在此上电时序内。In response to the first operation, the terminal device may first power on the first camera module, and the power-on timing sequence of the first camera module is LP00, LP10 and LP11. The first moment is within this power-on timing sequence.
终端设备在第一时刻使能第一摄像头模组,具体可以包括:终端设备检测第一时刻到达时,向第一摄像头模组发送使能指令,该使能指令用于指示第一摄像头模组使能。第一摄像头模组接收该使能指令后,可以基于使能指令,进行使能。此时,第一摄像头模组具有获取图像数据的能力,但未获取图像数据。The terminal device enables the first camera module at the first moment, which may specifically include: when the terminal device detects that the first moment has arrived, sending an enable instruction to the first camera module, the enable instruction is used to instruct the first camera module to enable. After receiving the enable instruction, the first camera module can be enabled based on the enable instruction. At this time, the first camera module has the ability to obtain image data, but does not obtain image data.
S703、在第二时刻使能PHY装置,第二时刻晚于第一时刻,且第二时刻位于第一时段内,第一时段内为第一摄像头模组的上电引脚均为高电平的时段。S703, enabling the PHY device at a second moment, the second moment is later than the first moment, and the second moment is within a first time period, and the first time period is a time period when the power-on pins of the first camera module are all at a high level.
第二时刻晚于第一时刻,也可以称为第二时刻在第一时刻之后,本申请实施例对此不作限定。第二时刻晚于第一时刻,则终端设备先使能第一摄像头模组,再使能PHY装置。The second moment is later than the first moment, which can also be referred to as the second moment being after the first moment, and the present application embodiment does not limit this. If the second moment is later than the first moment, the terminal device first enables the first camera module and then enables the PHY device.
终端设备在第二时刻使能PHY装置,具体可以包括:终端设备检测第二时刻到达时,向PHY装置发送使能指令,该使能指令用于指示PHY装置使能。PHY装置接收该使能指令后,可以基于使能指令,进行使能。The terminal device enables the PHY device at the second moment, which may specifically include: when the terminal device detects that the second moment has arrived, the terminal device sends an enable instruction to the PHY device, the enable instruction being used to instruct the PHY device to enable. After receiving the enable instruction, the PHY device may enable itself based on the enable instruction.
第一时段内为第一摄像头模组的上电引脚均为高电平的时段,即LP11时长内,此时,PHY装置使能,且第一摄像头模组的上电时序处于LP11时长内,PHY装置具有接收获取图像数据的能力。The first time period is the time period when the power-on pins of the first camera module are all at a high level, that is, the LP11 duration. At this time, the PHY device is enabled, and the power-on timing of the first camera module is within the LP11 duration. The PHY device has the ability to receive and acquire image data.
可选地,上述第一时刻可以位于第二时段的起始时刻,第二时刻与第一时刻的差值大于或等于第一时长,且差值小于或等于第二时长,第一时长为第二时段的时长,第二时长为第二时段的时长与第一时段的时长之和,第二时段为第一摄像头模组的上电引脚中第一引脚为高电平且第二引脚为低电平的时段。Optionally, the above-mentioned first moment can be located at the starting moment of the second time period, the difference between the second moment and the first moment is greater than or equal to the first duration, and the difference is less than or equal to the second duration, the first duration is the duration of the second time period, the second duration is the sum of the duration of the second time period and the duration of the first time period, and the second time period is the time period when the first pin of the power-on pin of the first camera module is at a high level and the second pin is at a low level.
第二时段为第一摄像头模组的上电引脚中第一引脚为高电平且第二引脚为低电平的时段,即LP10。第一时刻可以位于第二时段的起始时刻,则第一时刻位于LP10的起始时刻。第一时长为第二时段的时长,即LP10时长。第二时刻与第一时刻的差值大于或等于LP10时长。The second period is a period in which the first pin of the power-on pin of the first camera module is at a high level and the second pin is at a low level, that is, LP10. The first moment may be located at the starting moment of the second period, and the first moment is located at the starting moment of LP10. The first duration is the duration of the second period, that is, the duration of LP10. The difference between the second moment and the first moment is greater than or equal to the duration of LP10.
第一时段为LP11,第二时长为第二时段的时长与第一时段的时长之和,则第二时长为(LP10+LP11)。第二时刻与第一时刻的差值小于或等于(LP10+LP11)。The first time period is LP11, the second time period is the sum of the second time period and the first time period, and the second time period is (LP10+LP11). The difference between the second moment and the first moment is less than or equal to (LP10+LP11).
第二时刻与第一时刻的差值大于或等于第一时长,且差值小于或等于第二时长,则第二时刻与第一时刻的差值大于或等于LP10时长,且差值小于或等于(LP10+LP11)。If the difference between the second moment and the first moment is greater than or equal to the first duration, and less than or equal to the second duration, then the difference between the second moment and the first moment is greater than or equal to the LP10 duration, and less than or equal to (LP10+LP11).
示例性地,图8示出了一种相机应用的控制方法的时序示意图。第一摄像头模组的上电时序为LP00、LP10以及LP11,LP00的时长、LP10的时长以及LP11的时长是厂商生产时设置的。终端设备检测到用户打开相机应用或者切换相机模式的操作,响应于该操作,可以为第一摄像头模组上电,第一摄像头模组的上电时序处于LP00,当LP00时长到达,处于LP10时,在第一时刻(即LP10的起始时刻)终端设备控制第一摄像头模组使能。当LP10时长到达,处于LP11时,在第二时刻(即LP11的时长内)终端设备控制PHY装置使能。此时,PHY装置具有接收图像数据的能力。在HS模式对应的时序内,终端设备通过第一摄像头模组获取图像数据,并通过PHY装置接收第一摄像头模组获取的图像数据,最后通过显示装置显示图像数据。Exemplarily, FIG8 shows a timing diagram of a control method for a camera application. The power-on timing of the first camera module is LP00, LP10, and LP11, and the duration of LP00, the duration of LP10, and the duration of LP11 are set by the manufacturer during production. The terminal device detects the operation of the user opening the camera application or switching the camera mode. In response to the operation, the first camera module can be powered on. The power-on timing of the first camera module is in LP00. When the LP00 duration is reached and it is in LP10, the terminal device controls the first camera module to be enabled at the first moment (i.e., the starting moment of LP10). When the LP10 duration is reached and it is in LP11, the terminal device controls the PHY device to be enabled at the second moment (i.e., within the duration of LP11). At this time, the PHY device has the ability to receive image data. Within the timing corresponding to the HS mode, the terminal device obtains image data through the first camera module, receives the image data obtained by the first camera module through the PHY device, and finally displays the image data through the display device.
本申请实施例提供的相机应用的控制方法,检测到用户对相机应用的第一操作,响应于该第一操作,可以使摄像头模组使能,再使PHY装置使能,且PHY装置使能后,摄像头模组的上电时序处于LP11,使得PHY装置使能后即可具有接收图像数据的能力,有利于避免相机界面黑屏,可以提高用户体验。The control method of the camera application provided in the embodiment of the present application detects the first operation of the user on the camera application, and in response to the first operation, the camera module can be enabled, and then the PHY device can be enabled. After the PHY device is enabled, the power-on timing of the camera module is in LP11, so that the PHY device can receive image data after being enabled, which is beneficial to avoiding a black screen on the camera interface and can improve the user experience.
作为一个可选的实施例,终端设备可以包括第一配置信息,第一配置信息用于指示终端设备中需要调整PHY装置的使能时间的摄像头模组;在上述S702、在第一时刻使能第一摄像头模组之前,方法700还可以包括:判断第一配置信息指示的摄像头模组是否包含第一摄像头模组,若第一配置信息指示的摄像头模组包含第一摄像头模组,在第一时刻使能第一摄像头模组。As an optional embodiment, the terminal device may include first configuration information, and the first configuration information is used to indicate a camera module in the terminal device whose enabling time of the PHY device needs to be adjusted; before the above S702, enabling the first camera module at the first moment, method 700 may also include: determining whether the camera module indicated by the first configuration information includes the first camera module; if the camera module indicated by the first configuration information includes the first camera module, enabling the first camera module at the first moment.
第一配置信息可以以配置文件的形式表示。第一配置信息用于指示终端设备中需要调整PHY装置的使能时间的摄像头模组,第一配置信息可以包括需要调整PHY装置的使能时间的摄像头模组的名称或者标识。The first configuration information may be expressed in the form of a configuration file. The first configuration information is used to indicate the camera module in the terminal device that needs to adjust the enabling time of the PHY device, and the first configuration information may include the name or identifier of the camera module that needs to adjust the enabling time of the PHY device.
示例性地,不同厂商生产的摄像头模组不同,摄像头模组的名称或者标识可以是厂商名称,终端设备出厂前,开发人员可以将生产需要调整PHY装置的使能时间的摄像头模组的厂商名称以第一配置信息预设于终端设备中。终端设备检测到启动摄像头模组的操作,如上述第一操作,终端设备可以判断第一配置信息是否包含启动的摄像头模组如第一摄像头模组。若第一配置信息包含启动的摄像头模组,则终端设备在第一时刻使能第一摄像头模组。Exemplarily, different manufacturers produce different camera modules, and the name or logo of the camera module can be the manufacturer's name. Before the terminal device leaves the factory, the developer can preset the manufacturer's name of the camera module that needs to adjust the enable time of the PHY device in the terminal device as the first configuration information. The terminal device detects an operation to start the camera module, such as the first operation mentioned above, and the terminal device can determine whether the first configuration information includes the started camera module, such as the first camera module. If the first configuration information includes the started camera module, the terminal device enables the first camera module at the first moment.
若第一配置信息指示的摄像头模组不包含第一摄像头模组,即第一摄像头模组不是需要调整PHY装置的使能时间的摄像头模组,终端设备可以不执行本申请实施例提供的后续步骤,可以采用现有技术的方法启动第一摄像头模组。If the camera module indicated by the first configuration information does not include the first camera module, that is, the first camera module is not a camera module that requires adjusting the enabling time of the PHY device, the terminal device may not execute the subsequent steps provided in the embodiment of the present application, and may use the method of the prior art to start the first camera module.
本申请实施例提供的相机应用的控制方法,通过第一配置信息指示终端设备中需要调整PHY装置的使能时间的摄像头模组,只调整第一配置信息指示的摄像头模组,相比于调整终端设备中所有的摄像头模组,改动较小。The control method of the camera application provided in the embodiment of the present application indicates, through the first configuration information, the camera module in the terminal device whose enable time of the PHY device needs to be adjusted, and only the camera module indicated by the first configuration information is adjusted, which requires smaller changes than adjusting all the camera modules in the terminal device.
作为一个可选的实施例,终端设备还包括第二摄像头模组,第二摄像头模组不包含于第一配置信息指示的摄像头模组;上述方法还可以包括:检测到用户对相机应用的第二操作,第二操作用于切换相机应用的相机模式,第二操作不同于第一操作;响应于第二操作,在第三时刻使能PHY装置;在第四时刻使能第二摄像头模组,第四时刻晚于第三时刻。As an optional embodiment, the terminal device also includes a second camera module, which is not included in the camera module indicated by the first configuration information; the above method may also include: detecting a second operation of the user on the camera application, the second operation is used to switch the camera mode of the camera application, and the second operation is different from the first operation; in response to the second operation, enabling the PHY device at a third moment; enabling the second camera module at a fourth moment, and the fourth moment is later than the third moment.
第二摄像头模组不包含于第一配置信息指示的摄像头模组,也就是说,第二摄像头模组不是需要调整PHY装置的使能时间的摄像头模组。The second camera module is not included in the camera module indicated by the first configuration information, that is, the second camera module is not a camera module that requires adjusting the enabling time of the PHY device.
第二操作不同于第一操作。若第一操作用于打开所述相机应用,则第二操作可以是用于切换相机应用的相机模式。若第一操作用于切换相机应用的相机模式,则第二操作也可以是用于切换相机应用的相机模式,但是,第一操作切换的相机模式与第二操作切换的相机模式不同。The second operation is different from the first operation. If the first operation is used to open the camera application, the second operation may be used to switch the camera mode of the camera application. If the first operation is used to switch the camera mode of the camera application, the second operation may also be used to switch the camera mode of the camera application, but the camera mode switched by the first operation is different from the camera mode switched by the second operation.
第二摄像头模组不是需要调整PHY装置的使能时间的摄像头模组,当终端设备检测到启动第二摄像头模组的第二操作时,响应于第二操作,在第三时刻使能PHY装置,在第四时刻使能第二摄像头模组,第四时刻晚于第三时刻,也就是说,终端设在使能第二摄像头模组之前使能PHY装置。The second camera module is not a camera module that requires adjustment of the enabling time of the PHY device. When the terminal device detects the second operation of starting the second camera module, in response to the second operation, the PHY device is enabled at a third moment, and the second camera module is enabled at a fourth moment. The fourth moment is later than the third moment. That is to say, the terminal is configured to enable the PHY device before enabling the second camera module.
终端设备可以采用现有技术的方法,在使能第二摄像头模组之前,使能PHY装置。The terminal device can adopt the method of the prior art to enable the PHY device before enabling the second camera module.
本申请实施例提供的相机应用的控制方法,当第二摄像头模组不是需要调整PHY装置的使能时间的摄像头模组,且终端设备检测到启动第二摄像头模组的第二操作时,可以在使能第二摄像头模组之前,使能PHY装置。这两种控制方法可以根据不同的摄像头模组来回切换,灵活性较高。In the control method of the camera application provided in the embodiment of the present application, when the second camera module is not the camera module that needs to adjust the enabling time of the PHY device, and the terminal device detects the second operation of starting the second camera module, the PHY device can be enabled before enabling the second camera module. These two control methods can be switched back and forth according to different camera modules, and are highly flexible.
可选地,上述第三时刻与第四时刻可以均位于第三时段内,第三时段内为第二摄像头模组的上电引脚均为高电平的时段。Optionally, the third moment and the fourth moment may both be within a third time period, and the third time period is a time period when the power-on pins of the second camera module are all at a high level.
第三时段内为第二摄像头模组的上电引脚均为高电平的时段,即LP11时长内。The third time period is the time period when the power-on pins of the second camera module are all at a high level, that is, the LP11 duration.
终端设备响应于第二操作,可以先为第二摄像头模组上电,第二摄像头模组的上电时序可以为LP11。在第二摄像头模组的上电时序处于LP11内,终端设备可以先使能PHY装置再使能第二摄像头模组。PHY装置时,第二摄像头模组的上电时序处于LP11内,PHY装置使能后即可具有接收图像数据的能力。In response to the second operation, the terminal device may first power on the second camera module, and the power-on timing of the second camera module may be LP11. When the power-on timing of the second camera module is within LP11, the terminal device may first enable the PHY device and then enable the second camera module. When the PHY device is enabled, the power-on timing of the second camera module is within LP11, and the PHY device has the ability to receive image data after being enabled.
本申请实施例提供的相机应用的控制方法,在第三时段内,可以先使能PHY装置再使能第二摄像头模组,无需调整PHY装置使能时间,有利于提高启动第二摄像头模组的效率。The camera application control method provided in the embodiment of the present application can enable the PHY device first and then enable the second camera module within the third time period, without adjusting the enabling time of the PHY device, which is beneficial to improving the efficiency of starting the second camera module.
本申请实施例提供的终端设备可以包括配置模块、上电模块以及使能模块。本申请实施例提供的相机应用的控制方法可以由配置模块、上电模块以及使能模块执行。The terminal device provided in the embodiment of the present application may include a configuration module, a power-on module and an enabling module. The control method of the camera application provided in the embodiment of the present application may be executed by the configuration module, the power-on module and the enabling module.
示例性地,图9示出了一种相机应用的控制方法900的示意性流程图。如图9所示,该方法900可以包括如下步骤:For example, Fig. 9 shows a schematic flow chart of a camera application control method 900. As shown in Fig. 9, the method 900 may include the following steps:
S901、当检测到用户对相机应用的第一操作时,配置模块判断第一配置信息中是否包括第一摄像头模组,其中,第一操作用于启动第一摄像头模组。S901. When a first operation of a user on a camera application is detected, the configuration module determines whether the first configuration information includes a first camera module, wherein the first operation is used to start the first camera module.
配置模块包括第一配置信息,第一配置信息用于指示需要调整PHY装置的使能时间的摄像头模组。The configuration module includes first configuration information, and the first configuration information is used to indicate the camera module for which the enabling time of the PHY device needs to be adjusted.
S902、若第一配置信息中包括第一摄像头模组,配置模块向上电模块发送第一上电指令,对应地,上电模块接收该第一上电指令。其中,第一上电指令用于指示上电模块为第一摄像头模组上电时序。S902: If the first configuration information includes the first camera module, the configuration module sends a first power-on instruction to the power-on module, and correspondingly, the power-on module receives the first power-on instruction, wherein the first power-on instruction is used to instruct the power-on module to power on the first camera module.
第一上电指令用于指示上电模块为第一摄像头模组上电,且上电时序包括LP00、LP10以及LP11。The first power-on instruction is used to instruct the power-on module to power on the first camera module, and the power-on sequence includes LP00, LP10 and LP11.
若第一配置信息中不包括第一摄像头模组,配置模块可以向上电模块发送第二上电指令,对应地,上电模块接收该第二上电指令。其中,第二上电指令用于指示上电模块为第一摄像头模组上电,且上电时序为LP11。If the first configuration information does not include the first camera module, the configuration module may send a second power-on instruction to the power-on module, and the power-on module receives the second power-on instruction, wherein the second power-on instruction is used to instruct the power-on module to power on the first camera module, and the power-on timing is LP11.
S903、上电模块基于第一上电指令,为第一摄像头模组上电,并确定第一摄像头模组和PHY装置的使能时间。S903: The power-on module powers on the first camera module based on the first power-on instruction, and determines the enabling time of the first camera module and the PHY device.
上电模块基于第一上电指令,可以确定第一摄像头模组的使能时间为第一时刻、PHY装置的使能时间为第二时刻。其中,第二时刻晚于第一时刻,且第二时刻位于第一时段内,第一时段内为第一摄像头模组的上电引脚均为高电平的时段。Based on the first power-on instruction, the power-on module can determine that the enabling time of the first camera module is the first moment and the enabling time of the PHY device is the second moment. The second moment is later than the first moment, and the second moment is within the first time period, and the first time period is the time period when the power-on pins of the first camera module are all high level.
S904、上电模块可以向使能模块发送使能指令,对应地,使能模块接收该使能指令。其中,使能指令用于指示使能模块基于确定的使能时间进行使能。S904: The power-on module may send an enable instruction to the enable module, and correspondingly, the enable module receives the enable instruction, wherein the enable instruction is used to instruct the enable module to enable based on the determined enable time.
使能指令可以包括第一摄像头模组和PHY装置的使能时间,以用于指示使能模块基于确定的使能时间进行使能。The enabling instruction may include the enabling time of the first camera module and the PHY device, so as to instruct the enabling module to enable based on the determined enabling time.
S905、使能模块基于该使能指令,在第一时刻使能第一摄像头模组,在第二时刻使能PHY装置。S905. The enabling module enables the first camera module at a first moment and enables the PHY device at a second moment based on the enabling instruction.
本申请实施例提供的相机应用的控制方法,通过配置模块、上电模块以及使能模块使得PHY装置使能后即可具有接收图像数据的能力,有利于避免相机界面黑屏,可以提高用户体验。The control method of the camera application provided in the embodiment of the present application enables the PHY device to receive image data after being enabled through the configuration module, the power-on module and the enabling module, which is beneficial to avoid a black screen on the camera interface and can improve the user experience.
上述实施例中各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。The size of the serial number of each process in the above embodiment does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
上文中结合图1至图9,详细描述了本申请实施例提供的方法,下面将结合图10和图11,详细描述本申请实施例提供的设备。The method provided in the embodiment of the present application is described in detail above in combination with Figures 1 to 9. The device provided in the embodiment of the present application will be described in detail below in combination with Figures 10 and 11.
图10示出了本申请实施例提供的一种终端设备1000的示意性框图。该终端设备1000包括:检测模块1010和处理模块1020。其中,检测模块1010用于:检测到用户对相机应用的第一操作,第一操作用于打开相机应用,或者第一操作用于切换相机应用的相机模式;处理模块1020用于:响应于第一操作,在第一时刻使能第一摄像头模组;以及,在第二时刻使能PHY装置,第二时刻晚于第一时刻,且第二时刻位于第一时段内,第一时段内为第一摄像头模组的上电引脚均为高电平的时段。FIG10 shows a schematic block diagram of a terminal device 1000 provided in an embodiment of the present application. The terminal device 1000 includes: a detection module 1010 and a processing module 1020. The detection module 1010 is used to: detect a first operation of a user on a camera application, the first operation is used to open the camera application, or the first operation is used to switch the camera mode of the camera application; the processing module 1020 is used to: enable the first camera module at a first moment in response to the first operation; and enable the PHY device at a second moment, the second moment is later than the first moment, and the second moment is within a first time period, and the first time period is a time period when the power-on pins of the first camera module are all at a high level.
应理解,这里的终端设备1000以功能模块的形式体现。这里的术语“模块”可以指应用特有集成电路(application specific integrated circuit,ASIC)、电子电路、用于执行一个或多个软件或固件程序的处理器(例如共享处理器、专有处理器或组处理器等)和存储器、合并逻辑电路和/或其它支持所描述的功能的合适组件。在一个可选的例子中,本领域技术人员可以理解,终端设备1000可以具体为上述方法实施例中的终端设备,或者,上述方法实施例中终端设备的功能可以集成在终端设备1000中,终端设备1000可以用于执行上述方法实施例中与终端设备对应的各个流程和/或步骤,为避免重复,在此不再赘述。It should be understood that the terminal device 1000 here is embodied in the form of a functional module. The term "module" here may refer to an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a proprietary processor or a group processor, etc.) and a memory for executing one or more software or firmware programs, a merged logic circuit and/or other suitable components that support the described functions. In an optional example, those skilled in the art may understand that the terminal device 1000 may be specifically a terminal device in the above-mentioned method embodiment, or the functions of the terminal device in the above-mentioned method embodiment may be integrated in the terminal device 1000, and the terminal device 1000 may be used to execute the various processes and/or steps corresponding to the terminal device in the above-mentioned method embodiment, and to avoid repetition, it will not be repeated here.
上述终端设备1000具有实现上述方法实施例中终端设备执行的相应步骤的功能;上述功能可以通过硬件实现,也可以通过硬件执行相应的软件实现。该硬件或软件包括一个或多个与上述功能相对应的模块。The terminal device 1000 has the function of implementing the corresponding steps performed by the terminal device in the above method embodiment; the above functions can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
在本申请的实施例中,图10中的终端设备1000也可以是芯片或者芯片系统,例如:片上系统(system on chip,SoC)。In an embodiment of the present application, the terminal device 1000 in FIG. 10 may also be a chip or a chip system, for example, a system on chip (SoC).
图11是本申请实施例提供的另一种终端设备1100的示意性框图。该终端设备1100包括:处理器1110、收发器1120和存储器1130。其中,处理器1110、收发器1120和存储器1130通过内部连接通路互相通信,该存储器1130用于存储指令,该处理器1110用于执行该存储器1130存储的指令,以控制该收发器1120发送信号和/或接收信号。FIG11 is a schematic block diagram of another terminal device 1100 provided in an embodiment of the present application. The terminal device 1100 includes: a processor 1110, a transceiver 1120, and a memory 1130. The processor 1110, the transceiver 1120, and the memory 1130 communicate with each other through an internal connection path, the memory 1130 is used to store instructions, and the processor 1110 is used to execute the instructions stored in the memory 1130 to control the transceiver 1120 to send signals and/or receive signals.
应理解,终端设备1100可以具体为上述方法实施例中的终端设备,或者,上述方法实施例中终端设备的功能可以集成在终端设备1100中,终端设备1100可以用于执行上述方法实施例中与终端设备对应的各个步骤和/或流程。可选地,该存储器1130可以包括只读存储器和随机存取存储器,并向处理器1110提供指令和数据。存储器1130的一部分还可以包括非易失性随机存取存储器。例如,存储器1130还可以存储设备类型的信息。该处理器1110可以用于执行存储器1130中存储的指令,并且该处理器1110执行该指令时,该处理器1110可以执行上述方法实施例中与终端设备对应的各个步骤和/或流程。It should be understood that the terminal device 1100 can be specifically a terminal device in the above method embodiment, or the function of the terminal device in the above method embodiment can be integrated in the terminal device 1100, and the terminal device 1100 can be used to execute the various steps and/or processes corresponding to the terminal device in the above method embodiment. Optionally, the memory 1130 may include a read-only memory and a random access memory, and provide instructions and data to the processor 1110. A part of the memory 1130 may also include a non-volatile random access memory. For example, the memory 1130 may also store information about the device type. The processor 1110 may be used to execute the instructions stored in the memory 1130, and when the processor 1110 executes the instructions, the processor 1110 may execute the various steps and/or processes corresponding to the terminal device in the above method embodiment.
应理解,在本申请实施例中,该处理器1110可以是中央处理单元(centralprocessing unit,CPU),该处理器还可以是其他通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。It should be understood that in the embodiment of the present application, the processor 1110 may be a central processing unit (CPU), and the processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
在实现过程中,上述方法的各步骤可以通过处理器中的硬件的集成逻辑电路或者软件形式的指令完成。结合本申请实施例所公开的方法的步骤可以直接体现为硬件处理器执行完成,或者用处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器,处理器执行存储器中的指令,结合其硬件完成上述方法的步骤。为避免重复,这里不再详细描述。In the implementation process, each step of the above method can be completed by an integrated logic circuit of hardware in a processor or an instruction in the form of software. The steps of the method disclosed in conjunction with the embodiment of the present application can be directly embodied as a hardware processor for execution, or a combination of hardware and software modules in a processor for execution. The software module can be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor executes the instructions in the memory, and completes the steps of the above method in conjunction with its hardware. To avoid repetition, it is not described in detail here.
本申请还提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序用于实现上述方法实施例中终端设备对应的方法。The present application also provides a computer-readable storage medium, which stores a computer program, and the computer program is used to implement the method corresponding to the terminal device in the above method embodiment.
本申请还提供了一种芯片系统,该芯片系统用于支持上述方法实施例中终端设备实现本申请实施例所示的功能。The present application also provides a chip system, which is used to support the terminal device in the above method embodiment to implement the functions shown in the embodiment of the present application.
本申请还提供了一种计算机程序产品,该计算机程序产品包括计算机程序(也可以称为代码,或指令),当该计算机程序在计算机上运行时,该计算机可以执行上述方法实施例所示的终端设备对应的方法。The present application also provides a computer program product, which includes a computer program (also referred to as code or instruction). When the computer program runs on a computer, the computer can execute the method corresponding to the terminal device shown in the above method embodiment.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的模块及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。Those of ordinary skill in the art will appreciate that the modules and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个模块或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或模块的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
所述作为分离部件说明的模块可以是或者也可以不是物理上分开的,作为模块显示的部件可以是或者也可以不是物理模块,即可以位于一个地方,或者也可以分布到多个网络模块上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical modules, that is, they may be located in one place or distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
另外,在本申请各个实施例中的各功能模块可以集成在一个处理模块中,也可以是各个模块单独物理存在,也可以两个或两个以上模块集成在一个模块中。In addition, each functional module in each embodiment of the present application may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module.
所述功能如果以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
以上所述,仅为本申请的具体实施方式,但本申请实施例的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本申请实施例揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本申请实施例的保护范围之内。因此,本申请实施例的保护范围应所述以权利要求的保护范围为准。The above is only a specific implementation of the present application, but the protection scope of the embodiments of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the embodiments of the present application, which should be included in the protection scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application should be based on the protection scope of the claims.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211310555.7A CN116744106B (en) | 2022-10-25 | 2022-10-25 | Camera application control method and terminal device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211310555.7A CN116744106B (en) | 2022-10-25 | 2022-10-25 | Camera application control method and terminal device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116744106A CN116744106A (en) | 2023-09-12 |
CN116744106B true CN116744106B (en) | 2024-04-30 |
Family
ID=87901784
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211310555.7A Active CN116744106B (en) | 2022-10-25 | 2022-10-25 | Camera application control method and terminal device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116744106B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110784571A (en) * | 2019-10-31 | 2020-02-11 | 维沃移动通信有限公司 | An electronic device and image display method |
CN112188107A (en) * | 2020-10-19 | 2021-01-05 | 珠海格力电器股份有限公司 | Camera control method and device, electronic equipment and storage medium |
CN112954424A (en) * | 2020-08-21 | 2021-06-11 | 海信视像科技股份有限公司 | Display device and camera starting method |
CN113366819A (en) * | 2019-05-29 | 2021-09-07 | 深圳市欢太科技有限公司 | Camera starting method and related device |
WO2022127787A1 (en) * | 2020-12-18 | 2022-06-23 | 华为技术有限公司 | Image display method and electronic device |
CN114726950A (en) * | 2022-02-28 | 2022-07-08 | 荣耀终端有限公司 | Opening method and device of camera module |
WO2022170856A1 (en) * | 2021-02-09 | 2022-08-18 | 华为技术有限公司 | Method for establishing connection, and electronic device |
-
2022
- 2022-10-25 CN CN202211310555.7A patent/CN116744106B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113366819A (en) * | 2019-05-29 | 2021-09-07 | 深圳市欢太科技有限公司 | Camera starting method and related device |
CN110784571A (en) * | 2019-10-31 | 2020-02-11 | 维沃移动通信有限公司 | An electronic device and image display method |
CN112954424A (en) * | 2020-08-21 | 2021-06-11 | 海信视像科技股份有限公司 | Display device and camera starting method |
CN112188107A (en) * | 2020-10-19 | 2021-01-05 | 珠海格力电器股份有限公司 | Camera control method and device, electronic equipment and storage medium |
WO2022127787A1 (en) * | 2020-12-18 | 2022-06-23 | 华为技术有限公司 | Image display method and electronic device |
WO2022170856A1 (en) * | 2021-02-09 | 2022-08-18 | 华为技术有限公司 | Method for establishing connection, and electronic device |
CN114726950A (en) * | 2022-02-28 | 2022-07-08 | 荣耀终端有限公司 | Opening method and device of camera module |
Also Published As
Publication number | Publication date |
---|---|
CN116744106A (en) | 2023-09-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4002829A1 (en) | Image processing method, electronic device and cloud server | |
EP4436198A1 (en) | Method for capturing images in video, and electronic device | |
US20240276097A1 (en) | Quick photographing method, electronic device, and computer-readable storage medium | |
CN113254120A (en) | Data processing method and related device | |
CN112527174B (en) | Information processing method and electronic equipment | |
WO2022105445A1 (en) | Browser-based application screen projection method and related apparatus | |
CN110780929B (en) | Method for calling hardware interface and electronic device | |
EP4407453A1 (en) | Application running method and related device | |
US12272335B2 (en) | Display synchronization method, electronic device, and readable storage medium | |
US20230350631A1 (en) | Projection display method and electronic device | |
US12292835B2 (en) | Photographing method and related apparatus | |
CN116048323B (en) | Image processing method and electronic equipment | |
WO2023035868A1 (en) | Photographing method and electronic device | |
US20240236485A9 (en) | Operation mode switching control method, electronic device, and readable storage medium | |
CN114827696B (en) | Method for synchronously playing audio and video data of cross-equipment and electronic equipment | |
CN117156293B (en) | Photographing method and related device | |
CN116744106B (en) | Camera application control method and terminal device | |
CN116719587B (en) | Screen display method, electronic device and computer readable storage medium | |
WO2024109198A1 (en) | Window adjustment method and related apparatus | |
CN118363691A (en) | A window management method and electronic device | |
CN117692753B (en) | Photographing method and electronic equipment | |
CN115100994B (en) | A control method, host computer and terminal for medical film reading display | |
CN117076284B (en) | Page loading time detection method, device and storage medium | |
WO2024159950A1 (en) | Display method and apparatus, electronic device, and storage medium | |
CN118574000A (en) | Method for controlling camera to display preview image and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CP03 | Change of name, title or address |
Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040 Patentee after: Honor Terminal Co.,Ltd. Country or region after: China Address before: 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong Patentee before: Honor Device Co.,Ltd. Country or region before: China |
|
CP03 | Change of name, title or address |