Video playing method and electronic equipment
By performing super-resolution processing on the common area or main area in the video frame, the problem of video and audio being out of sync is solved, and the synchronization and image quality of video playback are improved.
Patent Information
- Application Number
- CN202310154023.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-21
- Publication Date
- 2024-08-23
AI Technical Summary
When existing video playback technology processes video images such as old movies, the video and audio may be out of sync, affecting the user experience.
By performing super-resolution processing on the public area or main area in the video frame, the super-resolution processing time is reduced and the synchronization of video and audio during video playback is ensured.
It effectively reduces the super-resolution processing time, improves the synchronization and overall image quality of video playback, and ensures the synchronous playback of video and audio.
Smart Images

Figure CN118540546A
Abstract
Description
Technical Field
[0001] The present application relates to the field of terminal technology, and in particular to a video playback method and an electronic device. Background Art
[0002] With the development of video playback technology, users have higher and higher requirements for video playback clarity. For some videos with poor video quality (such as old movies), image super-resolution algorithms are often used to process the video before playback to improve the video resolution. However, this processing method may cause the video and audio to be out of sync during video playback, affecting the user experience. Summary of the invention
[0003] The present application provides a video playback method and an electronic device, which can ensure synchronous playback of video and audio during video playback.
[0004] In order to achieve the above objectives, the embodiments of the present application provide the following technical solutions:
[0005] In a first aspect, the present application provides a video playback method, the method comprising: super-resolution processing of a common area of a first video frame among multiple video frames to obtain multiple video frames after super-resolution processing; the common area is an area with the same content in multiple video frames; or, super-resolution processing of a main area in each video frame among multiple video frames to obtain multiple video frames after super-resolution processing; and playing the multiple video frames after super-resolution processing.
[0006] For example, Figure 6 As shown, the mobile phone can perform super-resolution processing on the common area 1 in the first frame to obtain the super-resolution common area 1, thereby obtaining the super-resolution first frame, the second frame and the third frame. Figure 7 As shown, the first frame, the second frame and the third frame are the same, then the mobile phone super-resolution processes the first frame to obtain the first frame after super-resolution processing, which replaces the second frame and the third frame, and does not super-resolution the second frame and the third frame.
[0007] For example, Fig. 9 As shown, the mobile phone can perform super-resolution processing on the main area 503 in the first frame and the second frame respectively to obtain the first frame and the second frame after super-resolution processing. Afterwards, the mobile phone can play the multiple video frames after super-resolution processing.
[0008] In this way, the electronic device can reduce the super-resolution processing time by performing super-resolution processing on some video frames in the video, or performing super-resolution processing on some areas of the video frame, and ensure that the video and audio can be played synchronously during the video playback process.
[0009] In a possible implementation, the method further includes: determining a first area in the plurality of video frames; the first area includes a common area of the first video frame or a main area in each of the plurality of video frames.
[0010] Optionally, the mobile phone may determine the common area of the first video frame or the main area in each of the multiple video frames, and then perform super-resolution processing on the common area or the main area.
[0011] In a possible implementation, determining the first area in multiple video frames includes: comparing pixel values of corresponding positions of multiple video frames to determine the common area of the first video frame; or determining the first area based on encoding information of positions of multiple video frames.
[0012] For example, the mobile phone can compare the pixel values of pixels at corresponding positions of multiple video frames. If the pixel values are the same, the area composed of points with the same pixel values at corresponding positions in the consecutive multiple video frames is the common area of the consecutive multiple video frames. In this way, the mobile phone can quickly determine the common area of the first video frame.
[0013] Alternatively, the encoding end can encode the information of the common area during encoding, and the encoded video carries the common area indication information, which indicates the location of the common area in the first frame (such as the first frame). In this way, the mobile phone can directly obtain the common area information of multiple video frames. There is no need to compare the contents of multiple video frames, which saves the total time of the mobile phone for super-resolution processing of the common area.
[0014] In a possible implementation, multiple video frames after super-resolution processing are played, including: the multiple video frames include a first video frame and a target video frame, and the target video frame is not the first video frame among the multiple video frames; the first video frame after super-resolution processing is played, and the first video frame after super-resolution processing includes a common area of the first video frame after super-resolution processing and a difference area in the first video frame; the difference area of the video frame is other areas in the video frame except the common area; the target video frame after super-resolution processing is played, and the target video frame after super-resolution processing includes the common area of the first video frame and the difference area in the target video frame.
[0015] For example, Figure 6 As shown, the first frame (first video frame) includes the common area 1 after super-resolution processing and the difference area 1 without super-resolution processing. The second frame (target video frame) includes the common area 1 after super-resolution processing and the difference area 2 without super-resolution processing. The third frame (target video frame) includes the common area 1 after super-resolution processing and the difference area 3 without super-resolution processing.
[0016] In this way, only the common area 1 of the first frame needs to be super-resolved to obtain three video frames after super-resolution, which reduces the super-resolution processing time of multiple video frames and improves the super-resolution efficiency.
[0017] In one possible implementation, multiple video frames after super-resolution processing are played, including: playing each video frame after super-resolution processing, each video frame includes a main area in each video frame after super-resolution processing and a background area in each video frame; the background area in each video frame is the other area in each video frame except the main area.
[0018] For example, Fig. 9 As shown, the first frame and the second frame both include a main body area 503 and a background area 502. The mobile phone can perform super-resolution processing on the main body area 503 in the first frame and the second frame respectively, and does not perform super-resolution processing on the background area 502 in the first frame and the second frame. The first frame and the second frame after super-resolution processing are obtained. Afterwards, the mobile phone can play multiple video frames after super-resolution processing.
[0019] In this way, only a partial area of each frame needs to be super-resolved to obtain multiple video frames after super-resolution, which reduces the super-resolution processing time of multiple video frames and improves the super-resolution efficiency.
[0020] In one possible implementation, super-resolution processing of a common area of a first video frame among multiple video frames includes: when a ratio of an area occupied by the common area of the first video frame to a total area of the first video frame is greater than or equal to a preset threshold, super-resolution processing of the common area in the first video frame.
[0021] Exemplarily, the preset threshold can be set to 80%. When the ratio of the area occupied by the common areas of multiple video frames to the total area of the entire video frame is greater than 80%, the common area of the first video frame and the common areas of multiple video frames are determined, and the common areas are super-resolution processed.
[0022] In this way, when the common area is larger than a preset threshold, super-resolution processing is performed on the common area to ensure that the super-resolution common area is larger and the obtained video frame is clearer.
[0023] In a possible implementation, the method further includes: if the ratio of the area occupied by the common region of the first video frame to the total area of the first video frame is less than a preset threshold, performing super-resolution processing on the first video frame.
[0024] For example, Figure 8 As shown, the mobile phone can calculate that the proportion of the common area in the first frame (the first video frame) and the second frame is 12%, which is less than the preset threshold of 80%. The first frame and the second frame are not similar video frames. The mobile phone can super-resolution the entire first frame.
[0025] In this way, a larger number of super-resolved frames are ensured in the entire video, thereby improving the overall quality of video playback.
[0026] In a possible implementation, super-resolution processing of the common area of the first video frame includes: performing super-resolution processing on the common area of the first video frame starting from a first moment;
[0027] Playing multiple video frames after super-resolution processing includes: playing the first video frame from the second moment; the first moment is later than the second moment or the first moment is the same as the second moment; playing the first video frame after super-resolution processing from the third moment; the third moment is the moment when the super-resolution processing of the common area of the first video frame ends; playing the target video frame after super-resolution processing from the fourth moment.
[0028] Exemplarily, the total time for the mobile phone to super-resolution the common area 1 in the first frame (the first video frame) is 0.01s. Among them, the total time for super-resolution processing includes the time 0.002s for the mobile phone to determine the common areas of multiple video frames after comparing the contents of multiple video frames, and to separate the common areas and difference areas of multiple video frames, and the super-resolution processing time of 0.008s for the common area 1 in the first frame of the mobile phone. The time for the mobile phone to play each frame is 0.02s. The total playback time of three consecutive frames is 0.06s, which is greater than the total time 0.01s for the mobile phone to super-resolution the common area 1 in the first frame. Then the mobile phone can determine the common areas of multiple video frames after comparing the contents of multiple video frames at the 0th second, and separate the common areas and difference areas of multiple video frames. At the same time, the first frame that has not been super-resolution processed starts to be played at the 0th second (the second moment). At 0.002s (the first moment), the mobile phone determines and separates the common area 1 of the first frame, and super-resolutions the common area 1 in the first frame. At 0.01s (the third moment), the super-resolution processing of the common area 1 in the first frame is completed, and the common area 1 after super-resolution processing and the difference area 1 that has not been super-resolution processed are combined into the first frame after super-resolution processing. The mobile phone plays the first frame after super-resolution processing. In other words, the playback time of the first frame that has not been super-resolution processed is 0.01s, and the playback time of the first frame after super-resolution processing (including the common area 1 after super-resolution processing and the difference area 1 that has not been super-resolution processed) is 0.01s. Starting at 0.02s (the fourth moment), the mobile phone plays the second frame after super-resolution processing (the target video frame, including the common area 1 after super-resolution processing and the difference area 2 that has not been super-resolution processed). Starting at 0.04s, the mobile phone plays the third frame after super-resolution processing (the target video frame, including the common area 1 after super-resolution processing and the difference area 3 that has not been super-resolution processed). Starting at 0.06s, the mobile phone plays the next frame. And so on, the mobile phone plays each video frame of the video frame by frame.
[0029] In a possible implementation, super-resolution processing of the common area of the first video frame includes: performing super-resolution processing on the common area of the first video frame starting from a first moment;
[0030] Playing multiple video frames after super-resolution processing includes: playing the first video frame from the second moment; the first moment is later than the second moment or the first moment is the same as the second moment; playing the target video frame from the fifth moment; playing the target video frame after super-resolution processing from the sixth moment; the fifth moment is the moment when the super-resolution processing of the common area of the first video frame is completed.
[0031] Exemplarily, the total time for the mobile phone to super-resolution the common area 1 in the first frame (the first video frame) is 0.03s. Among them, the total time for super-resolution processing includes the time 0.002s for the mobile phone to determine the common areas of multiple video frames after comparing the contents of multiple video frames, and to separate the common areas and difference areas of multiple video frames, and the super-resolution processing time of 0.028s for the common area 1 in the first frame of the mobile phone. The time for the mobile phone to play each frame is 0.02s. The total playback time of three consecutive frames is 0.06s, which is greater than the total time 0.03s for the mobile phone to super-resolution the common area 1 in the first frame. Then the mobile phone can determine the common areas of multiple video frames after comparing the contents of multiple video frames at the 0th second, and separate the common areas and difference areas of multiple video frames. At the same time, the first frame that has not been super-resolution processed starts to be played at the 0th second (the second moment). At 0.002s (the first moment), the mobile phone determines and separates the common area 1 of the first frame, and super-resolutions the common area 1 in the first frame. Starting at 0.02s (the fifth moment), the mobile phone plays the second frame (target video frame) that has not been super-resolved. At 0.03s (the sixth moment), the super-resolved processing of the common area 1 in the first frame is completed, and the common area 1 after super-resolved processing and the difference area 2 that has not been super-resolved are combined into the second frame after super-resolved processing. The mobile phone plays the second frame after super-resolved processing. In other words, the playback duration of the first frame that has not been super-resolved is 0.02s. The playback duration of the second frame that has not been super-resolved is 0.01s. The playback duration of the second frame after super-resolved processing (including the common area 1 after super-resolved processing and the difference area 2 that has not been super-resolved) is 0.01s. Starting at 0.04s, the mobile phone plays the third frame after super-resolved processing (target video frame, including the common area 1 after super-resolved processing and the difference area 3 that has not been super-resolved). Starting at 0.06s, the mobile phone plays the next frame. And so on, the mobile phone plays each video frame of the video frame by frame.
[0032] In one possible implementation, common regions in a plurality of video frames are super-resolution processed to obtain super-resolution video frames; difference regions in a plurality of video frames are super-resolution processed to obtain second super-resolution video frames; and video frames after the second super-resolution processing are played.
[0033] Exemplarily, the mobile phone may perform super-resolution processing on the common area 1 in the first frame, and the first frame after super-resolution processing includes the common area 1 after super-resolution processing and the difference area 1 that is not super-resolution processed. The mobile phone may perform super-resolution processing on the difference area 1 of the first frame to obtain the difference area 1 after super-resolution processing. The first frame after the second super-resolution processing includes the common area 1 after super-resolution processing and the difference area 1 after super-resolution processing. The mobile phone plays the first frame after the second super-resolution processing.
[0034] In this way, the clarity of the video frame is further improved while ensuring that the video and audio are played synchronously during video playback.
[0035] In a second aspect, a video encoding method is provided, comprising: acquiring multiple video frames, the multiple video frames including a common area and a difference area; the common area is an area with the same content in the multiple video frames; and encoding images of the common area in the multiple video frames.
[0036] According to a third aspect, a video encoding device is provided, which includes: a processing unit, configured to obtain a plurality of video frames, wherein the plurality of video frames include a common area and a difference area; and the processing unit, further configured to encode the common area in the plurality of video frames.
[0037] In a fourth aspect, an embodiment of the present application provides an electronic device having the function of implementing the video playback method described in the first aspect and any possible implementation thereof. The function can be implemented by hardware, or by hardware executing corresponding software. The hardware or software includes one or more modules corresponding to the above functions.
[0038] In a fifth aspect, the present application provides an electronic device comprising: a processor and a memory, the memory being coupled to the processor, the memory being used to store computer program code, the computer program code comprising computer instructions, and when the processor reads the computer instructions from the memory, the electronic device executes a method as described in any one of the first aspects.
[0039] In a sixth aspect, the present application provides a computer storage medium, comprising computer instructions, which, when executed on a computer, enable the computer to execute a method as described in any one of the first aspects.
[0040] In the seventh aspect, the present application provides a chip system comprising at least one processor and at least one interface circuit, wherein the at least one interface circuit is used to perform transceiver functions and send instructions to the at least one processor, and when the at least one processor executes the instructions, the at least one processor executes a method as described in any one of the above-mentioned first aspects.
[0041] In an eighth aspect, the present application also provides a computer program product, comprising instructions, which, when executed on a computer, enables the computer to execute the method as described in any one of the first aspects.
[0042] In a ninth aspect, an embodiment of the present application provides a circuit system, the circuit system includes a processing circuit, and the processing circuit is configured to execute the method of the first aspect or any one of the implementations of the first aspect.
[0043] The technical effects corresponding to the second to ninth aspects and any one of the implementation methods of the second to ninth aspects can be referred to the technical effects corresponding to the above-mentioned first aspect and any one of the implementation methods of the first aspect, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] Figure 1 A system schematic diagram provided for an embodiment of the present application;
[0045] Figure 2 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0046] Figure 3 A schematic diagram of the structure of another electronic device provided in an embodiment of the present application;
[0047] Figure 4A A schematic diagram of a module of an electronic device provided in an embodiment of the present application;
[0048] Figure 4B A flow chart of a video playback method provided in an embodiment of the present application;
[0049] Figure 5 A schematic diagram of a mobile phone interface provided in an embodiment of the present application;
[0050] Figure 6 Another mobile phone interface schematic diagram provided in an embodiment of the present application;
[0051] Figure 7 Another mobile phone interface schematic diagram provided in an embodiment of the present application;
[0052] Figure 8 Another mobile phone interface schematic diagram provided in an embodiment of the present application;
[0053] Fig. 9 Another mobile phone interface schematic diagram provided in an embodiment of the present application;
[0054] Fig.10 A flowchart of another video playback method provided in an embodiment of the present application;
[0055] Fig.11 A flowchart of another video playback method provided in an embodiment of the present application;
[0056] Fig.12 A flowchart of another video playback method provided in an embodiment of the present application;
[0057] Fig.13 A flowchart of another video playback method provided in an embodiment of the present application;
[0058] Fig.14 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0059] Fig.15 A schematic diagram of the structure of a chip system provided in an embodiment of the present application. DETAILED DESCRIPTION
[0060] An operating method and an electronic device provided in an embodiment of the present application are described in detail below with reference to the accompanying drawings.
[0061] The terms "including" and "having" and any variations thereof mentioned in the description of the embodiments of the present application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include other steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices.
[0062] It should be noted that, in the embodiments of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0063] In the description of the embodiments of the present application, unless otherwise specified, the meaning of "multiple" refers to two or more. The "and / or" in this article is only a description of the association relationship of the associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0064] In some scenarios, the video quality is poor. For example, old movies shot earlier generally have poor quality and high noise due to technical limitations. Or, when projecting a video from a small-screen device to a large-screen device, the image quality may be compressed during the projection process, resulting in poor video quality. In addition, the image of the small-screen device is enlarged and displayed on the large-screen device, which also results in poor video quality.
[0065] Image super-resolution technology has been developed based on deep learning methods. Image super-resolution technology can reduce image noise and increase the image resolution by 1, 2, 4, or even more times.
[0066] In the related art, after the video and audio are synchronized, the video frame is super-resolution (super-resolution) processed on the graphics card, and each frame in the video is super-resolution processed to obtain a higher-resolution video frame for playback. If the video frame rate is high, the super-resolution processing time for a single frame may exceed the time interval between frames, resulting in a delay in the video frame playback, while the audio is played normally (without delay), and the video and audio are not synchronized during playback. Among them, the frame rate of the video is the number of frames displayed per second.
[0067] To solve the above problems, the embodiments of the present application provide a video playback method and an electronic device. In the method, the electronic device can reduce the super-resolution processing time by super-resolution processing on some video frames in the video, or super-resolution processing on some areas of the video frames. The video and audio can be played synchronously as much as possible during the video playback process.
[0068] In a possible implementation, the embodiment of the present application can be applied to a system composed of multiple electronic devices. For example, when a video of a first electronic device is projected onto a second electronic device.
[0069] The system can be Figure 1 As shown. The system includes a first electronic device 100 and a second electronic device 200. The first electronic device 100 and the second electronic device 200 can implement the above-mentioned call method. The first electronic device 100 and the second electronic device 200 can be a personal computer (PC), a mobile phone, a tablet computer (Pad), a laptop computer, a desktop computer, a laptop computer, a computer with a transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, a wearable device, a vehicle-mounted device and other terminal devices. The embodiment of the present application does not impose any special restrictions on the specific form of the electronic device.
[0070] Optionally, the second electronic device 200 may transmit data to the first electronic device 100 , and the first electronic device 100 may also transmit data to the second electronic device 200 .
[0071] In a possible implementation, the embodiment of the present application can be applied to an electronic device, which can be a personal computer (PC), a mobile phone, a tablet computer (Pad), a laptop computer, a desktop computer, a laptop computer, a computer with a transceiver function, a virtual reality (VR) terminal device, an augmented reality (AR) terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical, a wireless terminal in smart grid, a wireless terminal in transportation safety, a wireless terminal in smart city, a wireless terminal in smart home, a wearable device, a vehicle-mounted device, and other terminal devices. The embodiment of the present application does not impose any special restrictions on the specific form of the electronic device.
[0072] Figure 2 The hardware structure diagram of the electronic device provided in the embodiment of the present application is shown. The electronic device may be the first electronic device and / or the second electronic device described above. The electronic device includes at least one processor 201, a communication line 202, a memory 203 and at least one communication interface 204. The memory 203 may also be included in the processor 201.
[0073] The processor 201 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.
[0074] The communication link 202 may include a pathway to transmit information between the above-mentioned components.
[0075] The communication interface 204 is used to communicate with other devices. In the embodiment of the present application, the communication interface can be a module, a circuit, a bus, an interface, a transceiver or other device capable of realizing a communication function, and is used to communicate with other devices. Optionally, when the communication interface is a transceiver, the transceiver can be an independently arranged transmitter, which can be used to send information to other devices, and the transceiver can also be an independently arranged receiver, which is used to receive information from other devices. The transceiver can also be a component that integrates the functions of sending and receiving information, and the embodiment of the present application does not limit the specific implementation of the transceiver.
[0076] The memory 203 may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Among them, the nonvolatile memory may be a read-only memory (ROM), a programmable ROM (PROM), an erasable programmable ROM (EPROM), an electrically erasable programmable ROM (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate synchronous DRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM) and direct rambus RAM (DRRAM) or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and can be accessed by a computer, but not limited thereto. The memory can be independent and connected to the processor 201 via the communication line 202. The memory 203 can also be integrated with the processor 201.
[0077] The memory 203 is used to store computer-executable instructions for implementing the solution of the present application, and the execution is controlled by the processor 201. The processor 201 is used to execute the computer-executable instructions stored in the memory 203, thereby implementing the carrier transmission method provided in the following embodiments of the present application.
[0078] Optionally, the computer-executable instructions in the embodiments of the present application may also be referred to as application code, instructions, computer program or other names, which are not specifically limited in the embodiments of the present application.
[0079] In a specific implementation, as an embodiment, the processor 201 may include one or more CPUs, such as Figure 1 CPU0 and CPU1 in.
[0080] In a specific implementation, as an embodiment, the electronic device may include multiple processors, such as Figure 2 201 and processor 205 in the embodiment of the present invention. Each of these processors may be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. The processor here may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0081] The above-mentioned electronic device may be a general device or a special device, and the embodiment of the present application does not limit the type of the electronic device.
[0082] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the first electronic device. In other embodiments of the present application, the first electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented as hardware, software, or a combination of software and hardware.
[0083] In the embodiment of the present application, the first electronic device is a mobile phone and the second electronic device is a television. However, this does not constitute a limitation on the form, function, etc. of the first electronic device and the second electronic device. Figure 3 , is a schematic diagram of the structure of a mobile phone provided in an embodiment of the present application. The methods in the following embodiments can be implemented in a mobile phone having the above hardware structure.
[0084] like Figure 3As shown, the mobile phone 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, an antenna 2, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a camera 193, and a display screen 194. Optionally, the mobile phone may also include a mobile communication module 150, etc.
[0085] It is to be understood that the structure illustrated in this embodiment does not constitute a specific limitation on the mobile phone. In other embodiments, the mobile phone may include more or fewer components than shown in the figure, or combine some components, or split some components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0086] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Among them, different processing units may be independent devices or integrated in one or more processors.
[0087] The controller can be the nerve center and command center of the mobile phone. The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of fetching and executing instructions.
[0088] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0089] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a USB interface, etc.
[0090] The charging management module 140 is used to receive charging input from the charger. While the charging management module 140 is charging the battery 142, it can also power the mobile phone through the power management module 141. The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 can also receive input from the battery 142 to power the mobile phone.
[0091] The wireless communication function of the mobile phone can be realized through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor and baseband processor.
[0092] Antenna 1 and antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in the mobile phone can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antennas. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0093] When the mobile phone includes a mobile communication module 150, the mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the mobile phone. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process 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 convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110. In some embodiments of the present application, the mobile phone 1 and the mobile phone 2 can communicate through the mobile communication module 150.
[0094] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0095] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as Wi-Fi networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), NFC, infrared technology (IR), etc., which are applied to mobile phones. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, modulates the electromagnetic wave signal and filters it, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate its frequency, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2. In some embodiments of the present application, the first electronic device and the second electronic device can communicate through the wireless communication module 160.
[0096] In some embodiments, the antenna 1 of the mobile phone is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the mobile phone can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include 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, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite-based augmentation system (SBAS).
[0097] The mobile phone realizes the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connecting the display screen 194 and the application processor. The processor 110 may include one or more GPUs, which execute program instructions to generate or change display information.
[0098] The display screen 194 is used to display images, videos, etc. The 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 (AMOLED), a flexible light emitting diode (FLED), Mini LED, MicroLed, Micro-oLed, quantum dot light emitting diodes (QLED), etc. In some embodiments, the mobile phone may include 1 or N display screens 194, where N is a positive integer greater than 1. In some embodiments of the present application, during video playback, the display screen 194 displays the following: Figure 5-Figure 9 The video playback interface is shown in the figure.
[0099] The mobile phone can realize the shooting function through the ISP, the camera 193, the video codec, the GPU, the display screen 194 and the application processor, etc. In some embodiments, the mobile phone can include 1 or N cameras 193, where N is a positive integer greater than 1.
[0100] The external memory interface 120 can be used to connect an external memory card to expand the storage capacity of the mobile phone. The external memory card communicates with the processor 110 through the external memory interface 120 to implement a data storage function. For example, files such as music and videos can be stored in the external memory card.
[0101] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the mobile phone by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0102] The mobile phone can realize audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor.
[0103] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be arranged in the processor 110, or some functional modules of the audio module 170 can be arranged in the processor 110. In some embodiments of the present application, during a call, the audio module 170 of the first electronic device can convert the sound collected by the microphone 170C into corresponding voice information. Voice information from the second electronic device can also be converted into audio information.
[0104] The speaker 170A, also called a "speaker", is used to convert an audio electrical signal into a sound signal. The terminal 100 can listen to music or listen to a hands-free call through the speaker 170A. In some embodiments of the present application, during a call, after the electronic device receives a voice message from the other end device, the voice message can be played through the speaker 170A or the receiver.
[0105] Figure 4A Another schematic diagram of the structure of an electronic device provided in an embodiment of the present application is shown. The electronic device may be the first electronic device and / or the second electronic device described above. The electronic device includes a playback module 301, a subject recognition module 302, and an image super-resolution module 303.
[0106] Optionally, the playback module 301 can compare whether the contents in multiple video frames are the same or similar, and determine the common areas of the multiple video frames. The playback module 301 can also determine the playback duration of the video frame. The playback module 301 can also initiate a subject recognition operation, send a video frame to the subject recognition module 302, and receive the recognition result from the subject recognition module 302. The playback module 301 can also initiate an image super-resolution operation, send the common area of the video frame or the main area of the video frame or the entire video frame to the image super-resolution module 303, and receive the common area of the video frame or the main area of the video frame or the entire video frame after super-resolution processing from the image super-resolution module 303. The playback module 301 can also combine the common area of the video frame after super-resolution processing with the difference area, or combine the main area after super-resolution processing with the background area, and play the video frame after super-resolution processing.
[0107] Optionally, the subject recognition module 302 may receive the video frame from the playback module 301 and recognize the subject area and the background area of the video frame. The subject recognition module 302 may also return the recognition result to the playback module 301 .
[0108] Optionally, the image super-resolution module 303 may receive a video frame or a portion of a video frame from the playback module 301 and super-resolution the video frame or the portion of the video frame. The image super-resolution module 303 may also return the super-resolution video frame or the portion of the video frame to the playback module 301.
[0109] Figure 4A The functional modules in the electronic device and the connection relationship between the modules are only exemplarily shown. It should be understood that the electronic device may include more or fewer modules than shown in the figure, or combine some modules, or split some modules, or have different module arrangements and connection relationships. The modules shown in the figure can be implemented in hardware, software, or a combination of software and hardware.
[0110] When playing old movies and videos on a mobile phone, or when projecting a video on a mobile phone to a TV, and the video frame on the mobile phone needs to be enlarged and displayed on the TV interface, you can perform super-resolution processing on part of the video frames or on part of the video frame. In this way, the super-resolution processing time of the video frame can be reduced, so that the video and audio can be played synchronously during the video playback.
[0111] As follows, the scenario of playing an old video on a mobile phone is used as an example for introduction.
[0112] Optionally, the forms of video playback on a mobile phone can be divided into online playback and local playback.
[0113] When a mobile phone plays an online video, it needs to parse the data of the streaming media protocol first and output the standard encapsulation format data. After that, the mobile phone can play the online video according to the output standard encapsulation format data. Alternatively, the mobile phone can also play the local video according to the standard encapsulation format data stored in the mobile phone.
[0114] Among them, the streaming media protocol is a protocol for transmitting multimedia over the network. Streaming media refers to a media format that uses streaming transmission. Specifically, streaming media refers to a technology and process that compresses a series of media data, sends the data in segments over the Internet, and transmits audio and video in real time for viewing.
[0115] Streaming media protocols may include hypertext transfer protocol (HTTP), real-time streaming protocol (RTSP), real-time transport protocol (RTP), real-time transport control protocol (RTCP), real-time messaging protocol (RTMP), resource reservation protocol (RSVP), HTTP dynamic streaming protocol (HDS), HTTP real-time streaming protocol (HLS), etc. The streaming media protocol may also be other, and the present invention does not make any specific limitation on this.
[0116] The standard packaging formats of the output may include audio video interleaved (AVL), RealMedia variable bitrate (RMVB), moving picture experts group 4 (MP4), and multimedia packaging format (MKV). The output packaging format may also be other, and the present invention does not make specific restrictions on this.
[0117] Optional, such as Figure 4B As shown, the process of playing a video on a mobile phone is as follows: Steps S101-S106:
[0118] S 101. The mobile phone receives data in a video standard encapsulation format.
[0119] Optionally, the video standard encapsulation format data may be standard encapsulation format data output by parsing the data of the streaming media protocol; the video standard encapsulation format data may also be video standard encapsulation format data stored in the mobile phone.
[0120] S 102. The mobile phone separates the video standard encapsulation format data into audio stream compression coded data and video stream compression coded data.
[0121] Exemplarily, the mobile phone separates and outputs the data in the standard encapsulation format into a video stream encoded in H.264 and an audio stream encoded in advanced audio coding (AAC).
[0122] S 103. The mobile phone decodes the separated and outputted audio stream compression coded data and video stream compression coded data into uncompressed audio original data and uncompressed video original data.
[0123] Optionally, the mobile phone can decode the audio stream compressed coded data into uncompressed sampled data. For example, the mobile phone can decode the audio stream compressed coded data into pulse code modulation (PCM) sampled data. The video stream compressed coded data is decoded into uncompressed color data. Alternatively, the mobile phone can decode the video stream compressed coded data into YUV420P, RGB color data.
[0124] S 104. The mobile phone synchronizes the original audio data and the original video data.
[0125] Optionally, the mobile phone can synchronize the original audio data and the original video data according to the parameter information obtained during decapsulation, so that the audio and video can be played synchronously.
[0126] S 105. The mobile phone sends the synchronized original audio data to the sound card, and sends the original video data to the graphics card.
[0127] S 106. The mobile phone plays the original audio data in the sound card; the mobile phone performs super-resolution processing on the video frames in the original video data in the graphics card, and plays the super-resolution video frames.
[0128] Optionally, the mobile phone performs super-resolution processing on the video frames in the original video data, as detailed below.
[0129] Optionally, after playing the original audio data and the super-resolution video frames, the mobile phone may continue to return to step S101 to receive packaging format data of other video standards.
[0130] In a possible implementation, the mobile phone may perform super-resolution processing on common areas in multiple video frames.
[0131] Optionally, the mobile phone can perform super-resolution processing on the common area in multiple continuous video frames, or can perform super-resolution processing on the common area in multiple discontinuous video frames. The embodiment of the present application takes the example of a mobile phone performing super-resolution processing on the common area in multiple continuous video frames.
[0132] In one embodiment, if the contents of multiple consecutive video frames are different, but the multiple consecutive video frames are similar video frames, that is, the proportion of the common area of the pictures of the multiple consecutive video frames is greater than a preset threshold. And the total time of the mobile phone's super-resolution processing of the common area of a single video frame is less than the total playback time of multiple consecutive video frames, then the mobile phone can perform super-resolution processing on the common area of the picture in the first frame of the multiple consecutive video frames. After the super-resolution processing is completed, if the subsequently played video frame (such as the second frame) includes the common area, there is no need to repeat the super-resolution processing of the common area of the picture in the video frame (such as the second frame). Exemplarily, the preset threshold can be 80%. Alternatively, the preset threshold can also be flexibly set according to the scenario, which is not limited here.
[0133] The common area refers to the area with the same content in multiple consecutive video frames. For example, the area composed of points with the same pixel values at corresponding positions in multiple consecutive video frames is the common area of multiple consecutive video frames.
[0134] For example, Figure 5 The playing interface 501 shown. The mobile phone may be playing a close-up video frame of a person. The person in the playing interface 501 is blinking, and there is no change in other places. In the first frame, the person has open eyes; in the second frame, the person has closed eyes; in the third frame, the person has open eyes and speaks; the fourth frame switches to another scene.
[0135] Optionally, the mobile phone may determine the common area of the multiple video frames according to the values of the pixel points at corresponding positions in the multiple video frames.
[0136] For example, the mobile phone can compare the values of the pixels at the corresponding positions of the first frame and the second frame to determine the pixels with the same pixel values in the first frame and the second frame. Then, the mobile phone calculates the proportion of the common area in the first frame and the second frame, thereby determining whether the first frame and the second frame are similar video frames.
[0137] For example, the mobile phone can establish a coordinate system in pixels with the upper left corner of the first frame and the second frame as the origin. The pixel value of the coordinate (1,1) in the first frame is 20, and the pixel value of the coordinate (1,1) in the second frame is also 20. Then the value of the pixel at the coordinate (1,1) of the first frame and the second frame is the same, and the common area of the first frame and the second frame may include the pixel at the coordinate (1,1). The pixel value of the coordinate (10,10) in the first frame is 80, and the pixel value of the coordinate (10,10) in the second frame is also 60. Then the value of the pixel at the coordinate (10,10) of the first frame and the second frame is different, and the difference area between the first frame and the second frame may include the pixel at the coordinate (10,10).
[0138] For example, Figure 5As shown, there are 900 pixels with the same value in the corresponding position of the first frame and the second frame, and the video frame has 1000 pixels. The mobile phone can calculate that the proportion of the common area in the first frame and the second frame is 90%, which is greater than the preset threshold of 80%. The first frame and the second frame are similar video frames.
[0139] For example, Figure 5 As shown, the eye area is the difference area between the first frame and the second frame, and the other areas are the common areas between the first frame and the second frame.
[0140] Optional, such as Figure 5 As shown, the mobile phone can continue to compare the values of the pixels at the corresponding positions of the first frame, the second frame and the third frame, and determine the pixels with the same pixel values in the first frame, the second frame and the third frame. The mobile phone calculates the proportion of the common area in the first frame, the second frame and the third frame. In this way, it is determined whether the first frame, the second frame and the third frame are similar video frames.
[0141] For example, there are 820 pixels with the same value in the corresponding positions of the first frame, the second frame and the third frame, and the video frame has 1000 pixels. The mobile phone can calculate that the proportion of the common area in the first frame, the second frame and the third frame is 82%, which is greater than the preset threshold of 80%. The first frame, the second frame and the third frame are similar video frames.
[0142] For example, Figure 5 As shown, the eye area and the lip area are the difference areas among the first frame, the second frame and the third frame, and the other areas are the common areas among the first frame, the second frame and the third frame.
[0143] Optionally, the mobile phone can continue to compare the values of the pixels at corresponding positions of the first frame, the second frame, the third frame, and the fourth frame to determine the pixels with the same pixel values in the first frame, the second frame, and the third frame. The mobile phone calculates the proportion of the common area in the first frame, the second frame, the third frame, and the fourth frame. Thus, it is determined whether the first frame, the second frame, the third frame, and the fourth frame are similar video frames.
[0144] For example, Figure 5 As shown, there are 820 pixels with the same value in the corresponding positions of the first frame, the second frame, the third frame and the fourth frame, and the video frame has 1000 pixels. The mobile phone can calculate that the proportion of the common area in the first frame, the second frame, the third frame and the fourth frame is 12%, which is less than the preset threshold of 80%. The first frame, the second frame, the third frame and the fourth frame are not similar video frames.
[0145] In this way, the mobile phone can determine that the first frame, the second frame, and the third frame are similar video frames, and perform super-resolution processing on the common areas of the first frame, the second frame, and the third frame.
[0146] As a possible implementation, Figure 6 As shown, the mobile phone can separate the common area 1 and the difference area 1 in the first frame; separate the common area 2 and the difference area 2 in the second frame; and separate the common area 3 and the difference area 3 in the third frame. The mobile phone can perform super-resolution processing on the common area 1 in the first frame. After the super-resolution processing is completed, the common area 1 after super-resolution processing and the difference area 1 not processed by super-resolution processing are combined into the first frame after super-resolution processing. The mobile phone can play the first frame after super-resolution processing. The mobile phone may not perform super-resolution processing on the common area 2 of the second frame, but combine the common area 1 after super-resolution processing and the difference area 2 not processed by super-resolution processing into the second frame after super-resolution processing. The mobile phone can play the second frame after super-resolution processing. The mobile phone may not perform super-resolution processing on the common area 3 of the third frame, but combine the common area 1 after super-resolution processing and the difference area 3 not processed by super-resolution processing into the third frame after super-resolution processing. Afterwards, the mobile phone can play the third frame after super-resolution processing.
[0147] Exemplarily, the total time for the mobile phone to super-resolution the common area 1 in the first frame is 0.01s. Among them, the total time for super-resolution processing includes the time 0.002s for the mobile phone to determine the common area of multiple video frames after comparing the contents of multiple video frames, and to separate the common area and the difference area of multiple video frames, and the super-resolution processing time of 0.008s for the common area 1 in the first frame of the mobile phone. The time for the mobile phone to play each frame is 0.02s. The total playback time of three consecutive frames is 0.06s, which is greater than the total time 0.01s for the mobile phone to super-resolution the common area 1 in the first frame. Then the mobile phone can determine the common area of multiple video frames after comparing the contents of multiple video frames starting at 0s, and separate the common area and the difference area of multiple video frames. At the same time, the first frame that has not been super-resolution processed starts to be played at 0s. At 0.002s, the mobile phone determines and separates the common area 1 of the first frame, and super-resolutions the common area 1 in the first frame. At 0.01s, the super-resolution processing of the common area 1 in the first frame is completed, and the common area 1 after super-resolution processing and the difference area 1 that has not been super-resolution processed are combined into the first frame after super-resolution processing. The mobile phone plays the first frame after super-resolution processing. In other words, the playback time of the first frame that has not been super-resolution processed is 0.01s, and the playback time of the first frame after super-resolution processing (including the common area 1 after super-resolution processing and the difference area 1 that has not been super-resolution processed) is 0.01s. Starting at 0.02s, the mobile phone plays the second frame after super-resolution processing (including the common area 1 after super-resolution processing and the difference area 2 that has not been super-resolution processed). Starting at 0.04s, the mobile phone plays the third frame after super-resolution processing (including the common area 1 after super-resolution processing and the difference area 3 that has not been super-resolution processed). Starting at 0.06s, the mobile phone plays the next frame. And so on, the mobile phone plays each video frame of the video frame by frame.
[0148] As another example, the total time for the mobile phone to super-resolution the common area 1 in the first frame is 0.03s. Among them, the total time for super-resolution processing includes the time 0.002s for the mobile phone to determine the common area of multiple video frames after comparing the contents of multiple video frames, and to separate the common area and the difference area of multiple video frames, and the super-resolution processing time of the common area 1 in the first frame of the mobile phone is 0.028s. The time for the mobile phone to play each frame is 0.02s. The total playback time of three consecutive frames is 0.06s, which is greater than the total time 0.03s for the mobile phone to super-resolution the common area 1 in the first frame. Then the mobile phone can determine the common area of multiple video frames after comparing the contents of multiple video frames at the 0th second, and separate the common area and the difference area of multiple video frames. At the same time, the first frame that is not super-resolution processed starts to be played at the 0th second. At 0.002s, the mobile phone determines and separates the common area 1 of the first frame, and super-resolutions the common area 1 in the first frame. Starting at 0.02s, the mobile phone plays the second frame that is not super-resolution processed. At 0.03s, the super-resolution processing of the common area 1 in the first frame is completed, and the super-resolution common area 1 and the non-super-resolution difference area 2 are combined into the second super-resolution frame. The mobile phone plays the second super-resolution frame. In other words, the playback time of the first frame that is not super-resolution is 0.02s. The playback time of the second frame that is not super-resolution is 0.01s. The playback time of the second frame after super-resolution (including the super-resolution common area 1 and the non-super-resolution difference area 2) is 0.01s. Starting at 0.04s, the mobile phone plays the third frame after super-resolution (including the super-resolution common area 1 and the non-super-resolution difference area 3). Starting at 0.06s, the mobile phone plays the next frame. And so on, the mobile phone plays each video frame of the video frame by frame.
[0149] Among them, for a single video frame, if the video frame includes a common area and the common area has been super-resolution processed before, the common area will not be processed repeatedly when the video frame is played to avoid problems such as audio and video asynchrony caused by too long super-resolution processing.
[0150] Optionally, if the total time of super-resolution processing of the common area of a single video frame by the mobile phone is greater than the total time of playing a plurality of consecutive video frames, the video frame without super-resolution processing is played.
[0151] Exemplarily, the total time for the mobile phone to super-resolution the common area 1 in the first frame is 0.08s. Among them, the total time for super-resolution processing includes the time 0.002s for the mobile phone to determine the common area of multiple video frames after comparing the contents of multiple video frames, and to separate the common area and the difference area of multiple video frames, and the super-resolution processing time of the common area 1 in the first frame of the mobile phone is 0.078s. The time for the mobile phone to play each frame is 0.02s. The total playback time of three consecutive frames is 0.06s, which is less than the total time 0.08s for the mobile phone to super-resolution the common area 1 in the first frame. Then the mobile phone can determine the common area of multiple video frames after comparing the contents of multiple video frames starting at 0s, and separate the common area and the difference area of multiple video frames. At the same time, the first frame that has not been super-resolution processed starts to be played at 0s. At 0.002s, the mobile phone determines and separates the common area 1 of the first frame, and super-resolutions the common area 1 in the first frame. Starting from 0.02s, the mobile phone plays the second frame that has not been super-resolution processed. Since the super-resolution processing of common area 1 in the first frame is not completed, the second frame without super-resolution processing includes common area 2 without super-resolution processing and difference area 2 without super-resolution processing. Starting from 0.04s, the mobile phone plays the third frame without super-resolution processing. Since the super-resolution processing of common area 1 in the first frame is not completed, the third frame without super-resolution processing includes common area 3 without super-resolution processing and difference area 3 without super-resolution processing. Until 0.06s, the mobile phone plays the next frame. And so on, the mobile phone plays each video frame of the video frame by frame.
[0152] As a possible implementation method, the encoding end can encode the information of the common area during encoding, and the encoded video carries the common area indication information, which indicates the location of the common area in the first frame (such as the first frame). In this way, the mobile phone can directly obtain the common area information of multiple video frames. There is no need to compare the contents of multiple video frames, which saves the total time of the mobile phone for super-resolution processing of the common area.
[0153] Exemplarily, the mobile phone can directly determine the common area 1 in the first frame. The super-resolution processing time of the mobile phone for the common area 1 in the first frame is 0.008s, and the time for the mobile phone to play each frame is 0.02s. The total playback time of three consecutive frames is 0.06s, which is greater than the total super-resolution processing time of the mobile phone for the common area 1 in the first frame, which is 0.008s. Then the mobile phone can start super-resolution processing of the common area 1 in the first frame at 0s, and start playing the first frame that has not been super-resolution processed at 0s. At 0.008s, the super-resolution processing of the common area 1 in the first frame is completed, and the super-resolution processed common area 1 and the non-super-resolution processed difference area 1 are combined into the first frame after super-resolution processing. The mobile phone plays the first frame after super-resolution processing. In other words, the playback time of the first frame that has not been super-resolution processed is 0.008s, and the playback time of the first frame after super-resolution processing (including the super-resolution processed common area 1 and the non-super-resolution processed difference area 1) is 0.012s. At 0.02s, the phone plays the second frame after super-resolution processing (including the common area 1 after super-resolution processing and the difference area 2 without super-resolution processing). At 0.04s, the phone plays the third frame after super-resolution processing (including the common area 1 after super-resolution processing and the difference area 3 without super-resolution processing). At 0.06s, the phone plays the next frame. And so on, the phone plays each video frame of the video frame by frame.
[0154] In one embodiment, when the contents of multiple consecutive video frames in a mobile phone are the same, the mobile phone can super-resolution the entire video frame. For example, the values of the pixels at corresponding positions of multiple consecutive video frames in the mobile phone are the same. In addition, if the total time of super-resolution processing of a single video frame by the mobile phone is less than the total playback time of multiple consecutive video frames with the same contents, the first frame of the multiple consecutive video frames with the same contents is super-resolution processed, and after the super-resolution processing is completed, the first super-resolution frame can be repeatedly played.
[0155] For example, Figure 7 The playing interface 501 is shown. The mobile phone may be playing a close-up of a person, and the picture does not change in a short time. The person in the first, second, and third frames is in the state of opening eyes, and the fourth frame switches to another scene. Exemplarily, the preset threshold may be 80%.
[0156] Optionally, the mobile phone can compare the values of the pixels at the corresponding positions of the first frame, the second frame, the third frame and the fourth frame in sequence. It can be determined that the values of the pixels at the corresponding positions in the first frame, the second frame and the third frame are the same. The mobile phone can calculate that the proportion of the common area in the first frame, the second frame and the third frame is 100%, that is, the content of the first frame, the second frame and the third frame is the same. The mobile phone can perform super-resolution processing on the first frame.
[0157] Exemplarily, the total time for super-resolution processing of a single video frame by a mobile phone is 0.02s. Among them, the total time for super-resolution processing includes the time 0.002s for the mobile phone to determine that the common area of multiple video frames is the entire first frame after comparing the contents of multiple video frames, and the super-resolution processing time of the first frame of the mobile phone is 0.018s. The frame rate of the mobile phone to play video frames is 50HZ, that is, the playback time of each frame is 0.02s. The total playback time of three consecutive frames is 0.06s, which is greater than the total time 0.02s for super-resolution processing of a single video frame by the mobile phone. Then the mobile phone can determine the common area of multiple video frames after comparing the contents of multiple video frames starting at 0s. At the same time, the first frame that has not been super-resolution processed starts to be played at 0s. At 0.002s, the mobile phone determines that the common area of the first frame is the entire first frame, and super-resolution processing is performed on the first frame. Starting at 0.02s, the super-resolution processing of the first frame is completed, and the mobile phone can play the first frame after the super-resolution processing is completed, instead of the second frame. Starting at 0.04s, the first frame that has been processed by super-resolution is played instead of the third frame. In other words, the playback time of the first frame that has not been processed by super-resolution is 0.02s, and the playback time of the first frame that has been processed by super-resolution (including the entire first frame after super-resolution) is 0.04s. The second and third frames that have not been processed by super-resolution are not played. Until 0.06s, the mobile phone plays the next frame.
[0158] As another example, the total time for super-resolution processing of a single video frame by a mobile phone is 0.03s. Among them, the total time for super-resolution processing includes the time 0.002s for the mobile phone to determine that the common area of multiple video frames is the entire first frame after comparing the contents of multiple video frames, and the super-resolution processing time of the first frame of the mobile phone is 0.028s. The frame rate of the mobile phone playing video frames is 50HZ, that is, the playback time of each frame is 0.02s. The total playback time of three consecutive frames is 0.06s, which is greater than the total time of 0.03s for super-resolution processing of a single video frame by the mobile phone. Then the mobile phone can determine the common area of multiple video frames after comparing the contents of multiple video frames starting at 0s. At the same time, the first frame that has not been super-resolution processed starts to be played at 0s. At 0.002s, the mobile phone determines that the common area of the first frame is the entire first frame, and super-resolution is performed on the first frame. At 0.02s, the super-resolution processing of the first frame is not completed, and the mobile phone can play the second frame that has not been super-resolution processed. At 0.03s, the super-resolution processing of the first frame is completed, and the mobile phone can play the first frame that has been super-resolution processed instead of the second frame. Starting from 0.04s, the first frame that has been super-resolution processed is played instead of the third frame. In other words, the playback time of the first frame that has not been super-resolution processed is 0.02s, the playback time of the second frame that has not been super-resolution processed is 0.01s, and the playback time of the first frame after super-resolution processing (including the entire first frame after super-resolution processing) is 0.03s. The third frame that has not been super-resolution processed is not played. Until 0.06s, the mobile phone plays the next frame. And so on, the mobile phone plays each video frame of the video frame by frame.
[0159] Optionally, if the total time for the mobile phone to perform super-resolution processing on a single video frame is greater than the total time for playing a plurality of consecutive video frames, the video frame that is not super-resolution processed is played.
[0160] Exemplarily, the total time for super-resolution processing of a single video frame by a mobile phone is 0.08s. Among them, the total time for super-resolution processing includes the time 0.002s that the mobile phone determines that the common area of multiple video frames is the entire first frame after comparing the contents of multiple video frames, and the super-resolution processing time of the first frame of the mobile phone is 0.078s. The frame rate of the mobile phone playing video frames is 50HZ, that is, the playback time of each frame is 0.02s. The total playback time of three consecutive frames is 0.06s, which is less than the total time 0.08s for super-resolution processing of a single video frame by the mobile phone. Then the mobile phone can determine the common area of multiple video frames after comparing the contents of multiple video frames starting from 0s. At the same time, the first frame that has not been super-resolution processed starts to be played at 0s. At 0.002s, the mobile phone determines that the common area of the first frame is the entire first frame, and super-resolution is performed on the first frame. Starting from 0.02s, since the super-resolution processing of the first frame is not completed, the mobile phone plays the second frame that has not been super-resolution processed. Starting from 0.04s, because the super-resolution processing of the first frame is not completed, the mobile phone plays the third frame that has not been super-resolution processed. Until 0.06s, the mobile phone plays the next frame. And so on, the mobile phone plays each video frame of the video frame by frame.
[0161] In another embodiment, the content of a frame in a mobile phone is different from or similar to its adjacent frames, and the total super-resolution processing time of the mobile phone for a single video frame is less than the total playback time of the video frame, then the video frame is super-resolution processed, and after the super-resolution processing is completed, the super-resolution video frame is played.
[0162] For example, Figure 8 In the play interface 501 shown, the first frame is a close-up of a person, and the second frame is a distant landscape. The first frame is neither the same nor similar to the previous frame. For example, the preset threshold may be 80%.
[0163] Optionally, the mobile phone compares the values of the pixels at the corresponding positions of the first frame and the second frame. For example, there are 120 pixels with the same values of the pixels at the corresponding positions of the first frame and the second frame, and the video frame has 1000 pixels. The mobile phone can calculate that the proportion of the common area in the first frame and the second frame is 12%, which is less than the preset threshold of 80%. The first frame and the second frame are not similar video frames. The mobile phone can super-resolution the entire first frame.
[0164] Exemplarily, the total time for super-resolution processing of a single video frame by a mobile phone is 0.01s. The total time for super-resolution processing includes 0.002s for the mobile phone to determine the common area of multiple video frames after comparing the contents of multiple video frames, and 0.008s for the mobile phone to super-resolution the single video frame. The frame rate of the mobile phone playing video frames is 50HZ, that is, the playback time of each frame is 0.02s. Then the mobile phone can start comparing the contents of multiple video frames at 0s, and start playing the first frame that has not been super-resolution processed at 0s. At 0.002s, the mobile phone determines that the video frame has no common area with other video frames, and super-resolution is performed on the single video frame. At 0.01s, the super-resolution processing of the first frame is completed, and the mobile phone can play the first frame after the super-resolution processing. Until 0.02s, the mobile phone plays the next frame.
[0165] Optionally, if the total super-resolution processing time of a single video frame by the mobile phone is greater than the total playback time of the video frame, the mobile phone plays the video frame without super-resolution processing.
[0166] Exemplarily, the total time for the mobile phone to super-resolution a single video frame is 0.03s. The total time for super-resolution includes the time 0.002s for the mobile phone to determine the common area of multiple video frames after comparing the contents of multiple video frames, and the time 0.028s for the mobile phone to super-resolution the single video frame. The frame rate of the mobile phone to play the video frame is 50HZ, that is, the playback time of each frame is 0.02s, which is less than the total time 0.03s for the mobile phone to super-resolution a single video frame.
[0167] Then the mobile phone can start comparing the contents of multiple video frames at 0s, and start playing the first frame that has not been super-resolved at 0s. At 0.002s, the mobile phone determines that the video frame has no common area with other video frames, and performs super-resolution processing on the single video frame. At 0.02s, the super-resolution processing of the single video frame is not completed, and the mobile phone plays the next frame. Optionally, starting from 0.02s, the mobile phone can continue to super-resolve the single video frame, or stop super-resolution processing of the single video frame.
[0168] Super-resolution is performed on part of the video frames or part of the regions of the frames, which increases the number of super-resolution frames in the entire video, improves the overall quality of video playback, reduces the time of super-resolution processing, and ensures synchronous playback of audio and video.
[0169] The embodiment of the present application also provides a video playback method, and the mobile phone can perform super-resolution processing on the main area in the video frame.
[0170] After a mobile phone receives a video frame, if the total time for super-resolution processing of the main area of the video frame is less than the playback time of the video frame, the mobile phone can perform super-resolution processing on the main area of the video frame. After the super-resolution processing is completed, the super-resolution video frame can be played.
[0171] For example, Fig. 9 The playback interface 501 is shown as an example. Fig. 9 The playing interface 501 shown in FIG. The playing interface 501 includes a background area 502 and a main area 503. The mobile phone may be playing a close-up of a person, and the person in the first frame has open eyes, and the person in the second frame has closed eyes. Among them, the main area 503 is the person, and the background area 502 is the background except the person.
[0172] Optionally, the mobile phone may perform super-resolution processing on the main area in the first frame and the second frame in sequence.
[0173] Specifically, the mobile phone can separate the main body area 503 and the background area 502 in the first frame, and perform super-resolution processing on the main body area 503 in the first frame. After the super-resolution processing is completed, the first frame after the super-resolution processing is played, and the first frame after the super-resolution processing includes the main body area 503 after the super-resolution processing and the background area 502 that is not super-resolution processed. Afterwards, the mobile phone can continue to separate the main body area 503 and the background area 502 in the second frame, and perform super-resolution processing on the main body area 503 in the second frame. After the super-resolution processing is completed, the second frame after the super-resolution processing is played, and the second frame after the super-resolution processing includes the main body area 503 after the super-resolution processing and the background area 502 that is not super-resolution processed. Afterwards, the mobile phone can super-resolution the main body area of each video frame in turn.
[0174] Exemplarily, the total time for the mobile phone to super-resolution the main area 503 in the first frame is 0.01s, wherein the total time for super-resolution includes the time 0.002s for the mobile phone to determine and separate the main area 503 and the background area 502 of the video frame, and the super-resolution time 0.008s for the mobile phone to super-resolution the common area 1 in the first frame. The time it takes for the mobile phone to play each frame is 0.02s. This is greater than the total time 0.01s for the mobile phone to super-resolution the main area 503 in the first frame. The mobile phone can determine and separate the main area 503 and the background area 502 of the video frame starting at 0s. At the same time, the first frame that has not been super-resolution processed starts to be played at 0s. At 0.002s, the mobile phone determines and separates the main area 503 of the first frame, and super-resolutions the main area 503 of the first frame. At 0.01s, the super-resolution processing of the main area 503 in the first frame is completed, and the mobile phone plays the first frame after super-resolution processing, which includes the super-resolution main area 503 and the non-super-resolution background area 502. In this way, the mobile phone plays each video frame of the video frame by frame.
[0175] Optionally, if the total time of the mobile phone's super-resolution processing on the main area of a single video frame is greater than the playback time of the video frame, the mobile phone plays the video frame without super-resolution processing.
[0176] Exemplarily, the total time for the mobile phone to super-resolution the main area 503 of a single video frame is 0.03s. Among them, the total time for super-resolution processing includes the time 0.002s for the mobile phone to determine and separate the main area 503 and the background area 502 of the video frame, and the super-resolution processing time 0.028s for the common area 1 in the first frame of the mobile phone. The frame rate of the mobile phone to play the video frame is 50HZ, that is, the playback time of each frame is 0.02s. It is less than the total time 0.03s for the mobile phone to super-resolution the single video frame. The mobile phone can determine and separate the main area 503 and the background area 502 of the video frame at the 0th second. At the same time, the first frame that has not been super-resolution processed starts to be played at the 0th second. At 0.002s, the mobile phone determines and separates the main area 503 of the first frame, and super-resolution processes the main area 503 of the first frame. At 0.02s, the super-resolution processing of the main area 503 of the first frame is not completed, and the mobile phone plays the next frame. In other words, the playback time of the first frame that has not been super-resolution processed is 0.02s. The first frame after super-resolution is not played. Optionally, the mobile phone can continue to super-resolution the main area 503 of the first frame, or can stop super-resolution processing of the main area 503 of the first frame.
[0177] In the scenario where a video in a mobile phone is projected onto a TV, the video frame can be super-resolution processed first and then enlarged to a size suitable for the TV, or it can be enlarged to a size suitable for the TV and then super-resolution processed. The embodiments of the present application are not limited to this.
[0178] The following is a schematic diagram of the video playback process provided by the embodiment of the present application. Fig.10 As shown, the method includes multiple steps S201-S202:
[0179] S201. The mobile phone performs super-resolution processing on a common area of a first video frame among multiple video frames to obtain multiple video frames after super-resolution processing; or, the mobile phone performs super-resolution processing on a main area in each video frame among multiple video frames to obtain multiple video frames after super-resolution processing.
[0180] In one embodiment, the mobile phone performs super-resolution processing on the common area of the first video frame among the multiple video frames to obtain multiple video frames after super-resolution processing.
[0181] Optionally, the common area is an area with the same content in multiple video frames.
[0182] Specifically, it may include Fig.11 Steps S211-S215 shown:
[0183] S211. The mobile phone determines whether a ratio of an area occupied by a common region in a plurality of video frames to a total area of the video frames is greater than a preset threshold.
[0184] Exemplarily, the preset threshold may be 80%.
[0185] S212: If the ratio of the area occupied by the common regions of the multiple video frames to the total area of the video frames is greater than a preset threshold, separate the common regions and the difference regions of the multiple video frames.
[0186] For example, Figure 5 As shown, the mobile phone can compare the proportion of the common area of the first four frames and determine that the proportion of the common area of the first three frames is greater than a preset threshold of 80%.
[0187] For example, Figure 6 As shown, the mobile phone can separate the common area 1 and the difference area 1 in the first frame; separate the common area 2 and the difference area 2 in the second frame; and separate the common area 3 and the difference area 3 in the third frame.
[0188] S213. The mobile phone may perform super-resolution processing on the common area of the first frame.
[0189] For example, Figure 6 As shown, the mobile phone can super-resolution the common area 1 in the first frame.
[0190] S214: If the ratio of the area occupied by the common areas of the multiple video frames to the total area of the video frames is less than a preset threshold, the mobile phone performs super-resolution processing on a single video frame.
[0191] For example, Figure 8 As shown in the figure, the first frame and the second frame are not similar video frames. The mobile phone can super-resolution the entire first frame.
[0192] S215. The mobile phone obtains multiple video frames after super-resolution processing.
[0193] Exemplarily, the first frame after super-resolution processing includes the common area 1 after super-resolution processing and the difference area 1 not processed by super-resolution processing. The second frame after super-resolution processing includes the common area 1 after super-resolution processing and the difference area 2 not processed by super-resolution processing. The third frame after super-resolution processing includes the common area 1 after super-resolution processing and the difference area 3 not processed by super-resolution processing.
[0194] For example, Figure 8 As shown in the figure, the first frame and the second frame are not similar video frames. The mobile phone can super-resolution the entire first frame.
[0195] In another embodiment, the mobile phone performs super-resolution processing on the main area in each of the multiple video frames to obtain multiple video frames after super-resolution processing.
[0196] Specifically, it may include Fig.12 Steps S221-S223 shown:
[0197] S221. The mobile phone separates the main area and the background area in each video frame.
[0198] Optionally, the subject area in the video frame is the main content part in the video frame. For example, when the mobile phone plays a close-up of a person, the person part is the subject area, and the rest of the picture is the background area.
[0199] Optionally, the mobile phone can separate the subject area in each video frame from each video frame to obtain the subject area in each video frame and the background area in each video frame. Fig. 9 As shown, the subject area 503 is a person, and the background area 502 is the background other than the person. The mobile phone can separate the subject area 503 and the background area 502 in the first frame.
[0200] S222: The mobile phone performs super-resolution processing on the main area of each video frame.
[0201] For example, Fig. 9 As shown, the mobile phone can perform super-resolution processing on the main area 503 in the first frame, and can also perform super-resolution processing on the main area 503 in the second frame.
[0202] S223. The mobile phone obtains multiple video frames after super-resolution processing.
[0203] Optionally, each video frame after super-resolution processing includes a main area of each video frame after super-resolution processing and a background area of each video frame that is not super-resolution processed.
[0204] For example, Fig. 9 As shown, the first frame after super-resolution processing includes the main body area 503 after super-resolution processing and the background area 502 without super-resolution processing. The second frame after super-resolution processing includes the main body area 503 after super-resolution processing and the background area 502 without super-resolution processing.
[0205] S202: The mobile phone plays the multiple video frames after super-resolution processing.
[0206] For example, Figure 7 As shown, the mobile phone can play the first frame after super-resolution processing, the second frame after super-resolution processing and the third frame after super-resolution processing in sequence.
[0207] For example, Figure 8 As shown, the mobile phone can play the first frame after super-resolution processing.
[0208] For example, Fig. 9 As shown, the mobile phone can play the first frame and the second frame after super-resolution processing.
[0209] In this way, the mobile phone can reduce the super-resolution processing time by super-resolution processing on some video frames in the video, or super-resolution processing on some areas of the video frame. The video and audio can be played synchronously as much as possible during the video playback.
[0210] An embodiment of the present application also provides a video playback method, which, before playing the current frame, identifies whether there is a difference area between the frame and all previous frames or previous adjacent frames. If there is a difference area, it is only necessary to super-resolve the difference area of the current frame and play the processed current frame.
[0211] For example, Figure 5 , assuming that the first frame is the first frame of the video, the mobile phone can play the first frame first. Before playing the second frame, the mobile phone identifies whether there is a difference area between the second frame and the first frame. After judgment, the difference area of the second frame relative to the first frame is the eye area, then the mobile phone only needs to perform super-resolution processing on the eye area in the second frame, and does not perform super-resolution on other areas in the second frame except the eyes. After processing, the mobile phone plays the second frame that has been super-resolution processed, and the second frame includes the eye area that has been super-resolution processed and other areas that have not been super-resolutioned.
[0212] In some examples, before the mobile phone plays the third frame, it recognizes that the difference area between the third frame and the second frame is the eye area and the mouth area, so the mobile phone only performs super-resolution on the eye area and the mouth area in the third frame and plays the processed third frame. Similarly, the mobile phone plays each video frame of the video frame by frame.
[0213] In other examples, before the mobile phone plays the third frame, it recognizes that the difference area between the third frame and the first two frames is the mouth area, which means that there is no "open mouth" content in the first two frames. Then the mobile phone only performs super-resolution on the mouth area in the third frame and plays the processed third frame. Similarly, the mobile phone plays each video frame of the video frame by frame.
[0214] It should be noted that the above-mentioned multiple embodiments can be combined and the combined scheme can be implemented. Optionally, some operations in the process of each method embodiment are optionally combined, and / or the order of some operations is optionally changed. In addition, the execution order between the steps of each process is only exemplary and does not constitute a limitation on the execution order between the steps. There can also be other execution orders between the steps. It is not intended to indicate that the execution order is the only order in which these operations can be performed. A person of ordinary skill in the art will think of a variety of ways to reorder the operations described herein. In addition, it should be noted that the process details involved in a certain embodiment of this article are also applicable to other embodiments in a similar manner, or different embodiments can be used in combination.
[0215] In addition, some steps in the method embodiment may be equivalently replaced by other possible steps. Alternatively, some steps in the method embodiment may be optional and may be deleted in certain usage scenarios. Alternatively, other possible steps may be added to the method embodiment.
[0216] Furthermore, the above-mentioned method embodiments can be implemented separately or in combination. For example, the above-mentioned solutions for processing the common area and processing the difference area can be combined, and after the mobile phone completes the super-resolution processing of the common areas of multiple video frames, it can continue to process the difference areas of multiple video frames.
[0217] Specifically, Figure 6 As shown, the mobile phone separates the common area and the difference area of the first frame, the second frame, and the third frame.
[0218] The common area 1 in the first frame is super-resolution processed, and the mobile phone plays the first frame after the super-resolution processing. The first frame after the super-resolution processing includes the common area 1 after the super-resolution processing and the difference area 1 that has not been super-resolution processed. At the same time, the mobile phone performs super-resolution processing on the difference area 1 of the first frame to obtain the difference area 1 after the super-resolution processing, and the mobile phone plays the first frame after the second super-resolution processing. The first frame after the second super-resolution processing includes the common area 1 after the super-resolution processing and the difference area 1 after the super-resolution processing.
[0219] The mobile phone plays the second frame after super-resolution processing. The second frame after super-resolution processing includes the common area 1 after super-resolution processing and the difference area 2 that is not super-resolution processed. At the same time, the mobile phone performs super-resolution processing on the difference area 2 of the second frame to obtain the difference area 2 after super-resolution processing. The mobile phone plays the second frame after the second super-resolution processing. The second frame after the second super-resolution processing includes the common area 1 after super-resolution processing and the difference area 2 after super-resolution processing.
[0220] The mobile phone plays the third frame after super-resolution processing. The third frame after super-resolution processing includes the common area 1 after super-resolution processing and the difference area 3 that has not been super-resolution processed. At the same time, the mobile phone performs super-resolution processing on the difference area 3 of the third frame to obtain the difference area 3 after super-resolution processing, and the mobile phone plays the third frame after the second super-resolution processing. The third frame after the second super-resolution processing includes the common area 1 after super-resolution processing and the difference area 3 after super-resolution processing.
[0221] Exemplarily, the total time for the mobile phone to super-resolution the common area 1 in the first frame is 0.01s. Among them, the total time for super-resolution processing includes the time 0.002s for the mobile phone to determine the common areas of multiple video frames after comparing the contents of multiple video frames, and to separate the common areas and difference areas of multiple video frames, and the time 0.008s for super-resolution processing of the common area 1 in the first frame of the mobile phone. The time for the mobile phone to play each frame is 0.02s. The total playback time of three frames is 0.06s, which is greater than the total time 0.01s for the mobile phone to super-resolution the common area 1 in the first frame. Then the mobile phone can determine the common areas of multiple video frames after comparing the contents of multiple video frames at the 0th second, and separate the common areas and difference areas of multiple video frames. At the same time, the first frame that has not been super-resolution processed starts to be played at the 0th second. At 0.002s, the mobile phone determines and separates the common area 1 of the first frame, and super-resolutions the common area 1 in the first frame. At 0.01s, the super-resolution processing of the common area 1 in the first frame is completed, and the mobile phone plays the first frame after super-resolution processing. The first frame after super-resolution processing includes the common area 1 after super-resolution processing and the difference area 1 that is not super-resolution processed. At the same time, the mobile phone performs super-resolution processing on the difference area 1 of the first frame. Exemplarily, the super-resolution processing time of the mobile phone on the difference area 1 in the first frame is 0.005s. At 0.015s, the super-resolution processing of the difference area 1 in the first frame is completed. The mobile phone plays the first frame after the second super-resolution processing. The first frame after the second super-resolution processing includes the common area 1 after super-resolution processing and the difference area 1 after super-resolution processing.
[0222] At 0.02s, the mobile phone plays the second frame after super-resolution processing. The second frame after super-resolution processing includes the common area 1 after super-resolution processing and the difference area 2 that is not super-resolution processed. At the same time, the mobile phone super-resolutions the difference area 2 of the second frame. Exemplarily, the super-resolution processing time of the mobile phone for the difference area 2 in the second frame is 0.005s. At 0.025s, the super-resolution processing of the difference area 2 in the second frame is completed. The mobile phone plays the second frame after the second super-resolution processing. The second frame after the second super-resolution processing includes the common area 1 after super-resolution processing and the difference area 2 after super-resolution processing.
[0223] At 0.04s, the mobile phone plays the third frame after super-resolution processing. The third frame after super-resolution processing includes the common area 1 after super-resolution processing and the difference area 3 that is not super-resolution processed. At the same time, the mobile phone super-resolutions the difference area 3 of the third frame. Exemplarily, the super-resolution processing time of the mobile phone on the difference area 3 in the third frame is 0.005s. At 0.045s, the super-resolution processing of the difference area 3 in the third frame is completed. The mobile phone plays the third frame after the second super-resolution processing. The third frame after the second super-resolution processing includes the common area 1 after super-resolution processing and the difference area 3 after super-resolution processing. Until 0.06s, the mobile phone plays the next frame. And so on, the mobile phone plays each video frame of the video frame by frame.
[0224] The following is another schematic diagram of a video playback process provided by an embodiment of the present application. Fig.13 As shown, the method includes multiple steps S301-S304:
[0225] S301. The mobile phone performs super-resolution processing on common areas in multiple video frames to obtain super-resolution video frames.
[0226] Exemplarily, the common region 1 in the first frame is super-resolved, and the first frame after the super-resolved processing includes the common region 1 after the super-resolved processing and the difference region 1 that is not super-resolved.
[0227] S302: The mobile phone performs super-resolution processing on different regions in multiple video frames.
[0228] Exemplarily, the mobile phone performs super-resolution processing on the difference region 1 of the first frame to obtain the difference region 1 after super-resolution processing.
[0229] S303: The mobile phone obtains the video frame after the second super-resolution processing.
[0230] Exemplarily, the first frame after the second super-resolution process includes a common region 1 after the super-resolution process and a difference region 1 after the super-resolution process.
[0231] S304: The mobile phone plays the video frame after the second super-resolution processing.
[0232] Exemplarily, the mobile phone plays the first frame after the second super-resolution processing.
[0233] In this way, the clarity of the video frame is further improved while ensuring that the video and audio are played synchronously during video playback.
[0234] It should be understood that some operations in the processes of the above-mentioned method embodiments are optionally combined, and / or the order of some operations is optionally changed. In addition, the execution order between the steps of each process is only exemplary and does not constitute a limitation on the execution order between the steps. There may be other execution orders between the steps. It is not intended to indicate that the execution order is the only order in which these operations can be performed. A person of ordinary skill in the art will think of a variety of ways to reorder the operations described herein. In addition, it should be noted that the process details involved in a certain embodiment of this invention are also applicable to other embodiments in a similar manner, or different embodiments can be used in combination.
[0235] In addition, some steps in the method embodiment may be equivalently replaced by other possible steps. Alternatively, some steps in the method embodiment may be optional and may be deleted in certain usage scenarios. Alternatively, other possible steps may be added to the method embodiment.
[0236] Furthermore, the above method embodiments may be implemented separately or in combination.
[0237] Some other embodiments of the present application provide a device, which may be the above-mentioned second electronic device or the first electronic device or a component in the first electronic device or a component in the second electronic device (such as a chip system).
[0238] The device may include: a display screen, a memory, and one or more processors. The display screen, the memory, and the processor are coupled. The memory is used to store computer program code, and the computer program code includes computer instructions. When the processor executes the computer instructions, the electronic device may execute the various functions or steps executed by the mobile phone in the above method embodiment. The structure of the electronic device can refer to Figure 3 The structure of the electronic device shown.
[0239] Among them, the core structure of the electronic device can be expressed as Fig.14 As shown in the structure, the electronic device includes: a processing module 151, an input module 152, a storage module 153, a display module 154 and a communication module 155.
[0240] The processing module 151 may include at least one of a central processing unit (CPU), an application processor (AP) or a communication processor (CP). The processing module 151 may perform operations or data processing related to the control and / or communication of at least one of other components of the user electronic device. Optionally, the processing module 151 is used to support the first electronic device 100 to perform Fig.10 S201-S202 in; and / or, for supporting the first electronic device 100 to execute Fig.11 S211-S215 in; and / or, for supporting the first electronic device 100 to execute Fig.12 S221-S223 in; and / or, for supporting the first electronic device 100 to execute Fig.13 S301-S304 in.
[0241] The input module 152 is used to obtain the instructions or data input by the user and transmit the obtained instructions or data to other modules of the electronic device. Specifically, the input method of the input module 152 may include touch, gesture, approaching the screen, etc., or voice input. For example, the input module can be the screen of the electronic device, obtain the user's input operation and generate an input signal according to the obtained input operation, and transmit the input signal to the processing module 151. Optionally, the input module 152 is used to obtain the video to be played.
[0242] The storage module 153 may include a volatile memory and / or a non-volatile memory. The storage module is used to store at least one instruction or data related to other modules of the user terminal device. Optionally, the storage module 153 is used for the first electronic device 100 to store local videos.
[0243] The display module 154 may include, for example, a liquid crystal display (LCD), a light emitting diode (LED) display, an organic light emitting diode (OLED) display, a micro-electromechanical system (MEMS) display, or an electronic paper display. It is used to display content (e.g., text, images, videos, icons, symbols, etc.) that can be viewed by a user. Optionally, the display module 154 is used to display the first electronic device 100. Figure 5-Figure 9 The content shown.
[0244] The communication module 155 is used to support the personal terminal to communicate with other personal terminals (through a communication network). For example, the communication module can be connected to the network via wireless communication or wired communication to communicate with other personal terminals or network servers. The wireless communication may adopt at least one of the cellular communication protocols, such as Long Term Evolution (LTE), Advanced Long Term Evolution (LTE-A), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Universal Mobile Telecommunications System (UMTS), Wireless Broadband (WiBro) or Global System for Mobile Communications (GSM). Wireless communication may include, for example, short-range communication. Short-range communication may include at least one of Wireless Fidelity (Wi-Fi), Bluetooth, Near Field Communication (NFC), Magnetic Stripe Transmission (MST) or GNSS. Optionally, the communication module 155 is used to support the first electronic device to communicate with the second electronic device. For example, reference may be made to Figure 1 The system diagram is shown.
[0245] Fig.14 The device shown may also include more or fewer components, or split some components, or have other ways of arranging components, which is not limited in the embodiments of the present application.
[0246] The present application also provides a chip system, such as Fig.15 As shown, the chip system includes at least one processor 161 and at least one interface circuit 162. The processor 161 and the interface circuit 162 can be interconnected via lines. For example, the interface circuit 162 can be used to receive signals from other devices (such as a memory of an electronic device). For another example, the interface circuit 162 can be used to send signals to other devices (such as the processor 161). Exemplarily, the interface circuit 162 can read instructions stored in the memory and send the instructions to the processor 161. When the instructions are executed by the processor 161, the electronic device can execute the various steps in the above embodiments. Of course, the chip system may also include other discrete devices, which are not specifically limited in the embodiments of the present application.
[0247] An embodiment of the present application also provides a computer storage medium, which includes computer instructions. When the computer instructions are executed on the above-mentioned electronic device, the electronic device executes each function or step executed by the mobile phone in the above-mentioned method embodiment.
[0248] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute each function or step executed by the mobile phone in the above method embodiment.
[0249] Through the description of the above implementation methods, technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above functional modules is used as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the system, device and module described above can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0250] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0251] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0252] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0253] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0254] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A video playback method, characterized in that: include: Super-resolution processing is performed on a common area of a first video frame among the multiple video frames to obtain the multiple video frames after super-resolution processing; the common area is an area with the same content in the multiple video frames; Alternatively, super-resolution processing is performed on the main area in each of the multiple video frames to obtain the multiple video frames after super-resolution processing; Play the multiple video frames after super-resolution processing.
2. The method according to claim 1, characterized in that: Also includes: A first region in the plurality of video frames is determined; the first region includes a common region of the first video frame or a main region in each of the plurality of video frames.
3. The method according to claim 2, characterized in that The determining of the first area in the plurality of video frames comprises: Comparing pixel values at corresponding positions of the plurality of video frames to determine a common area of the first video frame; Alternatively, the first area is determined according to encoding information of positions of the multiple video frames.
4. The method according to any one of claims 1 to 3, characterized in that: Playing the multiple video frames after super-resolution processing includes: The plurality of video frames include the first video frame and a target video frame, and the target video frame is not the first video frame among the plurality of video frames; Playing the first video frame after the super-resolution processing, wherein the first video frame after the super-resolution processing includes a common area of the first video frame after the super-resolution processing and a difference area in the first video frame; the difference area of the video frame is other areas in the video frame except the common area; The target video frame after the super-resolution processing is played, wherein the target video frame after the super-resolution processing includes a common area of the first video frame and a difference area in the target video frame.
5. The method according to any one of claims 1 to 3, characterized in that: Playing the multiple video frames after super-resolution processing includes: Play each video frame after the super-resolution processing, wherein each video frame includes a main area in each video frame after the super-resolution processing and a background area in each video frame; the background area in each video frame is other areas in each video frame except the main area.
6. The method according to any one of claims 1 to 5, characterized in that: The common area of the first video frame among multiple video frames is super-resolved, including: When the ratio of the area occupied by the common region of the first video frame to the total area of the first video frame is greater than or equal to a preset threshold, super-resolution processing is performed on the common region in the first video frame.
7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: If the ratio of the area occupied by the common region of the first video frame to the total area of the first video frame is smaller than a preset threshold, super-resolution processing is performed on the first video frame.
8. The method according to any one of claims 1 to 7, characterized in that: The common area super-resolution processing of the first video frame includes: Performing super-resolution processing on the common area of the first video frame starting from the first moment; Playing the multiple video frames after super-resolution processing includes: Play the first video frame from a second moment; the first moment is later than the second moment or the first moment is the same as the second moment; Play the first video frame after the super-resolution processing from a third moment; the third moment is the moment when the super-resolution processing of the common area of the first video frame is completed; The target video frame after the super-resolution processing is played from the fourth moment.
9. The method according to any one of claims 1 to 7, characterized in that: The common area super-resolution processing of the first video frame includes: Performing super-resolution processing on the common area of the first video frame starting from the first moment; Playing the multiple video frames after super-resolution processing includes: Play the first video frame from a second moment; the first moment is later than the second moment or the first moment is the same as the second moment; Play the target video frame from a fifth moment; The target video frame after the super-resolution processing is played from the sixth moment; the fifth moment is the moment when the super-resolution processing of the common area of the first video frame is completed.
10. An electronic device, characterized in that: include: A processor and a memory, wherein the memory is coupled to the processor, the memory is used to store computer program code, the computer program code includes computer instructions, and when the processor reads the computer instructions from the memory, the electronic device executes the method as described in any one of claims 1-9.
11. A computer-readable storage medium, wherein instructions are stored in the computer-readable storage medium, characterized in that: When the instructions are executed on an electronic device, the electronic device is caused to execute the method as claimed in any one of claims 1 to 9.
