Abstract:
A switching device determines a video parameter value of a switching point of a first video stream, and determines a video parameter value of a switching point of a second video stream. The video parameter value includes a timestamp and/or a sequence number. The switching device determines an audio parameter value of a switching point of a first audio stream based on a timestamp of the switching point of the first video stream, and determines an audio parameter value of a switching point of a second audio stream based on a timestamp of the switching point of the second video stream. The audio parameter value includes a timestamp and/or a sequence number. The switching device performs switching based on determined switching points.
Abstract:
Embodiments of the present disclosure provide a data transmission method and a device, and the method includes: determining synchronization header indication information indicating a frame header location of a first code stream, where the first code stream is obtained by encoding CPRI service data; decoding the first code stream to obtain a second code stream, where the first code stream is a 10B code stream, and the second code stream is an 8B code stream, or the first code stream is a 66B code stream, and the second code stream is a 64B code stream; inserting frame header indication information indicating a frame header location of the second code stream into the second code stream according to the synchronization header indication information; and mapping the second code stream and the frame header indication information into an OPU in an ODU frame.
Abstract:
Embodiments of the present disclosure provide a data transmission method and a device, and the method includes: determining synchronization header indication information indicating a frame header location of a first code stream, where the first code stream is obtained by encoding CPRI service data; decoding the first code stream to obtain a second code stream, where the first code stream is a 10B code stream, and the second code stream is an 8B code stream, or the first code stream is a 66B code stream, and the second code stream is a 64B code stream; inserting frame header indication information indicating a frame header location of the second code stream into the second code stream according to the synchronization header indication information; and mapping the second code stream and the frame header indication information into an OPU in an ODU frame.
Abstract:
Embodiments of this application provide an animation effect display method and an electronic device, and relate to the field of electronic technologies. According to the animation effect display method provided in an embodiment of this application, before an animation effect is displayed, a UI thread of an application, or a rendering thread of the application, or a rendering process determines controls whose properties change in duration of the animation effect, and determines properties of controls on an interface of each frame, and then the rendering thread of the application or the rendering process generates, based on the properties of the controls on the interface of each frame, a bitmap corresponding to the interface of the frame. Because the properties like sizes and locations of the controls on the interface of each frame are determined before the animation effect is displayed, the UI thread does not need to perform measurement, layout, and drawing and recording (recording) on the interface of each frame, so that display of the animation effect is not affected by UI thread blocking.
Abstract:
A rectifier and an electrical power facility in which the rectifier is disposed are provided that relate to the field of electromechanical technologies. The rectifier includes a rectifier circuit, a relay, and a controller. The rectifier further includes a detection resistor and a detection circuit, where the detection resistor is connected in series to a winding in the relay, a detection point of the detection circuit is set between the detection resistor and the winding, and an output end of the detection circuit is connected to the controller. When a voltage detected at the detection point of the detection circuit is abnormal, the detection circuit outputs an alarm signal to the controller, and after receiving the alarm signal, the controller stops outputting a driving signal to the driving end of the rectifier circuit.
Abstract:
A control blurring method and apparatus, a terminal device, and a readable storage medium are provided, which are applicable to the terminal field. The method includes: obtaining a dynamic parameter of a first control in a first frame image during drawing of the first frame image; encapsulating a drawing result of the first frame image and a dynamic parameter, to obtain a result of the encapsulation; performing composition on the drawing result of the first frame image based on the dynamic parameter, to obtain a composition result having a blur effect of the first frame image; and performing display based on the composition result of the first frame image.
Abstract:
A switching device determines a video parameter value of a switching point of a first video stream, and determines a video parameter value of a switching point of a second video stream. The video parameter value includes a timestamp and/or a sequence number. The switching device determines an audio parameter value of a switching point of a first audio stream based on a timestamp of the switching point of the first video stream, and determines an audio parameter value of a switching point of a second audio stream based on a timestamp of the switching point of the second video stream. The audio parameter value includes a timestamp and/or a sequence number. The switching device performs switching based on determined switching points.
Abstract:
Embodiments of the present disclosure disclose a data processing apparatus and method for processing serial tasks, which can reduce, in a data processing process, a quantity of times of reading an output result from disks of node devices in a distributed system, thereby reducing time required and network resources occupied for processing a large amount of data. The method in the present disclosure includes: acquiring at least two MapReduce tasks, where the at least two MapReduce tasks are serially arranged according to an execution sequence, and when two MapReduce tasks are serially arranged, an output value obtained after the former MapReduce task is executed is an input value of the latter MapReduce task; combining the at least two MapReduce tasks to obtain a target MapReduce task; and executing the target MapReduce task, and obtaining an output result of the target MapReduce task.
Abstract:
This application discloses an audio stream switching method and apparatus. After a switching device receives a switching instruction, the switching device determines a synchronization relationship between a switch-in stream and a switch-out stream, determines a parameter value of a switching point of the switch-in stream based on the synchronization relationship and a timestamp of a packet in the switch-in stream, and determines a timestamp of a switching point of the switch-out stream based on the synchronization relationship and a timestamp of a packet in the switch-out stream, and/or the switching device switches a packet that is in the switch-out stream and whose parameter value is greater than the parameter value of the switching point of the switch-out stream to a packet that is in the switch-in stream and whose parameter value is greater than the parameter value of the switching point of the switch-in stream.
Abstract:
A positioning tag replacement method and a positioning server to implement replacement between positioning tags, where the method includes obtaining, by a positioning server, a moving trajectory of a first positioning tag and a moving trajectory of a second positioning tag, where the first positioning tag corresponds to a first positioned object, and the second positioning tag has no corresponding positioned object, and setting, by the positioning server, the second positioning tag to correspond to the first positioned object when the positioning server determines that the moving trajectory of the first positioning tag and the moving trajectory of the second positioning tag meet a preset condition. The method features low costs, simple and convenient operations, and easy implementation, and avoids that in an operation process, a positioned object escapes being monitored in a positioning system.