Display device and floating window display method

By matching the video picture data in real time in the video playback interface as the background content data of the floating window area, and controlling its transparency, the problem in the existing technology that the background content data of the floating window area cannot be changed in real time is solved, and the flexibility of the display form is improved. and user experience.

CN115695889BActive Publication Date: 2024-09-06JUHAOKAN TECH CO LTD
View PDF 22 Cites 0 Cited by

Patent Information

Application Number
CN202211210716.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-09-30
Publication Date
2024-09-06
Estimated Expiration
2042-09-30

AI Technical Summary

Technical Problem

The background content data of the floating window area in the existing video playback interface is usually a fixed preset background template, with a single display form and poor user experience. It is difficult to match the video screen data in real time, resulting in inflexible display forms.

Method used

In the video playback interface, the floating window area is evoked through user input operations, and the currently played video screen data is matched in real time as the background content data, and the transparency of the background content data is less than the transparency of the video screen data, thereby achieving blur processing of the background content data. , increase the flexibility of display form.

Benefits of technology

Real-time matching of background data in the floating window area and video screen data is achieved, providing a more flexible display form and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115695889B
    Figure CN115695889B
Patent Text Reader

Abstract

The present disclosure relates to a display device and a floating window display method, which are applied to the field of video processing and can increase the display form of the floating window area of ​​the video playback interface and improve the display flexibility of the floating window. The display device includes: a display; a user input interface, which is configured to: receive a user input operation to evoke a floating window when displaying a video playback interface; a controller, which is configured to: display a floating window area on the video playback interface in response to the user input operation; wherein, during the process of playing a video on the video playback interface, the background content data of the floating window area matches the currently played video screen data in real time, and the transparency of the background content data is less than the transparency of the video screen data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to video processing technology, and more specifically, to a display device and a floating window display method. Background Art

[0002] During the video application playing a video, the user can call up a floating window area on the video playback interface of the display device by operating the remote control buttons or touching the screen, so that the video playback interface includes a video area and a floating window area. The floating window area includes background content data and foreground content data (including static image data and / or text description data). At present, the background content data of the floating window area is usually a fixed preset background template, the display form is relatively simple, and the user experience is poor. Summary of the invention

[0003] In order to solve the above technical problems or at least partially solve the above technical problems, an embodiment of the present application provides a display device and a floating window display method.

[0004] In a first aspect, an embodiment of the present application provides a display device, including:

[0005] monitor;

[0006] The user input interface is configured to: receive a user input operation for invoking a floating window when displaying a video playback interface;

[0007] The controller is configured to: display a floating window area on the video playback interface in response to the user input operation;

[0008] In the process of playing the video in the video playback interface, the background content data of the floating window area matches the currently playing video screen data in real time, and the transparency of the background content data is less than the transparency of the video screen data.

[0009] In a second aspect, an embodiment of the present application provides a floating window display method, including:

[0010] When the video playback interface is displayed, receiving a user input operation to invoke a floating window;

[0011] In response to the user input operation, displaying a floating window area on the video playback interface;

[0012] In the process of playing the video in the video playback interface, the background content data of the floating window area matches the currently playing video screen data in real time, and the transparency of the background content data is less than the transparency of the video screen data.

[0013] In a third aspect, an embodiment of the present application provides a computer-readable storage medium, including: a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the floating window display method shown in the second aspect is implemented.

[0014] In a fourth aspect, an embodiment of the present application provides a computer program product, including: when the computer program product is run on a computer, the computer implements the floating window display method shown in the second aspect.

[0015] The technical solution provided by the embodiment of the present application has the following advantages over the prior art: In the embodiment of the present application, by receiving a user input operation to evoke a floating window while displaying a video playback interface; in response to the user input operation, a floating window area is displayed on the video playback interface; wherein, during the process of playing a video on the video playback interface, the background content data of the floating window area matches the currently played video screen data in real time, and the transparency of the background content data is less than the transparency of the video screen data. In this way, by matching the background content data of the floating window area with the currently played video screen data in real time, the background data content of the floating window area can change in real time with the changes of the played video screen data, and the transparency of the background content data is less than the transparency of the video screen data, so that the background content data of the floating window area has a blurred processing (similar to translucent) effect, instead of always displaying a fixed preset background template, thereby increasing the display form of the floating window area and improving the flexibility of the display of the floating window area. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the implementation methods in the embodiments of the present application or the related technologies, the following is a brief introduction to the drawings required for use in the embodiments or the related technology descriptions. Obviously, the drawings described below are some embodiments of the present application, and a person skilled in the art can also obtain other drawings based on these drawings.

[0017] Figure 1 An operation scenario between a display device and a control device according to some embodiments is shown;

[0018] Figure 2 shows a hardware configuration block diagram of a control device 100 according to some embodiments;

[0019] Figure 3 shows a hardware configuration block diagram of a display device 200 according to some embodiments;

[0020] Figure 4 One of the flowcharts of the floating window display method according to some embodiments is shown;

[0021] Figure 5AOne of the interface schematic diagrams of the floating window display method according to some embodiments is shown;

[0022] Figure 5B A second interface schematic diagram of a floating window display method according to some embodiments is shown;

[0023] Figure 6 A second flowchart of a floating window display method according to some embodiments is shown;

[0024] Figure 7 A third interface schematic diagram of a floating window display method according to some embodiments is shown;

[0025] Figure 8 A third flowchart of a floating window display method according to some embodiments is shown;

[0026] Fig. 9 A fourth flowchart of a floating window display method according to some embodiments is shown;

[0027] Fig.10 A schematic diagram showing the structure of a video encoding stream according to some embodiments is shown;

[0028] Fig.11 A fifth flowchart of a floating window display method according to some embodiments is shown;

[0029] Fig.12 A sixth flowchart of a floating window display method according to some embodiments is shown;

[0030] Fig.13 FIG7 shows a seventh flow chart of a floating window display method according to some embodiments;

[0031] Fig.14 An eighth flowchart of a floating window display method according to some embodiments is shown;

[0032] Fig.15 A ninth flowchart of a floating window display method according to some embodiments is shown. DETAILED DESCRIPTION

[0033] In order to make the purpose and implementation method of the present application clearer, the exemplary implementation method of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.

[0034] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.

[0035] The terms "first", "second", "third", etc. in the specification and claims of this application and the above drawings are used to distinguish similar or similar objects or entities, and do not necessarily mean to limit a specific order or sequence, unless otherwise noted. It should be understood that the terms used in this way can be interchangeable under appropriate circumstances.

[0036] The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

[0037] The display device provided in the embodiments of the present application may have various implementation forms, for example, it may be a television, a smart television, a laser projection device, a monitor, an electronic bulletin board, an electronic table, a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, etc.

[0038] Figure 1 FIG. 1 is a schematic diagram of an operation scenario between a display device and a control device according to an embodiment, wherein the control device includes an intelligent device or a control apparatus. Figure 1 As shown, the user can operate the display device 200 through the smart device 300 or the control apparatus 100 .

[0039] In some embodiments, the control device 100 may be a remote controller, and the communication between the remote controller and the display device includes infrared protocol communication or Bluetooth protocol communication, and other short-range communication methods, and the display device 200 is controlled wirelessly or wired. The user may control the display device 200 by inputting user commands through buttons on the remote controller, voice input, control panel input, etc.

[0040] In some embodiments, a smart device 300 (such as a mobile terminal, a tablet computer, a computer, a laptop computer, etc.) may also be used to control the display device 200. For example, the display device 200 is controlled using an application running on the smart device.

[0041] In some embodiments, the display device may not use the above-mentioned smart device or control device to receive instructions, but may receive user control through touch or gestures.

[0042] In some embodiments, the display device 200 can also be controlled in a manner other than the control device 100 and the smart device 300. For example, the user's voice command control can be directly received through a module for obtaining voice commands configured inside the display device 200, or the user's voice command control can be received through a voice control device set outside the display device 200.

[0043] In some embodiments, the display device 200 also communicates data with the server 400. The display device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks. The server 400 may provide various content and interactions to the display device 200. The server 400 may be one cluster or multiple clusters, and may include one or more types of servers.

[0044] Figure 2 Schematically shows a block diagram of a configuration of the control device 100 according to an exemplary embodiment. Figure 2 As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface 140, an external memory, and a power supply. The control device 100 can receive an input operation instruction from a user, and convert the operation instruction into an instruction that can be recognized and responded to by the display device 200, playing the role of an interactive intermediary between the user and the display device 200.

[0045] like Figure 3 The display device 200 includes at least one of a tuner and demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a user interface 280, an external memory, and a power supply.

[0046] In some embodiments, the controller includes a processor, a video processor, an audio processor, a graphics processor, a RAM, a ROM, and a first interface to an nth interface for input / output.

[0047] The display 260 includes a display screen component for presenting images, and a driving component for driving image display, which is used to receive image signals output from the controller, and display video content, image content, and menu control interface components and user control UI interface.

[0048] The display 260 may be a liquid crystal display, an OLED display, or a projection display, and may also be a projection device and a projection screen.

[0049] The communicator 220 is a component for communicating with an external device or server according to various communication protocol types. For example, the communicator may include at least one of a Wifi module, a Bluetooth module, a wired Ethernet module, and other network communication protocol chips or near field communication protocol chips, and an infrared receiver. The display device 200 can establish transmission and reception of control signals and data signals with the external control device 100 or the server 400 through the communicator 220.

[0050] The user interface 280 can be used to receive control signals from the control device 100 (such as an infrared remote controller, etc.) It can also be used to directly receive user input operation instructions and convert the operation instructions into instructions that the display device 200 can recognize and respond to, which can be called a user input interface.

[0051] The detector 230 is used to collect signals from the external environment or the external interaction. For example, the detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; or, the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, user attributes or user interaction gestures; or, the detector 230 includes a sound collector, such as a microphone, etc., for receiving external sounds.

[0052] The external device interface 240 may include, but is not limited to, any one or more of the following interfaces: a high-definition multimedia interface (HDMI), an analog or digital high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. It may also be a composite input / output interface formed by the above multiple interfaces.

[0053] The tuner-demodulator 210 receives broadcast television signals via wired or wireless reception, and demodulates audio and video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.

[0054] In some embodiments, the controller 250 and the tuner-demodulator 210 may be located in different separate devices, that is, the tuner-demodulator 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.

[0055] The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in the memory (internal memory or external memory). The controller 250 controls the overall operation of the display device 200. For example, in response to receiving a user command for selecting a UI object to be displayed on the display 260, the controller 250 can perform operations related to the object selected by the user command.

[0056] In some embodiments, the controller includes a central processing unit (CPU), a video processor, an audio processor, a graphics processing unit (GPU), and at least one of a random access memory (RAM), a read-only memory (ROM), a first interface to an nth interface for input / output, a communication bus, etc.

[0057] Among them, RAM, also called main memory, is an internal memory that directly exchanges data with the controller. It can be read and written at any time (except when refreshed), and it is very fast. It is usually used as a temporary data storage medium for operating systems or other running programs. The biggest difference between it and ROM is the volatility of data, that is, once the power is cut off, the stored data will be lost. RAM is used in computers and digital systems to temporarily store programs, data and intermediate results. ROM works in a non-destructive read-out mode and can only read but not write information. Once the information is written, it is fixed, and even if the power is cut off, the information will not be lost, so it is also called fixed memory.

[0058] The user may input a user command through a graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the graphical user interface (GUI). Alternatively, the user may input a user command through a specific sound or gesture, and the user input interface recognizes the sound or gesture through a sensor to receive the user input command.

[0059] "User interface" is the medium interface for interaction and information exchange between applications or operating systems and users. It realizes the conversion between the internal form of information and the form acceptable to users. The commonly used form of user interface is the Graphical User Interface (GUI), which refers to the user interface related to computer operation displayed in a graphical way. It can be an icon, window, control or other interface element displayed on the display screen of a display device, where the control can include icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets and other visual interface elements.

[0060] The present application provides a display device and a floating window display method, wherein the display device can implement the floating window display method provided in the present application or the functional module or functional entity in the display device can implement the floating window display method provided in the present application. The display device includes: a user input interface, a controller and a display, respectively corresponding to the above Figure 3 The user interface 280, controller 250 and display 260 in FIG.

[0061] In some embodiments of the present application, a display device is provided, including: a display; for displaying a video playback interface; a user input interface, for receiving a user input operation to invoke a floating window when the video playback interface is displayed; and a controller, for displaying a floating window area on the video playback interface in response to the user input operation; wherein, during the process of playing a video on the video playback interface, background content data of the floating window area matches the currently playing video screen data in real time, and the transparency of the background content data is less than the transparency of the video screen data.

[0062] In the embodiment of the present application, by matching the background content data of the floating window area with the currently playing video screen data in real time, the background data content of the floating window area can change in real time with the changes in the playing video screen data, and the transparency of the background content data is lower than the transparency of the video screen data, so that the background content data of the floating window area can have a blurred effect (similar to translucent) instead of always displaying a fixed preset background template. Therefore, the display form of the floating window area is increased and the flexibility of the display of the floating window area is improved.

[0063] In some embodiments of the present application, the controller is specifically used to obtain the position information of the floating window area in the video playback interface and the foreground content data in the floating window area in response to the user input operation; based on the position information of the floating window area in the video playback interface, the following steps are performed for each frame of the video encoding stream: a frame of the video encoding stream (original video data) is divided into the encoding data of the video area and the encoding data of the floating window area; the encoding data of the video area is decoded to obtain the video screen data of the video area; the encoding data of the floating window area is decoded to obtain the video screen data of the floating window area, and then the video screen data of the floating window area is Gaussian filtered to obtain the background content data of the floating window area after filtering, and the foreground content data is overlaid on the foreground layer of the background content data of the floating window area after filtering; the video screen data of the video area and the superimposed background content data and foreground content data of the floating window area are synthesized to generate a frame of image including the video area and the floating window area, and the frame of image is displayed on the video playback interface. In this way, by performing a series of processing operations such as decoding -> filtering -> layer overlay on each frame of original video screen data, it can be achieved that during the video playback interface playing the video, the background content data of the floating window area matches the currently playing video screen data in real time, and the background content data of the floating window area has a high degree of matching with the currently playing video screen data, and the transparency of the background content data is less than the transparency of the video screen data.

[0064] In some embodiments of the present application, the controller is specifically used to respond to the user input operation, obtain the current frame video encoding stream to obtain the position information of the floating window area in the video playback interface, and the foreground content data in the floating window area; based on the position information, obtain the target encoding data corresponding to the video area and the background encoding data corresponding to the floating window area from the current frame encoding video stream; decode the target encoding data to obtain the current frame video screen data; when the current frame video encoding stream is not an integer multiple of the preset frame interval, determine the cached previous frame background content data as the current frame background content data, generate the current frame image based on the current frame video screen data and the current frame background content data, and the foreground content data; display the current frame image in the video playback interface. In this way, the processing overhead of most frame images during video playback is reduced, the processing efficiency is improved, and the occurrence of screen freeze is reduced. Although the background content data display of the floating window area cannot be synchronized with the original video screen data in real time, the background content data of the floating window area can be matched with the video screen data to a certain extent.

[0065] In some embodiments of the present application, the controller is specifically used to obtain position information of the floating window area in the video playback interface and foreground content data in the floating window area in response to the user input operation; based on the position information, obtain target coding data corresponding to the video area and background coding data corresponding to the floating window area from the current frame encoded video stream; decode the target coding data to obtain current frame video picture data; obtain current frame motion compensation data from the background coding data; based on the current frame motion compensation data, perform motion compensation processing on the cached previous frame background content data corresponding to the floating window area to obtain current frame background content data of the floating window area; generate a current frame image based on the current frame video picture data and the current frame background content data, as well as the foreground content data; and display the current frame image in the video playback interface.

[0066] The position information is used to indicate the position of the floating window area in the video playback interface. The video area is the area in the video playback interface except the floating window area, and is used to display the video picture in the video encoding stream.

[0067] In an embodiment of the present application, the current frame motion compensation data can be obtained from the background encoding data; based on the current frame motion compensation data, the previous frame background content data corresponding to the cached floating window area is motion compensated to obtain the current frame background content data of the floating window area. In this way, there is no need to perform a series of processing operations such as decoding, filtering, and layer overlay processing on each frame of original video picture data (data corresponding to the floating window area), which can reduce computing overhead to a certain extent, reduce the time spent on processing each frame of the image, improve processing efficiency, reduce the occurrence of screen freezes, and improve user experience.

[0068] In some embodiments of the present application, the controller is also used to determine whether the current frame encoded video stream is a key frame before obtaining the motion compensation data from the background encoded data; the controller is specifically used to obtain the current frame motion compensation data from the background encoded data when the current frame encoded video stream is not a key frame. That is to say, when a frame of video encoding stream is not a key frame, after obtaining the target encoding data corresponding to the video area and the background encoding data corresponding to the floating window area from the current frame encoding video stream based on the position information, the current frame motion compensation data can be obtained from the background encoding data; based on the current frame motion compensation data, the cached previous frame background content data corresponding to the floating window area is motion compensated to obtain the current frame background content data of the floating window area. In this way, there is no need to perform a series of processing operations such as decoding, filtering and layer overlay processing on the original video picture data that is not a key frame (the data corresponding to the floating window area). Only motion compensation processing needs to be performed on the cached previous frame background content data to obtain the current frame background content data. This can reduce the computing overhead to a certain extent, reduce the time spent on processing each frame of the image, improve processing efficiency, reduce the occurrence of screen freezes, and improve user experience.

[0069] It can be understood that since the key frame image in the video changes greatly compared with its previous frame image, and the key frame image is intra-coded, therefore, for the case where the current frame encoded video stream is a key frame image, the background coding data does not include motion compensation data. Therefore, it is impossible to perform motion compensation processing on the cached previous frame background content data corresponding to the floating window area based on the current frame motion compensation data to obtain the current frame background content data of the floating window area. Moreover, even if the motion compensation data of the adjacent frame images of the key frame image are combined to calculate the motion compensation data corresponding to the key frame image, and motion compensation processing is performed on the cached previous frame background content data corresponding to the floating window area to obtain the current frame background content data of the floating window area, the current frame background content data is also significantly different from the actual background content data corresponding to the current frame image, which will make the background content data of the floating window area unable to match the currently playing video screen data in real time.

[0070] Therefore, in an embodiment of the present application, for the background encoded data in the key frame encoded video stream, a series of processing operations such as first decoding processing, then filtering processing, and then layer overlay processing can be used to obtain the background data content of the current frame.

[0071] In some embodiments of the present application, the controller is also used to, after determining whether the current frame encoded video stream is a key frame, decode the background encoded data to obtain background video screen data based on the current frame video screen data and the current frame background content data, as well as the foreground content data, before generating the current frame image, if the current frame encoded video stream is a key frame; and filter the background video screen data to obtain the current frame background content data. In this way, it can be ensured that in the case where the current frame encoded video stream is a key frame image, the background content data of the floating window area can be matched in real time with the currently played video screen data, and the current frame background content data is saved, which can ensure that the background content data corresponding to the continuous multi-frame non-key frame encoded video stream after the current frame matches the corresponding video screen played in real time.

[0072] Because the entire area of ​​some floating window areas has a certain blur level, and different parts of some floating window areas have different blur levels, for example, the foreground content of the floating window area includes static image data and text description data, and the blur level of the background content of the area corresponding to the text description data is greater than the blur level of the background content of other areas. Therefore, different degrees of filtering are performed on the background content data of different areas of the floating window area, so as to achieve a layered display effect of the background content data of the floating window area.

[0073] In some embodiments of the present application, the background coded data includes first coded data corresponding to a first area and second coded data corresponding to a second area, the first area is an area in the floating window area where the foreground content data is not displayed, and the second area is an area in the floating window area corresponding to the foreground content data; the current frame background content data includes first background content data and second background content data; the controller is used to decode the first coded data to obtain first video screen data; perform a first filtering process on the first video screen data to obtain first background content data; perform a second filtering process on the second video screen data to obtain second background content data. In other words, the blurring degree of the area where the foreground content data is not displayed (the first area) and the area corresponding to the foreground content data are different (the second area), and the different blurring degrees of the first area and the second area can be achieved by performing filtering processes of different degrees on the first coded data of the first area and the second coded data of the second area. Wherein, the filtering parameter of the first filtering process is less than the filtering parameter of the second filtering process, so that the blurring degree of the first background content data can be less than the blurring degree of the second background content data.

[0074] Video is composed of frames of images. After a frame of image passes through the video encoder, it is encoded into one or more slices. A frame of image can contain one or more slices, and each slice contains an integer number of macroblocks, that is, each slice includes at least one macroblock, and at most one slice includes the macroblocks of the entire image. Among them, macroblock types include I-type macroblocks, P-type macroblocks and B-type macroblocks (hereinafter referred to as P-type macroblocks and B-type macroblocks are collectively referred to as non-I-type macroblocks). All macroblocks included in a key frame (I frame) image are I-type macroblocks, and the macroblocks included in a non-key frame (P frame or B frame) image can be all non-I-type macroblocks, or some can be I-type macroblocks and some can be non-I-type macroblocks.

[0075] Among them, for I-type macroblocks, the background encoding data does not include motion compensation data. Therefore, under normal circumstances, it is impossible to perform motion compensation processing on the cached previous frame background content data corresponding to the floating window area based on the current frame motion compensation data to obtain the current frame background content data of the floating window area. The current macroblock background content data can be obtained by first decoding the I-type macroblocks in the non-key frame image, filtering, and then performing a series of processing operations such as layer overlay processing, so that the current frame background content data including the current macroblock background content data is also less different from the actual background content data corresponding to the current frame image, so that the background content data of the floating window area can match the currently playing video picture data in real time.

[0076] However, since the proportion of I-type macroblocks in non-key frame images is relatively small, and the proportion of non-I-type macroblocks is relatively large, the motion compensation data of the adjacent macroblocks of the I-type macroblocks in the non-key frame image can be combined to calculate the motion compensation data corresponding to the I-type macroblock image, and the background content data of the previous macroblock corresponding to the cached floating window area is motion compensated to obtain the current macroblock background content data, including the current frame background content data of the current macroblock background content data, which is also slightly different from the actual background content data corresponding to the current frame image, so that the background content data of the floating window area can match the currently playing video screen data in real time.

[0077] In some embodiments of the present application, the background coding data includes multiple macroblock data; the controller is also used to determine whether the current macroblock data is a type I macroblock for each macroblock data before obtaining the motion compensation data from the background coding data, when the current frame coded video stream is not a key frame; the controller is specifically used to obtain the current macroblock motion compensation data from the current macroblock data when the current macroblock data is not a type I macroblock, and the current macroblock motion compensation data belongs to the current frame motion compensation data; based on the current macroblock motion compensation data, determine the previous frame macroblock background content data that matches the current macroblock data from the previous frame background content data, and perform motion compensation processing on the previous frame macroblock background content data to obtain the current macroblock background content data, and the current macroblock background content data belongs to the current frame background content data.

[0078] In an embodiment of the present application, if the current macroblock in the current frame image is not a non-I type macroblock, after obtaining the target coding data corresponding to the video area and the background coding data corresponding to the floating window area from the current frame coded video stream based on the position information, the current macroblock motion compensation data can be obtained from the current macroblock data; based on the current macroblock motion compensation data, the previous frame macroblock background content data that matches the current macroblock data is determined from the previous frame background content data, and the previous frame macroblock background content data is motion compensated to obtain the current macroblock background content data (the current macroblock background content data belongs to the current frame background content data). In this way, there is no need to perform a series of processing operations such as decoding, filtering, and layer overlay processing on the original macroblock data that is not an I type macroblock. Only motion compensation processing needs to be performed on the cached previous frame macroblock background content data to obtain the current macroblock background content data. This can reduce the computing overhead to a certain extent, reduce the time consumed in processing each frame of the image, improve processing efficiency, reduce the occurrence of screen freezes, and improve user experience.

[0079] In some embodiments of the present application, the controller is also used to, after determining whether the current macroblock data is a type I macroblock, if the current macroblock data is a type I macroblock, decode the current macroblock data to obtain current macroblock video picture data; and filter the current macroblock video picture data to obtain current macroblock background content data, where the current macroblock background content data belongs to the current frame background content data.

[0080] In some embodiments of the present application, the controller is further used to, after determining whether the current macroblock data is a type I macroblock, obtain supplementary motion compensation data corresponding to the current macroblock from at least one macroblock data adjacent to the current macroblock data if the current macroblock data is a type I macroblock, and the supplementary motion compensation data belongs to the current frame motion compensation data; based on the supplementary motion compensation data, determine the previous frame macroblock background content data that matches the current macroblock data from the previous frame background content data, and perform motion compensation processing on the previous frame macroblock background content data to obtain the current macroblock background content data, and the current macroblock background content data belongs to the current frame background content data.

[0081] In an embodiment of the present application, when the current macroblock data is an I-type macroblock, whether the current macroblock data is first decoded, filtered, and then subjected to a series of processing operations such as layer overlay processing to obtain the current macroblock background content data, or the motion compensation data of adjacent macroblocks of the I-type macroblock in the non-key frame image are combined to calculate the motion compensation data corresponding to the I-type macroblock image, the background content data of the previous macroblock corresponding to the cached floating window area is motion compensated to obtain the current macroblock background content data, including the current frame background content data of the current macroblock background content data, which is slightly different from the actual background content data corresponding to the current frame image, thereby enabling the background content data of the floating window area to match the currently playing video picture data in real time.

[0082] In some embodiments of the present application, the controller is also used to save the current frame background content data. It can be understood that no matter whether the current frame encoded video stream is a key frame or a non-key frame, the current frame background content data needs to be saved so as to obtain the next frame background content data corresponding to the next frame encoded video stream based on the current frame background content data.

[0083] It should be noted that the specific description of the display device provided in the embodiment of the present application can refer to the relevant description of the following floating window display method, and can achieve the same or similar technical effects, which will not be repeated here.

[0084] In order to explain this scheme in more detail, the following will be combined in an exemplary manner Figures 4 to 15 To explain, it is understandable that Figures 4 to 15The flowchart involved in the actual implementation may include more steps, or fewer steps, and the order of these steps may also be different, subject to the ability to implement the floating window display method provided in the embodiment of the present application. The floating window display method is implemented by the above-mentioned display device, or by a functional module or functional entity in the display device that can implement the floating window display method, which is not limited here.

[0085] Figure 4 The flowchart of the steps of implementing a floating window display method according to one or more embodiments of the present application may include the following S401 to S402.

[0086] S401: When displaying a video playback interface, receiving a user input operation for invoking a floating window.

[0087] S402: In response to the user input operation, a floating window area is displayed on the video playback interface.

[0088] In the process of playing the video in the video playback interface, the background content data of the floating window area matches the currently playing video screen data in real time, and the transparency of the background content data is less than the transparency of the video screen data.

[0089] In the embodiment of the present application, by matching the background content data of the floating window area with the currently playing video screen data in real time, the background data content of the floating window area can change in real time with the changes in the playing video screen data, and the transparency of the background content data is lower than the transparency of the video screen data, so that the background content data of the floating window area can have a blurred effect (similar to translucent) instead of always displaying a fixed preset background template. Therefore, the display form of the floating window area is increased and the flexibility of the display of the floating window area is improved.

[0090] For example, Figure 5A or Figure 5B As shown, it is a video playback interface including a floating window, wherein the area indicated by the mark "501" is the video area, the video area displays the real-time video stream picture, and the area indicated by the mark "502" is the floating window area. Figure 5A The middle floating window area includes a static image and a text description, wherein the area corresponding to the text description includes background content, and the blurring degree of the background content in the area corresponding to the text description is different from the blurring degree of the background content in other areas. Figure 5B The middle floating window area includes multiple static images such as static image 1, static image 2 and static image 3, and a text description corresponding to the static image is included below each static image.

[0091] For example, in combination Figure 5A, the video area is recorded as area V1, the floating window area is recorded as area V2, and area V2 is further divided into area F1 corresponding to the background content excluding the foreground content, area F2 corresponding to the static image, and area F3 corresponding to the text description content. Among them, after the original video screen of V1 is covered by the floating window, the remaining screen area is exposed. The floating window area V2 includes three areas: F1, F2, and F3. Among them, F1 is the floating window exposed area remaining after F2 and F3 are removed. Its image (background content data) is updated in real time as the screen of V2 changes; F2 displays a collection of one or more still pictures. During the video playback process, the static image displayed in the F2 area remains unchanged; F3 displays a collection of one or more descriptive text areas (text description content), which consists of text / icons and background base maps. As the video frame V2 changes, the background image of F3 changes in real time, and the font color of the text / icon will also change accordingly.

[0092] For example, Figure 6 As shown, the interaction diagram corresponding to the embodiment of the present application includes the following steps:

[0093] S601: The video client receives a first trigger operation to play a target video.

[0094] The video client is an application (Application, APP) corresponding to the video playback interface. The first trigger operation may be an operation in which a user selects a media card corresponding to a target video from a plurality of media cards. The specific operation may be determined according to actual conditions and is not limited here.

[0095] S602: In response to the first trigger operation, the video client sends a video request to the cloud server to obtain a real-time encoded video stream of a target video.

[0096] Accordingly, the cloud server receives a video request from the video client.

[0097] S603: The cloud server sends a real-time encoded video stream of the target video to the video client based on the video request.

[0098] Accordingly, the video client receives the real-time encoded video stream from the cloud server.

[0099] S604: The video client decodes and plays the real-time encoded video stream in real time.

[0100] The video client and the cloud server cyclically execute the above steps 602 to 604 to obtain the real-time encoded video stream and perform real-time decoding and playback on the real-time encoded video stream.

[0101] S605: The video client receives a second trigger operation for waking up the floating screen.

[0102] S606: In response to the second trigger operation, the video client sends a query request for floating window display information to the cloud server.

[0103] Accordingly, the cloud server receives a query request from the video client.

[0104] S607: The cloud server sends the position information of the floating window and the foreground content data to the video client based on the query request.

[0105] Accordingly, the video client receives the position information of the floating window and the foreground content data from the cloud server.

[0106] Then, the video client and the cloud server cyclically execute the following steps 608 to 610 to obtain a real-time encoded video stream, and process the real-time encoded video stream based on the position information of the floating window and the foreground content data to obtain a real-time video image including the floating window for playback.

[0107] S608: The video client sends a video request to the cloud server to obtain a real-time encoded video stream.

[0108] Accordingly, the cloud server receives a video request from the video client.

[0109] S609: The cloud server sends a real-time encoded video stream to the video client based on the video request.

[0110] Accordingly, the video client receives the real-time encoded video stream from the cloud server.

[0111] S610: The video client calculates and displays the current frame image including the V1, F1, F3, and F2 area images.

[0112] It can be understood that after entering the video playback interface, the user can use remote control input or voice input or touch screen input and other methods to execute the floating screen instruction. The video client first queries the cloud server for the floating window information associated with the current video. The floating window information includes the page layout position and size of the floating window (including F1 area, F2 area, F3 area), as well as the static picture to be displayed in the F2 area, the text description content to be displayed in the F3 area, and other information. After receiving the query return from the cloud server, the video client calculates the current frame image including the V1, F1, F3, and F2 area screens in combination with the video encoding stream data received in real time from the cloud, and displays the current frame image.

[0113] In some embodiments of the present application, the above-mentioned S402 can be specifically as follows: in response to the user input operation, obtaining the position information of the floating window area in the video playback interface, and the foreground content data in the floating window area; based on the position information of the floating window area in the video playback interface, performing the following steps for each frame of the video encoding stream: dividing a frame of the video encoding stream (original video data) into encoding data of the video area and encoding data of the floating window area; decoding the encoding data of the video area to obtain video screen data of the video area; decoding the encoding data of the floating window area to obtain video screen data of the floating window area, and then Gaussian filtering the video screen data of the floating window area to obtain background content data of the floating window area after filtering, and overlaying the foreground content data on the foreground layer of the background content data of the floating window area after filtering; synthesizing the video screen data of the video area and the superimposed background content data and foreground content data of the floating window area to generate a frame of image including the video area and the floating window area, and displaying the frame of image on the video playback interface. In this way, by performing a series of processing operations such as decoding -> filtering -> layer overlay on each frame of original video screen data, it can be achieved that during the video playback interface playing the video, the background content data of the floating window area matches the currently playing video screen data in real time, and the background content data of the floating window area has a high degree of matching with the currently playing video screen data, and the transparency of the background content data is less than the transparency of the video screen data.

[0114] For example, the four regions V1, F1, F2, and F3 in each frame of the original video are processed in series, and the complete image of the current frame is displayed only after all four regions are processed. First, the video encoding stream of the current frame of the original video is decoded (to obtain V1 and V2, see Figure 7 (a) and Figure 7 (b) in ); then the decoded V2 is Gaussian filtered to obtain V2' (see Figure 7 (c) in ); then F3 is Gaussian filtered (see Figure 7 (d) in the figure) to obtain F3'; then the static image (corresponding to the area F2) and the text description content (corresponding to the area F3') and F3' and V2' are respectively overlaid on the foreground layer of V2 (see Figure 5A , the original video blocked by the floating window is recorded as V2 (V2 will not be displayed in the foreground of the video playback interface), and finally the current frame image including the floating window is obtained.

[0115] In the embodiment of the present application, the above method can be used to keep the background content data display of the floating window area synchronized with the original video screen data in real time.

[0116] In some embodiments of the present application, the above-mentioned S402 can be specifically as follows: in response to the user input operation, obtain the current frame video coding stream and obtain the position information of the floating window area in the video playback interface, as well as the foreground content data in the floating window area; based on the position information, obtain the target coding data corresponding to the video area and the background coding data corresponding to the floating window area from the current frame coding video stream; decode the target coding data to obtain the current frame video picture data; when the current frame video coding stream is not an integer multiple of the preset frame interval, determine the cached previous frame background content data as the current frame background content data, and generate the current frame image based on the current frame video picture data and the current frame background content data, as well as the foreground content data; and display the current frame image on the video playback interface.

[0117] Exemplarily, the display of the change of the picture in the floating window area is processed asynchronously: a fixed frame interval Δf for refreshing the floating window is set; assuming that the frame number of the first frame of the original video is frame=0, the F1, F3, and F2 areas of the floating window are refreshed (decoding, filtering, and layer overlay processing, etc.) only when frame=n*Δf frames (n=0,1,2,…), and the floating window picture remains unchanged for the rest of the time, and only the V1 area is decoded and refreshed in real time. This method reduces the processing overhead of most frame images during video playback. Although it cannot achieve real-time synchronization of the background content data display of the floating window area with the original video picture data, it can achieve matching of the background content data of the floating window area with the video picture data to a certain extent (sometimes the display of the F1 area and the V1 area will have a poor picture matching, and generally the display picture matching of the F1 area and the V1 area is better), which can improve the user experience compared to the fixed preset background template.

[0118] In some embodiments of the present application, Figure 8 As shown, the above S402 can be specifically implemented through the following S801 to S807.

[0119] S801. In response to the user input operation, obtain position information of a floating window area in a video playback interface and foreground content data in the floating window area.

[0120] The foreground content data corresponds to the static image data in the F2 area and the text description data in the F3 area.

[0121] Among them, the position information is used to indicate the position of the floating window area in the video playback interface, that is, the position of the floating window area in the video playback interface can be determined according to the position information. The area in the video playback interface other than the floating window area is the video area. The video area is used to display the video screen that is not covered by the floating window in the original video screen. The video area corresponds to V1. Then, the encoding data corresponding to the video area in a frame of encoded video stream and the encoding data corresponding to the floating window area can be determined. Therefore, based on the position information, the target encoding data corresponding to the video area and the background encoding data corresponding to the floating window area can be obtained from the current frame encoded video stream.

[0122] S802: Based on the position information, obtain target coded data corresponding to the video area and background coded data corresponding to the floating window area from the current frame coded video stream.

[0123] S803: Decode the target coded data to obtain current frame video picture data.

[0124] The current frame of video picture data is the video picture to be displayed in the video area, corresponding to the video picture to be displayed in V1.

[0125] S804: Obtain current frame motion compensation data from the background coded data.

[0126] S805: Based on the current frame motion compensation data, motion compensation processing is performed on the cached previous frame background content data corresponding to the floating window area to obtain the current frame background content data of the floating window area.

[0127] The background content data is actually the video picture covered by the floating window in the original video picture.

[0128] The background content data of the current frame is the background content picture to be displayed in the floating window area, corresponding to the background content picture to be displayed in F1 and F3.

[0129] The specific motion compensation processing may refer to the existing related technologies and is not limited here.

[0130] S806: Generate a current frame image based on the current frame video picture data, the current frame background content data, and the foreground content data.

[0131] S807: Display the current frame image on the video playback interface.

[0132] The current frame image is the real-time video image including the floating window.

[0133] The embodiment of the present application can obtain the current frame motion compensation data from the background encoding data; based on the current frame motion compensation data, the cached previous frame background content data corresponding to the floating window area is motion compensated to obtain the current frame background content data of the floating window area. In this way, there is no need to perform a series of processing operations such as decoding, filtering and layer overlay processing on each frame of original video picture data (data corresponding to the floating window area), which can reduce computing overhead to a certain extent, reduce the time spent on processing each frame of the image, improve processing efficiency, reduce the occurrence of screen freezes, and improve user experience.

[0134] In video compression, each frame represents a still image. In actual compression, various algorithms are used to reduce the data capacity, among which IPB is the most common. Simply put, I frame is a key frame and belongs to intra-frame compression. It is the same as the compression of Audio Video Interleaved (AVI). P means forward search and B means bidirectional search. They all compress data based on I frame and belong to intra-frame compression.

[0135] Among them, I frame means key frame, which can be understood as the complete preservation of this frame; decoding only requires the data of this frame (because it contains the complete picture). P frame means the difference between this frame and the previous key frame (or P frame). When decoding, the difference defined by this frame needs to be superimposed on the previously cached picture to generate the final picture. P frame does not have complete picture data, that is, difference frame, which only has the data of the picture difference with the previous frame. B frame is a two-way difference frame, that is, B frame records the difference between this frame and the previous and next frames (it is more complicated, there are 4 cases). In other words, to decode B frame, not only the previous cached picture needs to be obtained, but also the next picture needs to be decoded, and the final picture is obtained by superimposing the previous and next pictures with the data of this frame. B frame has high compression rate, but decoding is more complicated and requires more CPU.

[0136] Therefore, in the embodiment of the present application, when the current frame encoded video stream is not a key frame, the current frame background content data can be obtained by the above methods S804 to S805, and when the current frame encoded video stream is a key frame, the current frame background content data can be obtained by the following methods S809 to S810.

[0137] In some embodiments of the present application, Figure 8 ,like Fig. 9 As shown, before the above S804, the floating window display method provided in the embodiment of the present application also includes the following S808, and the above S804 can be specifically implemented by the following S804a.

[0138] S808: Determine whether the current frame encoded video stream is a key frame.

[0139] S804a: When the current frame coded video stream is not a key frame, obtain the current frame motion compensation data from the background coded data.

[0140] In an embodiment of the present application, when the current frame video coding stream is not a key frame, the image that is not a key frame belongs to inter-frame coding, and has a smaller change compared with the previous frame (or the previous frame and the next frame) image. Therefore, when the current frame video coding stream is not a key frame, the background coding data includes motion compensation data of the current frame and the previous frame (the previous frame and the next frame) image. Therefore, the current frame motion compensation data can be obtained from the background coding data; based on the current frame motion compensation data, the previous frame background content data corresponding to the cached floating window area is motion compensated to obtain the current frame background content data of the floating window area. In this way, there is no need to perform a series of processing operations such as decoding, filtering and layer overlay processing on the original video picture data that is not a key frame (the data corresponding to the floating window area). Only motion compensation processing needs to be performed on the cached previous frame background content data to obtain the current frame background content data, which can reduce the computing overhead to a certain extent, reduce the time consumed in processing each frame of the image, improve processing efficiency, reduce the occurrence of screen freezes, and improve user experience.

[0141] like Fig.10 As shown in the figure, a video is composed of frames of images. After a frame of image passes through the video encoder, it is encoded into one or more slices. A frame of image can contain one or more slices, and each slice contains an integer number of macroblocks, that is, each slice includes at least one macroblock, and at most one slice includes the macroblock of the entire image. A macroblock consists of a luminance pixel block and two additional chrominance pixel blocks (each macroblock size in H264 is fixed at 16x16 pixels, while the encoding unit of H265 can be selected from the smallest 8x8 pixels to the largest 64x64 pixels). In each frame of the image, several macroblocks are arranged in the form of slices. The video encoding algorithm encodes macroblocks one by one in units of macroblocks and organizes them into a continuous video code stream.

[0142] The macroblock types include I-type macroblocks, P-type macroblocks and B-type macroblocks (hereinafter referred to as P-type macroblocks and B-type macroblocks are collectively referred to as non-I-type macroblocks). All macroblocks included in a key frame (I frame) image are I-type macroblocks, and macroblocks included in a non-key frame (P frame or B frame) image can all be non-I-type macroblocks, or some can be I-type macroblocks and some can be non-I-type macroblocks.

[0143] In some embodiments of the present application, Fig. 9 ,like Fig.11As shown, after the above S808 and before the above S806, the floating window display method provided in the embodiment of the present application also includes the following S809 to.

[0144] S809: When the current frame coded video stream is a key frame, decode the background coded data to obtain background video picture data.

[0145] S810: Filter the background video picture data to obtain background content data of the current frame.

[0146] In the embodiment of the present application, since the key frame image in the video has a large change compared with its previous frame image, and the key frame image is intra-frame coded, therefore, for the case where the current frame coded video stream is a key frame image, the background coded data does not include motion compensation data, so it is impossible to perform motion compensation processing on the previous frame background content data corresponding to the cached floating window area based on the current frame motion compensation data to obtain the current frame background content data of the floating window area, and even if the motion compensation data of the adjacent frame images of the key frame image are combined to calculate the motion compensation data corresponding to the key frame image, the previous frame background content data corresponding to the cached floating window area is subjected to motion compensation processing to obtain the current frame background content data of the floating window area, the current frame background content data is also greatly different from the actual background content data corresponding to the current frame image, which will make the background content data of the floating window area unable to match the currently played video screen data in real time. Therefore, in the embodiment of the present application, for the background coded data in the key frame coded video stream, a series of processing operations such as first decoding processing, then filtering processing, and then layer overlay processing can be used to obtain the current frame background data content. This ensures that the background content data of the floating window area matches the currently playing video screen data in real time.

[0147] In some embodiments of the present application, the background coded data includes first coded data corresponding to a first area and second coded data corresponding to a second area, the first area is an area in the floating window area where the foreground content data is not displayed, and the second area is an area in the floating window area corresponding to the foreground content data; the current frame background content data includes first background content data and second background content data; combined Fig.11 ,like Fig.12 As shown, the above S809 to S810 can be specifically implemented through the following S809a, S810a, S809b and S810b.

[0148] S809a: Decode the first encoded data to obtain first video picture data.

[0149] S810a: Perform a first filtering process on the first video picture data to obtain first background content data.

[0150] S809b: Decode the second encoded data to obtain second video picture data.

[0151] S810b, performing a second filtering process on the second video picture data to obtain second background content data.

[0152] In the embodiment of the present application, the blurring degree of the area where the foreground content data is not displayed (the first area) is different from that of the area corresponding to the foreground content data (the second area), and the blurring degree of the first area and the second area can be different by filtering the first coded data of the first area and the second coded data of the second area to different degrees. Among them, the filtering parameter of the first filtering process is smaller than the filtering parameter of the second filtering process, so that the blurring degree of the first background content data can be smaller than the blurring degree of the second background content data. Therefore, by filtering the background content data of different areas of the floating window area to different degrees, a layered display effect of the background content data of the floating window area can be achieved.

[0153] Exemplarily, in combination with the above example, when the current frame encoded video stream is a key frame, each macroblock of the three regions V1, F1, and F3 is decoded respectively. For the decoded F1 and F3 regions, they are processed by the following Gaussian blur functions respectively. The Gaussian function for processing the F1 region is: L1(x,y)L1(x,y)=GaussianBlur(I1(x,y),K1(x,y)),σ1); the Gaussian function for processing the F3 region is: L3(x,y)=GaussianBlur(I3(x,y),K3(x,y)),σ3).

[0154] Among them, L1(x,y) and L3(x,y) are the images after Gaussian blur processing on regions F1 and F3 respectively; GaussianBlur is the Gaussian blur function; I1(x,y) and I3(x,y) are the image data of the decoded regions F1 and F3 of the input respectively; K1(x,y) and K3(x,y) are the sizes of the input Gaussian kernels. The larger the size, the more blurred the processed image. Generally, K1 < K3. For example, K1(x,y) = (3,3) and K3(x,y) = (5,5); σ is the standard deviation in the x direction, and its default value is equal to 0.3*((Gaussian kernel x direction size - 1)*0.5 - 1) + 0.8. For example, when K1(x,y) = (3,3), the default value of σ1 = 0.3*((3 - 1)*0.5 - 1) + 0.8 = 0.8; The data L1(x,y) and L3(x,y) after Gaussian blur processing on the current frame regions F1 and F3 will be placed in the cache Buff(x,y) of the video client. The video client superimposes and displays the decoded image of region V1 obtained above, the decoded Gaussian blurred images of regions F1 and F3, the static image of region F2 obtained from the cloud server, and the text description content of region F3 on the screen, that is, the current frame image is displayed.

[0155] In some embodiments of the present application, the background encoding data includes a plurality of macroblock data; combined Fig.12 , such as Fig.13 shown, before the above S804, the floating window display method provided by the embodiments of the present application further includes the following S811. The above S804a can be specifically implemented by the following S804b, and the above S805 can be specifically implemented by the following S805a.

[0156] S811. For each macroblock data, determine whether the current macroblock data is an I-type macroblock.

[0157] S804b. In the case where the current macroblock data is not an I-type macroblock, obtain the current macroblock motion compensation data from the current macroblock data.

[0158] Among them, the current macroblock motion compensation data belongs to the current frame motion compensation data.

[0159] S805a. Based on the current macroblock motion compensation data, determine the previous frame macroblock background content data matching the current macroblock data from the previous frame background content data, and perform motion compensation processing on the previous frame macroblock background content data to obtain the current macroblock background content data.

[0160] Among them, the current macroblock background content data belongs to the current frame background content data. The previous frame background content data stores each macroblock background content data corresponding to the background content of the floating window area.

[0161] The current macroblock motion compensation data includes the motion vector (MV) and prediction residual (PR) of the current macroblock.

[0162] Then, according to the MV of the current macroblock, the best matching block that best matches the current macroblock is found from the background content data of the previous frame (i.e., the background content data of the macroblock of the previous frame), and the sum of the pixel value of the best matching block and the PR of the current macroblock is determined as the background content data of the current macroblock.

[0163] Exemplarily, Buff(x,y) is the background content data of the previous frame. Buff(x,y) is obtained, and then the motion vector (MV) and prediction residual (PR) of the current macroblock (i.e., the motion compensation data of the current frame) are obtained from the source video coding stream; the coordinate position of the best matching block in Buff(x,y) is calculated according to the MV, and then the pixel value of the best matching block (i.e., the background content data of the macroblock of the previous frame) is read from Buff(x,y) according to the coordinate position, and then the sum of the pixel value of the best matching block and PR is determined as the background content data of the current macroblock. For example, the coordinates of the current macroblock in the current frame are (102,205), and the MV of the current macroblock is (2,5). The coordinates of the best matching macroblock that best matches the current macroblock are calculated to be (100,200). Then the pixel value recorded in Buff(100,200) is read from Buff(x,y), and the PR of the current macroblock is added to obtain the pixel value of the macroblock that is finally displayed (i.e., the background content data of the current macroblock).

[0164] In an embodiment of the present application, the motion compensation data between the current frame and the previous frame (or the previous frame and the next frame) in the original video data is reused, and motion compensation processing is performed on the background content data of the floating window area (actually obtained by filtering the original video data). This can improve processing efficiency while ensuring that the background content data of the floating window area matches the currently playing video picture data in real time.

[0165] In an embodiment of the present application, if the current macroblock in the current frame image is not a non-I type macroblock, after obtaining the target coding data corresponding to the video area and the background coding data corresponding to the floating window area from the current frame coded video stream based on the position information, the current macroblock motion compensation data can be obtained from the current macroblock data; based on the current macroblock motion compensation data, the previous frame macroblock background content data that matches the current macroblock data is determined from the previous frame background content data, and the previous frame macroblock background content data is motion compensated to obtain the current macroblock background content data (the current macroblock background content data belongs to the current frame background content data). In this way, there is no need to perform a series of processing operations such as decoding, filtering, and layer overlay processing on the original macroblock data that is not an I type macroblock. Only motion compensation processing needs to be performed on the cached previous frame macroblock background content data to obtain the current macroblock background content data. This can reduce the computing overhead to a certain extent, reduce the time consumed in processing each frame of the image, improve processing efficiency, reduce the occurrence of screen freezes, and improve user experience.

[0166] In some embodiments of the present application, Fig.13 ,like Fig.14 As shown, after the above S811, the floating window display method provided in the embodiment of the present application also includes the following S812 to S813.

[0167] S812: When the current macroblock data is an I-type macroblock, decode the current macroblock data to obtain current macroblock video picture data.

[0168] S813: Filter the current macroblock video picture data to obtain the current macroblock background content data.

[0169] The current macroblock background content data belongs to the current frame background content data.

[0170] Among them, for I-type macroblocks, the background encoding data does not include motion compensation data. Therefore, under normal circumstances, it is impossible to perform motion compensation processing on the cached previous frame background content data corresponding to the floating window area based on the current frame motion compensation data to obtain the current frame background content data of the floating window area. The current macroblock background content data can be obtained by first decoding the I-type macroblocks in the non-key frame image, filtering, and then performing a series of processing operations such as layer overlay processing, so that the current frame background content data including the current macroblock background content data is also less different from the actual background content data corresponding to the current frame image, so that the background content data of the floating window area can match the currently playing video picture data in real time.

[0171] In some embodiments of the present application, Fig.13 ,like Fig.15 As shown, after the above S811, the floating window display method provided in the embodiment of the present application also includes the following S814 to S815.

[0172] S814: When the current macroblock data is an I-type macroblock, obtain supplementary motion compensation data corresponding to the current macroblock from at least one macroblock data adjacent to the current macroblock data.

[0173] The supplementary motion compensation data belongs to the current frame motion compensation data.

[0174] S815. Based on the supplementary motion compensation data, determine the previous frame macroblock background content data that matches the current macroblock data from the previous frame background content data, and perform motion compensation processing on the previous frame macroblock background content data to obtain the current macroblock background content data.

[0175] The current macroblock background content data belongs to the current frame background content data.

[0176] In the embodiment of the present application, since the proportion of I-type macroblocks in non-key frame images is relatively small, and the proportion of non-I-type macroblocks is relatively large, the motion compensation data of the adjacent macroblocks of the I-type macroblocks in the non-key frame image can be combined to calculate the motion compensation data corresponding to the I-type macroblock image, and the background content data of the previous macroblock corresponding to the cached floating window area is motion compensated to obtain the current macroblock background content data, including the current frame background content data of the current macroblock background content data, which is also slightly different from the actual background content data corresponding to the current frame image, so that the background content data of the floating window area can match the currently playing video screen data in real time.

[0177] In an embodiment of the present application, when the current macroblock data is an I-type macroblock, whether the current macroblock data is first decoded, filtered, and then subjected to a series of processing operations such as layer overlay processing to obtain the current macroblock background content data, or the motion compensation data of adjacent macroblocks of the I-type macroblock in the non-key frame image are combined to calculate the motion compensation data corresponding to the I-type macroblock image, the background content data of the previous macroblock corresponding to the cached floating window area is motion compensated to obtain the current macroblock background content data, including the current frame background content data of the current macroblock background content data, which is slightly different from the actual background content data corresponding to the current frame image, thereby enabling the background content data of the floating window area to match the currently playing video picture data in real time.

[0178] In some embodiments of the present application, after the above S807, the floating window display method provided in the embodiments of the present application also includes the following S816.

[0179] S816: Save the background content data of the current frame.

[0180] In the embodiment of the present application, regardless of whether the current frame encoded video stream is a key frame or a non-key frame, the current frame background content data needs to be saved so as to obtain the next frame background content data corresponding to the next frame encoded video stream based on the current frame background content data.

[0181] An embodiment of the present invention also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the various processes of the above-mentioned floating window display method and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0182] The computer readable storage medium may be a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0183] The present invention provides a computer program product, comprising: when the computer program product is run on a computer, the computer is enabled to implement the above-mentioned floating window display method.

[0184] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.

[0185] For the convenience of explanation, the above description has been made in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations can be obtained. The selection and description of the above embodiments are to better explain the principles and practical applications, so that those skilled in the art can better use the embodiments and various different variations of the embodiments suitable for specific use considerations.

Claims

1. A display device, It is characterized in that include: monitor; The user input interface is configured to: receive a user input operation for invoking a floating window when displaying a video playback interface; A controller, configured to: display a floating window area on the video playback interface in response to the user input operation; Among them, during the process of playing the video in the video playback interface, the background content data of the floating window area matches the currently playing video screen data in real time, and the transparency of the background content data is less than the transparency of the video screen data, and the current frame background content data of the floating window area is based on the current frame motion compensation data, and the motion compensation processing is performed on the cached previous frame background content data corresponding to the floating window area.

2. The display device according to claim 1, It is characterized in that The controller is specifically configured to: in response to the user input operation, obtain the position information of the floating window area in the video playback interface and the foreground content data in the floating window area; Based on the position information, obtaining target coded data corresponding to the video area and background coded data corresponding to the floating window area from the current frame coded video stream; Decoding the target coded data to obtain current frame video picture data; Acquire current frame motion compensation data from the background coded data; Based on the current frame motion compensation data, motion compensation processing is performed on the cached previous frame background content data corresponding to the floating window area to obtain the current frame background content data of the floating window area; The video playback interface displays the current frame image including the current frame video screen data, the current frame background content data, and the current frame image of the foreground content data.

3. The display device according to claim 2, It is characterized in that The controller is further configured to: Before acquiring the motion compensation data from the background coded data, determining whether the current frame coded video stream is a key frame; The controller is specifically configured as follows: In a case where the current frame coded video stream is not a key frame, the current frame motion compensation data is obtained from the background coded data.

4. The display device according to claim 3, It is characterized in that The controller is further configured to: After determining whether the current frame coded video stream is a key frame, before generating the current frame image based on the current frame video picture data, the current frame background content data, and the foreground content data, if the current frame coded video stream is a key frame, decoding the background coded data to obtain background video picture data; The background video picture data is filtered to obtain the background content data of the current frame.

5. The display device according to claim 4, It is characterized in that The background coded data includes first coded data corresponding to a first area and second coded data corresponding to a second area, the first area is an area in the floating window area where the foreground content data is not displayed, and the second area is an area in the floating window area corresponding to the foreground content data; the current frame background content data includes first background content data and second background content data; The controller is specifically configured as follows: Decoding the first coded data to obtain first video picture data; Performing a first filtering process on the first video picture data to obtain the first background content data; Decoding the second encoded data to obtain second video picture data; Perform a second filtering process on the second video picture data to obtain second background content data.

6. The display device according to claim 3, It is characterized in that The background coded data includes a plurality of macroblock data; The controller is further configured to: For each macroblock data, before obtaining the motion compensation data from the background coded data, if the current frame coded video stream is not a key frame, determining whether the current macroblock data is a type I macroblock; The controller is specifically configured as follows: When the current macroblock data is not a type I macroblock, obtaining current macroblock motion compensation data from the current macroblock data, the current macroblock motion compensation data belonging to the current frame motion compensation data; Based on the current macroblock motion compensation data, the previous frame macroblock background content data that matches the current macroblock data is determined from the previous frame background content data, and motion compensation processing is performed on the previous frame macroblock background content data to obtain the current macroblock background content data, and the current macroblock background content data belongs to the current frame background content data.

7. The display device according to claim 6, It is characterized in that The controller is further configured to: After determining whether the current macroblock data is an I-type macroblock, if the current macroblock data is an I-type macroblock, decoding the current macroblock data to obtain the current macroblock video picture data; The current macroblock video picture data is filtered to obtain current macroblock background content data, where the current macroblock background content data belongs to the current frame background content data.

8. The display device according to claim 6, It is characterized in that The controller is further configured to: After determining whether the current macroblock data is an I-type macroblock, if the current macroblock data is an I-type macroblock, Acquire supplementary motion compensation data corresponding to the current macroblock from at least one macroblock data adjacent to the current macroblock data, wherein the supplementary motion compensation data belongs to the current frame motion compensation data; Based on the supplementary motion compensation data, the previous frame macroblock background content data that matches the current macroblock data is determined from the previous frame background content data, and motion compensation processing is performed on the previous frame macroblock background content data to obtain the current macroblock background content data, and the current macroblock background content data belongs to the current frame background content data.

9. The display device according to any one of claims 2 to 7, It is characterized in that The controller is further configured to: The current frame background content data is saved.

10. A floating window display method, It is characterized in that Applied to display devices, including: When the video playback interface is displayed, receiving a user input operation to invoke a floating window; In response to the user input operation, displaying a floating window area on the video playback interface; Among them, during the process of playing the video in the video playback interface, the background content data of the floating window area matches the currently playing video screen data in real time, and the transparency of the background content data is less than the transparency of the video screen data, and the current frame background content data of the floating window area is based on the current frame motion compensation data, and the motion compensation processing is performed on the cached previous frame background content data corresponding to the floating window area.

Citation Information

Patent Citations

  • Method and apparatus for encoding and decoding video images

    CN101202913A

  • Coder and coding method

    CN101621685A

  • Method and system for implementing translucent effect

    CN102739983A

  • Method and system for taking over terminal system for video playing

    CN104010223A

  • Moving target detecting and tracking method combining frame difference method and Gaussian mixture model

    CN107507221A