Abstract:
A compilation method includes obtaining a source program code. The source program code includes a first function in a first language code and a second function in a second language code. The first language code is a native language. The second language code is a non-native language. The method also includes generating a third language code based on the source program code. The third language code includes a third function, a fourth function and a fifth function. The third function is generated based on the first function. The fourth function is generated based on the second function. The fifth function is generated based on the first function and the second function. Executing the third function invokes the fourth function via the fifth function.
Abstract:
A method includes: setting a maximum transmit power of common channels of a plurality of carriers based on a signal coverage; setting a maximum transmit power of traffic channels of the plurality of carriers; and transmitting, for each scheduling period and based on the maximum transmit power of the common channels of the plurality of carriers, the maximum transmit power of the traffic channels of the plurality of carriers and a shared transmit power of the traffic channels of the plurality of carriers in the scheduling period, the plurality of carriers in the scheduling period.
Abstract:
The present disclosure provides an optical fiber stripping apparatus and a communications device. In the optical fiber stripping apparatus, at least one hook is configured to buckle a hook slot of the base; and a first surface of the base is in contact with the second surface of the connecting part, and the hook slot corresponding to the at least one hook is disposed on the first surface of the base, where when the at least one hook buckles the hook slot of the base, a dowel pin of the spring pin springs up, and the dowel pin fits in the pin hole at the one side of the connecting part to fasten positions of the connecting part and the base, and when the dowel pin is pressed down, the connecting part can be disassembled from the base, which simplifies a process of mounting.
Abstract:
An image processing method and apparatus are provided. The image processing method includes collecting at least two exposure frames with different brightness in a same scene during different exposure time; combining, for each exposure frame, a raw data unit arranged repeatedly in the exposure frame to obtain first brightness data after the combining; acquiring a correction parameter of all exposure frames according to all first brightness data and performing weighting processing on all the exposure frames by using the correction parameter to obtain a high dynamic range (HDR) image of corrected raw data. The foregoing method can resolve a problem in the prior art that colors, brightness, and contrast of an image obtained from Raw data are severely distorted.
Abstract:
The present application provides a method and an apparatus for avoiding interruptions in an on-going service. A LAN bridge intercepts a trusted port connected to a first routing bridge; determines whether the first routing bridge is forwarding or has a permission to forward data flow from a C-VLAN according to a result of the interception; and if the first routing bridge is not forwarding or no longer has the permission to forward the data flow from the C-VLAN, broadcasts the data flow from the C-VLAN to a second routing bridge so that the second routing bridge forwards the data flow from the C-VLAN. With the method provided in the embodiments of the present application, a forwarding path can be rapidly switched when a designated routing bridge is faulty and cannot carry out a traffic forwarding function or an appointed forwarder of a customer VLAN is changed.
Abstract:
Embodiments of the present invention disclose a linkage policy implementation method, which includes: receiving, by a linkage proxy module, a linkage policy request delivered by a third-party application service; calling a corresponding protocol converter according to a protocol identifier in the linkage policy request, and performing protocol conversion for the linkage policy request to convert it into a linkage policy request in a set protocol format; and sending the protocol-converted linkage policy request to a linkage client to instruct the linkage client to parse the linkage policy request based on the set protocol and execute linkage policy configuration. With the present invention, a linkage proxy is set to execute protocol conversion of various protocols. Therefore, the cost of the linkage client would not be increased for supporting multiple protocols; and when third-party applications are increased or decreased, it is unnecessary to reconfigure the linkage client.
Abstract:
Communication method and apparatus provide a network device sends a first signal to a first terminal device on a first resource element; the network device receives a fourth signal on a second resource element, where the second resource element and the first resource element at least partially overlap or are adjacent to each other; and the network device sends downlink data by using a first beamforming BF weight, where the first BF weight is obtained based on signal processing performed on the fourth signal, and an operation amount of the signal processing is less than an operation amount of matrix inversion or matrix decomposition. An air interface is used as a calculation resource to reduce calculation complexity of a baseband.
Abstract:
This application provides a power sharing method and apparatus. The method includes: estimating a first transmit power based on a traffic volume of terminal devices to be scheduled in a first carrier in a first scheduling period, where the first transmit power is a transmit power required in the first carrier to schedule the to-be-scheduled terminal devices in the first scheduling period; and estimating a second transmit power based on the first transmit power and an initially configured transmit power of the first carrier, where the second transmit power is a remaining transmit power of the first carrier in the first scheduling period. According to the power sharing method and apparatus provided in this application, a remaining transmit power of a carrier in a scheduling period is estimated based on the traffic volume of the to-be-scheduled terminal devices, thereby improving accuracy of transmit power sharing.
Abstract:
An image processing method and apparatus are provided. The image processing method includes collecting at least two exposure frames with different brightness in a same scene during different exposure time; combining, for each exposure frame, a raw data unit arranged repeatedly in the exposure frame to obtain first brightness data after the combining; acquiring a correction parameter of all exposure frames according to all first brightness data and performing weighting processing on all the exposure frames by using the correction parameter to obtain a high dynamic range (HDR) image of corrected raw data. The foregoing method can resolve a problem in the prior art that colors, brightness, and contrast of an image obtained from Raw data are severely distorted.