Abstract:
This application provides a communications method and apparatus, to improve data transmission reliability. The method includes: determining, by a terminal device, M pilot ports that are used to transmit one data stream, where M is a positive integer greater than or equal to 2; and sending, by the terminal device to a network device, M pilot signals and the data stream that have been subject to same precoding processing, where the M pilot signals are respectively generated based on the M pilot ports.
Abstract:
In a method disclosed for writing data, a device receives data, divides the data into one or more data fragments, obtains a first parity fragment based on the one or more data fragments and a second parity fragment of a written data fragment in a stripe distributed across a plurality of nodes, stores the one or more data fragments and the first parity fragment in the stripe.
Abstract:
A method for accessing a shingled magnetic recording (SMR) disk is provided. The method includes: receiving, by the server, a data operation request, where the data operation request includes address information of target data; determining, according to the address information, a target storage zone in the SMR disk that corresponds to the target data; determining that there is write pointer information of the target storage zone in a cache, and obtaining the write pointer information from the cache, where the write pointer information is address information of latest stored data in the target storage zone; generating a data operation instruction according to the write pointer information and the address information of the target data, where the data operation instruction is used to perform an operation on the target data; and sending the data operation instruction to the SMR disk. Embodiments of the present disclosure are applied for a server to access an SMR disk.
Abstract:
A method, an apparatus, and a system for migrating virtual machine backup information, which implement backup information migration after a virtual machine is migrated. The method includes: receiving, by a first backup server, a migration trigger message, where the migration trigger message carries pre-migration virtual-machine identification information and indication information of a second backup server; determining, by the first backup server, backup information of the virtual machine according to the pre-migration virtual-machine identification information; and sending, by the first backup server, the backup information to the second backup server. Therefore, the migrated virtual machine inherits backup information existing before the migration, such that the migrated virtual machine continues to be protected by backup data existing before the migration, and data of the virtual machine is backed up according to a backup policy existing before the migration.
Abstract:
A data backup method and apparatus, a data restoration method and apparatus, and a server are presented. The backup method includes the following steps of obtaining, by a backup server, an original differential bitmap of a first target volume; obtaining valid data in each fixed-length data block from the first target volume according to the original differential bitmap; saving a bitmap corresponding to a fixed-length data block including the valid data to a fixed-length volume bitmap file of the fixed-length data block according to the original differential bitmap; and saving the valid data in the fixed-length data block to a fixed-length volume file of the fixed-length data block. According to the foregoing solution, only valid data is transmitted, an amount of data transmitted between the production end and the server can be reduced, a transmission speed can be increased, and storage space can be saved.
Abstract:
Embodiments of the present invention provide a method and an apparatus for allocating a device-to-device (D2D) communication resource. The method for allocating a device-to-device D2D communication resource in the present invention comprises: receiving, by a first network device, a device-to-device D2D communication capability sent by a user device within coverage; sending, by the first network device according to the communication capability, a resource identifier to each user device within the coverage of the first network device in a D2D group, where the D2D group includes at least two user devices; and sending, by the first network device, a resource allocation message, where the resource allocation message carries D2D communication resource allocation information corresponding to the resource identifier.
Abstract:
Embodiments of the present invention provide frame type detection and frame size detection methods and apparatuses for a video stream. The video frame type detection method includes: obtaining a size of a current video frame; obtaining a change feature value of the current video frame; obtaining an I-frame threshold of the current video frame; and determining whether the previous first video frame is an I frame according to the change feature value of the current video frame and a change feature value of the previous first video frame, the I-frame threshold of the current video frame, and the size of the current video frame, the size of the previous first video frame, and a size of a previous second video frame. The present invention provides a complete and effective frame type detection method; in addition, impact of a video frame rate is fully considered.
Abstract:
Embodiments of the present invention disclose a shooting method, an apparatus, and a terminal. The method includes: after it is detected that a camera is started, instructing a display screen facing a shooting person to display a preview image; obtaining a preset lighting parameter; controlling a display screen facing a shot target to provide lighting by using the preset lighting parameter; and shooting an image according to a shooting instruction. In the embodiments of the present invention, a display screen may be used as an auxiliary light source, and the display screen is controlled to provide lighting by using a preset lighting parameter, so that the quality of an image shot by a camera in a low light condition is improved.
Abstract:
Embodiments of this application provide a data transmission method and apparatus. A method at a transmit end includes: obtaining a first sequence, where the first sequence includes a first sub-sequence and a second sub-sequence; mapping the first sub-sequence into K third sub-sequences based on a preset sequence group; performing differential coding and phase modulation on the second sub-sequence to obtain a fourth sequence whose length is K′; obtaining K fifth sub-sequences based on the K third sub-sequences and the K′ fourth sub-sequences; and outputting a second sequence including the K fifth sub-sequences. A method at a receive end includes: obtaining a second sequence including K fifth sub-sequences, and detecting the K fifth sub-sequences based on a preset sequence group to obtain a first sub-sequence; and performing differential demodulation based on the first sub-sequence to obtain a second sub-sequence, so that a first sequence is determined.
Abstract:
A sound pickup method is implemented by a device having a camera and a microphone. The method includes determining a target person in an image captured by the camera; determining a target sound pickup range based on a location of the target person in the image; and performing sound pickup in the target sound pickup range using the microphone.