Abstract:
A photographing method in a long-focus scenario and a terminal are provided. A moving direction and a moving distance of a framing range of the terminal can be controlled, so that a target photographing object accurately moves into the framing range, to improve efficiency of interaction between a user and the terminal. The method provides, when a zoom magnification used by a terminal is greater than or equal to a preset magnification, a photographing interface displayed by the terminal includes a first viewfinder frame and a second viewfinder frame. The first viewfinder frame is used to preview an image captured by a long-focus camera. A framing range of the second viewfinder frame is greater than a framing range of the first viewfinder frame, and a framing range the same as that of the first viewfinder frame is marked in the second viewfinder frame.
Abstract:
An electronic device having a foldable screen, where when the foldable screen is in a folded state, the foldable screen is divided into a primary screen and a secondary screen. When a first component disposed on the primary screen is in a working state, or an application that invokes the first component is in the working state, when a screen switching event is detected, the electronic device is prohibited from switching to a state in which only the secondary screen performs display, to avoid a case in which a user is close to the primary screen but the primary screen does not perform display.
Abstract:
A random number generation apparatus includes an electric network frequency (ENF) extractor, an entropy generation module, and an entropy pool. The random number generation apparatus may generate a true random number and a pseudo random number based on an ENF signal of an electric network without using a hardware entropy source.
Abstract:
An electronic device having a foldable screen, where when the foldable screen is in a folded state, the foldable screen is divided into a primary screen and a secondary screen. When a first component disposed on the primary screen is in a working state, or an application that invokes the first component is in the working state, when a screen switching event is detected, the electronic device is prohibited from switching to a state in which only the secondary screen performs display, to avoid a case in which a user is close to the primary screen but the primary screen does not perform display.
Abstract:
The present invention discloses a power control method and apparatus. The power control method of the present invention includes: when a service runs in a first-standard communication system, determining a transmit power P1 of the first-standard communication system; determining that the transmit power P1 is higher than or equal to a threshold value P2 of power interference of the first-standard communication system to a second-standard communication system; use a power lower than P1 to send data on an interference frequency of the first-standard communication system. According to the power control method in the present invention, a signal transmit power of the interfering frequency of the first-standard communication system can be reduced when it is determined that the first-standard communication system will cause interference to the second-standard communication system, thereby reducing the interference of the first-standard communication system to the second-standard communication system.
Abstract:
This application discloses an image bloom processing method and apparatus, and a storage medium, and relates to the field of image processing technologies. An electronic device obtains a first brightness region class in a first image, where the first brightness region class includes one or more brightness regions in the first image; after determining that the first brightness region class in the first image is the same as a target brightness region class in a second image on which bloom processing is performed, the electronic device obtains a first intermediate image obtained after Gaussian blur processing is performed on the target brightness region class in the second image; and the electronic device generates a bloom image of the first image based on the first image and the first intermediate image.
Abstract:
A photographing method in a long-focus scenario and a terminal are provided. A moving direction and a moving distance of a framing range of the terminal can be controlled, so that a target photographing object accurately moves into the framing range, to improve efficiency of interaction between a user and the terminal. The method provides, when a zoom magnification used by a terminal is greater than or equal to a preset magnification, a photographing interface displayed by the terminal includes a first viewfinder frame and a second viewfinder frame. The first viewfinder frame is used to preview an image captured by a long-focus camera. A framing range of the second viewfinder frame is greater than a framing range of the first viewfinder frame, and a framing range the same as that of the first viewfinder frame is marked in the second viewfinder frame.
Abstract:
A data storage method applying to the phase change memory and a phase change memory are provided. After obtaining to-be-stored data, the phase change memory generates an erase pulse signal and a write pulse signal according to the to-be-stored data. The to-be-stored data is multi-bit data. The write pulse signal is a signal including at least two consecutive pulses with a same amplitude. The amplitude of the at least two consecutive pulses is a value determined according to the to-be-stored data. Then, the phase change memory applies the erase pulse signal to a storage unit of the phase change memory to allow the storage unit to switch to a crystalline state. Further, the write pulse signal is applied to the storage unit to allow the storage unit to switch to an amorphous state corresponding to a first resistance value, where the amorphous state represents the to-be-stored data.
Abstract:
The present invention discloses a power control method and apparatus. The power control method of the present invention includes: when a service runs in a first-standard communication system, determining a transmit power P1 of the first-standard communication system; determining that the transmit power P1 is higher than or equal to a threshold value P2 of power interference of the first-standard communication system to a second-standard communication system; use a power lower than P1 to send data on an interference frequency of the first-standard communication system. According to the power control method in the present invention, a signal transmit power of the interfering frequency of the first-standard communication system can be reduced when it is determined that the first-standard communication system will cause interference to the second-standard communication system, thereby reducing the interference of the first-standard communication system to the second-standard communication system.
Abstract:
Embodiments of the present invention provide a method, a terminal device, a network-side device, and a communications system for managing a power supply. The method includes: determining a terminal power consumption level according to remaining power or terminal settings, where the terminal power consumption level is one of at least two power consumption levels. In the embodiments of the present invention, different power consumption levels are applied according to different remaining power of a terminal power supply or terminal settings, thereby adapting to differentiated power consumption requirements and improving the power supply utilization efficiency of a terminal.