Method and system for implementing translucent effect

A translucent, window technology, applied in the parts of the TV system, the parts of the color TV, the TV, etc., can solve the problems of difficult to achieve translucent controls, difficult to respond and interact with mouse events, and achieve convenient mouse interaction. Responsiveness, wide application range, effect of reducing difficulty

Active Publication Date: 2012-10-17
TENCENT TECH (SHENZHEN) CO LTD
4 Cites 15 Cited by

AI-Extracted Technical Summary

Problems solved by technology

In the prior art, the post-processing method of video data is mainly used, and the content to be translucent is fused into the video data to be displayed to achieve a translucent effect. The post-processing method of video data is used. Although the application scenarios are relatively wide, but , ...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Abstract

The invention discloses a method for implementing a translucent effect. The method comprises the following steps: video data corresponding to a predefined translucent window is captured from video data according to the position and the size of the translucent window, and transferred to the translucent window; self-processing is performed by the translucent window according to the captured video data; and the processed translucent window is superimposed on a video window. Correspondingly, the invention discloses a system for implementing the translucent effect. According to the invention, an independent window is used to be superimposed on a video region, the video data is captured for being set as the background of the independent window, and processes, such as translucent control plotting, mouse interaction, etc., on the video region are made to be independent from video processing, so that difficulties in development of controls, such as a translucent control bar and the like, on the video region is greatly reduced. Moreover, dependence on the .Net Framework is not needed according to the invention, so a wide application range and ease of implementation are achieved.

Application Domain

Technology Topic

Self processingComputer graphics (images) +1

Image

  • Method and system for implementing translucent effect
  • Method and system for implementing translucent effect
  • Method and system for implementing translucent effect

Examples

  • Experimental program(1)

Example Embodiment

[0032] The basic idea of ​​the present invention is: according to the preset position and size of the translucent window, video data corresponding to the translucent window is intercepted from the video data and transferred to the translucent window; the translucent window is paired according to the intercepted video data Process itself; superimpose the processed translucent window on the video window.
[0033] figure 1 It is a schematic flow chart of the method for realizing the translucent effect of the present invention, as figure 1 As shown, the method includes:
[0034] Step 101: When the player needs to display video data in the video window, according to the preset position and size of the translucent window, the video data corresponding to the translucent window is intercepted from the video data that needs to be displayed in the video window and transferred to the translucent window. window.
[0035] After the player decodes one frame of video data and scales the decoded video data to the size of the video window, it needs to pass the scaled video data to the graphics card, and the graphics card displays the video data from the player in the video window ; Among them, the graphics card uses hardware acceleration to display the video data from the player in the video window.
[0036] Step 102: The translucent window processes itself according to the intercepted video data from the player.
[0037] It should be noted that for the case where the semi-transparent window is a control window, the semi-transparent window processing itself according to the captured video data from the player includes: drawing a background and drawing a foreground, where the drawing background is : Draw the background according to the intercepted video data, that is, copy the video content of the video playing area in the video window occupied by the control window as the background; the drawing foreground is: draw the control on the drawn background in a semi-transparent manner.
[0038] Step 103: Superimpose the processed translucent window on the video window.
[0039] In the present invention, the video frame change or the video window size change can be triggered figure 1 The process.
[0040] figure 2 It is a detailed flow diagram of a method for achieving a translucent effect in an embodiment of the present invention, such as figure 2 As shown, the method includes:
[0041] Step 201: when the player needs to display video data in the video window, decode one frame of video data.
[0042] Here, after starting to play, the player starts to decode the video data. It should be noted that the process of decoding video data by the player is continuous, that is, this process needs to be executed once every frame of video data is decoded.
[0043] Step 202: The player scales the decoded video data to the size of the video window, and then goes to step 203 and step 205.
[0044] Step 203: The player transfers the scaled video data to the graphics card.
[0045] Step 204: The graphics card displays the video data from the player in the video window, and then goes to step 209.
[0046] Specifically, the graphics card generally uses hardware acceleration to display video data from the player in the video window.
[0047] Step 205: The player intercepts the video data corresponding to the semi-transparent window from the scaled video data according to the preset position and size of the semi-transparent window, and transfers the video data to the semi-transparent window.
[0048] Step 206 Step 208: The translucent window is processed according to the intercepted video data from the player.
[0049] Specifically, when a translucent control needs to be implemented, the translucent window is processed according to the captured video data from the player, that is, translucent drawing and mixing are performed, specifically including drawing background and drawing foreground; wherein, the background part The drawing is the video content of the video playback area occupied by the control window. The foreground part can be various controls according to specific needs. These controls are drawn on the copied video background in a semi-transparent manner.
[0050] It should be noted that when the video is redrawn due to the change of the video frame or the size of the video window, the video data is re-intercepted, the background of the control window is updated, and the control window is forced to redraw.
[0051] Step 209: Superimpose the processed translucent window on the video window to achieve a translucent effect.
[0052] In order to achieve this solution, the player needs to implement the following functions: the player can accept the settings and specify a certain area of ​​the window as a translucent area. When the video content is changed or the size of the video window is changed during the normal playback process, the player takes the initiative The video picture in the translucent area is transferred to the upper translucent window such as the control window, and the translucent window such as the control window is responsible for the subsequent translucent mixing and drawing.
[0053] The key of the present invention is to create a translucent window such as a control window above the video area, and set the background of the independent translucent window by cutting out the video data, so that the translucent control on the video area can be drawn , Mouse interaction and other processing are separated from video processing.
[0054] image 3 It is a schematic diagram of the positional relationship between the video window and the control window in the embodiment of the present invention, such as image 3 As shown, A is the video window, C is the control window, and B is the area occupied by the control window in the video window. After the video screen is updated, take out the video data in area B, copy it to control window C as the background, and force control window C to redraw. In the process of redrawing control window C, first draw the video data of area B as the background, and then draw other controls to be displayed in the window, such as buttons, scroll bars, etc. The process of drawing controls can be applied to support translucent effects The skin engine to complete. In this way, the effect that the end user sees is that the contents of the control window C are all translucently integrated into the video and can respond to the user's mouse operation. For example, the user can click the pause, fast forward, and full screen in the control window C with the mouse. Button to pause, fast forward, full screen and other operations on the video being played in video window A.
[0055] The present invention also correspondingly proposes a system for realizing the translucent effect, which includes a player, a translucent window, a video window and an overlay module; wherein,
[0056] The player is configured to intercept corresponding video data from the video data according to the position and size of the semi-transparent window and transfer it to the semi-transparent window;
[0057] The translucent window is used to process itself according to the intercepted video data from the player;
[0058] The superimposing module is used to superimpose the processed translucent window on the video window.
[0059] The translucent window is a control window, and the translucent window processing itself according to the captured video data from the player includes: drawing a background and drawing a foreground, wherein,
[0060] The drawing background is: drawing a background according to the intercepted video data, that is, copying the video content of the control window occupying the video playing area in the video window as the background,
[0061] The drawing foreground is: drawing the control onto the drawn background in a semi-transparent manner.
[0062] The player is also used to decode a frame of video data before transmitting the corresponding video data from the video data to the translucent window according to the position and size of the translucent window, and to decode the decoded video The data is scaled to the size of the video window,
[0063] According to the position and size of the translucent window, the player intercepts the corresponding video data from the video data and transmits it to the translucent window: the player extracts the zoomed video data from the zoomed video data according to the position and size of the translucent window The corresponding video data is intercepted and delivered to the semi-transparent window.
[0064] The system also includes a graphics card,
[0065] The player is also configured to decode one frame of video data and scale the decoded video data to the size of the video window, and then transfer the scaled video data to the graphics card;
[0066] The graphics card is used to display video data from the player in the video window.
[0067] The display of video data from the player by the graphics card in the video window is: the graphics card uses hardware acceleration to display the video data from the player in the video window.
[0068] According to the position and size of the translucent window, the player intercepts the corresponding video data from the video data and transmits it to the translucent window: when the video frame changes or the size of the video window changes, the player according to the position and size of the translucent window Size, the corresponding video data is intercepted from the scaled video data and transferred to the translucent window.
[0069] It can be seen that the present invention superimposes a window of appropriate size on the video area, and extracts the video data of the player and the window superimposed area from the video player in real time, and sets it as the background content of the window, on this basis Then complete other functions of the window, such as button drawing and interactive response. This solution does not need to rely on .Net Framework, does not need to use layered windows, and can use ordinary sub-windows to be superimposed on the video area. Because it is an independent window, it can easily complete the mouse interaction response, and can apply the general Windows skin engine, which greatly reduces the video Difficulty in developing semi-transparent control bars and other controls on the area.
[0070] The foregoing descriptions are only preferred embodiments of the present invention, and are not used to limit the protection scope of the present invention.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Similar technology patents

Classification and recommendation of technical efficacy words

Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products