Method for controlling mobile phone to be mute through flip and mobile phone
First Claim
1. A method for enabling mute through flip functionality on a mobile phone such that flipping the mobile phone onto a supporting surface switches a situational pattern of the mobile phone into a mute pattern that turns off an incoming ring tone and a vibrate alert of the mobile phone, the method comprising:
- detecting the situational pattern of the mobile phone when a mobile phone receives a call;
if the situational pattern is in a ringing pattern, controlling a front-facing camera, placed on a plane where the main operation interface of the mobile phone is located, to acquire image data based on a preset time;
transmitting the image data to a mobile phone base band chip using a frame synchronization signal generated from the front-facing camera to trigger the front-facing camera to transmit the image data to the mobile phone base band chip; and
using the mobile phone base band chip to determine whether the image data is all-black and caching a determination result;
if a current image data is determined to be all-black and the determination result indicates that image data acquired in a previous time is not all-black, concluding that the current image data corresponds to the supporting surface and switching the situational pattern of the mobile phone from the ringing pattern into the mute pattern, and controlling the front-facing camera to stop acquiring image data;
wherein determining whether the image data is all-black comprises determining whether each pixel in the image data is black; and
when detecting that one of the pixels is not black, determining that the image data is not all-black;
wherein determining whether each pixel in the image data is black comprises;
if a transmitting format of the image data is YUV, then determining whether all of the pixels of the image data satisfy Y=0, U=128 and V=128 one by one;
if yes, then determining that the respective pixel is black;
if the transmitting format of the image data is RGB, then determining whether all of the pixels of the image data satisfy R=0, G=0 and B=0 one by one;
if yes, then determining that the respective pixel is black; and
when all the pixels included in the image data are determined to be black, then determining that the image data is all-black.
2 Assignments
0 Petitions
Accused Products
Abstract
A method for controlling a mobile phone to be mute through flip, and a mobile phone are provided. The method comprises, when a mobile phone receives a call, detecting a situational pattern of the mobile phone. If the situational pattern is a ringing pattern, the method includes controlling a front-facing camera to acquire image data every preset time and if the current image data is representative of an all-black image and image data acquired in the previous time is not representative of an all-black image, switching the situational pattern of the mobile phone into a mute pattern and controlling the front-facing camera to stop acquiring image data. By means of the present invention, a user can conveniently and quickly switch a situational pattern of a mobile phone into a mute pattern by simply flipping over the user'"'"'s mobile phone.
6 Citations
10 Claims
-
1. A method for enabling mute through flip functionality on a mobile phone such that flipping the mobile phone onto a supporting surface switches a situational pattern of the mobile phone into a mute pattern that turns off an incoming ring tone and a vibrate alert of the mobile phone, the method comprising:
-
detecting the situational pattern of the mobile phone when a mobile phone receives a call; if the situational pattern is in a ringing pattern, controlling a front-facing camera, placed on a plane where the main operation interface of the mobile phone is located, to acquire image data based on a preset time; transmitting the image data to a mobile phone base band chip using a frame synchronization signal generated from the front-facing camera to trigger the front-facing camera to transmit the image data to the mobile phone base band chip; and using the mobile phone base band chip to determine whether the image data is all-black and caching a determination result; if a current image data is determined to be all-black and the determination result indicates that image data acquired in a previous time is not all-black, concluding that the current image data corresponds to the supporting surface and switching the situational pattern of the mobile phone from the ringing pattern into the mute pattern, and controlling the front-facing camera to stop acquiring image data; wherein determining whether the image data is all-black comprises determining whether each pixel in the image data is black; and
when detecting that one of the pixels is not black, determining that the image data is not all-black;
wherein determining whether each pixel in the image data is black comprises;if a transmitting format of the image data is YUV, then determining whether all of the pixels of the image data satisfy Y=0, U=128 and V=128 one by one;
if yes, then determining that the respective pixel is black;if the transmitting format of the image data is RGB, then determining whether all of the pixels of the image data satisfy R=0, G=0 and B=0 one by one;
if yes, then determining that the respective pixel is black; andwhen all the pixels included in the image data are determined to be black, then determining that the image data is all-black. - View Dependent Claims (2, 3)
-
-
4. A method for enabling mute through flip functionality on a mobile phone such that flipping the mobile phone onto a supporting surface switches a situational pattern of the mobile phone into a mute pattern that turns off an incoming ring tone and a vibrate alert of the mobile phone, the method comprising:
-
receiving a call on a mobile phone; detecting a situational pattern of the mobile phone after the mobile phone receives the call;
if the situational pattern is detected to be a ringing pattern, controlling a front-facing camera, placed on a plane where the main operation interface of the mobile phone is located, to acquire image data based on a preset time;using a frame synchronization signal generated from the front facing camera to trigger the front facing camera to transmit the image data to a mobile phone base band chip; and determining whether the image data is all-black and caching the determination result; if a current image data is determined to be all-black and the determination result indicates that image data acquired in a previous time is not all-black, concluding that the current image data corresponds to the supporting surface and switching the situational pattern of the mobile phone from the ringing pattern into the mute pattern, and controlling the front-facing camera to stop acquiring image data; wherein determining whether the image data is all-black comprises determining whether each pixel in the image data is black; and
when detecting that one of the pixels is not black, determining that the image data is not all-black;
wherein determining whether each pixel in the image data is black comprises;if a transmitting format of the image data is YUV, then determining whether all of the pixels of the image data satisfy Y=0, U=128 and V=128 one by one;
if yes, then determining that the respective pixel is black;if the transmitting format of the image data is RGB, then determining whether all of the pixels of the image data satisfy R=0, G=0 and B=0 one by one;
if yes, then determining that the respective pixel is black; andwhen all the pixels included in the image data are determined to be black, then determining that the image data is all-black. - View Dependent Claims (5, 6)
-
-
7. A mobile phone with mute through flip functionality such that flipping the mobile phone onto a supporting surface switches a situational pattern of the mobile phone into a mute pattern that turns off an incoming ring tone and a vibrate alert of the mobile phone, the mobile phone comprising:
-
a base band chip which comprises an image acquisition module, an all-black judgment module, a flip judgment module and a ring control module; a front-facing camera, placed on the main operation interface of the mobile phone, used for acquiring image data based on a preset time when the mobile phone receives a call and the situational pattern of the mobile phone is a ringing pattern, and transmitting the image data to the image acquisition module, wherein a frame synchronization signal generated from the front-facing camera is used to trigger the front-facing camera to transmit the image data to the image acquisition module; and a ring output module, wherein the image acquisition module is used for acquiring image data transmitted by the front-facing camera when the mobile phone receives a call and the situational pattern of the mobile phone is a ringing pattern; the all-black judgment module is used for determining whether the image data acquired by the image acquisition module is all-black and caching storing a determination result; wherein the all-black judgment module is used for determining whether each pixel in the image data is black; and
when detecting that one of the pixels is not black, determining that the image data is not all-black;wherein the all-black judgment module comprises; a first pixel judgment unit, used for determining whether all pixels of the image data satisfy Y=0, U=128 and V=128 when a transmitting format of the image data is YUV;
if yes, then determining that the respective pixel is black;a second pixel judgment unit, used for determining whether all the pixels of the image data satisfy R=0, G=0 and B=0 when the transmitting format of the image data is RGB;
if yes, then determining that the respective pixel is black; anda first image judgment unit, used for determining that the image data is all-black when all the pixels included in the image data are determined to be black; and a second image judgment unit, used for determining that the image data is not all-black when one of the pixels is determined not to be black; the flip judgment module is used for sending a mute control message to the ring control module when the all-black judgment module determines that the current image data corresponds to the supporting surface, as indicated by the current image data being all-black and the determination result indicating that the image data acquired in a previous time is not all-black, and triggering the base band chip to control the front-facing camera to stop acquiring image data at the same time; and the ring control module is used to turn off the incoming ring tone and the vibrate alert of the mobile phone in response to receiving the mute control message. - View Dependent Claims (8, 9, 10)
-
Specification