Frame insertion method, device and electronic equipment

By using independent frame insertion chips in electronic devices to divide and process video layer areas, the problem of dynamic user interfaces affecting video clarity and fluency is solved, and a more efficient video display effect is achieved.

CN114339313BActive Publication Date: 2024-09-13VIVO MOBILE COMM CO LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202111626972.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-28
Publication Date
2024-09-13
Estimated Expiration
2041-12-28

AI Technical Summary

Technical Problem

When an electronic device displays a video, changes in the dynamic user interface layer affect the motion calculation of the video layer, resulting in poor clarity and smoothness of the video.

Method used

By introducing an independent frame interpolation chip into the electronic device, the video layer is divided into multiple areas, and the frame interpolation area is determined based on whether it is covered by the UI layer, and only the areas not covered by the UI layer are interpolated.

Benefits of technology

It reduces the power consumption of electronic equipment, improves the effect of video display, and improves the clarity and smoothness of video.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114339313B
    Figure CN114339313B
Patent Text Reader

Abstract

The present application discloses a frame insertion method, device and electronic device. The method is applied to an electronic device, which includes an application processor AP main control chip and an independent frame insertion chip. The method includes: when the AP main control chip obtains a video layer of a target video to be displayed, the video layer is divided into regions to obtain M regions, where M is an integer greater than 1; according to whether the video layer is covered by a UI layer, an interpolation region is determined from the M regions; and the independent interpolation chip performs interpolation processing on the interpolation region.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and specifically relates to a frame insertion method, device and electronic equipment. Background Art

[0002] The picture displayed on the screen of an electronic device generally includes multiple layers, but the final displayed picture is a layer after the electronic device has superimposed the multiple layers. Therefore, when the electronic device is displaying a video, if it needs to display other dynamic user interface (UI) layers (such as barrage, advertisements, etc.), the changes in the dynamic UI layer may affect the electronic device's motion calculation of the video layer, which has a great impact on the video's interpolation effect, thus causing the clarity and smoothness of the video played by the electronic device to deteriorate. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a frame insertion method, device and electronic device, which improve the clarity and smoothness of video playback by the electronic device.

[0004] In a first aspect, an embodiment of the present application provides an interpolation method, which is applied to an electronic device, wherein the electronic device includes an application processor AP main control chip and an independent interpolation chip, the method comprising: when the AP main control chip obtains a video layer of a target video to be displayed, dividing the video layer into regions to obtain M regions, where M is an integer greater than 1; determining an interpolation region from the M regions according to whether the video layer is covered by a UI layer; and the independent interpolation chip performs interpolation processing on the interpolation region.

[0005] In a second aspect, an embodiment of the present application provides an interpolation device, which includes: a division module, a determination module, and a processing module. The division module is used to divide the video layer to obtain M areas when the AP main control chip obtains the video layer of the target video to be displayed, where M is an integer greater than 1. The determination module is used to determine the interpolation area from the M areas according to whether the video layer is covered by the UI layer. The processing module is used to perform interpolation processing on the interpolation area.

[0006] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[0007] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0008] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0009] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0010] In an embodiment of the present application, the electronic device can, when obtaining the video layer of the target video to be displayed, divide the video layer corresponding to the target video to obtain M areas, where M is an integer greater than 1, and then determine the interpolation area from the M areas according to whether the video layer is covered by the UI layer; the independent interpolation chip performs interpolation processing on the interpolation area. In this solution, since the electronic device can divide the video layer corresponding to the target video into multiple areas when displaying the video layer of the target video, and determine the area that needs interpolation among the multiple areas, and then the electronic device can directly perform interpolation processing on the area that needs interpolation, therefore, when the electronic device needs to display the UI layer, the electronic device can only perform interpolation processing on the area that is not covered by the UI layer, avoiding the problem of poor display of the video layer by the electronic device due to the UI layer. In this way, while reducing the power consumption of the electronic device and improving the effect of displaying the video by the electronic device, the clarity and smoothness of the video played by the electronic device are also improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 It is one of the schematic diagrams of a frame insertion method provided in an embodiment of the present application;

[0012] Figure 2 This is one of the example schematic diagrams of a frame insertion method provided in an embodiment of the present application;

[0013] Figure 3 This is a second example schematic diagram of a frame insertion method provided in an embodiment of the present application;

[0014] Figure 4 This is a third example schematic diagram of a frame insertion method provided in an embodiment of the present application;

[0015] Figure 5 This is a fourth example schematic diagram of a frame insertion method provided in an embodiment of the present application;

[0016] Figure 6 This is a fifth example schematic diagram of a frame insertion method provided in an embodiment of the present application;

[0017] Figure 7 is a flow chart of a frame insertion method provided in an embodiment of the present application;

[0018] Figure 8 This is a sixth example schematic diagram of a frame insertion method provided in an embodiment of the present application;

[0019] Fig. 9 This is the seventh example schematic diagram of a frame insertion method provided in an embodiment of the present application;

[0020] Fig.10 is a structural schematic diagram of a frame insertion device provided in an embodiment of the present application;

[0021] Fig.11 This is one of the hardware structure diagrams of an electronic device provided in an embodiment of the present application;

[0022] Fig.12 This is the second schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0023] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0024] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0025] The following describes in detail the frame insertion method provided in the embodiment of the present application through specific embodiments and application scenarios in conjunction with the accompanying drawings.

[0026] At present, in order to improve the smoothness of video display by electronic devices, the video is usually interpolated, that is, the new picture content is calculated between two frames, and the motion trajectory of objects in the picture is predicted, so that the electronic device can use motion compensation technology to increase the video frame rate by interpolation of videos with lower frame rates. For example, by using video interpolation, a 24-frame movie can be increased to 60 frames or even higher frames to improve the smoothness of movie display.

[0027] The video screen in electronic devices is usually divided into many layers (surfaces), but what is finally displayed in the screen display area of ​​the TV device is the screen after all the layers of the video are superimposed. When a video application plays a video, it will not only display the video screen layer, but also other UI layers in the video layer, such as bullet screens, message pop-ups, controls, station logos, advertisements, etc. These UI layers are often displayed above the video layer, and some of these UI layers also include transparency (Alpha).

[0028] However, electronic devices usually process the video to be displayed in the YUV format, which consists of three parts: Y, U, and V, where Y represents brightness (Lminance or Luma), and U and V represent the chromaticity of the color, while the UI image is processed in the ARGB format, which consists of A, R, G, and B, where A represents transparency, red, green, and blue. In addition, when electronic devices overlay and synthesize the video layer with the UI layer, they usually convert the YUV video layer into the ARGB format first, and then overlay and synthesize it with the UI layer, and convert all layers into the ARGB format when overlaying to obtain a layer in the RGB format that does not include Alpha, where the RGB format consists of R, G, and B.

[0029] Therefore, when an electronic device is performing overlay synthesis processing on a video to be displayed, if the UI layer changes, especially the change of the UI layer including Alpha, it is likely to affect the electronic device's motion calculation of the video layer picture. In this way, the change of the UI layer will also affect the electronic device's processing effect on the video interpolation, thereby affecting the smoothness and clarity of the video displayed by the electronic device.

[0030] In an embodiment of the present application, the electronic device can, when obtaining the video layer of the target video to be displayed, divide the video layer corresponding to the target video to obtain M areas, where M is an integer greater than 1, and then determine the interpolation area from the M areas according to whether the video layer is covered by the UI layer; the independent interpolation chip performs interpolation processing on the interpolation area. In this solution, since the electronic device can divide the video layer corresponding to the target video into multiple areas when displaying the video layer of the target video, and determine the area that needs interpolation among the multiple areas, and then the electronic device can directly perform interpolation processing on the area that needs interpolation, therefore, when the electronic device needs to display the UI layer, the electronic device can only perform interpolation processing on the area that is not covered by the UI layer, avoiding the problem of poor display of the video layer by the electronic device due to the UI layer. In this way, while reducing the power consumption of the electronic device and improving the effect of displaying the video by the electronic device, the clarity and smoothness of the video played by the electronic device are also improved.

[0031] In the embodiment of the present application, an independent frame insertion chip is added between the main control chip and the display screen of the electronic device, so that the video to be displayed is interpolated through the independent frame insertion chip. That is, after the video to be displayed is sent to the independent frame insertion chip, the video to be displayed is first interpolated, and then the interpolated video is sent to the screen display area of ​​the electronic device for display.

[0032] The embodiment of the present application provides a frame insertion method, which is applied to an electronic device, wherein the electronic device includes an application processor AP main control chip and an independent frame insertion chip. Figure 1 FIG. 2 shows a flow chart of a frame insertion method provided by an embodiment of the present application. Figure 1 As shown, the interpolation method provided in the embodiment of the present application may include the following steps 201 to 203.

[0033] Step 201: When the AP main control chip obtains a video layer of a target video to be displayed, the electronic device divides the video layer into regions to obtain M regions.

[0034] Wherein, M is an integer greater than 1.

[0035] In an embodiment of the present application, when an electronic device plays a target video, if the interpolation function is not turned on, the application processor (AP) main control chip directly synthesizes the video layer and the UI layer and sends them to the independent interpolation chip when processing the target video, so that the independent interpolation chip bypasses (Bypass) and sends them to the screen display area of ​​the electronic device for display; if the interpolation function is turned on, the electronic device enters the interpolation working mode.

[0036] Optionally, in an embodiment of the present application, the target video may include multiple layers, such as a video layer and a UI layer.

[0037] Optionally, in an embodiment of the present application, the UI layer may include any of the following: bullet screens, message pop-ups, video controls, TV station logos, application trademarks, and advertisements, etc.

[0038] Optionally, in an embodiment of the present application, the electronic device may divide the video layer of the target video to divide the video layer into multiple areas, for example, dividing the video layer into A×B areas, that is, dividing the video layer into A rows and B columns to obtain M areas, where A×B=M, and A and B are both integers greater than 1.

[0039] Step 202: The electronic device determines an interpolation region from the M regions according to whether the video layer is covered by a UI layer.

[0040] In the embodiment of the present application, the electronic device can determine whether the video layer is covered by the UI layer through an independent interpolation chip to determine the interpolation area from the M areas.

[0041] Step 203: The independent frame insertion chip performs frame insertion processing on the frame insertion area.

[0042] In the embodiment of the present application, after the independent frame insertion chip of the electronic device performs frame insertion processing on the target video, the processed target video is sent to the display screen of the electronic device for display.

[0043] Optionally, in an embodiment of the present application, in a first implementation manner of the embodiment of the present application, the above step 201 can be specifically implemented through the following steps 201a to 201d.

[0044] Step 201a: The AP main control chip obtains the video layer to be displayed and the UI layer displayed on the video layer to be displayed.

[0045] In the embodiment of the present application, the electronic device can obtain the video layer to be displayed and the UI layer displayed on the video layer to be displayed through the AP main control chip.

[0046] Step 201b: The AP main control chip inserts a UI detection layer between the video layer and the UI layer, and divides the screen display area into regions through the UI detection layer to obtain X regions.

[0047] In the embodiment of the present application, each of the X areas is an area in the screen display area, and X is a positive integer greater than 1.

[0048] Optionally, in the embodiment of the present application, the AP main control chip can first divide the screen display area into regions through the UI detection layer to obtain X regions.

[0049] In the embodiment of the present application, the above-mentioned UI detection layer includes UI detection points. When the screen area is divided by the UI detection layer, the AP main control chip can set UI detection points in each area and obtain the initial value of each UI detection point.

[0050] For example, taking the electronic device as a mobile phone as an example, Figure 2 As shown, the phone divides the screen display area into multiple areas, and divides each area into 4 small areas. The center point of each small area is the UI detection point. The colors of these 4 detection points are pure black, pure white, pure white, and pure black respectively. Among them, the ARGB values ​​of the 4 detection points in the first area A1 in the upper left corner: A11, A12, A13, and A14 pixels are 0xff000000, 0xffffffff, 0xffffffff, and 0xff000000 respectively. Except for the UI detection point, all other pixel values ​​are fully transparent pixel values ​​(0x00000000).

[0051] Step 201c: The AP main control chip synthesizes the video layer, the UI layer and the UI detection layer to obtain a first layer.

[0052] In an embodiment of the present application, the electronic device can process the target video through the AP main control chip, and when the screen display area includes a video layer and a UI layer displayed on the video layer, a UI detection layer is inserted between the target layer and the UI layer, wherein the UI detection layer is consistent with the screen display resolution of the electronic device.

[0053] Optionally, in the embodiment of the present application, the above step 201b can be specifically implemented by the following step 201b1.

[0054] Step 201c1, the AP main control chip uses a preset algorithm to synthesize the video layer and the UI detection layer to obtain a second layer, and uses a preset algorithm to synthesize the second layer and the UI layer to obtain a first layer.

[0055] Optionally, in an embodiment of the present application, the AP main control chip places the video layer at the bottom layer, the UI detection layer at the middle layer, and the UI layer at the upper layer, and scales the resolution of the video layer and the UI layer to a resolution suitable for the screen display, so that the AP main control chip can synthesize the video layer and the UI layer with the UI detection layer to obtain the first layer.

[0056] In the embodiment of the present application, the first layer is a layer obtained by synthesizing a video layer, a UI layer and a UI detection layer.

[0057] For example, Figure 3 As shown, when the mobile phone synthesizes the video layer, the UI layer and the UI detection layer, the video layer can be placed at the bottom layer of the Z-axis order, the UI detection layer can be placed at the middle layer of the Z-axis order, the UI layer can be placed at the top layer of the Z-axis order, and all the layers can be superimposed and synthesized into one layer, namely the first layer (i.e. the synthesized layer).

[0058] In an embodiment of the present application, the electronic device can set the video layer as the background image (Background pixel color, Cb) and the UI detection layer as the foreground image (Foreground pixel color, Cf), so that the electronic device can use a preset algorithm to synthesize the video layer and the UI detection layer to obtain a second layer.

[0059] Optionally, in an embodiment of the present application, the electronic device may use an Alpha blending overlay formula to synthesize the video layer and the UI detection layer, and calculate the pixel value after the video layer and the UI detection layer are overlaid to obtain a second layer after overlay.

[0060] It should be noted that layer overlay means: multiple layers are overlaid with Alpha blending calculations from bottom to top in ARGB format according to the Z-axis order of the layers to obtain the blended layer. Among them, the upper layer in the Z-axis order is the foreground image, and the lower layer in the Z-axis order is the background image. The RGB value of each pixel after overlay is calculated by the ARGB value of the foreground image and the ARGB value of the background image according to the blending formula.

[0061] It should be noted that the Alpha blending overlay formula is: Cr=a×Cf+(1-a)×Cb, where Cr is the result pixel color (Cr), a is the ratio of the Alpha value (Af) of the foreground color to the color depth; and the RGB value of Cf includes Rf, Gf and Bf; the RGB value of Cb includes Rb, Gb and Bb; and the RGB value of Cr includes Rr, Gr and Br.

[0062] For example, in combination Figure 2 ,like Figure 4As shown in the figure, when Alpha is completely opaque, that is, a=1, the superimposed pixel value is Cr=1×Cf+0×Cb=Cf, that is, the pixel value of the synthesized second layer is covered with the pixel value of the UI detection layer, that is, A11 and A14 are pure black, and A12 and A13 are pure white. When Alpha is completely transparent, that is, a=0, the superimposed pixel value Cr=0×Cf+1×Cb=Cb, that is, the pixel value of the synthesized second layer is retained as the pixel value of the video layer. The mobile phone can superimpose the video layer and the UI detection layer to obtain the second layer.

[0063] In the embodiment of the present application, the second layer is a layer formed by mixing and superimposing the video layer and the UI detection layer.

[0064] Optionally, in an embodiment of the present application, the electronic device may use an Alpha blending overlay formula to perform synthesis processing on the second layer and the UI layer, and calculate the pixel value after the second layer and the UI detection layer are superimposed and synthesized to obtain the first layer after superposition and synthesis.

[0065] Optionally, in an embodiment of the present application, after the electronic device alpha superimposes the second layer and the UI layer to obtain the first layer, the pixel values ​​of the area of ​​the first layer covered by the UI layer will change, and the pixel values ​​of the area of ​​the first layer not covered by the UI layer will remain the pixel values ​​before the superposition and mixing.

[0066] For example, in combination Figure 2 ,like Figure 5 As shown, the mobile phone can first perform composite overlay processing on the video layer and the UI detection layer, and then perform Alpha overlay processing on the UI layer. If the video layer is covered by a UI layer, the pixel values ​​of the UI detection points in the area of ​​the video layer covered by the UI layer will be changed to other pixel values ​​after superposition, including the pixel values ​​of the UI detection points (the pixel colors of the points A12, B42, C22 and C23 change from all white to the color after superposition with the UI, and the pixel colors of the points A14, B41, C21 and C24 change from all black to the color after superposition with the UI). If there is no UI layer covering the video layer, the pixel values ​​of the UI detection points in the area of ​​the video layer not covered by the UI layer will remain the previous pixel values ​​after superposition. The mobile phone can superimpose and synthesize the second layer with the UI layer to obtain the first layer.

[0067] In an embodiment of the present application, the electronic device can adopt a preset algorithm to first overlay the video layer and the UI detection layer, and can obtain the pixel value of the layer after the overlay processing, so that the electronic device can judge whether the video layer is covered by the UI layer based on the pixel value. Therefore, when the electronic device overlays and synthesizes multiple layers, the pixel value change of the synthesized image can be calculated more accurately. In this way, the influence of the UI layer on the target video is reduced, and the effect and function of the electronic device on the overlay synthesis of the layers is optimized.

[0068] Step 201d: The independent frame insertion chip divides the first layer into regions to obtain M regions.

[0069] In the embodiment of the present application, each of the M areas is an area in the first layer.

[0070] Optionally, in an embodiment of the present application, M is equal to X (for example, when the video layer is displayed in full screen); or, M is not equal to X (for example, when the video layer is centered and not displayed in full screen).

[0071] In an embodiment of the present application, the electronic device can divide the screen display area into X areas through the UI detection layer, and map the X areas of the screen display area on the video layer. Then, the electronic device can divide the first layer to be displayed in the screen display area into M areas through an independent interpolation chip, wherein each of the M areas is an area in the first layer.

[0072] In an embodiment of the present application, the electronic device can insert a UI detection layer between the video layer and the UI layer, so that the electronic device synthesizes the video layer, the UI layer and the UI detection layer into one layer, namely, the first layer. Then the electronic device can divide the screen display area according to the UI detection layer to divide the first layer into M areas. Therefore, the electronic device can perform different processing on different areas, such as frame insertion processing or no frame insertion processing. In this way, the power consumption of the electronic device is reduced, and the accuracy of the electronic device performing frame insertion processing on the target video is improved.

[0073] Optionally, in an embodiment of the present application, the above-mentioned UI detection layer includes N UI detection points, each of the M areas includes at least one UI detection point among the N UI detection points, the above-mentioned step 202 can be specifically implemented by the following step 202a, and the above-mentioned step 203 can be specifically implemented by the following step 203a.

[0074] Step 202a: The independent interpolation chip determines the first target area among the M areas as the interpolation area.

[0075] In the embodiment of the present application, the first target area is an area where the pixel color value of at least one UI detection point in the M areas meets a preset condition, and the preset condition is that the pixel color value of at least one UI detection point matches the initial value of the pixel value of at least one UI detection point.

[0076] It should be noted that the matching of the pixel color value of at least one UI detection point with the initial value of the pixel value of at least one UI detection point means that the attribute information at the position corresponding to the UI detection point on the first layer after the mixed overlay processing matches the attribute information of the UI detection point on the UI detection layer before the mixed overlay processing.

[0077] Optionally, in an embodiment of the present application, the above-mentioned attribute information includes pixel value, pixel color, pixel position, pixel color temperature, pixel brightness, etc., so that the electronic device can determine whether a certain area is covered by the UI layer based on the pixel information.

[0078] In the embodiment of the present application, the first target area is an area in which the pixel color values ​​of multiple UI detection points in the M areas meet a preset condition.

[0079] Optionally, in the embodiment of the present application, the first target area may include one or more areas.

[0080] Optionally, in an embodiment of the present application, the electronic device can divide the screen display area into M areas through the UI detection layer, so as to set 4 UI detection points in each area, that is, to divide an area into 4 small areas, and place the 4 detection points at the center points of the 4 small areas. The pixel colors of the 4 UI detection points are pure black, pure white, pure white, and pure black. Then the independent interpolation chip can detect whether the pixel colors of the 4 UI detection points are pure black, pure white, pure white, and pure black respectively according to the 4 UI detection points corresponding to each area of ​​the first layer. If the pixel value of any UI detection point in the area does not match, it means that there is UI coverage or UI superposition in the area, and since the position pixel information of the UI detection point is not the original pixel value of the superposition of the video layer and the UI layer, the electronic device needs to interpolate according to the adjacent pixel values ​​around the UI detection point to obtain the original pixel value; if the pixel values ​​of the 4 UI detection points in the area are all matched, it means that the area is not covered by the UI or is not superimposed with the UI, and these areas are determined as the first target area, that is, the interpolation area. The electronic device can restore the pixel values ​​of all UI detection points in all areas of the entire frame image through an interpolation algorithm, and finally perform interpolation processing on the interpolable area.

[0081] In an embodiment of the present application, the electronic device can determine the areas requiring frame insertion among the M areas based on multiple UI detection points, and perform frame insertion on these areas. Therefore, the electronic device does not need to perform frame insertion processing on invalid frame insertion areas, and only needs to perform frame insertion processing on areas without UI superposition. In this way, the power consumption of the electronic device for frame insertion is reduced, the processing speed of the electronic device for video frame insertion is improved, and the accuracy of UI detection is also improved.

[0082] Alternatively, if Figure 6 As shown, in the first implementation mode, the electronic device includes an AP main control chip, an independent interpolation chip and a display screen, wherein the AP main control chip includes a central processing unit (CPU) and an image processor (GPU), and the independent interpolation chip includes a CPU and a digital signal processor (DSP). When the user chooses to play a video and starts the interpolation function of the electronic device, the electronic device can insert a UI detection layer between the video layer and the UI layer through the AP main control chip, and then superimpose all the layers into one layer, that is, the first layer, and send the first layer to the receiving interface (Receive) of the MIPI of the mobile industry processor interface (Mobile Industry Processor Interface, MIPI) through the sending interface (Transmit, TX) of the MIPI of the independent interpolation chip, and then the AP main control interpolation chip can divide the screen display area into multiple areas, so that the electronic device can determine whether the pixel value of the area corresponding to the UI detection point changes according to the position of the UI detection point of a certain area of ​​the first layer, so as to determine the area where the pixel value has not changed, and determine these areas as the areas that need to be interpolated. When a part of the video layer (e.g., the first target area) is not covered by the UI layer, the electronic device interpolates the pixel values ​​around the UI detection point to obtain the pixel value of the UI detection point, and then performs interpolation processing on the first target area; when other areas of the video layer (e.g., the area of ​​the M areas except the first target area) are covered by the UI layer, the electronic device does not perform interpolation processing on these parts of the area, and at the same time interpolates the pixel values ​​around the UI detection point to obtain the pixel value of the UI detection point. After the independent interpolation chip performs interpolation processing on the interpolation area, it can be sent to the MIPI receiving interface of the display screen through the MIPI sending interface, and the target video after interpolation processing is displayed in the screen display area.

[0083] Figure 7 FIG. 4 is a flowchart of the first frame insertion method in the embodiment of the present application. Figure 7As shown, the first interpolation method provided in the embodiment of the present application may include the following steps 21 to 25 and step 27, or steps 21 to 24 and steps 26 and 27.

[0084] Step 21: The electronic device plays the video and starts the interpolation function.

[0085] Step 22: The electronic device inserts a UI detection layer between the video layer and the UI layer, and superimposes all the layers into one layer.

[0086] Step 23: The electronic device sends the synthesized layer to the independent frame insertion chip through the MIPI interface.

[0087] Step 24: The electronic device determines whether the pixel value of the UI detection point position in a certain area of ​​the layer changes.

[0088] Step 25: When there is a UI covering the upper part of the video screen of the corresponding area, the electronic device does not perform frame interpolation processing on the area, and simultaneously interpolates the pixel value of the UI detection point according to the pixel values ​​around the UI detection point.

[0089] Step 26: When there is no UI coverage on the top of the video screen of the corresponding area, the electronic device interpolates the pixel value of the UI detection point according to the pixel values ​​around the UI detection point, and then performs frame interpolation processing on the area.

[0090] Step 27: The independent frame insertion chip sends the interpolated image to the screen for display.

[0091] In an embodiment of the present application, the electronic device can use UI detection technology to divide the screen display area into multiple areas, and detect multiple areas of the target video to determine whether one of the multiple areas has a UI overlay, and only perform interpolation processing on the area without UI overlay. Therefore, the influence of the UI layer on the interpolation effect of the electronic device is reduced, and the interpolation power consumption consumed by the interpolation processing of invalid areas is also reduced, and the processing speed of the electronic device for interpolation of multiple areas is also improved.

[0092] Step 203a: The independent frame insertion chip performs frame insertion processing on the first target area.

[0093] In the embodiment of the present application, the independent interpolation chip may perform interpolation processing on the first target area after determining the interpolation area (ie, the first target area) from the M areas.

[0094] Optionally, in a second implementation of the embodiment of the present application, the interpolation method provided by the electronic device further includes the following step 401. Step 401, the AP main control chip stores a white list of video layers that support the interpolation function, and determines whether the video layer is covered by a UI layer according to the white list of video layers.

[0095] Optionally, in the embodiment itself, the electronic device can pre-save the video layer whitelist of all video applications that support the interpolation function through the AP main control chip, and determine the layers not in the whitelist as UI layers, and then, when displaying the video layer of the target video, divide the screen display area corresponding to the target video to obtain M areas.

[0096] In the embodiment of the present application, the electronic device can store a whitelist locally in advance, and determine whether the video layer is covered by the UI layer according to the whitelist, thereby improving the efficiency and flexibility of the electronic device in inserting frames into the target video.

[0097] The above step 201 can be specifically implemented through the following steps 201e to 201g.

[0098] Step 201e: The AP main control chip obtains the video layer to be displayed and the UI layer displayed on the video layer to be displayed.

[0099] Optionally, in an embodiment of the present application, the electronic device may obtain a video layer to be displayed and a UI layer displayed on the video layer to be displayed through an AP main control chip.

[0100] Step 201f: The AP main control chip divides the screen display area into regions to obtain Y regions.

[0101] In the embodiment of the present application, each of the Y areas is an area in the screen display area, and Y is a positive integer greater than 1.

[0102] Optionally, in the embodiment of the present application, the electronic device may divide the screen display area through the AP main control chip to obtain Y areas. The specific implementation method may refer to the first implementation method of the embodiment of the present application.

[0103] Step 201g: The AP main control chip divides the video layer into regions to obtain M regions.

[0104] In the embodiment of the present application, each of the M areas is an area in the video layer.

[0105] Optionally, in an embodiment of the present application, M is equal to Y (for example, when the video layer is displayed in full screen); or, M is not equal to Y (for example, when the video layer is centered and not displayed in full screen).

[0106] Optionally, in the embodiment of the present application, the electronic device may divide the screen display area through the AP main control chip to obtain Y areas. The specific implementation method may refer to the first implementation method of the embodiment of the present application.

[0107] Optionally, in the embodiment of the present application, the above step 202 can be specifically implemented by the following step 202b, and the above step 203 can be implemented by the following step 203b.

[0108] Step 202b: When the UI layer is displayed on the video layer displayed in the AP main control chip, the second target area among the M areas is determined as the interpolation area according to the attribute information of the UI layer.

[0109] Optionally, in an embodiment of the present application, the second target area is an area in the M areas where the video layer and the UI layer do not overlap, and the attribute information of the UI layer includes the position and area of ​​the UI layer on the video layer.

[0110] Optionally, in an embodiment of the present application, the attribute information of the above-mentioned UI layer includes the position and area of ​​the UI layer on the video layer, that is, the overlapping area information of the UI layer and the video layer.

[0111] Optionally, in an embodiment of the present application, the position coordinates of the overlapping area, the pixel value of the overlapping area, the brightness value of the overlapping area, the saturation of the overlapping area, the color temperature of the overlapping area, etc. are provided so that the electronic device can determine the overlap between the M areas and the UI layer based on the overlapping information.

[0112] Optionally, in an embodiment of the present application, the second target area includes one or more areas.

[0113] Optionally, in an embodiment of the present application, the above-mentioned overlap may include partial overlap or complete overlap, that is, when the second target area among the M areas partially overlaps with the UI layer, the second target area among the M areas is determined as the interpolation area; when the second target area among the M areas completely overlaps with the UI layer, the M areas are determined as the second target area.

[0114] Optionally, in an embodiment of the present application, the electronic device can determine the second target area among the M areas according to the overlapping positions of the M areas and the UI layer and the areas of the overlapping areas through the AP main control chip, and determine the second target area as the interpolation area.

[0115] For example, Figure 8 As shown, the mobile phone can mark the area where the video layer and the UI layer overlap according to the position and area of ​​the overlap between the video layer and the UI layer, that is, mark it as an invalid interpolation area, and mark the area where the video layer and the UI layer do not overlap, that is, mark it as an interpolation area.

[0116] In an embodiment of the present application, the electronic device can determine the area among the M areas that does not overlap with the UI layer as the interpolation area when displaying the UI layer on the video layer, thereby reducing the electronic device's processing of invalid interpolation areas, thereby reducing the power consumption of the electronic device and improving the efficiency of the electronic device in performing interpolation processing on the video.

[0117] Alternatively, if Fig. 9 As shown, in the above second implementation, the electronic device includes an AP main control chip, an independent interpolation chip and a display screen, wherein the AP main control chip includes a central processing unit (CPU) and an image processor (GPU), and the independent interpolation chip includes a CPU and a digital signal processor (DSP). When the user chooses to play a video and starts the interpolation function of the electronic device, the electronic device can detect whether the video layer is covered by the UI layer in the AP main control chip according to the pre-saved video layer whitelist. The electronic device overlays and synthesizes the video layer and the UI layer, sends the overlay and synthesized layer to the MIPI receiving interface of the independent interpolation chip through the MIPI sending interface, and when there is a non-whitelist layer (i.e., the UI layer) on the video layer, divides the video layer into multiple areas, so that the multiple areas of the layer can be marked according to the position and size of the UI layer to mark the interpolation area and the interpolation invalid area, that is, the area in the video layer that does not overlap with the UI layer is marked as the interpolation area, i.e., the second target area, and the area in the video layer that overlaps with the UI layer is marked as the interpolation invalid area, and the marking result is sent to the independent interpolation chip through the serial peripheral interface (Serial Peripheral Interface, SPI), so that the independent interpolation chip can receive the marking result through the SPI interface, and interpolation processing is performed on the second target area according to the marking result, and then the processed video is sent to the MIPI receiving interface of the display screen through the MIPI sending interface, so that the target video after the interpolation processing is displayed in the screen display area.

[0118] In an embodiment of the present application, the electronic device can directly mark the insertable area, that is, the area not covered by the UI, on the main control chip side according to the pre-saved video layer whitelist, and then the independent insertion chip only performs insertion processing on the insertable area. Therefore, the detection method of the electronic device for the UI layer is simplified, and while the efficiency of the electronic device for inserting the target video is improved, the power consumption of the electronic device is reduced, and the effect of the electronic device for inserting the target video is improved.

[0119] Step 203a: The independent frame insertion chip determines a frame insertion region from the M regions according to the second target region, and performs frame insertion processing on the frame insertion region.

[0120] In the embodiment of the present application, the electronic device can determine the interpolation region from the M regions through an independent interpolation chip according to the second target region, and perform interpolation processing on the interpolation region.

[0121] The embodiment of the present application provides a method for interpolation. When displaying the video layer of the target video, the electronic device can divide the video layer corresponding to the target video to obtain M areas, where M is an integer greater than 1. Then, the interpolation area can be determined from the M areas according to whether the video layer is covered by the UI layer; an independent interpolation chip performs interpolation processing on the interpolation area. In this solution, since the electronic device can divide the video layer corresponding to the target video into multiple areas when displaying the video layer of the target video, and determine the area requiring interpolation among the multiple areas, the electronic device can directly perform interpolation processing on the area requiring interpolation. Therefore, when the electronic device needs to display the UI layer, the electronic device can only perform interpolation processing on the area not covered by the UI layer, thereby avoiding the problem of poor display effect of the video layer of the electronic device due to the UI layer. In this way, while reducing the power consumption of the electronic device and improving the effect of displaying the video by the electronic device, the clarity and smoothness of the video played by the electronic device are also improved.

[0122] It should be noted that the frame insertion method provided in the embodiment of the present application can be executed by an electronic device, a frame insertion device, or a control module in the frame insertion device for executing the frame insertion method. In the embodiment of the present application, the frame insertion method provided in the embodiment of the present application is described by taking the execution of the frame insertion method by an electronic device as an example.

[0123] Fig.10 FIG. 2 shows a possible structural diagram of a frame insertion device involved in an embodiment of the present application. Fig.10 As shown, the frame insertion device 70 may include: a dividing module 71 , a determining module 72 and a processing module 73 .

[0124] The dividing module 71 is used to divide the video layer to obtain M areas when the AP main control chip obtains the video layer of the target video to be displayed, where M is an integer greater than 1. The determining module 72 is used to determine the interpolation area from the M areas according to whether the video layer is covered by the UI layer. The processing module 73 is used to perform interpolation processing on the interpolation area.

[0125] An embodiment of the present application provides an interpolation device. Since the electronic device can divide the video layer corresponding to the target video into multiple areas when displaying the video layer of the target video, and determine the area requiring interpolation among the multiple areas, the electronic device can then directly perform interpolation processing on the area requiring interpolation. Therefore, when the electronic device needs to display the UI layer, the electronic device can only perform interpolation processing on the area not covered by the UI layer, thereby avoiding the problem of poor display of the video layer by the electronic device due to the UI layer. In this way, while reducing the power consumption of the electronic device and improving the effect of displaying the video by the electronic device, the clarity and smoothness of the video played by the electronic device are also improved.

[0126] In one possible implementation, the division module 71 is specifically used to obtain a video layer to be displayed and a UI layer displayed on the video layer to be displayed; insert a UI detection layer between the video layer and the UI layer, and divide the screen display area into regions through the UI detection layer to obtain X regions, each of the X regions is an region in the screen display area, and X is a positive integer greater than 1; synthesize the video layer, the UI layer, and the UI detection layer to obtain a first layer; divide the first layer into regions to obtain M regions, each of the M regions is an region in the first layer.

[0127] In one possible implementation, the division module 71 is specifically used to use a preset algorithm to synthesize the video layer and the UI detection layer to obtain a second layer, and to use a preset algorithm to synthesize the second layer and the UI layer to obtain a first layer.

[0128] In a possible implementation, the UI detection layer includes N UI detection points, and each of the M areas includes at least one UI detection point among the N UI detection points. The determination module 72 is used for the chip to determine the first target area among the M areas as the interpolation area, and the first target area is an area where the pixel color value of at least one UI detection point in the M areas meets a preset condition, and the preset condition is: the pixel color value of at least one UI detection point matches the initial value of the pixel value of at least one UI detection point. The processing module 73 is specifically used to perform interpolation processing on the first target area.

[0129] In one possible implementation, the division module 71 is specifically used to obtain the video layer to be displayed and the UI layer displayed on the video layer to be displayed; divide the screen display area into regions to obtain Y regions, each of the Y regions is an region in the screen display area, and Y is a positive integer greater than 1; divide the video layer into regions to obtain M regions, each of the M regions is an region in the video layer.

[0130] In a possible implementation, the determination module 72 is specifically used to determine the second target area in the M areas as the interpolation area according to the attribute information of the UI layer when the UI layer is displayed on the video layer displayed in the AP main control chip. The second target area is the area in the M areas where the video layer and the UI layer do not overlap. The attribute information of the UI layer includes the position and area of ​​the UI layer on the video layer. The processing module 73 is specifically used to perform interpolation processing on the interpolation area. The independent interpolation chip determines the interpolation area from the M areas according to the second target area, and performs interpolation processing on the interpolation area.

[0131] In a possible implementation, the processing module 73 is further used to store a white list of video layers that support the interpolation function, and determine whether the video layer is covered by a UI layer according to the white list of video layers.

[0132] The interpolation device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0133] The interpolation device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0134] The interpolation device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0135] Alternatively, if Fig.11 As shown, an embodiment of the present application also provides an electronic device 90, including a processor 91, a memory 92, and a program or instruction stored in the memory 92 and executable on the processor 91. When the program or instruction is executed by the processor 91, each process of the above-mentioned method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.

[0136] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0137] Fig.12 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0138] The electronic device 100 includes but is not limited to components such as a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.

[0139] Those skilled in the art will appreciate that the electronic device 100 may also include a power source (such as a battery) for supplying power to various components, and the power source may be logically connected to the processor 110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.12 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0140] Among them, the processor 110 is used to divide the video layer into M areas when the AP main control chip obtains the video layer of the target video to be displayed, where M is an integer greater than 1, and determine the interpolation area from the M areas according to whether the video layer is covered by the UI layer, and perform interpolation processing on the interpolation area.

[0141] An embodiment of the present application provides an electronic device. Since the electronic device can divide the video layer corresponding to the target video into multiple areas when displaying the video layer of the target video, and determine the area requiring frame insertion among the multiple areas, the electronic device can then directly perform frame insertion processing on the area requiring frame insertion. Therefore, when the electronic device needs to display the UI layer, the electronic device can only perform frame insertion processing on the area not covered by the UI layer, thereby avoiding the problem of poor display of the video layer by the electronic device due to the UI layer. In this way, while reducing the power consumption of the electronic device and improving the effect of displaying the video by the electronic device, the clarity and smoothness of the video played by the electronic device are also improved.

[0142] Optionally, in the embodiment itself, the processor 110 is specifically used to obtain a video layer to be displayed and a UI layer displayed on the video layer to be displayed; insert a UI detection layer between the video layer and the UI layer, and divide the screen display area into regions through the UI detection layer to obtain X regions, each of the X regions is an region in the screen display area, and X is a positive integer greater than 1; synthesize the video layer, the UI layer and the UI detection layer to obtain a first layer; divide the first layer into regions to obtain M regions, each of the M regions is an region in the first layer.

[0143] Optionally, in the embodiment itself, the processor 110 is specifically used to use a preset algorithm to synthesize the video layer and the UI detection layer to obtain a second layer, and use a preset algorithm to synthesize the second layer and the UI layer to obtain a first layer.

[0144] Optionally, in the embodiment, the UI detection layer includes N UI detection points, and each of the M areas includes at least one UI detection point among the N UI detection points. The processor 110 is used for the chip to determine the first target area among the M areas as an interpolation area, where the first target area is an area where the pixel color value of at least one UI detection point in the M areas meets a preset condition, and the preset condition is that the pixel color value of at least one UI detection point matches the initial value of the pixel value of at least one UI detection point, and interpolation processing is performed on the first target area.

[0145] Optionally, in the embodiment itself, the processor 110 is specifically used to obtain the video layer to be displayed and the UI layer displayed on the video layer to be displayed; divide the screen display area into regions to obtain Y regions, each of the Y regions is an region in the screen display area, and Y is a positive integer greater than 1; divide the video layer into regions to obtain M regions, each of the M regions is an region in the video layer.

[0146] Optionally, in the embodiment itself, the processor 110 is specifically used to determine, when the UI layer is displayed on the video layer displayed in the AP main control chip, a second target area among the M areas as an interpolation area according to the attribute information of the UI layer, the second target area being an area among the M areas where there is no overlap between the video layer and the UI layer, the attribute information of the UI layer includes the position and area of ​​the UI layer on the video layer, and performing interpolation processing on the interpolation area. The independent interpolation chip determines the interpolation area from the M areas according to the second target area, and performs interpolation processing on the interpolation area.

[0147] Optionally, in the embodiment itself, the processor 110 is also used to store a white list of video layers that support the interpolation function, and determine whether the video layer is covered by a UI layer according to the white list of video layers.

[0148] The electronic device provided in the embodiment of the present application can implement each process implemented in the above method embodiment and can achieve the same technical effect. To avoid repetition, it will not be described here.

[0149] The beneficial effects of various implementations in this embodiment can be specifically referred to the beneficial effects of the corresponding implementations in the above method embodiment. To avoid repetition, they will not be described again here.

[0150] It should be understood that in the embodiment of the present application, the input unit 104 may include a graphics processor (Graphics Processing Unit, GPU) 1041 and a microphone 1042, and the graphics processor 1041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 106 may include a display panel 1061, and the display panel 1061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 107 includes a touch panel 1071 and other input devices 1072. The touch panel 1071 is also called a touch screen. The touch panel 1071 may include two parts: a touch detection device and a touch controller. Other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 109 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 110 may integrate an application processor and a modem processor, wherein the application processor mainly processes an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the modem processor may not be integrated into the processor 110.

[0151] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, the various processes of the above-mentioned method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0152] The processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0153] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0154] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0155] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned video generation method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0156] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0157] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0158] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A frame insertion method, characterized in that: Applied to an electronic device, the electronic device includes an application processor AP main control chip and an independent frame insertion chip, and the method includes: When the AP main control chip obtains a video layer of a target video to be displayed, the video layer is divided into regions to obtain M regions, where M is an integer greater than 1; Determine an interpolation region from the M regions according to whether the video layer is covered by a UI layer, wherein the video layer corresponding to the interpolation region is not covered by the UI layer; The independent frame insertion chip performs frame insertion processing on the frame insertion area.

2. The method according to claim 1, characterized in that In the case where the AP main control chip obtains the video layer of the target video to be displayed, the video layer is divided into regions to obtain M regions, including: The AP main control chip obtains a video layer to be displayed and a UI layer displayed on the video layer to be displayed; The AP main control chip inserts a UI detection layer between the video layer and the UI layer, and divides the screen display area into regions through the UI detection layer to obtain X regions, each of the X regions being a region in the screen display area, and X is a positive integer greater than 1; The AP main control chip performs synthesis processing on the video layer, the UI layer and the UI detection layer to obtain a first layer; The independent interpolation chip divides the first layer into regions to obtain the M regions, and each of the M regions is a region in the first layer.

3. The method according to claim 2, characterized in that The synthesizing the video layer, the UI layer and the UI detection layer to obtain a first layer includes: The AP main control chip uses a preset algorithm to synthesize the video layer and the UI detection layer to obtain a second layer, and uses the preset algorithm to synthesize the second layer and the UI layer to obtain the first layer.

4. The method according to claim 3, characterized in that The UI detection layer includes N UI detection points, each of the M areas includes at least one UI detection point among the N UI detection points, and N is a positive integer greater than 1; The determining the interpolation region from the M regions according to whether the video layer is covered by a UI layer comprises: The independent interpolation chip determines a first target area among the M areas as the interpolation area, wherein the first target area is an area in which a pixel value of at least one UI detection point among the M areas meets a preset condition, wherein the preset condition is that the pixel value of the at least one UI detection point matches an initial value of the pixel value of the at least one UI detection point; The independent frame insertion chip performs frame insertion processing on the frame insertion area, including: The independent frame insertion chip performs frame insertion processing on the first target area.

5. The method according to claim 1, characterized in that When the AP main control chip displays the video layer of the target video, the video layer of the target video is divided into regions to obtain M regions, including: The AP main control chip obtains a video layer to be displayed and a UI layer displayed on the video layer to be displayed; The AP main control chip divides the screen display area into regions to obtain Y regions, each of the Y regions being a region in the screen display area, and Y is a positive integer greater than 1; The AP main control chip divides the video layer into regions to obtain M regions, and each of the M regions is a region in the video layer.

6. The method according to claim 1 or 5, characterized in that: The determining the interpolation region from the M regions according to whether the video layer is covered by a UI layer comprises: In the case where a UI layer is displayed on the video layer displayed in the AP main control chip, a second target area among the M areas is determined as the interpolation area according to the attribute information of the UI layer, the second target area being an area among the M areas where an area where the video layer and the UI layer do not overlap is located, and the attribute information of the UI layer includes a position and an area of ​​the UI layer on the video layer; The independent frame insertion chip performs frame insertion processing on the frame insertion area, including: The independent interpolation chip determines an interpolation region from the M regions according to the second target region, and performs interpolation processing on the interpolation region.

7. The method according to claim 6, characterized in that The method further comprises: The AP main control chip stores a white list of video layers that support the interpolation function, and determines whether the video layer is covered by a UI layer according to the white list of video layers.

8. A frame insertion device, characterized in that: The frame insertion device comprises: a division module, a determination module and a processing module; The division module is used to divide the video layer into M areas when the AP main control chip obtains the video layer of the target video to be displayed, where M is an integer greater than 1; The determining module is used to determine an interpolation region from the M regions according to whether the video layer is covered by a UI layer, and the video layer corresponding to the interpolation region is not covered by the UI layer; The processing module is used to perform frame insertion processing on the frame insertion area.

9. The device according to claim 8, characterized in that The division module is specifically used to obtain a video layer to be displayed and a UI layer displayed on the video layer to be displayed; insert a UI detection layer between the video layer and the UI layer, and divide the screen display area into regions through the UI detection layer to obtain X regions, each of the X regions is a region in the screen display area, and X is a positive integer greater than 1; Performing synthesis processing on the video layer, the UI layer and the UI detection layer to obtain a first layer; The first layer is divided into regions to obtain the M regions, each of the M regions being a region in the first layer.

10. The device according to claim 9, characterized in that The division module is specifically used to use a preset algorithm to synthesize the video layer and the UI detection layer to obtain a second layer, and use the preset algorithm to synthesize the second layer and the UI layer to obtain the first layer.

11. The device according to claim 10, characterized in that The UI detection layer includes N UI detection points, each of the M areas includes at least one UI detection point among the N UI detection points, and N is a positive integer greater than 1; The determination module is used for the chip to determine the first target area among the M areas as the interpolation area, wherein the first target area is an area in which the pixel value of at least one UI detection point among the M areas meets a preset condition, wherein the preset condition is that the pixel value of the at least one UI detection point matches an initial value of the pixel value of the at least one UI detection point; The processing module is specifically used to perform frame insertion processing on the first target area.

12. The device according to claim 8, characterized in that The division module is specifically used to obtain a video layer to be displayed and a UI layer displayed on the video layer to be displayed; divide the screen display area into regions to obtain Y regions, each of the Y regions is an region in the screen display area, and Y is a positive integer greater than 1; divide the video layer into regions to obtain M regions, each of the M regions is an region in the video layer.

13. The device according to claim 8 or 12, characterized in that The determining module is specifically configured to, when a UI layer is displayed on the video layer displayed in the AP main control chip, determine a second target area among the M areas as the interpolation area according to the attribute information of the UI layer, wherein the second target area is an area among the M areas where an area where the video layer and the UI layer do not overlap is located, and the attribute information of the UI layer includes a position and an area of ​​the UI layer on the video layer; The processing module is specifically configured to determine an interpolation region from the M regions according to the second target region, and perform interpolation processing on the interpolation region.

14. The device according to claim 13, characterized in that The processing module is further used to store a white list of video layers that support the interpolation function, and to determine whether the video layer is covered by a UI layer according to the white list of video layers.

15. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the interpolation method as claimed in any one of claims 1 to 7.

16. A readable storage medium, characterized in that: The readable storage medium stores a program or an instruction, and when the program or the instruction is executed by a processor, the steps of the interpolation method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Frame interpolation method and apparatus, and electronic device

    EP4460008A1