WO2022095752A1 - Frame demultiplexing method, electronic device and storage medium - Google Patents

Frame demultiplexing method, electronic device and storage medium Download PDF

Info

Publication number
WO2022095752A1
WO2022095752A1 PCT/CN2021/126345 CN2021126345W WO2022095752A1 WO 2022095752 A1 WO2022095752 A1 WO 2022095752A1 CN 2021126345 W CN2021126345 W CN 2021126345W WO 2022095752 A1 WO2022095752 A1 WO 2022095752A1
Authority
WO
WIPO (PCT)
Prior art keywords
frame
multimedia
electronic device
frames
target file
Prior art date
Application number
PCT/CN2021/126345
Other languages
French (fr)
Chinese (zh)
Inventor
侯朋飞
苏多铎
杜晓
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022095752A1 publication Critical patent/WO2022095752A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/434Disassembling of a multiplex stream, e.g. demultiplexing audio and video streams, extraction of additional data from a video stream; Remultiplexing of multiplex streams; Extraction or processing of SI; Disassembling of packetised elementary stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams

Definitions

  • the embodiments of the present application relate to the field of multimedia technologies, and in particular, to a frame demultiplexing method, an electronic device, and a storage medium.
  • One of the core functions of the multimedia distribution technology is to demultiplex the multimedia data from the source device, and send the demultiplexed audio data and video data to the target device.
  • Embodiments of the present application provide a frame demultiplexing method, an electronic device, and a storage medium, so as to provide a demultiplexing calculation method for audio frames and video frames, so as to improve the calculation capability and readability of audio frames and video frames. Therefore, the transmission volume of audio frames and video frames can be increased, thereby improving the transmission efficiency of audio frames and video frames.
  • an embodiment of the present application provides a frame demultiplexing method, including:
  • the target file contains multiple multimedia frames; specifically, the target file may be a multimedia file, for example, a piece of video.
  • the multimedia frames may include audio frames and video frames.
  • the input time may include the time input by the user, for example, the user is fast-forwarding or fast-rewinding at the designated time.
  • the input time may also be any time when the above-mentioned multimedia video is played in sequence, which is not particularly limited in this embodiment of the present application.
  • the optimal read amount and the first multimedia frame are determined based on the input moment; specifically, the optimal read amount may be the number of multimedia frames that can be read this time.
  • the first multimedia frame corresponds to the input moment.
  • the plurality of second multimedia frames may be a plurality of data frames including the above-mentioned first multimedia frames.
  • the optimal read amount is 4, if the frame number of the first multimedia frame is 1001, 4 frames are read from 1001, that is, 4 frames 1001, 1002, 1003 and 1004.
  • the plurality of second multimedia frames are sent to the second electronic device.
  • the multiple multimedia frames include multiple video frames and multiple audio frames, and based on the optimal read amount, starting from the first multimedia frame, read multiple second multimedia frames in the target file.
  • Multimedia frames include:
  • the multiple second multimedia frames may be multiple second video frames.
  • the multiple second multimedia frames may be multiple second audio frames.
  • determining the optimal read amount based on the input moment includes:
  • the preset pending reading number may be a tentative optimal reading number.
  • the preset pending reading number is set as the optimal reading amount; exemplarily, it is assumed that the preset pending reading number is 4. If the frame number of all multimedia frames from the beginning to the end of the target file is greater than or equal to 4, the optimal reading number can be set to 4, that is, 4 frames are read this time.
  • the preset pending read number is determined by the number of bits of the vector register and the data type of the multimedia frame.
  • the vector register may be a single instruction multiple data instruction set, for example, NEON.
  • reading multiple second multimedia frames in the target file includes:
  • the frame offset vector starting from the first multimedia frame, a plurality of second multimedia frames in the target file are read.
  • sending the plurality of second multimedia frames to the second electronic device includes:
  • the plurality of second multimedia frames and the frame size of each second multimedia frame are sent to the second electronic device. Therefore, it is convenient for the target device to separate each second multimedia frame based on the frame size of each second multimedia frame.
  • an embodiment of the present application provides a frame demultiplexing apparatus, including:
  • the first acquisition module is used to acquire a target file, and the target file contains a plurality of multimedia frames;
  • the second obtaining module is used to obtain the input time
  • a calculation module for determining the optimal read amount and the first multimedia frame based on the input moment
  • a reading module configured to read a plurality of second multimedia frames in the target file based on the optimal read amount, starting from the first multimedia frame, wherein the second multimedia frames include the first multimedia frame body frame;
  • the sending module is used for sending a plurality of second multimedia frames to the second electronic device.
  • the multiple multimedia frames include multiple video frames and multiple audio frames
  • the above-mentioned reading module is further configured to, based on the optimal read amount, start from the first video frame, read the target file a plurality of second video frames;
  • the above calculation module includes:
  • an acquisition unit used to acquire the preset pending read count
  • a statistical unit used to count the frame numbers of all multimedia frames from the input moment to the end moment of the target file
  • the determining unit is used to set the preset pending reading number as the optimal reading amount if the frame number of the multimedia frame is greater than or equal to the preset pending reading number; if the frame number of the multimedia frame is less than the preset pending reading number , the optimal read amount is set to 1.
  • the above-mentioned preset pending read number is determined by the number of bits of the vector register and the data type of the multimedia frame.
  • the above-mentioned reading module includes:
  • a computing unit for determining the block offset based on the input moment
  • a retrieval unit for obtaining the frame size of each second multimedia frame based on the optimal read amount
  • a building unit for building a frame matrix based on the block offset and the frame size
  • an operation unit used to perform a vectorization operation on the frame matrix to obtain a frame offset vector
  • the reading unit is configured to read, starting from the first multimedia frame, a plurality of second multimedia frames in the target file according to the frame offset vector.
  • the above-mentioned sending module is further configured to send the plurality of second multimedia frames and the frame size of each second multimedia frame to the second electronic device.
  • an embodiment of the present application provides a first electronic device, including:
  • Memory the memory is used to store computer program code, and the computer program code includes instructions.
  • the first electronic device reads the instructions from the memory, the first electronic device performs the following steps:
  • the target file contains multiple multimedia frames
  • the optimal read amount starting from the first multimedia frame, read a plurality of second multimedia frames in the target file, wherein the second multimedia frames include the first multimedia frames;
  • the plurality of second multimedia frames are sent to the second electronic device.
  • the plurality of multimedia frames include a plurality of video frames and a plurality of audio frames, so that the above-mentioned first electronic device executes a sequence from the first electronic device based on the optimal read amount.
  • the steps of reading a plurality of second multimedia frames in the target file include:
  • the step of making the above-mentioned first electronic device to perform the determination of the optimal reading amount based on the input time includes:
  • the preset pending reading number is set as the optimal reading amount
  • the optimal reading amount is set to 1.
  • the above-mentioned preset pending read number is determined by the number of bits of the vector register and the data type of the multimedia frame.
  • the above-mentioned first electronic device when executed by the above-mentioned first electronic device, the above-mentioned first electronic device is made to read, starting from the first multimedia frame, multiple data in the target file based on the optimal read amount.
  • the steps of a second multimedia frame include:
  • the frame offset vector starting from the first multimedia frame, a plurality of second multimedia frames in the target file are read.
  • causing the above-mentioned first electronic device to execute the step of sending a plurality of second multimedia frames to the second electronic device includes:
  • the plurality of second multimedia frames and the frame size of each second multimedia frame are sent to the second electronic device.
  • an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when it runs on a computer, causes the computer to execute the method described in the first aspect.
  • an embodiment of the present application provides a computer program, which is used to execute the method described in the first aspect when the computer program is executed by a computer.
  • the program in the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, and may also be stored in part or in part in a memory not packaged with the processor.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG. 2 is a schematic flowchart of a frame demultiplexing method provided by an embodiment of the present application
  • FIG. 3 is a schematic diagram of a frame matrix provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a frame offset vector provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a frame demultiplexing apparatus provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • first and second are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features.
  • a feature defined as “first” or “second” may expressly or implicitly include one or more of that feature.
  • plural means two or more.
  • One of the core functions of the multimedia distribution technology is to demultiplex the multimedia data from the source device, and send the demultiplexed audio data and video data to the target device.
  • Fig. 1 is a flow chart of the source device sending multimedia data to the target device.
  • the multimedia file can be demultiplexed in the source device, thereby obtaining audio data and video data respectively; Read audio data and video data. Since only one frame of data can be read at a time, only a single audio frame and a single video frame can be obtained each time. For example, each time audio data is read, only one frame can be obtained. Audio data, each time video data is read, only one frame of video data can be obtained.
  • the source device sends the video frame and the audio frame to the target device through the transmission module, wherein only one frame of data can be sent at a time, for example, only one frame of audio data or one frame of video data can be sent at a time.
  • the source device can only demultiplex one frame of data (for example, one frame of audio or one frame of video) at a time. Therefore, the source device needs enough time to send a certain amount of audio data and video data to the target device so that the target device can play it, which will bring delay to the playback of the audio data and video data of the target device, reducing the User's audiovisual experience.
  • the source device can only send one frame of data at a time when sending multimedia data, and the data transmission efficiency is low.
  • an embodiment of the present application proposes a frame demultiplexing method, whereby multiple multimedia data frames can be read from the source device at one time, the data reading efficiency can be improved, and multiple multimedia data frames can be sent through the source device at one time
  • the data frame can improve the transmission efficiency of the data, thereby reducing the playback delay of the multimedia data by the target device, and improving the user's audio-visual experience.
  • FIG. 2 is a schematic flowchart of an embodiment of a frame demultiplexing method provided by an embodiment of the present application, including:
  • Step 101 Acquire a target multimedia file in a source device.
  • the source device may be a first electronic device that plays multimedia files, such as a mobile phone, tablet, computer, etc., or other types of first electronic devices, which are not specifically limited in this application.
  • the multimedia file may include frames of multimedia data, and the frames of multimedia data may include frames of audio data and frames of video data. It can be understood that, in the embodiment of the present application, a multimedia file in the MP4 format is used as an example, but the embodiment of the present application does not limit the format of the multimedia file.
  • the storage of the audio data frames and video data frames in the MP4 format in the multimedia file may be implemented by a table index.
  • the video data frame may include a timing-to-frame index table, a frame-to-block index table, a block offset index table, and a frame size index table.
  • Table 1 shows the timing to frame index table.
  • serial number number of frames frame duration 1 1 42 2 1 41 3 2 42 4 1 41 ... ... ...
  • each block can contain one or more frames.
  • the length of each block can vary, as can the lengths of the frames within the block.
  • serial number block number frames per block 1 1 to 28 13 2 29 12 3 30 to 57 13 4 58 12 ... ... ...
  • the frame number of the specified frame can be used to search and obtain the corresponding block containing the specified frame, so that the specified frame can be found through the block.
  • the specified frame is the 500th frame
  • the 500th frame is greater than the total number of frames of the first 2 block sets, but less than the total number of frames of the first 3 block sets, therefore, the 500th frame frames are in blocks of the set of sequence number 3.
  • the 500th frame is greater than the total number of frames of the first 38 blocks, but less than The total number of frames for the first 39 blocks, so this 500th frame is in the block with block number 39.
  • 500 28*13+1*12+9*13+7, therefore, the 500th frame is the 7th frame in the block whose block number is 39.
  • Table 3 shows the block offset index table. Among them, the block offset is used to identify the position of each block in the multimedia file.
  • the block offset corresponding to the specified block can be obtained by searching by the sequence number of the specified block.
  • the frame size index table is shown in Table 4.
  • the frame size corresponding to the specified frame can be obtained by searching the frame number of the specified frame.
  • the corresponding block offset and frame size can be obtained by looking up the table through the above Table 1-Table 4, and then the corresponding frame offset can be obtained. Realize fast forward and fast rewind when playing multimedia files.
  • the block number (eg, block 39) corresponding to the 500th frame can be obtained through Table 2, so that the corresponding block offset can be obtained by searching through Table 3.
  • the frame number of the first frame in block 39 is 494
  • the frame number of the seventh frame in block 39 is 500. Therefore, the size of frame 494-frame 499 can be obtained by searching through Table 4.
  • the offset of frame 494 to frame 500 can be obtained respectively.
  • the offset can obtain the offset of frame 494 .
  • the offset of frame 495 can be obtained from the offset of block 39 and the frame size of frame 494.
  • the offset of frame 496 can be obtained from the offset of block 39, the frame size of frame 494, the frame size of frame 495, and so on.
  • the offset from frame 494 to frame 500 may be the playback address of the data frame, so that fast forward and fast rewind can be implemented.
  • Step 102 acquiring the input time.
  • the input time can be any time input by the user.
  • the user can click any time on the playback progress bar of the multimedia file to achieve fast forward or fast rewind; it can also be a preset time, which is implemented in this application. This example does not make any special restrictions.
  • Step 103 Determine the current optimum reading amount based on the input moment.
  • the optimal read amount is used to identify the number of multimedia data frames that can be read this time, for example, n audio data frames or n video data frames can be read at a time, where n is optimal read volume.
  • the read base m may be determined by the number of bits of the register and the data type of the multimedia data frame. Wherein, the read base m is used to identify the number of reads in units of blocks.
  • the NEON instruction set is adopted, the NEON is a 128-bit single instruction multiple data instruction set (Single Instruction Multiple Data, SIMD) of the ARM Cortex-A series processor, that is, the NEON is a 128-bit vector register.
  • SIMD Single Instruction Multiple Data
  • the read base m can also be a different value, for example, 2, 8, 16, etc., This embodiment of the present application does not make any special limitation on this.
  • the current optimal reading amount can be determined according to the reading base m.
  • Step 104 Determine the block offset based on the input moment.
  • the block offset can also be determined according to the input time.
  • the block offset can be inquired in Table 1 according to the input time to determine the frame number corresponding to the input time; then, inquired in Table 2 according to the frame number to determine the block corresponding to the input time number; and by querying in Table 3 according to the block number, the block offset can be determined.
  • Step 105 Determine the number of frames based on the current optimal read amount, and obtain the corresponding frame size according to the number of frames.
  • the number of frames read this time can be determined.
  • the optimal read amount this time is 4, the number of frames read this time is 4.
  • the frame size of each frame of the frames read this time can be obtained. Taking 4 frames, the frame size of the above 4 frames can be obtained.
  • Step 106 constructing a frame matrix based on the above block offset and frame size.
  • a frame matrix may also be constructed according to the block offset and frame size. where each row in the frame matrix can contain block offset and frame size.
  • the number of rows of the matrix corresponds to the optimal read volume, and the number of columns of the matrix corresponds to the optimal read volume.
  • the frame matrix may be a 4*4 matrix; if the optimal reading amount is 8, the frame matrix may be an 8*8 matrix. The embodiment does not make any special limitation on this.
  • the optimal reading amount is 4 as an example for illustration. Since the optimal reading amount is 4, that is, 4 frames are read this time, a 4*4 frame matrix can be constructed.
  • Figure 3 shows a 4*4 frame matrix, the first row of data in the frame matrix is (block offset, 0, 0, 0), and the second row data is (block offset, first frame size, 0 , 0), the third line of data is (block offset, first frame size, second frame size, 0), and the fourth line of data is (block offset, first frame size, second frame size, third frame size) .
  • Step 107 Perform vectorization calculation on the frame matrix to obtain a frame offset vector.
  • a vectorized calculation may be performed on the frame matrix, thereby obtaining a frame offset vector.
  • the vectorization calculation may be an accumulation and summation of all columns in the frame matrix, thereby obtaining a column vector, and the column vector may be a frame offset vector.
  • the 4 columns in the frame matrix are accumulated and summed, so that the column vector shown in FIG. 4 can be obtained, wherein the column vector can be the frame offset vector.
  • the data of each row in the column vector corresponds to the offset of each frame.
  • the value of the first row in the column vector is the block offset value, and the block offset value corresponds to the offset of the first frame; in the column vector The value of the second row of the block offset value + the size of the first frame, the value of the block offset value + the size of the first frame corresponds to the offset of the second frame; the value of the third row in the column vector is the block offset value + first frame size + second frame size, the block offset value + first frame size + second frame size value corresponds to the offset of the third frame; the value of the fourth row in the column vector is the block offset value + The size of the first frame + the size of the second frame + the size of the third frame, the block offset value + the size of the first frame + the size of the second frame + the size of the third frame corresponds to the offset of the fourth frame.
  • Step 108 Acquire a multimedia data frame in the target multimedia file according to the frame offset vector, and send the multimedia data frame to the target device.
  • the target device may be a first electronic device with a multimedia playback function, such as a mobile phone, a tablet, or a TV.
  • the source device obtains the frame offset vector, it can obtain multiple multimedia data frames in the target multimedia file according to the frame offset of each frame in the frame offset vector, and can send the multiple multimedia data frames to the target device .
  • the frame offset vector may correspond to an audio frame offset vector or a video frame offset vector, therefore, each acquisition may be a video data frame or an audio data frame. This embodiment of the present application There is no special restriction on this.
  • the source device when it sends the above-mentioned multimedia data frame to the target device, it can also send the frame size of each multimedia data frame to the target device, so that the target device separates each multimedia data frame, thereby Each frame of multimedia data can be decoded and played.
  • the source device can set a buffer (buffer), and the buffer can be used to store multimedia data frames, wherein, the multimedia data frames stored in the buffer can be the multimedia data frames obtained after vectorization calculation this time, Next, the source device may send the multimedia data frame stored in the buffer and the frame size corresponding to each multimedia data frame to the target device. After receiving the multimedia data frame stored in the buffer and the frame size corresponding to each multimedia data frame, the target device can sequentially separate each frame from the buffer according to the frame size.
  • the offset of the first frame in the buffer can be regarded as 0, and the first frame can be separated according to the frame size of the first frame; then, the frame size of the first frame is used as the second frame.
  • the offset of the frame, and the second frame can be separated according to the frame size of the second frame, and so on, all the frames in the buffer can be separated.
  • the offsets of multiple multimedia data frames can be obtained, so as to realize reading multiple multimedia data frames at one time, which improves the efficiency of data reading, and improves the efficiency of data reading.
  • the data sending efficiency can be improved.
  • FIG. 5 is a schematic structural diagram of an embodiment of a frame demultiplexing apparatus of the present application.
  • the frame demultiplexing apparatus 50 may include: a first acquisition module 51 , a second acquisition module 52 , a calculation module 53 , a read Get module 54 and send module 55;
  • the first acquisition module 51 is used to acquire a target file, and the target file contains a plurality of multimedia frames;
  • the second obtaining module 52 is used to obtain the input time
  • the calculation module 53 is used to determine the optimal read amount and the first multimedia frame based on the input moment
  • the reading module 54 is configured to read a plurality of second multimedia frames in the target file from the first multimedia frame based on the optimal reading amount, wherein the second multimedia frames include the first multimedia frames. media frame;
  • the sending module 55 is configured to send a plurality of second multimedia frames to the second electronic device.
  • the multiple multimedia frames include multiple video frames and multiple audio frames
  • the above-mentioned reading module 54 is further configured to read the target file starting from the first video frame based on the optimal reading amount a plurality of second video frames in;
  • the above calculation module 53 includes: an acquisition unit 531, a statistics unit 532, and a determination unit 533;
  • Obtaining unit 531 used to obtain the preset pending reading number
  • Statistical unit 532 is used to count the frame numbers of all multimedia frames from the input moment to the end moment of the target file
  • Determining unit 533 for if the frame number of the multimedia frame is greater than or equal to the preset pending reading number, then the preset pending reading number is set as the optimal reading amount; if the frame number of the multimedia frame is less than the preset pending reading number number, set the optimal read amount to 1.
  • the above-mentioned preset pending read number is determined by the number of bits of the vector register and the data type of the multimedia frame.
  • the above-mentioned reading module 54 includes: a calculation unit 541, a retrieval unit 542, a construction unit 543, an operation unit 544, and a reading unit 545;
  • a calculation unit 541, configured to determine the block offset based on the input moment
  • Retrieval unit 542 for obtaining the frame size of each second multimedia frame based on the optimal read amount
  • a construction unit 543 for constructing a frame matrix based on the block offset and the frame size
  • Operation unit 544 for carrying out vectorization operation to frame matrix, obtains frame offset vector
  • the reading unit 545 is configured to read a plurality of second multimedia frames in the target file from the first multimedia frame according to the frame offset vector.
  • the above-mentioned sending module 55 is further configured to send a plurality of second multimedia frames and the frame size of each second multimedia frame to the second electronic device.
  • each module of the frame demultiplexing apparatus shown in FIG. 5 is only a division of logical functions, and may be fully or partially integrated into a physical entity in actual implementation, or may be physically separated.
  • these modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in hardware.
  • the computing module may be a separately established processing element, or may be integrated in a certain chip of an electronic device.
  • the implementation of other modules is similar.
  • all or part of these modules can be integrated together, and can also be implemented independently.
  • each step of the above-mentioned method or each of the above-mentioned modules can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
  • the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter referred to as: ASIC), or, one or more microprocessors Digital Singnal Processor (hereinafter referred to as: DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array; hereinafter referred to as: FPGA), etc.
  • ASIC Application Specific Integrated Circuit
  • DSP Digital Singnal Processor
  • FPGA Field Programmable Gate Array
  • these modules can be integrated together and implemented in the form of a system-on-a-chip (System-On-a-Chip; hereinafter referred to as: SOC).
  • FIG. 6 shows a schematic structural diagram of the first electronic device 100 .
  • the first electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, Antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194 , and a subscriber identification module (subscriber identification module, SIM) card interface 195 and the like.
  • SIM subscriber identification module
  • the sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
  • the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the first electronic device 100 .
  • the first electronic device 100 may include more or less components than shown, or some components are combined, or some components are separated, or different components are arranged.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • ISP image signal processor
  • controller video codec
  • digital signal processor digital signal processor
  • baseband processor baseband processor
  • neural-network processing unit neural-network processing unit
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL).
  • the processor 110 may contain multiple sets of I2C buses.
  • the processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces.
  • the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface, so as to realize the touch function of the first electronic device 100 .
  • the I2S interface can be used for audio communication.
  • the processor 110 may contain multiple sets of I2S buses.
  • the processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 .
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
  • the PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals.
  • the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface.
  • the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
  • the UART interface is a universal serial data bus used for asynchronous communication.
  • the bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication.
  • a UART interface is typically used to connect the processor 110 with the wireless communication module 160 .
  • the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function.
  • the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
  • the MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 .
  • MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc.
  • the processor 110 communicates with the camera 193 through a CSI interface, so as to implement the shooting function of the first electronic device 100 .
  • the processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the first electronic device 100 .
  • the GPIO interface can be configured by software.
  • the GPIO interface can be configured as a control signal or as a data signal.
  • the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like.
  • the GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
  • the USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like.
  • the USB interface 130 can be used to connect a charger to charge the first electronic device 100, and can also be used to transmit data between the first electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones.
  • the interface can also be used to connect other electronic devices, such as AR devices.
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the first electronic device 100 .
  • the first electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through the wireless charging coil of the first electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives the input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , and the wireless communication module 160 .
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the first electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in the first electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G etc. applied on the first electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the first electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global Navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • BT wireless fidelity
  • GNSS global Navigation satellite system
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • IR infrared technology
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the
  • the antenna 1 of the first electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the first electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • the first electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • Display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED diode AMOLED
  • flexible light-emitting diode flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on.
  • the first electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
  • the first electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the first electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the first electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point, and the like.
  • Video codecs are used to compress or decompress digital video.
  • the first electronic device 100 may support one or more video codecs.
  • the first electronic device 100 can play or record videos in various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG Moving Picture Experts Group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 Moving Picture Experts Group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • Applications such as intelligent cognition of the first electronic device 100 can be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the first electronic device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the internal memory 121 may include a storage program area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the first electronic device 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the processor 110 executes various functional applications and data processing of the first electronic device 100 by executing the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor.
  • the first electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
  • Speaker 170A also referred to as a "speaker" is used to convert audio electrical signals into sound signals.
  • the first electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
  • the receiver 170B also referred to as "earpiece" is used to convert audio electrical signals into sound signals.
  • the voice can be answered by placing the receiver 170B close to the human ear.
  • the microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound through the human mouth close to the microphone 170C, and input the sound signal into the microphone 170C.
  • the first electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the first electronic device 100 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the first electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D can be the USB interface 130, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals.
  • the pressure sensor 180A may be provided on the display screen 194 .
  • the capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes.
  • the first electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the first electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A.
  • the first electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A.
  • touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
  • the gyro sensor 180B may be used to determine the motion attitude of the first electronic device 100 .
  • the angular velocity of the first electronic device 100 about three axes ie, the x, y and z axes
  • the gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the first electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking of the first electronic device 100 through reverse motion, Achieve anti-shake.
  • the gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
  • the air pressure sensor 180C is used to measure air pressure.
  • the first electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
  • the magnetic sensor 180D includes a Hall sensor.
  • the first electronic device 100 can detect the opening and closing of the flip holster by using the magnetic sensor 180D.
  • the first electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
  • the acceleration sensor 180E can detect the magnitude of the acceleration of the first electronic device 100 in various directions (generally three axes).
  • the magnitude and direction of gravity can be detected when the first electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
  • the first electronic device 100 may measure the distance through infrared or laser. In some embodiments, when shooting a scene, the first electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
  • Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes.
  • the light emitting diodes may be infrared light emitting diodes.
  • the first electronic device 100 emits infrared light to the outside through light emitting diodes.
  • the first electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object near the first electronic device 100 . When insufficient reflected light is detected, the first electronic device 100 may determine that there is no object near the first electronic device 100 .
  • the first electronic device 100 can use the proximity light sensor 180G to detect that the user holds the first electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power.
  • Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
  • the ambient light sensor 180L is used to sense ambient light brightness.
  • the first electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures.
  • the ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the first electronic device 100 is in the pocket, so as to prevent accidental touch.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the first electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering incoming calls with fingerprints, and the like.
  • the temperature sensor 180J is used to detect the temperature.
  • the first electronic device 100 uses the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the first electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection.
  • the first electronic device 100 when the temperature is lower than another threshold, the first electronic device 100 heats the battery 142 to avoid abnormal shutdown of the first electronic device 100 due to low temperature.
  • the first electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
  • Touch sensor 180K also called “touch device”.
  • the touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”.
  • the touch sensor 180K is used to detect a touch operation on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • Visual output related to touch operations may be provided through display screen 194 .
  • the touch sensor 180K may also be disposed on the surface of the first electronic device 100 , which is different from the position where the display screen 194 is located.
  • the bone conduction sensor 180M can acquire vibration signals.
  • the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice.
  • the bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal.
  • the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone.
  • the audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function.
  • the application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key.
  • the first electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the first electronic device 100 .
  • Motor 191 can generate vibrating cues.
  • the motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • touch operations acting on different applications can correspond to different vibration feedback effects.
  • the motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 .
  • Different application scenarios for example: time reminder, receiving information, alarm clock, games, etc.
  • the touch vibration feedback effect can also support customization.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact with and separation from the first electronic device 100 .
  • the first electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different.
  • the SIM card interface 195 can also be compatible with different types of SIM cards.
  • the SIM card interface 195 is also compatible with external memory cards.
  • the first electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication.
  • the first electronic device 100 employs an eSIM, ie an embedded SIM card.
  • the eSIM card can be embedded in the first electronic device 100 and cannot be separated from the first electronic device 100 .
  • the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the first electronic device 100 .
  • the first electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the above-mentioned first electronic device 100 and the like include corresponding hardware structures and/or software modules for executing each function.
  • the embodiments of the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the embodiments of the present invention.
  • the first electronic device 100 and the like may be divided into functional modules according to the foregoing method examples.
  • each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. middle.
  • the above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiment of the present invention is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
  • Each functional unit in each of the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • a computer-readable storage medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

Embodiments of the present application relate to the technical field of multimedia, and provide a frame demultiplexing method, an electronic device and a storage medium. The method comprises: obtaining a target file, the target file comprising a plurality of multimedia frames; obtaining an input moment; determining the optimal read volume and a first multimedia frame on the basis of the input moment; starting from the first multimedia frame, reading a plurality of second multimedia frames in the target file on the basis of the optimal read volume, wherein the second multimedia frames comprise the first multimedia frame; and sending the plurality of second multimedia frame to a second electronic device. According to the method provided in the embodiments of the present application, the computing ability and the reading ability of an audio frame and a video frame can be improved, such that the sending volume of the audio frame and the video frame can be improved, thereby improving the sending efficiency of the audio frame and the video frame.

Description

帧解复用方法、电子设备及存储介质Frame demultiplexing method, electronic device and storage medium
本申请要求于2020年11月09日提交中国专利局、申请号为202011240224.1、申请名称为“帧解复用方法、电子设备及存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202011240224.1 and the application title "Frame Demultiplexing Method, Electronic Device and Storage Medium" filed with the China Patent Office on November 09, 2020, the entire contents of which are incorporated by reference in this application.
技术领域technical field
本申请实施例涉及多媒体技术领域,尤其涉及一种帧解复用方法、电子设备及存储介质。The embodiments of the present application relate to the field of multimedia technologies, and in particular, to a frame demultiplexing method, an electronic device, and a storage medium.
背景技术Background technique
随着通信技术的发展,电子设备的功能越来越丰富,用户可以使用电子设备搜索各种多媒体资源并进行播放。随着网络技术的不断发展,分布式网络的应用越来越广泛,其中,包括多媒体分布式技术。With the development of communication technology, the functions of electronic devices are more and more abundant, and users can use the electronic devices to search for various multimedia resources and play them. With the continuous development of network technology, the application of distributed network is more and more extensive, including multimedia distributed technology.
多媒体分布式技术的核心功能之一是从源设备将多媒体数据进行解复用,并将解复用后得到的音频数据和视频数据发送到目标设备。One of the core functions of the multimedia distribution technology is to demultiplex the multimedia data from the source device, and send the demultiplexed audio data and video data to the target device.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种帧解复用方法、电子设备及存储介质,以提供一种对音频帧和视频帧的解复用计算方式,提升对音频帧和视频帧的计算能力及读取能力,由此可以提升音频帧和视频帧的发送量,进而可以提高音频帧和视频帧的发送效率。Embodiments of the present application provide a frame demultiplexing method, an electronic device, and a storage medium, so as to provide a demultiplexing calculation method for audio frames and video frames, so as to improve the calculation capability and readability of audio frames and video frames. Therefore, the transmission volume of audio frames and video frames can be increased, thereby improving the transmission efficiency of audio frames and video frames.
第一方面,本申请实施例提供了一种帧解复用方法,包括:In a first aspect, an embodiment of the present application provides a frame demultiplexing method, including:
获取目标文件,目标文件包含多个多媒体帧;具体地,该目标文件可以是多媒体文件,例如,一段视频。该多媒体帧可以包括音频帧和视频帧。Acquire a target file, where the target file contains multiple multimedia frames; specifically, the target file may be a multimedia file, for example, a piece of video. The multimedia frames may include audio frames and video frames.
获取输入时刻;具体地,该输入时刻可以包括用户输入的时刻,例如,用户在快进或快退是指定的时刻。该输入时刻也可以是上述多媒体视频在顺序播放时的任一时刻,本申请实施例对此不作特殊限定。Acquire the input time; specifically, the input time may include the time input by the user, for example, the user is fast-forwarding or fast-rewinding at the designated time. The input time may also be any time when the above-mentioned multimedia video is played in sequence, which is not particularly limited in this embodiment of the present application.
基于输入时刻确定最佳读取量及第一多媒体帧;具体地,该最佳读取量可以是本次可以读取的多媒体帧的数量。该第一多媒体帧与该输入时刻对应。The optimal read amount and the first multimedia frame are determined based on the input moment; specifically, the optimal read amount may be the number of multimedia frames that can be read this time. The first multimedia frame corresponds to the input moment.
基于最佳读取量,从第一多媒体帧开始,读取目标文件中的多个第二多媒体帧,其中,第二多媒体帧包括第一多媒体帧;具体地,该多个第二多媒体帧可以是包括上述第一多媒体帧的多个数据帧。示例性的,假设最佳读取量为4,若第一多媒体帧的帧号为1001,则从1001开始读取4帧,也就是1001、1002、1003及1004这4个帧。Based on the optimal read amount, starting from the first multimedia frame, read multiple second multimedia frames in the target file, wherein the second multimedia frames include the first multimedia frames; specifically, The plurality of second multimedia frames may be a plurality of data frames including the above-mentioned first multimedia frames. Exemplarily, assuming that the optimal read amount is 4, if the frame number of the first multimedia frame is 1001, 4 frames are read from 1001, that is, 4 frames 1001, 1002, 1003 and 1004.
将多个第二多媒体帧发送给第二电子设备。The plurality of second multimedia frames are sent to the second electronic device.
其中一种可能的实现方式中,多个多媒体帧包括多个视频帧和多个音频帧,基于 最佳读取量,从第一多媒体帧开始,读取目标文件中的多个第二多媒体帧包括:In one possible implementation manner, the multiple multimedia frames include multiple video frames and multiple audio frames, and based on the optimal read amount, starting from the first multimedia frame, read multiple second multimedia frames in the target file. Multimedia frames include:
基于最佳读取量,从第一视频帧开始,读取目标文件中的多个第二视频帧;具体地,该多个第二多媒体帧可以是多个第二视频帧。Based on the optimal read amount, starting from the first video frame, read multiple second video frames in the target file; specifically, the multiple second multimedia frames may be multiple second video frames.
或基于最佳读取量,从第一音频帧开始,读取目标文件中的多个第二音频帧;具体地,该多个第二多媒体帧可以是多个第二音频帧。Or based on the optimal read amount, starting from the first audio frame, read multiple second audio frames in the target file; specifically, the multiple second multimedia frames may be multiple second audio frames.
其中一种可能的实现方式中,基于输入时刻确定最佳读取量包括:In one of the possible implementations, determining the optimal read amount based on the input moment includes:
获取预设待定读取数;具体地,该预设待定读取数可以是暂定的最佳读取数。Obtain the preset pending reading number; specifically, the preset pending reading number may be a tentative optimal reading number.
统计从输入时刻开始至目标文件结束时刻的所有多媒体帧的帧数;示例性的,假设该目标文件的总帧数为1000,帧号为1-1000,也就是说,该目标文件开始时刻对应的帧号为1,该目标文件结束时刻对应的帧号为1000,若该输入时刻对应的帧号为490,则剩余的帧数为1000-490=510,也就是说,从输入时刻开始至目标文件结束时刻的所有多媒体帧的帧数为510。Count the frame numbers of all multimedia frames from the input time to the end time of the target file; exemplarily, it is assumed that the total number of frames of the target file is 1000, and the frame number is 1-1000, that is, the start time of the target file corresponds to The frame number is 1, and the frame number corresponding to the end time of the target file is 1000. If the frame number corresponding to the input time is 490, the remaining frames are 1000-490=510, that is, from the input time to The frame number of all multimedia frames at the end of the target file is 510.
若多媒体帧的帧数大于或等于预设待定读取数,则将预设待定读取数设为最佳读取量;示例性的,假设预设待定读取数为4,若从输入时刻开始至目标文件结束时刻的所有多媒体帧的帧数大于或等于4,则可以将最佳读取数设为4,也就是说,本次读取4帧。If the frame number of the multimedia frame is greater than or equal to the preset pending reading number, the preset pending reading number is set as the optimal reading amount; exemplarily, it is assumed that the preset pending reading number is 4. If the frame number of all multimedia frames from the beginning to the end of the target file is greater than or equal to 4, the optimal reading number can be set to 4, that is, 4 frames are read this time.
若多媒体帧的帧数小于预设待定读取数,则将最佳读取量设为1;示例性的,假设当前时刻对应的帧号为998,目标文件的总帧数为1000,则从输入时刻开始至目标文件结束时刻的所有多媒体帧的帧数为1000-998=2,此时,可将最佳读取量设为1,也就是说,本次只读取一帧。If the frame number of the multimedia frame is less than the preset number of pending reads, the optimal read amount is set to 1; for example, assuming that the frame number corresponding to the current moment is 998, and the total number of frames of the target file is 1000, then from The number of frames of all multimedia frames from the input time to the end of the target file is 1000-998=2. At this time, the optimal read amount can be set to 1, that is, only one frame is read this time.
其中一种可能的实现方式中,预设待定读取数由向量寄存器的位数和多媒体帧的数据类型确定。其中,该向量寄存器可以是单指令多数据指令集,例如,NEON。In one possible implementation manner, the preset pending read number is determined by the number of bits of the vector register and the data type of the multimedia frame. Wherein, the vector register may be a single instruction multiple data instruction set, for example, NEON.
其中一种可能的实现方式中,基于最佳读取量,从第一多媒体帧开始,读取目标文件中的多个第二多媒体帧包括:In one possible implementation manner, based on the optimal read amount, starting from the first multimedia frame, reading multiple second multimedia frames in the target file includes:
基于输入时刻确定块偏移;Determine the block offset based on the input time instant;
基于最佳读取量获取每个第二多媒体帧的帧大小;obtaining the frame size of each second multimedia frame based on the optimal read amount;
基于块偏移和帧大小构建帧矩阵;Build a frame matrix based on block offset and frame size;
对帧矩阵进行向量化运算,得到帧偏移向量;Perform a vectorization operation on the frame matrix to obtain a frame offset vector;
根据帧偏移向量,从第一多媒体帧开始,读取目标文件中的多个第二多媒体帧。According to the frame offset vector, starting from the first multimedia frame, a plurality of second multimedia frames in the target file are read.
其中一种可能的实现方式中,将多个第二多媒体帧发送给第二电子设备包括:In one possible implementation manner, sending the plurality of second multimedia frames to the second electronic device includes:
将多个第二多媒体帧及每个第二多媒体帧的帧大小发送给第二电子设备。由此可以便于目标设备基于该每个第二多媒体帧的帧大小分离出每个第二多媒体帧。The plurality of second multimedia frames and the frame size of each second multimedia frame are sent to the second electronic device. Therefore, it is convenient for the target device to separate each second multimedia frame based on the frame size of each second multimedia frame.
第二方面,本申请实施例提供一种帧解复用装置,包括:In a second aspect, an embodiment of the present application provides a frame demultiplexing apparatus, including:
第一获取模块,用于获取目标文件,目标文件包含多个多媒体帧;The first acquisition module is used to acquire a target file, and the target file contains a plurality of multimedia frames;
第二获取模块,用于获取输入时刻;The second obtaining module is used to obtain the input time;
计算模块,用于基于输入时刻确定最佳读取量及第一多媒体帧;a calculation module, for determining the optimal read amount and the first multimedia frame based on the input moment;
读取模块,用于基于最佳读取量,从第一多媒体帧开始,读取目标文件中的多个第二多媒体帧,其中,第二多媒体帧包括第一多媒体帧;A reading module, configured to read a plurality of second multimedia frames in the target file based on the optimal read amount, starting from the first multimedia frame, wherein the second multimedia frames include the first multimedia frame body frame;
发送模块,用于将多个第二多媒体帧发送给第二电子设备。The sending module is used for sending a plurality of second multimedia frames to the second electronic device.
其中一种可能的实现方式中,多个多媒体帧包括多个视频帧和多个音频帧,上述读取模块还用于基于最佳读取量,从第一视频帧开始,读取目标文件中的多个第二视频帧;In one possible implementation manner, the multiple multimedia frames include multiple video frames and multiple audio frames, and the above-mentioned reading module is further configured to, based on the optimal read amount, start from the first video frame, read the target file a plurality of second video frames;
或基于最佳读取量,从第一音频帧开始,读取目标文件中的多个第二音频帧。Or read multiple second audio frames in the target file, starting from the first audio frame, based on the optimal read amount.
其中一种可能的实现方式中,上述计算模块包括:In one possible implementation manner, the above calculation module includes:
获取单元,用于获取预设待定读取数;an acquisition unit, used to acquire the preset pending read count;
统计单元,用于统计从输入时刻开始至目标文件结束时刻的所有多媒体帧的帧数;A statistical unit, used to count the frame numbers of all multimedia frames from the input moment to the end moment of the target file;
确定单元,用于若多媒体帧的帧数大于或等于预设待定读取数,则将预设待定读取数设为最佳读取量;若多媒体帧的帧数小于预设待定读取数,则将最佳读取量设为1。The determining unit is used to set the preset pending reading number as the optimal reading amount if the frame number of the multimedia frame is greater than or equal to the preset pending reading number; if the frame number of the multimedia frame is less than the preset pending reading number , the optimal read amount is set to 1.
其中一种可能的实现方式中,上述预设待定读取数由向量寄存器的位数和多媒体帧的数据类型确定。In one possible implementation manner, the above-mentioned preset pending read number is determined by the number of bits of the vector register and the data type of the multimedia frame.
其中一种可能的实现方式中,上述读取模块包括:In one possible implementation manner, the above-mentioned reading module includes:
计算单元,用于基于输入时刻确定块偏移;a computing unit for determining the block offset based on the input moment;
检索单元,用于基于最佳读取量获取每个第二多媒体帧的帧大小;a retrieval unit for obtaining the frame size of each second multimedia frame based on the optimal read amount;
构建单元,用于基于块偏移和所述帧大小构建帧矩阵;a building unit for building a frame matrix based on the block offset and the frame size;
运算单元,用于对帧矩阵进行向量化运算,得到帧偏移向量;an operation unit, used to perform a vectorization operation on the frame matrix to obtain a frame offset vector;
读取单元,用于根据帧偏移向量,从第一多媒体帧开始,读取目标文件中的多个第二多媒体帧。The reading unit is configured to read, starting from the first multimedia frame, a plurality of second multimedia frames in the target file according to the frame offset vector.
其中一种可能的实现方式中,上述发送模块还用于将多个第二多媒体帧及每个第二多媒体帧的帧大小发送给第二电子设备。In one possible implementation manner, the above-mentioned sending module is further configured to send the plurality of second multimedia frames and the frame size of each second multimedia frame to the second electronic device.
第三方面,本申请实施例提供一种第一电子设备,包括:In a third aspect, an embodiment of the present application provides a first electronic device, including:
存储器,上述存储器用于存储计算机程序代码,上述计算机程序代码包括指令,当上述第一电子设备从上述存储器中读取上述指令,以使得上述第一电子设备执行以下步骤:Memory, the memory is used to store computer program code, and the computer program code includes instructions. When the first electronic device reads the instructions from the memory, the first electronic device performs the following steps:
获取目标文件,目标文件包含多个多媒体帧;Get the target file, the target file contains multiple multimedia frames;
获取输入时刻;Get the input moment;
基于输入时刻确定最佳读取量及第一多媒体帧;Determine the optimal read amount and the first multimedia frame based on the input time;
基于最佳读取量,从第一多媒体帧开始,读取目标文件中的多个第二多媒体帧,其中,第二多媒体帧包括第一多媒体帧;Based on the optimal read amount, starting from the first multimedia frame, read a plurality of second multimedia frames in the target file, wherein the second multimedia frames include the first multimedia frames;
将多个第二多媒体帧发送给第二电子设备。The plurality of second multimedia frames are sent to the second electronic device.
其中一种可能的实现方式中,多个多媒体帧包括多个视频帧和多个音频帧上述指令被上述第一电子设备执行时,使得上述第一电子设备执行基于最佳读取量,从第一多媒体帧开始,读取目标文件中的多个第二多媒体帧的步骤包括:In one possible implementation manner, when the above-mentioned instruction is executed by the above-mentioned first electronic device, the plurality of multimedia frames include a plurality of video frames and a plurality of audio frames, so that the above-mentioned first electronic device executes a sequence from the first electronic device based on the optimal read amount. Starting from a multimedia frame, the steps of reading a plurality of second multimedia frames in the target file include:
基于最佳读取量,从第一视频帧开始,读取目标文件中的多个第二视频帧;Based on the optimal read amount, starting from the first video frame, read multiple second video frames in the target file;
或基于最佳读取量,从第一音频帧开始,读取目标文件中的多个第二音频帧。Or read multiple second audio frames in the target file, starting from the first audio frame, based on the optimal read amount.
其中一种可能的实现方式中,上述指令被上述第一电子设备执行时,使得上述第 一电子设备执行基于输入时刻确定最佳读取量的步骤包括:In one possible implementation manner, when the above-mentioned instruction is executed by the above-mentioned first electronic device, the step of making the above-mentioned first electronic device to perform the determination of the optimal reading amount based on the input time includes:
获取预设待定读取数;Get the number of preset pending reads;
统计从输入时刻开始至目标文件结束时刻的所有多媒体帧的帧数;Count the number of frames of all multimedia frames from the time of input to the end of the target file;
若多媒体帧的帧数大于或等于预设待定读取数,则将预设待定读取数设为最佳读取量;If the frame number of the multimedia frame is greater than or equal to the preset pending reading number, the preset pending reading number is set as the optimal reading amount;
若多媒体帧的帧数小于预设待定读取数,则将最佳读取量设为1。If the frame number of the multimedia frame is less than the preset pending reading number, the optimal reading amount is set to 1.
其中一种可能的实现方式中,上述预设待定读取数由向量寄存器的位数和多媒体帧的数据类型确定。In one possible implementation manner, the above-mentioned preset pending read number is determined by the number of bits of the vector register and the data type of the multimedia frame.
其中一种可能的实现方式中,上述指令被上述第一电子设备执行时,使得上述第一电子设备执行基于最佳读取量,从第一多媒体帧开始,读取目标文件中的多个第二多媒体帧的步骤包括:In one of the possible implementation manners, when the above-mentioned instruction is executed by the above-mentioned first electronic device, the above-mentioned first electronic device is made to read, starting from the first multimedia frame, multiple data in the target file based on the optimal read amount. The steps of a second multimedia frame include:
基于输入时刻确定块偏移;Determine the block offset based on the input time instant;
基于最佳读取量获取每个第二多媒体帧的帧大小;obtaining the frame size of each second multimedia frame based on the optimal read amount;
基于块偏移和帧大小构建帧矩阵;Build a frame matrix based on block offset and frame size;
对帧矩阵进行向量化运算,得到帧偏移向量;Perform a vectorization operation on the frame matrix to obtain a frame offset vector;
根据帧偏移向量,从第一多媒体帧开始,读取目标文件中的多个第二多媒体帧。According to the frame offset vector, starting from the first multimedia frame, a plurality of second multimedia frames in the target file are read.
其中一种可能的实现方式中,上述指令被上述第一电子设备执行时,使得上述第一电子设备执行将多个第二多媒体帧发送给第二电子设备的步骤包括:In one possible implementation manner, when the above-mentioned instruction is executed by the above-mentioned first electronic device, causing the above-mentioned first electronic device to execute the step of sending a plurality of second multimedia frames to the second electronic device includes:
将多个第二多媒体帧及每个第二多媒体帧的帧大小发送给第二电子设备。The plurality of second multimedia frames and the frame size of each second multimedia frame are sent to the second electronic device.
第四方面,本申请实施例提供一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行如第一方面所述的方法。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, where a computer program is stored in the computer-readable storage medium, and when it runs on a computer, causes the computer to execute the method described in the first aspect.
第五方面,本申请实施例提供一种计算机程序,当上述计算机程序被计算机执行时,用于执行第一方面所述的方法。In a fifth aspect, an embodiment of the present application provides a computer program, which is used to execute the method described in the first aspect when the computer program is executed by a computer.
在一种可能的设计中,第五方面中的程序可以全部或者部分存储在与处理器封装在一起的存储介质上,也可以部分或者全部存储在不与处理器封装在一起的存储器上。In a possible design, the program in the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, and may also be stored in part or in part in a memory not packaged with the processor.
附图说明Description of drawings
图1为本申请实施例提供的应用场景示意图;1 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图2为本申请实施例提供的帧解复用方法的流程示意图;2 is a schematic flowchart of a frame demultiplexing method provided by an embodiment of the present application;
图3为本申请实施例提供的帧矩阵示意图;3 is a schematic diagram of a frame matrix provided by an embodiment of the present application;
图4为本申请实施例提供的帧偏移向量示意图;4 is a schematic diagram of a frame offset vector provided by an embodiment of the present application;
图5为本申请实施例提供的帧解复用装置的结构示意图;5 is a schematic structural diagram of a frame demultiplexing apparatus provided by an embodiment of the present application;
图6为本申请实施例提供的电子设备的结构示意图。FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;本文中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种 关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。The technical solutions in the embodiments of the present application will be described below with reference to the accompanying drawings in the embodiments of the present application. Wherein, in the description of the embodiments of the present application, unless otherwise stated, “/” means or means, for example, A/B can mean A or B; “and/or” in this document is only a description of the associated object The association relationship of , indicates that there can be three kinds of relationships, for example, A and/or B, can indicate that A exists alone, A and B exist at the same time, and B exists alone.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征。在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms "first" and "second" are only used for descriptive purposes, and should not be construed as indicating or implying relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may expressly or implicitly include one or more of that feature. In the description of the embodiments of the present application, unless otherwise specified, "plurality" means two or more.
多媒体分布式技术的核心功能之一是从源设备将多媒体数据进行解复用,并将解复用后得到的音频数据和视频数据发送到目标设备。One of the core functions of the multimedia distribution technology is to demultiplex the multimedia data from the source device, and send the demultiplexed audio data and video data to the target device.
图1为源设备将多媒体数据发送至目标设备的流程框图,如图1所示,在源设备中可以对多媒体文件进行解复用,由此可以分别得到音频数据和视频数据;接着,可以分别对音频数据和视频数据进行读取,由于每次只能读取一帧数据,因此,每次只能得到单个音频帧和单个视频帧,例如,每次读取音频数据,只能得到一帧音频数据,每次读取视频数据,只能得到一帧视频数据。接着,源设备通过传输模块将视频帧和音频帧发送给目标设备,其中,每次只能发送一帧数据,例如,每次只能发送一帧音频数据或一帧视频数据。Fig. 1 is a flow chart of the source device sending multimedia data to the target device. As shown in Fig. 1, the multimedia file can be demultiplexed in the source device, thereby obtaining audio data and video data respectively; Read audio data and video data. Since only one frame of data can be read at a time, only a single audio frame and a single video frame can be obtained each time. For example, each time audio data is read, only one frame can be obtained. Audio data, each time video data is read, only one frame of video data can be obtained. Next, the source device sends the video frame and the audio frame to the target device through the transmission module, wherein only one frame of data can be sent at a time, for example, only one frame of audio data or one frame of video data can be sent at a time.
通过图1的方案可知,源设备每次只能解复用一帧数据(例如,一帧音频或一帧视频)。因此,源设备需要足够的时间才能将一定量的音频数据和视频数据发送到目标设备,以便目标设备进行播放,由此会给目标设备的音频数据和视频数据的播放带来时延,降低了用户的视听体验。此外,源设备在发送多媒体数据的时候每次只能发送一帧数据,数据的传输效率低下。It can be known from the solution in FIG. 1 that the source device can only demultiplex one frame of data (for example, one frame of audio or one frame of video) at a time. Therefore, the source device needs enough time to send a certain amount of audio data and video data to the target device so that the target device can play it, which will bring delay to the playback of the audio data and video data of the target device, reducing the User's audiovisual experience. In addition, the source device can only send one frame of data at a time when sending multimedia data, and the data transmission efficiency is low.
基于上述问题,本申请实施例提出了一种帧解复用方法,由此可以在源设备中一次读取多个多媒体数据帧,提高数据的读取效率,并通过源设备一次发送多个多媒体数据帧,可以提高数据的发送效率,进而可以减少目标设备对多媒体数据的播放时延,提高用户的视听体验。Based on the above problems, an embodiment of the present application proposes a frame demultiplexing method, whereby multiple multimedia data frames can be read from the source device at one time, the data reading efficiency can be improved, and multiple multimedia data frames can be sent through the source device at one time The data frame can improve the transmission efficiency of the data, thereby reducing the playback delay of the multimedia data by the target device, and improving the user's audio-visual experience.
现以MP4格式的多媒体文件为例,并结合图2-图4对本申请实施例提供的帧解复用方法进行说明,Now take a multimedia file in MP4 format as an example, and describe the frame demultiplexing method provided by the embodiment of the present application with reference to FIG. 2 to FIG. 4 ,
如图2所示为本申请实施例提供的帧解复用方法一个实施例的流程示意图,包括:FIG. 2 is a schematic flowchart of an embodiment of a frame demultiplexing method provided by an embodiment of the present application, including:
步骤101,在源设备中获取目标多媒体文件。Step 101: Acquire a target multimedia file in a source device.
具体地,该源设备可以是对多媒体文件进行播放的第一电子设备,例如,手机、平板、电脑等,也可以是其他类型的第一电子设备,本申请对此不作特殊限定。该多媒体文件可以包括多媒体数据帧,该多媒体数据帧可以包括音频数据帧和视频数据帧。可以理解的是,本申请实施例中以MP4格式的多媒体文件为例,但本申请实施例并不限定多媒体文件的格式。Specifically, the source device may be a first electronic device that plays multimedia files, such as a mobile phone, tablet, computer, etc., or other types of first electronic devices, which are not specifically limited in this application. The multimedia file may include frames of multimedia data, and the frames of multimedia data may include frames of audio data and frames of video data. It can be understood that, in the embodiment of the present application, a multimedia file in the MP4 format is used as an example, but the embodiment of the present application does not limit the format of the multimedia file.
其中,上述MP4格式的音频数据帧和视频数据帧在多媒体文件中的存储可以通过表格索引方式实现。以视频数据帧为例,该视频数据帧可以包括时序到帧索引表、帧到块索引表、块偏移索引表及帧大小索引表。如表1所示为时序到帧索引表。Wherein, the storage of the audio data frames and video data frames in the MP4 format in the multimedia file may be implemented by a table index. Taking a video data frame as an example, the video data frame may include a timing-to-frame index table, a frame-to-block index table, a block offset index table, and a frame size index table. Table 1 shows the timing to frame index table.
表1Table 1
序号serial number 帧数目number of frames 帧时长frame duration
11 11 4242
22 11 4141
33 22 4242
44 11 4141
通过上述表1中的索引关系,可以由用户输入的任意时刻,查找获得对应的帧号。举例来说,假设用户输入的时刻为200,而序号1的帧数目为1,帧时长为42,序号2的帧数目为1,帧时长为41,序号3的帧数目为2,帧时长为42,序号4的帧数目为1,帧时长为41,则前4个帧的总时长为1*42+1*41+2*42=167,前5个帧的总时长为1*42+1*41+2*42+1*41=208,因此,时刻200对应的是第5个帧,也就是说,帧号为5。Through the index relationship in Table 1 above, the corresponding frame number can be obtained by searching at any moment input by the user. For example, suppose the user input time is 200, the frame number of sequence 1 is 1, the frame duration is 42, the frame number of sequence 2 is 1, the frame duration is 41, the frame number of sequence 3 is 2, and the frame duration is 42, the number of frames of serial number 4 is 1, and the frame duration is 41, then the total duration of the first 4 frames is 1*42+1*41+2*42=167, and the total duration of the first 5 frames is 1*42+ 1*41+2*42+1*41=208, therefore, time 200 corresponds to the fifth frame, that is, the frame number is 5.
如表2所示为帧到块索引表。其中,每个块可以包含一个或多个帧。每个块的长度可以不同,块内的帧的长度也可以不同。As shown in Table 2, it is a frame-to-block index table. Among them, each block can contain one or more frames. The length of each block can vary, as can the lengths of the frames within the block.
表2Table 2
序号serial number 块号block number 每个块的帧数frames per block
11 1至281 to 28 1313
22 2929 1212
33 30至5730 to 57 1313
44 5858 1212
通过上述表2中的索引关系,可以由指定帧的帧号,查找获得对应的包含该指定帧的块,从而可以通过块找到这个指定帧。举例来说,假设指定帧为第500个帧,而序号1的块集合中包含28*13=364个帧,其中,块集合可以包括一个或多个块,该序号1的块集合中包含28个块,块号分别为1-28;序号2的块集合中包含1*12=12个帧,其中,序号2的块集合包含1个块,块号为29;序号3的块集合中包含28*13=364个帧,其中,序号3的块集合包含28个块,块号分别为30-57。由于364+12<500<364+12+364,也就是说,该第500个帧大于前2个块集合的总帧数,但是小于前3个块集合的总帧数,因此,该第500个帧位于序号3集合的块中。接着,由于28*13+1*12+9*13<500<28*13+1*12+10*13,也就是说,该第500个帧大于前38个块的总帧数,但是小于前39个块的总帧数,因此,该第500个帧位于块号为39的块中。而500=28*13+1*12+9*13+7,因此,该第500个帧为块号为39的块中的第7个帧。Through the index relationship in Table 2 above, the frame number of the specified frame can be used to search and obtain the corresponding block containing the specified frame, so that the specified frame can be found through the block. For example, it is assumed that the specified frame is the 500th frame, and the block set with sequence number 1 includes 28*13=364 frames, wherein the block set may include one or more blocks, and the block set with sequence number 1 includes 28 blocks, and the block numbers are 1-28 respectively; the block set of sequence number 2 contains 1*12=12 frames, of which the block set of sequence number 2 contains 1 block, and the block number is 29; the block set of sequence number 3 contains 28*13=364 frames, wherein the block set with sequence number 3 includes 28 blocks, and the block numbers are 30-57 respectively. Since 364+12<500<364+12+364, that is to say, the 500th frame is greater than the total number of frames of the first 2 block sets, but less than the total number of frames of the first 3 block sets, therefore, the 500th frame frames are in blocks of the set of sequence number 3. Next, since 28*13+1*12+9*13<500<28*13+1*12+10*13, that is to say, the 500th frame is greater than the total number of frames of the first 38 blocks, but less than The total number of frames for the first 39 blocks, so this 500th frame is in the block with block number 39. And 500=28*13+1*12+9*13+7, therefore, the 500th frame is the 7th frame in the block whose block number is 39.
如表3所示为块偏移索引表。其中,块偏移用于标识每个块在多媒体文件中的位置。Table 3 shows the block offset index table. Among them, the block offset is used to identify the position of each block in the multimedia file.
表3table 3
块号block number 块偏移block offset
11 $00039D28$00039D28
22 $0003D19B$0003D19B
33 $0003F50D$0003F50D
44 $00041B22$00041B22
通过上述表3中的索引关系,可以由指定块的序号,查找获得与该指定块对应的块偏移。Through the index relationship in Table 3 above, the block offset corresponding to the specified block can be obtained by searching by the sequence number of the specified block.
如表4所示为帧大小索引表。The frame size index table is shown in Table 4.
表4Table 4
帧号frame number 帧大小frame size
11 $000000ae$000000ae
22 $0000001e$0000001e
33 $000015cc$000015cc
44 $0000001e$0000001e
通过上述表4中的索引关系,可以由指定帧的帧号,查找获得与该指定帧对应的帧大小。Through the index relationship in Table 4 above, the frame size corresponding to the specified frame can be obtained by searching the frame number of the specified frame.
从上述表1-表4可知,用户任意输入一个时刻后,可以通过上述表1-表4,经过查表获得对应的块偏移及帧大小,进而可以获得对应的帧偏移,由此可以实现在多媒体文件播放时的快进和快退。以上述第500个帧举例,通过表2可以获得与该第500个帧对应的块号(例如,块39),从而可以通过表3查找获得对应的块偏移。而块39中的第一个帧的帧号为494,块39中的第七个帧的帧号为500,因此,通过表4可以查找获得帧494-帧499的大小。由此,通过块39的偏移及帧494-帧499的大小,可以分别得到帧494-帧500的偏移,例如,由于帧494是块39的第一个帧,因此,通过块39的偏移可以获得帧494的偏移。而通过块39的偏移及帧494的帧大小可以获得帧495的偏移。通过块39的偏移、帧494的帧大小及帧495的帧大小可以获得帧496的偏移,以此类推。其中,帧494-帧500的偏移可以是数据帧的播放地址,由此可以实现快进和快退。It can be seen from the above Table 1-Table 4 that after the user arbitrarily inputs a time, the corresponding block offset and frame size can be obtained by looking up the table through the above Table 1-Table 4, and then the corresponding frame offset can be obtained. Realize fast forward and fast rewind when playing multimedia files. Taking the 500th frame above as an example, the block number (eg, block 39) corresponding to the 500th frame can be obtained through Table 2, so that the corresponding block offset can be obtained by searching through Table 3. The frame number of the first frame in block 39 is 494, and the frame number of the seventh frame in block 39 is 500. Therefore, the size of frame 494-frame 499 can be obtained by searching through Table 4. Therefore, through the offset of block 39 and the size of frame 494 to frame 499, the offset of frame 494 to frame 500 can be obtained respectively. For example, since frame 494 is the first frame of block 39, the The offset can obtain the offset of frame 494 . The offset of frame 495 can be obtained from the offset of block 39 and the frame size of frame 494. The offset of frame 496 can be obtained from the offset of block 39, the frame size of frame 494, the frame size of frame 495, and so on. The offset from frame 494 to frame 500 may be the playback address of the data frame, so that fast forward and fast rewind can be implemented.
步骤102,获取输入时刻。 Step 102, acquiring the input time.
具体地,该输入时刻可以是用户输入的任意时刻,例如,用户可以在多媒体文件的播放进度条上任意点击一个时刻,以实现快进或快退;也可以是预设的时刻,本申请实施例对此不作特殊限定。Specifically, the input time can be any time input by the user. For example, the user can click any time on the playback progress bar of the multimedia file to achieve fast forward or fast rewind; it can also be a preset time, which is implemented in this application. This example does not make any special restrictions.
步骤103,基于该输入时刻确定当前最佳读取量。Step 103: Determine the current optimum reading amount based on the input moment.
具体地,该最佳读取量用于标识本次可读取的多媒体数据帧的数量,例如,一次可读取n个音频数据帧或一次可读取n个视频数据帧,其中,n为最佳读取量。Specifically, the optimal read amount is used to identify the number of multimedia data frames that can be read this time, for example, n audio data frames or n video data frames can be read at a time, where n is optimal read volume.
在具体实现时,可以由寄存器的位数和多媒体数据帧的数据类型确定读取基数m。其中,该读取基数m用于标识以块为单位的读取数。示例性的,若采用NEON指令集,该NEON是ARM Cortex-A系列处理器的128位单指令多数据指令集(Single Instruction Multiple Data,SIMD),也就是说,该NEON是128位的向量寄存器;若多媒体数据帧的数据类型为uin32_t类型,也就是说,多媒体数据帧是32位的,则读取基数m可以是P/D,其中,P为NEON的寄存器的位数,Q为多媒体数据帧的位数,也就是,m=128/32=4。During specific implementation, the read base m may be determined by the number of bits of the register and the data type of the multimedia data frame. Wherein, the read base m is used to identify the number of reads in units of blocks. Exemplarily, if the NEON instruction set is adopted, the NEON is a 128-bit single instruction multiple data instruction set (Single Instruction Multiple Data, SIMD) of the ARM Cortex-A series processor, that is, the NEON is a 128-bit vector register. ; If the data type of the multimedia data frame is the uin32_t type, that is to say, the multimedia data frame is 32 bits, then the reading base m can be P/D, where P is the number of bits of the register of NEON, and Q is the multimedia data The number of bits of the frame, that is, m=128/32=4.
可以理解的是,也可以选用其他类型的指令集,也可以在多媒体数据帧中选用不同的数据类型,因此,该读取基数m也可以是不同的值,例如,2、8、16等,本申请实施例对此不作特殊限定。It can be understood that other types of instruction sets can also be selected, and different data types can also be selected in the multimedia data frame. Therefore, the read base m can also be a different value, for example, 2, 8, 16, etc., This embodiment of the present application does not make any special limitation on this.
进一步地,当确定读取基数m后,可以根据上述读取基数m确定当前最佳读取量。在具体实现时,可以将上述读取基数m与预设倍数相乘,由此可以获得待定读取量,接着,可以将该待定读取量与目标多媒体文件中待读取的总帧数进行比较,若该待读取的总帧数大于或等于该待定读取量,则可以将该待定读取量设为当前最佳读取量;示例性的,假设m=4,预设倍数为4,则待定读取量为16,若待读取的总帧数大于或等于16,则可以将当前最佳读取量设为16,也就是说,本次可以读取16帧;若该待读取的总帧数小于该待定读取量,则可以当前最佳读取量设为1,示例性的,假设m=4,预设倍数为4,则待定读取量为16,若待读取的总帧数小于16,则可以当前最佳读取量设为1,也就是说,本次只读取1帧。Further, after the reading base m is determined, the current optimal reading amount can be determined according to the reading base m. In specific implementation, the above-mentioned reading base m may be multiplied by a preset multiple, thereby obtaining the pending reading amount, and then, the pending reading amount may be compared with the total number of frames to be read in the target multimedia file. By comparison, if the total number of frames to be read is greater than or equal to the pending read amount, the pending read amount can be set as the current optimal read amount; exemplarily, assuming m=4, the preset multiple is 4. The pending reading amount is 16. If the total number of frames to be read is greater than or equal to 16, the current optimal reading amount can be set to 16, that is to say, 16 frames can be read this time; If the total number of frames to be read is less than the pending read amount, the current optimal read amount can be set to 1. For example, if m=4 and the preset multiple is 4, the pending read amount is 16. If If the total number of frames to be read is less than 16, the current optimal read amount can be set to 1, that is, only one frame is read this time.
步骤104,基于该输入时刻确定块偏移。Step 104: Determine the block offset based on the input moment.
具体地,当获得输入时刻后,还可以根据输入时刻确定块偏移。在具体实现时,可以根据该输入时刻在表1中进行查询,以确定与该输入时刻对应的帧号;接着,根据该帧号在表2中进行查询,以确定与该输入时刻对应的块号;而根据该块号在表3中进行查询,可以确定块偏移。Specifically, after the input time is obtained, the block offset can also be determined according to the input time. In specific implementation, can be inquired in Table 1 according to the input time to determine the frame number corresponding to the input time; then, inquired in Table 2 according to the frame number to determine the block corresponding to the input time number; and by querying in Table 3 according to the block number, the block offset can be determined.
步骤105,基于当前最佳读取量确定帧数,根据帧数获取对应的帧大小。Step 105: Determine the number of frames based on the current optimal read amount, and obtain the corresponding frame size according to the number of frames.
具体地,当确定当前最佳读取量之后,可以确定本次读取的帧数。示例性的,若本次最佳读取量为4,则本次读取的帧数为4。接着,根据与输入时刻对应的帧号及本次读取的帧数依次在表4中进行查询,可以获取本次读取的帧的每个帧的帧大小,示例性的,若本次读取4个帧,则可以获取上述4个帧的帧大小。Specifically, after the current optimal reading amount is determined, the number of frames read this time can be determined. Exemplarily, if the optimal read amount this time is 4, the number of frames read this time is 4. Next, according to the frame number corresponding to the input time and the number of frames read this time, inquiries are made in Table 4 in turn, and the frame size of each frame of the frames read this time can be obtained. Taking 4 frames, the frame size of the above 4 frames can be obtained.
步骤106,基于上述块偏移及帧大小构建帧矩阵。 Step 106 , constructing a frame matrix based on the above block offset and frame size.
具体地,当确定块偏移及帧大小之后,还可以根据上述块偏移及帧大小构建帧矩阵。其中,该帧矩阵中的每一行可以包含块偏移和帧大小。该矩阵的行数与最佳读取量对应,该矩阵的列数与最佳读取量对应。示例性的,若该最佳读取量为4,则该帧矩阵可以是4*4的矩阵;若该最佳读取量为8,则该帧矩阵可以是8*8的矩阵,本申 请实施例对此不作特殊限定。Specifically, after the block offset and frame size are determined, a frame matrix may also be constructed according to the block offset and frame size. where each row in the frame matrix can contain block offset and frame size. The number of rows of the matrix corresponds to the optimal read volume, and the number of columns of the matrix corresponds to the optimal read volume. Exemplarily, if the optimal reading amount is 4, the frame matrix may be a 4*4 matrix; if the optimal reading amount is 8, the frame matrix may be an 8*8 matrix. The embodiment does not make any special limitation on this.
现以最佳读取量为4为例进行说明,由于最佳读取量为4,也就是说,本次读取4个帧,因此,可以构建4*4的帧矩阵。如图3所示为4*4的帧矩阵,该帧矩阵中的第一行数据为(块偏移,0,0,0),第二行数据为(块偏移,首帧大小,0,0),第三行数据为(块偏移,首帧大小,第二帧大小,0),第四行数据为(块偏移,首帧大小,第二帧大小,第三帧大小)。The optimal reading amount is 4 as an example for illustration. Since the optimal reading amount is 4, that is, 4 frames are read this time, a 4*4 frame matrix can be constructed. Figure 3 shows a 4*4 frame matrix, the first row of data in the frame matrix is (block offset, 0, 0, 0), and the second row data is (block offset, first frame size, 0 , 0), the third line of data is (block offset, first frame size, second frame size, 0), and the fourth line of data is (block offset, first frame size, second frame size, third frame size) .
步骤107,对帧矩阵进行向量化计算,得到帧偏移向量。Step 107: Perform vectorization calculation on the frame matrix to obtain a frame offset vector.
具体地,当获得帧矩阵后,还可以对帧矩阵进行向量化计算,由此可以得到帧偏移向量。其中,该向量化计算可以是对帧矩阵中的所有列进行累加求和,由此得到列向量,该列向量可以是帧偏移向量。Specifically, after the frame matrix is obtained, a vectorized calculation may be performed on the frame matrix, thereby obtaining a frame offset vector. Wherein, the vectorization calculation may be an accumulation and summation of all columns in the frame matrix, thereby obtaining a column vector, and the column vector may be a frame offset vector.
现以图3所示的帧矩阵为例进行说明,对该帧矩阵中的4列进行累加求和,由此可以得到如图4所示的列向量,其中,该列向量可以为帧偏移向量。该列向量中每一行的数据对应每个帧的偏移,例如,该列向量中的第一行的值为块偏移值,该块偏移值对应首帧的偏移;该列向量中的第二行的值为块偏移值+首帧大小,该块偏移值+首帧大小的值对应第二帧的偏移;该列向量中的第三行的值为块偏移值+首帧大小+第二帧大小,该块偏移值+首帧大小+第二帧大小的值对应第三帧的偏移;该列向量中的第四行的值为块偏移值+首帧大小+第二帧大小+第三帧大小,该块偏移值+首帧大小+第二帧大小+第三帧大小的值对应第四帧的偏移。Taking the frame matrix shown in FIG. 3 as an example, the 4 columns in the frame matrix are accumulated and summed, so that the column vector shown in FIG. 4 can be obtained, wherein the column vector can be the frame offset vector. The data of each row in the column vector corresponds to the offset of each frame. For example, the value of the first row in the column vector is the block offset value, and the block offset value corresponds to the offset of the first frame; in the column vector The value of the second row of the block offset value + the size of the first frame, the value of the block offset value + the size of the first frame corresponds to the offset of the second frame; the value of the third row in the column vector is the block offset value + first frame size + second frame size, the block offset value + first frame size + second frame size value corresponds to the offset of the third frame; the value of the fourth row in the column vector is the block offset value + The size of the first frame + the size of the second frame + the size of the third frame, the block offset value + the size of the first frame + the size of the second frame + the size of the third frame corresponds to the offset of the fourth frame.
步骤108,根据帧偏移向量获取目标多媒体文件中的多媒体数据帧,并将该多媒体数据帧发送给目标设备。Step 108: Acquire a multimedia data frame in the target multimedia file according to the frame offset vector, and send the multimedia data frame to the target device.
具体地,该目标设备可以是手机、平板、电视等具有多媒体播放功能的第一电子设备。当源设备获得帧偏移向量之后,可以根据帧偏移向量中的每个帧的帧偏移获取目标多媒体文件中的多个多媒体数据帧,并可以将该多个多媒体数据帧发送给目标设备。可以理解的是,由于该帧偏移向量对应的可以是音频帧偏移向量或视频帧偏移向量,因此,每次获取的可以是视频数据帧,也可以是音频数据帧,本申请实施例对此不作特殊限定。Specifically, the target device may be a first electronic device with a multimedia playback function, such as a mobile phone, a tablet, or a TV. After the source device obtains the frame offset vector, it can obtain multiple multimedia data frames in the target multimedia file according to the frame offset of each frame in the frame offset vector, and can send the multiple multimedia data frames to the target device . It can be understood that, since the frame offset vector may correspond to an audio frame offset vector or a video frame offset vector, therefore, each acquisition may be a video data frame or an audio data frame. This embodiment of the present application There is no special restriction on this.
可选地,该源设备在发送上述多媒体数据帧给目标设备时,还可以将每个多媒体数据帧的帧大小发送给该目标设备,以便该目标设备对每个多媒体数据帧进行分离,由此可以对每个多媒体数据帧进行解码并播放。在具体实现时,源设备可以设置一个缓存(buffer),该buffer可以用于存储多媒体数据帧,其中,上述buffer中存储的多媒体数据帧可以是本次经向量化计算后得到的多媒体数据帧,接着,源设备可以将上述buffer中存储的多媒体数据帧以及与上述每个多媒体数据帧对应的帧大小发送给目标设备。当目标设备接收到上述buffer中存储的多媒体数据帧以及与上述每个多媒体数据帧对应的帧大小后,可以根据上述帧大小依次从buffer中分离出每个帧。示例性的,该buffer中的第一个帧的偏移可以视为0,根据第一个帧的帧大小可以分离出第一个帧;接着,以第一个帧的帧大小作为第二个帧的偏移,并根据第二个帧的帧大小可以分离出第二个帧,以此类推,可以分离出buffer中的所有帧。Optionally, when the source device sends the above-mentioned multimedia data frame to the target device, it can also send the frame size of each multimedia data frame to the target device, so that the target device separates each multimedia data frame, thereby Each frame of multimedia data can be decoded and played. In specific implementation, the source device can set a buffer (buffer), and the buffer can be used to store multimedia data frames, wherein, the multimedia data frames stored in the buffer can be the multimedia data frames obtained after vectorization calculation this time, Next, the source device may send the multimedia data frame stored in the buffer and the frame size corresponding to each multimedia data frame to the target device. After receiving the multimedia data frame stored in the buffer and the frame size corresponding to each multimedia data frame, the target device can sequentially separate each frame from the buffer according to the frame size. Exemplarily, the offset of the first frame in the buffer can be regarded as 0, and the first frame can be separated according to the frame size of the first frame; then, the frame size of the first frame is used as the second frame. The offset of the frame, and the second frame can be separated according to the frame size of the second frame, and so on, all the frames in the buffer can be separated.
本实施例中,通过对多个多媒体数据帧进行向量化计算,由此可以获得多个多媒体数据帧的偏移,以实现一次读取多个多媒体数据帧,提高了数据读取的效率,并通过一次向目标设备发送多个多媒体数据帧,由此可以提高数据的发送效率。In this embodiment, by performing vectorization calculation on multiple multimedia data frames, the offsets of multiple multimedia data frames can be obtained, so as to realize reading multiple multimedia data frames at one time, which improves the efficiency of data reading, and improves the efficiency of data reading. By sending multiple multimedia data frames to the target device at one time, the data sending efficiency can be improved.
图5为本申请帧解复用装置一个实施例的结构示意图,如图5所示,上述帧解复用装置50可以包括:第一获取模块51、第二获取模块52、计算模块53、读取模块54及发送模块55;FIG. 5 is a schematic structural diagram of an embodiment of a frame demultiplexing apparatus of the present application. As shown in FIG. 5 , the frame demultiplexing apparatus 50 may include: a first acquisition module 51 , a second acquisition module 52 , a calculation module 53 , a read Get module 54 and send module 55;
第一获取模块51,用于获取目标文件,目标文件包含多个多媒体帧;The first acquisition module 51 is used to acquire a target file, and the target file contains a plurality of multimedia frames;
第二获取模块52,用于获取输入时刻;The second obtaining module 52 is used to obtain the input time;
计算模块53,用于基于输入时刻确定最佳读取量及第一多媒体帧;The calculation module 53 is used to determine the optimal read amount and the first multimedia frame based on the input moment;
读取模块54,用于基于最佳读取量,从第一多媒体帧开始,读取目标文件中的多个第二多媒体帧,其中,第二多媒体帧包括第一多媒体帧;The reading module 54 is configured to read a plurality of second multimedia frames in the target file from the first multimedia frame based on the optimal reading amount, wherein the second multimedia frames include the first multimedia frames. media frame;
发送模块55,用于将多个第二多媒体帧发送给第二电子设备。The sending module 55 is configured to send a plurality of second multimedia frames to the second electronic device.
在一种可能的实现方式中,多个多媒体帧包括多个视频帧和多个音频帧,上述读取模块54还用于基于最佳读取量,从第一视频帧开始,读取目标文件中的多个第二视频帧;In a possible implementation manner, the multiple multimedia frames include multiple video frames and multiple audio frames, and the above-mentioned reading module 54 is further configured to read the target file starting from the first video frame based on the optimal reading amount a plurality of second video frames in;
或基于最佳读取量,从第一音频帧开始,读取目标文件中的多个第二音频帧。Or read multiple second audio frames in the target file, starting from the first audio frame, based on the optimal read amount.
在一种可能的实现方式中,上述计算模块53包括:获取单元531、统计单元532及确定单元533;In a possible implementation manner, the above calculation module 53 includes: an acquisition unit 531, a statistics unit 532, and a determination unit 533;
获取单元531,用于获取预设待定读取数;Obtaining unit 531, used to obtain the preset pending reading number;
统计单元532,用于统计从输入时刻开始至目标文件结束时刻的所有多媒体帧的帧数;Statistical unit 532 is used to count the frame numbers of all multimedia frames from the input moment to the end moment of the target file;
确定单元533,用于若多媒体帧的帧数大于或等于预设待定读取数,则将预设待定读取数设为最佳读取量;若多媒体帧的帧数小于预设待定读取数,则将最佳读取量设为1。Determining unit 533, for if the frame number of the multimedia frame is greater than or equal to the preset pending reading number, then the preset pending reading number is set as the optimal reading amount; if the frame number of the multimedia frame is less than the preset pending reading number number, set the optimal read amount to 1.
在一种可能的实现方式中,上述预设待定读取数由向量寄存器的位数和多媒体帧的数据类型确定。In a possible implementation manner, the above-mentioned preset pending read number is determined by the number of bits of the vector register and the data type of the multimedia frame.
在一种可能的实现方式中,上述读取模块54包括:计算单元541、检索单元542、构建单元543、运算单元544及读取单元545;In a possible implementation manner, the above-mentioned reading module 54 includes: a calculation unit 541, a retrieval unit 542, a construction unit 543, an operation unit 544, and a reading unit 545;
计算单元541,用于基于输入时刻确定块偏移;a calculation unit 541, configured to determine the block offset based on the input moment;
检索单元542,用于基于最佳读取量获取每个第二多媒体帧的帧大小;Retrieval unit 542, for obtaining the frame size of each second multimedia frame based on the optimal read amount;
构建单元543,用于基于块偏移和所述帧大小构建帧矩阵;a construction unit 543 for constructing a frame matrix based on the block offset and the frame size;
运算单元544,用于对帧矩阵进行向量化运算,得到帧偏移向量;Operation unit 544, for carrying out vectorization operation to frame matrix, obtains frame offset vector;
读取单元545,用于根据帧偏移向量,从第一多媒体帧开始,读取目标文件中的多个第二多媒体帧。The reading unit 545 is configured to read a plurality of second multimedia frames in the target file from the first multimedia frame according to the frame offset vector.
在一种可能的实现方式中,上述发送模块55还用于将多个第二多媒体帧及每个第二多媒体帧的帧大小发送给第二电子设备。In a possible implementation manner, the above-mentioned sending module 55 is further configured to send a plurality of second multimedia frames and the frame size of each second multimedia frame to the second electronic device.
应理解以上图5所示的帧解复用装置的各个模块的划分仅仅是一种逻辑功能的划 分,实际实现时可以全部或部分集成到一个物理实体上,也可以物理上分开。且这些模块可以全部以软件通过处理元件调用的形式实现;也可以全部以硬件的形式实现;还可以部分模块以软件通过处理元件调用的形式实现,部分模块通过硬件的形式实现。例如,计算模块可以为单独设立的处理元件,也可以集成在电子设备的某一个芯片中实现。其它模块的实现与之类似。此外这些模块全部或部分可以集成在一起,也可以独立实现。在实现过程中,上述方法的各步骤或以上各个模块可以通过处理器元件中的硬件的集成逻辑电路或者软件形式的指令完成。It should be understood that the division of each module of the frame demultiplexing apparatus shown in FIG. 5 is only a division of logical functions, and may be fully or partially integrated into a physical entity in actual implementation, or may be physically separated. And these modules can all be implemented in the form of software calling through processing elements; they can also all be implemented in hardware; some modules can also be implemented in the form of software calling through processing elements, and some modules can be implemented in hardware. For example, the computing module may be a separately established processing element, or may be integrated in a certain chip of an electronic device. The implementation of other modules is similar. In addition, all or part of these modules can be integrated together, and can also be implemented independently. In the implementation process, each step of the above-mentioned method or each of the above-mentioned modules can be completed by an integrated logic circuit of hardware in the processor element or an instruction in the form of software.
例如,以上这些模块可以是被配置成实施以上方法的一个或多个集成电路,例如:一个或多个特定集成电路(Application Specific Integrated Circuit;以下简称:ASIC),或,一个或多个微处理器(Digital Singnal Processor;以下简称:DSP),或,一个或者多个现场可编程门阵列(Field Programmable Gate Array;以下简称:FPGA)等。再如,这些模块可以集成在一起,以片上系统(System-On-a-Chip;以下简称:SOC)的形式实现。For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more specific integrated circuits (Application Specific Integrated Circuit; hereinafter referred to as: ASIC), or, one or more microprocessors Digital Singnal Processor (hereinafter referred to as: DSP), or, one or more Field Programmable Gate Array (Field Programmable Gate Array; hereinafter referred to as: FPGA), etc. For another example, these modules can be integrated together and implemented in the form of a system-on-a-chip (System-On-a-Chip; hereinafter referred to as: SOC).
图6示出了第一电子设备100的结构示意图。FIG. 6 shows a schematic structural diagram of the first electronic device 100 .
第一电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The first electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, Antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display screen 194 , and a subscriber identification module (subscriber identification module, SIM) card interface 195 and the like. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light. Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本发明实施例示意的结构并不构成对第一电子设备100的具体限定。在本申请另一些实施例中,第一电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the first electronic device 100 . In other embodiments of the present application, the first electronic device 100 may include more or less components than shown, or some components are combined, or some components are separated, or different components are arranged. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (neural-network processing unit, NPU), etc. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。A memory may also be provided in the processor 110 for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If the processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
I2C接口是一种双向同步串行总线,包括一根串行数据线(serial data line,SDA)和一根串行时钟线(derail clock line,SCL)。在一些实施例中,处理器110可以包含多组I2C总线。处理器110可以通过不同的I2C总线接口分别耦合触摸传感器180K,充电器,闪光灯,摄像头193等。例如:处理器110可以通过I2C接口耦合触摸传感器180K,使处理器110与触摸传感器180K通过I2C总线接口通信,实现第一电子设备100的触摸功能。The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may contain multiple sets of I2C buses. The processor 110 can be respectively coupled to the touch sensor 180K, the charger, the flash, the camera 193 and the like through different I2C bus interfaces. For example, the processor 110 may couple the touch sensor 180K through the I2C interface, so that the processor 110 and the touch sensor 180K communicate through the I2C bus interface, so as to realize the touch function of the first electronic device 100 .
I2S接口可以用于音频通信。在一些实施例中,处理器110可以包含多组I2S总线。处理器110可以通过I2S总线与音频模块170耦合,实现处理器110与音频模块170之间的通信。在一些实施例中,音频模块170可以通过I2S接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。The I2S interface can be used for audio communication. In some embodiments, the processor 110 may contain multiple sets of I2S buses. The processor 110 may be coupled with the audio module 170 through an I2S bus to implement communication between the processor 110 and the audio module 170 . In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the I2S interface, so as to realize the function of answering calls through a Bluetooth headset.
PCM接口也可以用于音频通信,将模拟信号抽样,量化和编码。在一些实施例中,音频模块170与无线通信模块160可以通过PCM总线接口耦合。在一些实施例中,音频模块170也可以通过PCM接口向无线通信模块160传递音频信号,实现通过蓝牙耳机接听电话的功能。所述I2S接口和所述PCM接口都可以用于音频通信。The PCM interface can also be used for audio communications, sampling, quantizing and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 may be coupled through a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 through the PCM interface, so as to realize the function of answering calls through the Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
UART接口是一种通用串行数据总线,用于异步通信。该总线可以为双向通信总线。它将要传输的数据在串行通信与并行通信之间转换。在一些实施例中,UART接口通常被用于连接处理器110与无线通信模块160。例如:处理器110通过UART接口与无线通信模块160中的蓝牙模块通信,实现蓝牙功能。在一些实施例中,音频模块170可以通过UART接口向无线通信模块160传递音频信号,实现通过蓝牙耳机播放音乐的功能。The UART interface is a universal serial data bus used for asynchronous communication. The bus may be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, a UART interface is typically used to connect the processor 110 with the wireless communication module 160 . For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 through the UART interface to implement the Bluetooth function. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 through the UART interface, so as to realize the function of playing music through the Bluetooth headset.
MIPI接口可以被用于连接处理器110与显示屏194,摄像头193等外围器件。MIPI接口包括摄像头串行接口(camera serial interface,CSI),显示屏串行接口(display serial interface,DSI)等。在一些实施例中,处理器110和摄像头193通过CSI接口通信,实现第一电子设备100的拍摄功能。处理器110和显示屏194通过DSI接口通信,实现第一电子设备100的显示功能。The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193 . MIPI interfaces include camera serial interface (CSI), display serial interface (DSI), etc. In some embodiments, the processor 110 communicates with the camera 193 through a CSI interface, so as to implement the shooting function of the first electronic device 100 . The processor 110 communicates with the display screen 194 through the DSI interface to implement the display function of the first electronic device 100 .
GPIO接口可以通过软件配置。GPIO接口可以被配置为控制信号,也可被配置为数据信号。在一些实施例中,GPIO接口可以用于连接处理器110与摄像头193,显示屏194,无线通信模块160,音频模块170,传感器模块180等。GPIO接口还可以被配置为I2C接口,I2S接口,UART接口,MIPI接口等。The GPIO interface can be configured by software. The GPIO interface can be configured as a control signal or as a data signal. In some embodiments, the GPIO interface may be used to connect the processor 110 with the camera 193, the display screen 194, the wireless communication module 160, the audio module 170, the sensor module 180, and the like. The GPIO interface can also be configured as I2C interface, I2S interface, UART interface, MIPI interface, etc.
USB接口130是符合USB标准规范的接口,具体可以是Mini USB接口,Micro USB接口,USB Type C接口等。USB接口130可以用于连接充电器为第一电子设备100充电,也可以用于第一电子设备100与外围设备之间传输数据。也可以用于连接耳机, 通过耳机播放音频。该接口还可以用于连接其他电子设备,例如AR设备等。The USB interface 130 is an interface that conforms to the USB standard specification, and may specifically be a Mini USB interface, a Micro USB interface, a USB Type C interface, and the like. The USB interface 130 can be used to connect a charger to charge the first electronic device 100, and can also be used to transmit data between the first electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio through the headphones. The interface can also be used to connect other electronic devices, such as AR devices.
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对第一电子设备100的结构限定。在本申请另一些实施例中,第一电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the first electronic device 100 . In other embodiments of the present application, the first electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过第一电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the first electronic device 100 . While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 . The power management module 141 receives the input from the battery 142 and/or the charging management module 140 and supplies power to the processor 110 , the internal memory 121 , the display screen 194 , the camera 193 , and the wireless communication module 160 . The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance). In some other embodiments, the power management module 141 may also be provided in the processor 110 . In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
第一电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the first electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
天线1和天线2用于发射和接收电磁波信号。第一电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the first electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
移动通信模块150可以提供应用在第一电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 may provide a wireless communication solution including 2G/3G/4G/5G etc. applied on the first electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。The modem processor may include a modulator and a demodulator. Wherein, the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing. The low frequency baseband signal is processed by the baseband processor and passed to the application processor. The application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 . In some embodiments, the modem processor may be a stand-alone device. In other embodiments, the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
无线通信模块160可以提供应用在第一电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite  system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the first electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global Navigation satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
在一些实施例中,第一电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得第一电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the first electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the first electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include a global positioning system (global positioning system, GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
第一电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The first electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,第一电子设备100可以包括1个或N个显示屏194,N为大于1的正整数。Display screen 194 is used to display images, videos, and the like. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light). emitting diode, AMOLED), flexible light-emitting diode (flex light-emitting diode, FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED) and so on. In some embodiments, the first electronic device 100 may include 1 or N display screens 194 , where N is a positive integer greater than 1.
第一电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The first electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。The ISP is used to process the data fed back by the camera 193 . For example, when taking a photo, the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on image noise, brightness, and skin tone. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193 .
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把 光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,第一电子设备100可以包括1个或N个摄像头193,N为大于1的正整数。Camera 193 is used to capture still images or video. The object is projected through the lens to generate an optical image onto the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. DSP converts digital image signals into standard RGB, YUV and other formats of image signals. In some embodiments, the first electronic device 100 may include 1 or N cameras 193 , where N is a positive integer greater than 1.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当第一电子设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。A digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the first electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point, and the like.
视频编解码器用于对数字视频压缩或解压缩。第一电子设备100可以支持一种或多种视频编解码器。这样,第一电子设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The first electronic device 100 may support one or more video codecs. In this way, the first electronic device 100 can play or record videos in various encoding formats, such as: Moving Picture Experts Group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现第一电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。The NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transfer mode between neurons in the human brain, it can quickly process the input information and can continuously learn by itself. Applications such as intelligent cognition of the first electronic device 100 can be implemented through the NPU, for example: image recognition, face recognition, speech recognition, text understanding, and the like.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展第一电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the first electronic device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储第一电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。处理器110通过运行存储在内部存储器121的指令,和/或存储在设置于处理器中的存储器的指令,执行第一电子设备100的各种功能应用以及数据处理。Internal memory 121 may be used to store computer executable program code, which includes instructions. The internal memory 121 may include a storage program area and a storage data area. The storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like. The storage data area may store data (such as audio data, phone book, etc.) created during the use of the first electronic device 100 and the like. In addition, the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like. The processor 110 executes various functional applications and data processing of the first electronic device 100 by executing the instructions stored in the internal memory 121 and/or the instructions stored in the memory provided in the processor.
第一电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The first electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。第一电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also referred to as a "speaker", is used to convert audio electrical signals into sound signals. The first electronic device 100 can listen to music through the speaker 170A, or listen to a hands-free call.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当第一电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。The receiver 170B, also referred to as "earpiece", is used to convert audio electrical signals into sound signals. When the first electronic device 100 answers a call or a voice message, the voice can be answered by placing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入 到麦克风170C。第一电子设备100可以设置至少一个麦克风170C。在另一些实施例中,第一电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,第一电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。The microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can make a sound through the human mouth close to the microphone 170C, and input the sound signal into the microphone 170C. The first electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the first electronic device 100 may be provided with two microphones 170C, which may implement a noise reduction function in addition to collecting sound signals. In other embodiments, the first electronic device 100 may further be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone jack 170D is used to connect wired earphones. The earphone interface 170D can be the USB interface 130, or can be a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。电容式压力传感器可以是包括至少两个具有导电材料的平行板。当有力作用于压力传感器180A,电极之间的电容改变。第一电子设备100根据电容的变化确定压力的强度。当有触摸操作作用于显示屏194,第一电子设备100根据压力传感器180A检测所述触摸操作强度。第一电子设备100也可以根据压力传感器180A的检测信号计算触摸的位置。在一些实施例中,作用于相同触摸位置,但不同触摸操作强度的触摸操作,可以对应不同的操作指令。例如:当有触摸操作强度小于第一压力阈值的触摸操作作用于短消息应用图标时,执行查看短消息的指令。当有触摸操作强度大于或等于第一压力阈值的触摸操作作用于短消息应用图标时,执行新建短消息的指令。The pressure sensor 180A is used to sense pressure signals, and can convert the pressure signals into electrical signals. In some embodiments, the pressure sensor 180A may be provided on the display screen 194 . There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, and the like. The capacitive pressure sensor may be comprised of at least two parallel plates of conductive material. When a force is applied to the pressure sensor 180A, the capacitance between the electrodes changes. The first electronic device 100 determines the intensity of the pressure according to the change in capacitance. When a touch operation acts on the display screen 194, the first electronic device 100 detects the intensity of the touch operation according to the pressure sensor 180A. The first electronic device 100 may also calculate the touched position according to the detection signal of the pressure sensor 180A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities may correspond to different operation instructions. For example, when a touch operation whose intensity is less than the first pressure threshold acts on the short message application icon, the instruction for viewing the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, the instruction to create a new short message is executed.
陀螺仪传感器180B可以用于确定第一电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定第一电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测第一电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消第一电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the motion attitude of the first electronic device 100 . In some embodiments, the angular velocity of the first electronic device 100 about three axes (ie, the x, y and z axes) may be determined by the gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. Exemplarily, when the shutter is pressed, the gyro sensor 180B detects the shaking angle of the first electronic device 100, calculates the distance that the lens module needs to compensate according to the angle, and allows the lens to offset the shaking of the first electronic device 100 through reverse motion, Achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenarios.
气压传感器180C用于测量气压。在一些实施例中,第一电子设备100通过气压传感器180C测得的气压值计算海拔高度,辅助定位和导航。The air pressure sensor 180C is used to measure air pressure. In some embodiments, the first electronic device 100 calculates the altitude through the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
磁传感器180D包括霍尔传感器。第一电子设备100可以利用磁传感器180D检测翻盖皮套的开合。在一些实施例中,当第一电子设备100是翻盖机时,第一电子设备100可以根据磁传感器180D检测翻盖的开合。进而根据检测到的皮套的开合状态或翻盖的开合状态,设置翻盖自动解锁等特性。The magnetic sensor 180D includes a Hall sensor. The first electronic device 100 can detect the opening and closing of the flip holster by using the magnetic sensor 180D. In some embodiments, when the first electronic device 100 is a flip machine, the first electronic device 100 can detect the opening and closing of the flip according to the magnetic sensor 180D. Further, according to the detected opening and closing state of the leather case or the opening and closing state of the flip cover, characteristics such as automatic unlocking of the flip cover are set.
加速度传感器180E可检测第一电子设备100在各个方向上(一般为三轴)加速度的大小。当第一电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the magnitude of the acceleration of the first electronic device 100 in various directions (generally three axes). The magnitude and direction of gravity can be detected when the first electronic device 100 is stationary. It can also be used to identify the posture of electronic devices, and can be used in applications such as horizontal and vertical screen switching, pedometers, etc.
距离传感器180F,用于测量距离。第一电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,第一电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. The first electronic device 100 may measure the distance through infrared or laser. In some embodiments, when shooting a scene, the first electronic device 100 can use the distance sensor 180F to measure the distance to achieve fast focusing.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。第一电子设备100通过发光二极管向外发射红外 光。第一电子设备100使用光电二极管检测来自附近物体的红外反射光。当检测到充分的反射光时,可以确定第一电子设备100附近有物体。当检测到不充分的反射光时,第一电子设备100可以确定第一电子设备100附近没有物体。第一电子设备100可以利用接近光传感器180G检测用户手持第一电子设备100贴近耳朵通话,以便自动熄灭屏幕达到省电的目的。接近光传感器180G也可用于皮套模式,口袋模式自动解锁与锁屏。Proximity light sensor 180G may include, for example, light emitting diodes (LEDs) and light detectors, such as photodiodes. The light emitting diodes may be infrared light emitting diodes. The first electronic device 100 emits infrared light to the outside through light emitting diodes. The first electronic device 100 detects infrared reflected light from nearby objects using a photodiode. When sufficient reflected light is detected, it may be determined that there is an object near the first electronic device 100 . When insufficient reflected light is detected, the first electronic device 100 may determine that there is no object near the first electronic device 100 . The first electronic device 100 can use the proximity light sensor 180G to detect that the user holds the first electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. Proximity light sensor 180G can also be used in holster mode, pocket mode automatically unlocks and locks the screen.
环境光传感器180L用于感知环境光亮度。第一电子设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡。环境光传感器180L还可以与接近光传感器180G配合,检测第一电子设备100是否在口袋里,以防误触。The ambient light sensor 180L is used to sense ambient light brightness. The first electronic device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also cooperate with the proximity light sensor 180G to detect whether the first electronic device 100 is in the pocket, so as to prevent accidental touch.
指纹传感器180H用于采集指纹。第一电子设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。The fingerprint sensor 180H is used to collect fingerprints. The first electronic device 100 can use the collected fingerprint characteristics to realize fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering incoming calls with fingerprints, and the like.
温度传感器180J用于检测温度。在一些实施例中,第一电子设备100利用温度传感器180J检测的温度,执行温度处理策略。例如,当温度传感器180J上报的温度超过阈值,第一电子设备100执行降低位于温度传感器180J附近的处理器的性能,以便降低功耗实施热保护。在另一些实施例中,当温度低于另一阈值时,第一电子设备100对电池142加热,以避免低温导致第一电子设备100异常关机。在其他一些实施例中,当温度低于又一阈值时,第一电子设备100对电池142的输出电压执行升压,以避免低温导致的异常关机。The temperature sensor 180J is used to detect the temperature. In some embodiments, the first electronic device 100 uses the temperature detected by the temperature sensor 180J to execute the temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold value, the first electronic device 100 reduces the performance of the processor located near the temperature sensor 180J, so as to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the first electronic device 100 heats the battery 142 to avoid abnormal shutdown of the first electronic device 100 due to low temperature. In some other embodiments, when the temperature is lower than another threshold, the first electronic device 100 boosts the output voltage of the battery 142 to avoid abnormal shutdown caused by low temperature.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于第一电子设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch device". The touch sensor 180K may be disposed on the display screen 194 , and the touch sensor 180K and the display screen 194 form a touch screen, also called a “touch screen”. The touch sensor 180K is used to detect a touch operation on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. Visual output related to touch operations may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the first electronic device 100 , which is different from the position where the display screen 194 is located.
骨传导传感器180M可以获取振动信号。在一些实施例中,骨传导传感器180M可以获取人体声部振动骨块的振动信号。骨传导传感器180M也可以接触人体脉搏,接收血压跳动信号。在一些实施例中,骨传导传感器180M也可以设置于耳机中,结合成骨传导耳机。音频模块170可以基于所述骨传导传感器180M获取的声部振动骨块的振动信号,解析出语音信号,实现语音功能。应用处理器可以基于所述骨传导传感器180M获取的血压跳动信号解析心率信息,实现心率检测功能。The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire the vibration signal of the vibrating bone mass of the human voice. The bone conduction sensor 180M can also contact the pulse of the human body and receive the blood pressure beating signal. In some embodiments, the bone conduction sensor 180M can also be disposed in the earphone, combined with the bone conduction earphone. The audio module 170 can analyze the voice signal based on the vibration signal of the vocal vibration bone block obtained by the bone conduction sensor 180M, so as to realize the voice function. The application processor can analyze the heart rate information based on the blood pressure beat signal obtained by the bone conduction sensor 180M, and realize the function of heart rate detection.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。第一电子设备100可以接收按键输入,产生与第一电子设备100的用户设置以及功能控制有关的键信号输入。The keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key. The first electronic device 100 may receive key input, and generate key signal input related to user settings and function control of the first electronic device 100 .
马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。例如,作用于不同应用(例如拍照,音频播放等)的触摸操作,可以对应不同的振动反馈效果。作用于显示屏194不同区域的触摸操作,马达191也可对应不同的振动反馈效果。不同的应用场景(例如:时间提醒,接收信息,闹钟,游戏等)也可以对应不同的振动反馈效果。触摸振动反馈效果还可以支持自定义。Motor 191 can generate vibrating cues. The motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, playing audio, etc.) can correspond to different vibration feedback effects. The motor 191 can also correspond to different vibration feedback effects for touch operations on different areas of the display screen 194 . Different application scenarios (for example: time reminder, receiving information, alarm clock, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。The indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和第一电子设备100的接触和分离。第一电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。同一个SIM卡接口195可以同时插入多张卡。所述多张卡的类型可以相同,也可以不同。SIM卡接口195也可以兼容不同类型的SIM卡。SIM卡接口195也可以兼容外部存储卡。第一电子设备100通过SIM卡和网络交互,实现通话以及数据通信等功能。在一些实施例中,第一电子设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在第一电子设备100中,不能和第一电子设备100分离。The SIM card interface 195 is used to connect a SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact with and separation from the first electronic device 100 . The first electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 is also compatible with external memory cards. The first electronic device 100 interacts with the network through the SIM card to implement functions such as call and data communication. In some embodiments, the first electronic device 100 employs an eSIM, ie an embedded SIM card. The eSIM card can be embedded in the first electronic device 100 and cannot be separated from the first electronic device 100 .
可以理解的是,本发明实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对第一电子设备100的结构限定。在本申请另一些实施例中,第一电子设备100也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is only a schematic illustration, and does not constitute a structural limitation of the first electronic device 100 . In other embodiments of the present application, the first electronic device 100 may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
可以理解的是,上述第一电子设备100等为了实现上述功能,其包含了执行各个功能相应的硬件结构和/或软件模块。本领域技术人员应该很容易意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,本申请实施例能够以硬件或硬件和计算机软件的结合形式来实现。某个功能究竟以硬件还是计算机软件驱动硬件的方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明实施例的范围。It can be understood that, in order to realize the above-mentioned functions, the above-mentioned first electronic device 100 and the like include corresponding hardware structures and/or software modules for executing each function. Those skilled in the art should easily realize that, in conjunction with the units and algorithm steps of each example described in the embodiments disclosed herein, the embodiments of the present application can be implemented in hardware or a combination of hardware and computer software. Whether a function is performed by hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Skilled artisans may implement the described functionality using different methods for each particular application, but such implementations should not be considered beyond the scope of the embodiments of the present invention.
本申请实施例可以根据上述方法示例对上述第一电子设备100等进行功能模块的划分,例如,可以对应各个功能划分各个功能模块,也可以将两个或两个以上的功能集成在一个处理模块中。上述集成的模块既可以采用硬件的形式实现,也可以采用软件功能模块的形式实现。需要说明的是,本发明实施例中对模块的划分是示意性的,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式。In this embodiment of the present application, the first electronic device 100 and the like may be divided into functional modules according to the foregoing method examples. For example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. middle. The above-mentioned integrated modules can be implemented in the form of hardware, and can also be implemented in the form of software function modules. It should be noted that, the division of modules in the embodiment of the present invention is schematic, and is only a logical function division, and there may be other division manners in actual implementation.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。From the description of the above embodiments, those skilled in the art can clearly understand that for the convenience and brevity of the description, only the division of the above functional modules is used as an example for illustration. In practical applications, the above functions can be allocated as required. It is completed by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. For the specific working process of the system, apparatus and unit described above, reference may be made to the corresponding process in the foregoing method embodiments, and details are not described herein again.
在本申请实施例各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。Each functional unit in each of the embodiments of the embodiments of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)或处理器执行 本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:快闪存储器、移动硬盘、只读存储器、随机存取存储器、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that make contributions to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage The medium includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: flash memory, removable hard disk, read-only memory, random access memory, magnetic disk or optical disk and other media that can store program codes.
以上所述,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。The above are only specific embodiments of the present application, but the protection scope of the present application is not limited to this, and any changes or substitutions within the technical scope disclosed in the present application should be covered within the protection scope of the present application. . Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims (14)

  1. 一种帧解复用方法,应用于第一电子设备,其特征在于,所述方法包括:A frame demultiplexing method, applied to a first electronic device, characterized in that the method comprises:
    获取目标文件,所述目标文件包含多个多媒体帧;Obtaining a target file, the target file contains a plurality of multimedia frames;
    获取输入时刻;Get the input moment;
    基于所述输入时刻确定最佳读取量及第一多媒体帧;determining an optimal read amount and a first multimedia frame based on the input moment;
    基于所述最佳读取量,从所述第一多媒体帧开始,读取所述目标文件中的多个第二多媒体帧,其中,所述第二多媒体帧包括所述第一多媒体帧;Based on the optimal read amount, starting from the first multimedia frame, read a plurality of second multimedia frames in the target file, wherein the second multimedia frames include the the first multimedia frame;
    将多个所述第二多媒体帧发送给第二电子设备。A plurality of the second multimedia frames are sent to the second electronic device.
  2. 根据权利要求1所述的方法,其特征在于,所述多个多媒体帧包括多个视频帧和多个音频帧,所述基于所述最佳读取量,从所述第一多媒体帧开始,读取所述目标文件中的多个第二多媒体帧包括:The method according to claim 1, wherein the plurality of multimedia frames comprises a plurality of video frames and a plurality of audio frames, and the first multimedia frame is obtained from the first multimedia frame based on the optimal read amount. Initially, reading a plurality of second multimedia frames in the target file includes:
    基于所述最佳读取量,从所述第一视频帧开始,读取所述目标文件中的多个第二视频帧;Based on the optimal read amount, starting from the first video frame, read a plurality of second video frames in the target file;
    或基于所述最佳读取量,从所述第一音频帧开始,读取所述目标文件中的多个第二音频帧。Or based on the optimal read amount, starting from the first audio frame, a plurality of second audio frames in the target file are read.
  3. 根据权利要求1所述的方法,其特征在于,所述基于所述输入时刻确定最佳读取量包括:The method according to claim 1, wherein the determining the optimal reading amount based on the input moment comprises:
    获取预设待定读取数;Get the number of preset pending reads;
    统计从所述输入时刻开始至所述目标文件结束时刻的所有多媒体帧的帧数;Count the frame numbers of all multimedia frames from the input moment to the end moment of the target file;
    若所述多媒体帧的帧数大于或等于所述预设待定读取数,则将所述预设待定读取数设为所述最佳读取量;If the frame number of the multimedia frame is greater than or equal to the preset pending reading number, set the preset pending reading number as the optimal reading amount;
    若所述多媒体帧的帧数小于所述预设待定读取数,则将所述最佳读取量设为1。If the frame number of the multimedia frame is less than the preset pending reading number, the optimal reading amount is set to 1.
  4. 根据权利要求3所述的方法,其特征在于,所述预设待定读取数由向量寄存器的位数和所述多媒体帧的数据类型确定。The method according to claim 3, wherein the preset pending read number is determined by the number of bits of the vector register and the data type of the multimedia frame.
  5. 根据权利要求1所述的方法,其特征在于,所述基于所述最佳读取量,从所述第一多媒体帧开始,读取所述目标文件中的多个第二多媒体帧包括:The method according to claim 1, wherein, based on the optimal read amount, starting from the first multimedia frame, reading a plurality of second multimedia files in the target file Frames include:
    基于所述输入时刻确定块偏移;determining a block offset based on the input time instant;
    基于所述最佳读取量获取每个所述第二多媒体帧的帧大小;obtaining the frame size of each of the second multimedia frames based on the optimal read amount;
    基于所述块偏移和所述帧大小构建帧矩阵;constructing a frame matrix based on the block offset and the frame size;
    对所述帧矩阵进行向量化运算,得到帧偏移向量;Perform vectorization operation on the frame matrix to obtain a frame offset vector;
    根据所述帧偏移向量,从所述第一多媒体帧开始,读取所述目标文件中的多个第二多媒体帧。According to the frame offset vector, starting from the first multimedia frame, a plurality of second multimedia frames in the target file are read.
  6. 根据权利要求1所述的方法,其特征在于,所述将多个所述第二多媒体帧发送给第二电子设备包括:The method according to claim 1, wherein the sending a plurality of the second multimedia frames to the second electronic device comprises:
    将多个所述第二多媒体帧及每个所述第二多媒体帧的帧大小发送给第二电子设备。Sending a plurality of the second multimedia frames and the frame size of each of the second multimedia frames to the second electronic device.
  7. 一种第一电子设备,其特征在于,包括:存储器,所述存储器用于存储计算机程序代码,所述计算机程序代码包括指令,当所述第一电子设备从所述存储器中读取所述指令,以使得所述第一电子设备执行以下步骤:A first electronic device, characterized by comprising: a memory, wherein the memory is used to store computer program codes, the computer program codes include instructions, when the first electronic device reads the instructions from the memory , so that the first electronic device performs the following steps:
    获取目标文件,所述目标文件包含多个多媒体帧;Obtaining a target file, the target file contains a plurality of multimedia frames;
    获取输入时刻;Get the input moment;
    基于所述输入时刻确定最佳读取量及第一多媒体帧;determining an optimal read amount and a first multimedia frame based on the input moment;
    基于所述最佳读取量,从所述第一多媒体帧开始,读取所述目标文件中的多个第二多媒体帧,其中,所述第二多媒体帧包括所述第一多媒体帧;Based on the optimal read amount, starting from the first multimedia frame, read a plurality of second multimedia frames in the target file, wherein the second multimedia frames include the the first multimedia frame;
    将多个所述第二多媒体帧发送给第二电子设备。A plurality of the second multimedia frames are sent to the second electronic device.
  8. 根据权利要求7所述的第一电子设备,其特征在于,所述多个多媒体帧包括多个视频帧和多个音频帧,所述指令被所述第一电子设备执行时,使得所述第一电子设备执行基于所述最佳读取量,从所述第一多媒体帧开始,读取所述目标文件中的多个第二多媒体帧的步骤包括:The first electronic device according to claim 7, wherein the plurality of multimedia frames include a plurality of video frames and a plurality of audio frames, and when the instruction is executed by the first electronic device, the An electronic device executes the step of reading a plurality of second multimedia frames in the target file, starting from the first multimedia frame, based on the optimal read amount, comprising:
    基于所述最佳读取量,从所述第一视频帧开始,读取所述目标文件中的多个第二视频帧;Based on the optimal read amount, starting from the first video frame, read a plurality of second video frames in the target file;
    或基于所述最佳读取量,从所述第一音频帧开始,读取所述目标文件中的多个第二音频帧。Or based on the optimal read amount, starting from the first audio frame, a plurality of second audio frames in the target file are read.
  9. 根据权利要求7所述的第一电子设备,其特征在于,所述指令被所述第一电子设备执行时,使得所述第一电子设备执行基于所述输入时刻确定最佳读取量的步骤包括:The first electronic device according to claim 7, wherein when the instruction is executed by the first electronic device, the first electronic device causes the first electronic device to perform the step of determining the optimal reading amount based on the input time include:
    获取预设待定读取数;Get the number of preset pending reads;
    统计从所述输入时刻开始至所述目标文件结束时刻的所有多媒体帧的帧数;Count the frame numbers of all multimedia frames from the input moment to the end moment of the target file;
    若所述多媒体帧的帧数大于或等于所述预设待定读取数,则将所述预设待定读取数设为所述最佳读取量;If the frame number of the multimedia frame is greater than or equal to the preset pending reading number, set the preset pending reading number as the optimal reading amount;
    若所述多媒体帧的帧数小于所述预设待定读取数,则将所述最佳读取量设为1。If the frame number of the multimedia frame is less than the preset pending reading number, the optimal reading amount is set to 1.
  10. 根据权利要求9所述的第一电子设备,其特征在于,所述预设待定读取数由向量寄存器的位数和所述多媒体帧的数据类型确定。The first electronic device according to claim 9, wherein the preset pending read number is determined by the number of bits of the vector register and the data type of the multimedia frame.
  11. 根据权利要求7所述的第一电子设备,其特征在于,所述指令被所述第一电子设备执行时,使得所述第一电子设备执行基于所述最佳读取量,从所述第一多媒体帧开始,读取所述目标文件中的多个第二多媒体帧的步骤包括:The first electronic device according to claim 7, characterized in that, when the instruction is executed by the first electronic device, the first electronic device is made to execute, based on the optimal read amount, from the first electronic device Starting from a multimedia frame, the step of reading a plurality of second multimedia frames in the target file includes:
    基于所述输入时刻确定块偏移;determining a block offset based on the input time instant;
    基于所述最佳读取量获取每个所述第二多媒体帧的帧大小;obtaining the frame size of each of the second multimedia frames based on the optimal read amount;
    基于所述块偏移和所述帧大小构建帧矩阵;constructing a frame matrix based on the block offset and the frame size;
    对所述帧矩阵进行向量化运算,得到帧偏移向量;Perform vectorization operation on the frame matrix to obtain a frame offset vector;
    根据所述帧偏移向量,从所述第一多媒体帧开始,读取所述目标文件中的多个第二多媒体帧。According to the frame offset vector, starting from the first multimedia frame, a plurality of second multimedia frames in the target file are read.
  12. 根据权利要求7所述的第一电子设备,其特征在于,所述指令被所述第一电子设备执行时,使得所述第一电子设备执行将多个所述第二多媒体帧发送给第二电子设备的步骤包括:The first electronic device according to claim 7, wherein when the instruction is executed by the first electronic device, the first electronic device causes the first electronic device to execute sending a plurality of the second multimedia frames to The steps of the second electronic device include:
    将多个所述第二多媒体帧及每个所述第二多媒体帧的帧大小发送给第二电子设备。Sending a plurality of the second multimedia frames and the frame size of each of the second multimedia frames to the second electronic device.
  13. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在所述第一电子设备上运行时,使得所述第一电子设备执行如权利要求1-6中任一项所述帧解复用的方法。A computer-readable storage medium, characterized by comprising computer instructions, which, when the computer instructions are executed on the first electronic device, cause the first electronic device to execute any one of claims 1-6 The frame demultiplexing method.
  14. 一种计算机程序产品,其特征在于,当所述计算机程序产品在计算机上运行时,使得所述计算机执行如权利要求1-6中任一项所述帧解复用的方法。A computer program product, characterized in that, when the computer program product runs on a computer, the computer is caused to execute the frame demultiplexing method according to any one of claims 1-6.
PCT/CN2021/126345 2020-11-09 2021-10-26 Frame demultiplexing method, electronic device and storage medium WO2022095752A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011240224.1 2020-11-09
CN202011240224.1A CN114466238B (en) 2020-11-09 2020-11-09 Frame demultiplexing method, electronic device and storage medium

Publications (1)

Publication Number Publication Date
WO2022095752A1 true WO2022095752A1 (en) 2022-05-12

Family

ID=81404210

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/126345 WO2022095752A1 (en) 2020-11-09 2021-10-26 Frame demultiplexing method, electronic device and storage medium

Country Status (2)

Country Link
CN (1) CN114466238B (en)
WO (1) WO2022095752A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116721678A (en) * 2022-09-29 2023-09-08 荣耀终端有限公司 Audio data monitoring method, electronic equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104823450A (en) * 2013-12-01 2015-08-05 Lg电子株式会社 Method and device for transmitting and receiving broadcast signal for providing trick play service
CN108184163A (en) * 2017-12-29 2018-06-19 深圳华侨城卡乐技术有限公司 A kind of video broadcasting method, storage medium and player
US20180205978A1 (en) * 2017-01-19 2018-07-19 International Business Machines Corporation Video segment manager
CN109936763A (en) * 2017-12-15 2019-06-25 腾讯科技(深圳)有限公司 The processing of video and dissemination method
CN111741338A (en) * 2020-07-22 2020-10-02 深圳力维智联技术有限公司 HLS streaming media playing method, system, equipment and storage medium

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
AU2003286491A1 (en) * 2002-10-18 2004-05-04 Global Epoint, Inc. Video and telemetry apparatus and methods
PT3125555T (en) * 2010-08-17 2018-05-28 M&K Holdings Inc Method for encoding an intra prediction mode
EP2530948A1 (en) * 2011-06-03 2012-12-05 Samsung Electronics Co., Ltd. Method and device for demultiplexing audio & video data of multimedia file
US9894393B2 (en) * 2015-08-31 2018-02-13 Gopro, Inc. Video encoding for reduced streaming latency
CN106686445B (en) * 2015-11-05 2019-06-11 北京中广上洋科技股份有限公司 The method that multimedia file is jumped on demand
CN111291610B (en) * 2019-12-12 2024-05-28 深信服科技股份有限公司 Video detection method, device, equipment and computer readable storage medium
CN111526314B (en) * 2020-04-24 2022-04-05 荣耀终端有限公司 Video shooting method and electronic equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104823450A (en) * 2013-12-01 2015-08-05 Lg电子株式会社 Method and device for transmitting and receiving broadcast signal for providing trick play service
US20180205978A1 (en) * 2017-01-19 2018-07-19 International Business Machines Corporation Video segment manager
CN109936763A (en) * 2017-12-15 2019-06-25 腾讯科技(深圳)有限公司 The processing of video and dissemination method
CN108184163A (en) * 2017-12-29 2018-06-19 深圳华侨城卡乐技术有限公司 A kind of video broadcasting method, storage medium and player
CN111741338A (en) * 2020-07-22 2020-10-02 深圳力维智联技术有限公司 HLS streaming media playing method, system, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116721678A (en) * 2022-09-29 2023-09-08 荣耀终端有限公司 Audio data monitoring method, electronic equipment and medium

Also Published As

Publication number Publication date
CN114466238A (en) 2022-05-10
CN114466238B (en) 2023-09-29

Similar Documents

Publication Publication Date Title
WO2020244623A1 (en) Air-mouse mode implementation method and related device
WO2021017909A1 (en) Method, electronic device and system for realizing functions through nfc tag
CN114489533A (en) Screen projection method and device, electronic equipment and computer readable storage medium
WO2022116930A1 (en) Content sharing method, electronic device, and storage medium
WO2022156555A1 (en) Screen brightness adjustment method, apparatus, and terminal device
CN114422340A (en) Log reporting method, electronic device and storage medium
WO2022199613A1 (en) Method and apparatus for synchronous playback
WO2022042768A1 (en) Index display method, electronic device, and computer readable storage medium
CN114880251A (en) Access method and access device of storage unit and terminal equipment
WO2022105674A1 (en) Incoming call answering method, electronic device, and storage medium
WO2022022319A1 (en) Image processing method, electronic device, image processing system and chip system
WO2022095752A1 (en) Frame demultiplexing method, electronic device and storage medium
CN113593567A (en) Method for converting video and sound into text and related equipment
JP2022501968A (en) File transfer method and electronic device
CN109285563B (en) Voice data processing method and device in online translation process
WO2022135144A1 (en) Self-adaptive display method, electronic device, and storage medium
WO2022033344A1 (en) Video stabilization method, and terminal device and computer-readable storage medium
WO2022170854A1 (en) Video call method and related device
CN114120987B (en) Voice wake-up method, electronic equipment and chip system
CN116939559A (en) Bluetooth audio coding data distribution method, electronic equipment and storage medium
CN115297269B (en) Exposure parameter determination method and electronic equipment
WO2022105670A1 (en) Display method and terminal
CN115019803B (en) Audio processing method, electronic device, and storage medium
CN113364067B (en) Charging precision calibration method and electronic equipment
WO2024055881A1 (en) Clock synchronization method, electronic device, system, and storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21888449

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21888449

Country of ref document: EP

Kind code of ref document: A1