Color enhancement method, terminal system and IPTV terminal system

Color enhancement is performed on different image data through multiple texture conversion containers, and appropriate textures are selected for rendering in the terminal system. This solves the problem of reduced display effects caused by overall color enhancement, achieves differentiated improvement of image data, and improves user experience. experience.

CN118714404APending Publication Date: 2024-09-27FIBERHOME TELECOMMUNICATION TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410879448.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-02
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

The overall color enhancement method in the prior art leads to a decrease in the display effect of image data. Especially when the sharpness or color difference is large, the display effect of part of the image data is poor, affecting the user experience.

Method used

Use multiple texture conversion containers to perform color enhancement on different types of image data, and select a new texture as the target texture in each display cycle through the detection module, which is rendered to the display window by the rendering module to ensure that different types of image data are obtained Effectively improve the display effect.

Benefits of technology

Differentiated color enhancement is achieved to ensure that the display effects of different types of image data on the display window are improved, avoiding the decline in display effects caused by overall color enhancement, and improving user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118714404A
    Figure CN118714404A
Patent Text Reader

Abstract

The invention provides a color enhancement method, a terminal system and an IPTV terminal system, and the method comprises the steps: each texture conversion container continuously obtains bound image data from a display buffer area, and converts the image data into textures through a configured color enhancement algorithm; the detection module detects whether at least one texture conversion container has new textures or not in each display period of the display window, and if any texture conversion container has new textures, one new texture is determined as a target texture of the current display period; and the rendering module renders the target texture to the display window when the target texture exists in the current display period of the display window. According to the method and the device, differentiated color enhancement is realized, and the display effects of different types of image data are ensured to be effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a color enhancement method, a terminal system and an IPTV terminal system. Background Art

[0002] Improving image quality is a constant pursuit in the field of terminal display. With the improvement of terminal processing performance, people's demand for color enhancement function on the terminal is becoming increasingly prominent. The commonly used color enhancement method is to convert the image data in the display buffer into a texture through a color enhancement algorithm, and then render the texture to the display window. However, the image data in the display buffer usually comes from different content sources. When the clarity or color difference is large, the overall color enhancement will cause the display effect of some image data to deteriorate, which is not conducive to user viewing. Summary of the invention

[0003] The present application provides a color enhancement method, a terminal system and an IPTV terminal system, which can solve the technical problem in the prior art that the display effect of some image data decreases after overall color enhancement.

[0004] In a first aspect, an embodiment of the present application provides a color enhancement method, which is applied to a terminal system including a display buffer, a display window, a texture conversion container, a detection module, and a rendering module. There are multiple texture conversion containers, each of which is bound to a type of image data in the display buffer, and a color enhancement algorithm adapted to the image data is configured. The color enhancement method includes:

[0005] Each texture conversion container continuously obtains bound image data from the display buffer and converts the image data into a texture using the configured color enhancement algorithm;

[0006] The detection module detects whether at least one texture conversion container has a new texture in each display cycle of the display window, and if any texture conversion container has a new texture, determines one of the new textures as a target texture of the current display cycle;

[0007] The rendering module renders the target texture to the display window when the target texture exists in the current display period of the display window.

[0008] Further, in one embodiment, for the detection module, the step of detecting whether at least one texture conversion container has a new texture, and if any texture conversion container has a new texture, determining one of the new textures as the target texture of the current display cycle includes:

[0009] Start detecting whether there is a new texture from the first texture conversion container. If the current texture conversion container is detected to have a new texture, it is determined as the target texture of the current display cycle and the detection ends. Otherwise, continue to detect whether the next texture conversion container has a new texture. The lower the refresh rate of the image data bound to the texture conversion container, the earlier the detection order.

[0010] Further, in one embodiment, each texture conversion container has a state identifier;

[0011] For each texture conversion container, after the step of converting the image data into a texture by using the configured color enhancement algorithm, the method further includes:

[0012] Set its own status flag to true, so that the detection module can determine that it has a new texture when the status flag of the texture conversion container is true;

[0013] For the rendering module, after the step of rendering the target texture to the display window, the step further includes:

[0014] Sets the state flag of the texture transfer container that provides the destination texture to false.

[0015] Furthermore, in one embodiment, for the rendering module, the step of rendering the target texture to the display window includes:

[0016] Get the window position and window size of the image data from the texture transfer container that provides the target texture;

[0017] Determine a target position and a target size of the target texture on the display window according to the window position and the window size of the image data;

[0018] Renders the target texture at the target size to the target position on the display window.

[0019] In a second aspect, an embodiment of the present application provides a color enhancement method, which is applied to an IPTV terminal system including a display buffer, a display window, a first texture conversion container, a second texture conversion container, a detection module, and a rendering module, and the color enhancement method includes:

[0020] The first texture conversion container continuously obtains the electronic program menu data from the display buffer, and converts the electronic program menu data into a first texture through a first color enhancement algorithm;

[0021] The second texture conversion container continuously obtains online video data from the display buffer, and converts the online video data into a second texture through a second color enhancement algorithm;

[0022] The detection module detects whether at least one of the first texture conversion container and the second texture conversion container has a new texture in each display cycle of the display window, and if any texture conversion container has a new texture, determines one of the new textures as a target texture of the current display cycle;

[0023] The rendering module renders the target texture to the display window when the target texture exists in the current display period of the display window.

[0024] Further, in one embodiment, the step of detecting whether at least one of the first texture conversion container and the second texture conversion container has a new texture, and if any texture conversion container has a new texture, determining one of the new textures as a target texture of the current display cycle comprises:

[0025] Check whether the first texture conversion container has a new first texture. If so, determine the new first texture as the target texture of the current display cycle. Otherwise, continue to check whether the second texture conversion container has a new second texture. If so, determine the new second texture as the target texture of the current display cycle.

[0026] Further, in one embodiment, the first texture conversion container has a first state identifier, and the second texture conversion container has a second state identifier;

[0027] For the first texture conversion container, after the step of converting the electronic program menu data into the first texture by using the first color enhancement algorithm, the method further includes:

[0028] Setting the first state flag to true, so that the detection module determines that there is a new first texture when the first state flag is true;

[0029] For the second texture conversion container, after the step of converting the online video data into the second texture by the second color enhancement algorithm, the method further includes:

[0030] Setting the second state flag to true, so that the detection module determines that there is a new second texture when the second state flag is true;

[0031] For the rendering module, after the step of rendering the target texture to the display window, the step further includes:

[0032] Sets the state flag of the texture transfer container that provides the destination texture to false.

[0033] Further, in one embodiment, for the rendering module, when the target texture is the second texture, the step of rendering the target texture to the display window includes:

[0034] Obtaining the window position and window size of the online video data from the second texture conversion container;

[0035] Determine a target position and a target size of the second texture on the display window according to the window position and the window size of the online video data;

[0036] Render the second texture at the target size to the target location on the display window.

[0037] In a third aspect, an embodiment of the present application provides a terminal system, the terminal system comprising a display buffer, a display window, a texture conversion container, a detection module and a rendering module, the number of texture conversion containers is multiple, each texture conversion container is bound to a type of image data in the display buffer, and is configured with a color enhancement algorithm adapted to the image data;

[0038] Each texture conversion container is used to continuously obtain bound image data from the display buffer and convert the image data into a texture through the configured color enhancement algorithm;

[0039] The detection module is used to detect whether at least one texture conversion container has a new texture in each display cycle of the display window, and if any texture conversion container has a new texture, one of the new textures is determined as a target texture of the current display cycle;

[0040] The rendering module is used for rendering the target texture to the display window when the target texture exists in the current display period of the display window.

[0041] In a fourth aspect, an embodiment of the present application provides an IPTV terminal system, the IPTV terminal system comprising a display buffer, a display window, a first texture conversion container, a second texture conversion container, a detection module and a rendering module;

[0042] The first texture conversion container is used to continuously obtain the electronic program menu data from the display buffer and convert the electronic program menu data into a first texture through a first color enhancement algorithm;

[0043] The second texture conversion container is used to continuously obtain online video data from the display buffer and convert the online video data into a second texture through a second color enhancement algorithm;

[0044] The detection module is used to detect whether at least one of the first texture conversion container and the second texture conversion container has a new texture in each display cycle of the display window, and if any texture conversion container has a new texture, one of the new textures is determined as a target texture of the current display cycle;

[0045] The rendering module is used for rendering the target texture to the display window when the target texture exists in the current display period of the display window.

[0046] In this application, different types of image data are color enhanced through multiple texture conversion containers. Under the limitation that the display window can only be bound to one model rendering environment, a new texture is selected as the target texture in each display cycle through the detection module, and the rendering module renders it to the display window. Through this application, differentiated color enhancement is achieved, ensuring that the display effects of different types of image data are effectively improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 This is a flow chart of a color enhancement method in one embodiment of the present application;

[0048] Figure 2 This is a schematic diagram of the principle of a color enhancement method in an embodiment of the present application;

[0049] Figure 3 This is a flow chart of a color enhancement method in another embodiment of the present application;

[0050] Figure 4 This is a schematic diagram of the principle of a color enhancement method in another embodiment of the present application. DETAILED DESCRIPTION

[0051] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0052] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.

[0053] In a first aspect, an embodiment of the present application provides a color enhancement method.

[0054] Figure 1 FIG. 1 shows a flow chart of a color enhancement method in an embodiment of the present application. Figure 2 A schematic diagram showing the principle of a color enhancement method in an embodiment of the present application is shown.

[0055] Reference Figure 1 and Figure 2 The color enhancement method is applied to a terminal system including a display buffer, a display window, a texture conversion container, a detection module and a rendering module. The number of texture conversion containers is multiple, each texture conversion container is bound to an image data of the display buffer, and a color enhancement algorithm adapted to the image data is configured. The color enhancement method includes the following steps:

[0056] S11. Each texture conversion container continuously obtains bound image data from the display buffer and converts the image data into a texture through a configured color enhancement algorithm.

[0057] In this embodiment, the display buffer is used to store the parsed image data, and the image data from different content sources are defined as different types of image data. For example, web page data and video data belong to different types of image data, and the color enhancement algorithm adapted to each type of image data may be the same or different. A texture conversion container is allocated for each type of image data, and the two are bound, and a suitable color enhancement algorithm is configured for each texture conversion container. In this way, the texture obtained by converting any image data has a good display effect after being rendered to the display window.

[0058] For example, refer to Figure 2 , the display buffer is used to store image data 1, 2, ..., N, the terminal system texture conversion containers 1, 2, ..., N, texture conversion container 1 is used to convert image data 1 into texture 1, texture conversion container 2 is used to convert image data 2 into texture 2, and so on.

[0059] S12. The detection module detects whether at least one texture conversion container has a new texture in each display cycle of the display window. If any texture conversion container has a new texture, one of the new textures is determined as a target texture in the current display cycle.

[0060] In the current conventional intelligent operating system (such as Android), a display window can only be bound to one model rendering environment. Specifically, in this solution, the rendering module can only render one texture to the display window in each display cycle, and cannot render multiple textures to the display window in the same display cycle. Therefore, this solution adds a detection module based on the existing architecture, and selects the texture that needs to be rendered in each display cycle through the detection module, which is defined as the target texture.

[0061] It should be noted that the current GPU (graphics processing unit) performance can support a maximum update frequency of the display cycle that is much higher than the refresh rate of various image data. By reasonably setting the update frequency of the display cycle, we can avoid the frequent occurrence of multiple new textures in the same display cycle, thereby avoiding long waiting times for some texture rendering, resulting in significant delays and frame misses.

[0062] S13. When the target texture exists in the current display period of the display window, the rendering module renders the target texture to the display window.

[0063] In this embodiment, the rendering module learns which texture is the target texture of the current display cycle through the detection module, and renders it to the display window. If there is no target texture in the current display cycle, no action is taken, so that the current texture remains on the display window.

[0064] Specifically, textures converted by the same texture conversion container have the same texture ID, and textures converted by different texture conversion containers have different texture IDs. After the detection module determines the target texture, it sends the texture ID of the target texture to the rendering module, and the rendering module obtains the target texture according to the texture ID for rendering.

[0065] Therefore, in this embodiment, color enhancement is performed on different types of image data through multiple texture conversion containers. Under the limitation that the display window can only be bound to one model rendering environment, a new texture is selected as the target texture in each display cycle through the detection module, and rendered to the display window by the rendering module. Through this embodiment, differentiated color enhancement is achieved, ensuring that the display effects of different types of image data are effectively improved.

[0066] Further, in one embodiment, for the detection module, the step of detecting whether at least one texture conversion container has a new texture, and if any texture conversion container has a new texture, determining one of the new textures as the target texture of the current display cycle includes:

[0067] Start detecting whether there is a new texture from the first texture conversion container. If the current texture conversion container is detected to have a new texture, it is determined as the target texture of the current display cycle and the detection ends. Otherwise, continue to detect whether the next texture conversion container has a new texture. The lower the refresh rate of the image data bound to the texture conversion container, the earlier the detection order.

[0068] In the present embodiment, the principle by which the detection module selects the target texture is to give priority to new textures converted from image data with a low refresh rate. This is because the texture rendered on the display window will remain on the display window unless the same position is covered by a new texture or cleared. The texture updated by image data with a low refresh rate will usually stay for a relatively long time each time, and the update is usually triggered by active user operations. For example, when a user creates, switches, or closes a web page through a browser, the user will pay close attention to whether the updates caused by their operations are promptly fed back to the display window. If the update is not timely, the user may easily perceive obvious display delays.

[0069] Accordingly, during the long period of time when the image data with a low refresh rate is not updated, the texture updated by the image data with a high refresh rate is rendered each time, and a high update frequency is maintained on the display window. During the short period of time when the image data with a low refresh rate is updated, even if the update frequency is reduced, the overall update frequency is almost unaffected due to its small proportion. In addition, the update of image data with a high refresh rate is usually triggered automatically rather than by the user's active operation. For example, when the user's attention is focused on the update caused by his operation in real time, the attention to the update of other image data will decrease, and even if the update frequency is reduced, it is not easy to perceive.

[0070] Therefore, through this embodiment, the new texture corresponding to the image data with a low refresh rate is preferentially determined as the target texture of the current display cycle, and rendered to the display window by the rendering module, thereby ensuring that the image data with a low refresh rate can be synchronously updated on the display window in a timely manner after being updated in the background, and the update frequency of the image data with a high refresh rate on the display window is almost unaffected, thereby avoiding the user's perception of obvious display delays.

[0071] Further, in one embodiment, each texture conversion container has a state identifier;

[0072] For each texture conversion container, after the step of converting the image data into a texture by using the configured color enhancement algorithm, the method further includes:

[0073] Set its own status flag to true, so that the detection module can determine that it has a new texture when the status flag of the texture conversion container is true;

[0074] For the rendering module, after the step of rendering the target texture to the display window, the step further includes:

[0075] Sets the state flag of the texture transfer container that provides the destination texture to false.

[0076] In this embodiment, a status flag is assigned to each texture conversion container. The texture conversion container sets the status flag to true after performing a conversion operation, and the rendering module sets the status flag to false after performing a rendering operation. This enables the detection module to quickly and accurately determine whether the texture conversion container has a new texture based on the status flag, thereby improving the processing performance of the terminal system.

[0077] Furthermore, in one embodiment, for the rendering module, the step of rendering the target texture to the display window includes:

[0078] Get the window position and window size of the image data from the texture transfer container that provides the target texture;

[0079] Determine a target position and a target size of the target texture on the display window according to the window position and the window size of the image data;

[0080] Renders the target texture at the target size to the target position on the display window.

[0081] In the existing scheme, all image data are converted into a texture as a whole, and the texture is displayed in full screen on the display window, and the rendering window does not need to calculate the size and position of the texture. In this embodiment, different image data are converted into multiple textures respectively, and each image data may have different requirements for the window position and window size, and the requirements of individual image data for the window position and window size may also change over time. The rendering module determines the target position and target size of the target texture on the display window according to the window position and window size of the image data, thereby ensuring that the position and size of the target texture after rendering meet the requirements.

[0082] Optionally, the display window and the rendering module are GLSurfaceView, and the texture conversion container is SurfaceTexture.

[0083] GLSurfaceView is a control that comes with the Android system to display the window and EGL environment. It manages a background thread dedicated to OpenGL rendering and is also responsible for creating and managing the EGL environment. EGL is an interface for managing graphics contexts and rendering targets, and is mainly used for graphics rendering in embedded systems.

[0084] SurfaceTexture is an intermediary in the Android system that obtains image data and converts it into a texture and passes it to OpenGL ES for rendering. SurfaceTexture creates an OpenGL texture object internally and exposes its ID to the client. The application can bind in OpenGL ES through this texture ID, thereby directly mapping each frame of image data received by SurfaceTexture into a texture that can be operated by OpenGL.

[0085] Further, in one embodiment, the terminal system is an IPTV terminal system;

[0086] The texture conversion container includes a first texture conversion container and a second texture conversion container;

[0087] The first texture conversion container is bound to the electronic program menu data in the display buffer, and the second texture conversion container is bound to the online video data in the display buffer.

[0088] The notable feature of IPTV terminal systems is that they need to display the Electronic Program Guide (EPG) through a browser and play online videos through a player, and usually need to display both contents in a display window at the same time. Since the EPG data and the online video data come from different content sources, there is usually a large color difference between the two. For example, the main color of the EPG is red, and the main color of the online video is blue. The definition of the two is also different. For example, the definition of the EPG is 720P, and the definition of the online video is 4K. The existing solutions have obvious defects in the IPTV terminal system, which is not conducive to user viewing.

[0089] Through this embodiment, differentiable color enhancement is achieved for the electronic program menu and online video, ensuring that the display effects of both are effectively improved.

[0090] Furthermore, in one embodiment, the detection module detects the first texture conversion container and the second texture conversion container in sequence.

[0091] In this embodiment, the refresh rate of the electronic program menu data is lower than the refresh rate of the online video data. The update of the electronic program menu data is usually triggered by the user's active operation, and the update of the online video data is usually triggered automatically. The detection order of the first texture conversion container is set before the second texture conversion container. According to the above analysis, the probability of the user perceiving the display delay is further reduced, which is easy to promote.

[0092] The following is a more specific description of the steps of applying the color enhancement method in the IPTV terminal system.

[0093] In a second aspect, an embodiment of the present application provides a color enhancement method.

[0094] Figure 3 A schematic diagram showing a flow chart of a color enhancement method in another embodiment of the present application is shown; Figure 4 A schematic diagram showing the principle of a color enhancement method in another embodiment of the present application is shown.

[0095] Reference Figure 3 and Figure 4 The color enhancement method is applied to an IPTV (Internet Protocol TV) terminal system including a display buffer, a display window, a first texture conversion container, a second texture conversion container, a detection module and a rendering module. The color enhancement method includes the following steps:

[0096] S21, the first texture conversion container continuously obtains the electronic program menu data from the display buffer, and converts the electronic program menu data into a first texture through a first color enhancement algorithm;

[0097] S22, the second texture conversion container continues to obtain online video data from the display buffer, and converts the online video data into a second texture through a second color enhancement algorithm;

[0098] S23, the detection module detects whether at least one of the first texture conversion container and the second texture conversion container has a new texture in each display cycle of the display window, and if any texture conversion container has a new texture, determines one of the new textures as the target texture of the current display cycle;

[0099] S24. When the target texture exists in the current display period of the display window, the rendering module renders the target texture to the display window.

[0100] In this embodiment, the electronic program menu data is bound to the first texture conversion container, and the first color enhancement algorithm is configured for the first texture conversion container. The online video data is bound to the second texture conversion container, and the second color enhancement algorithm is configured for the second texture conversion container. The first color enhancement algorithm and the second color enhancement algorithm can be the same or different, and are configured according to the actual situation of the electronic program menu data and the online video data. In this way, the electronic program menu and the online video are enhanced in a differentiated manner, ensuring that the display effects of both are effectively improved.

[0101] Further, in one embodiment, the step of detecting whether at least one of the first texture conversion container and the second texture conversion container has a new texture, and if any texture conversion container has a new texture, determining one of the new textures as a target texture of the current display cycle comprises:

[0102] Check whether the first texture conversion container has a new first texture. If so, determine the new first texture as the target texture of the current display cycle. Otherwise, continue to check whether the second texture conversion container has a new second texture. If so, determine the new second texture as the target texture of the current display cycle.

[0103] In this embodiment, the refresh rate of the electronic program menu data is lower than the refresh rate of the online video data. The update of the electronic program menu data is usually triggered by the user's active operation, and the update of the online video data is usually triggered automatically. The detection order of the first texture conversion container is set before the second texture conversion container. According to the above analysis, the probability of the user perceiving the display delay is further reduced, which is easy to promote.

[0104] Further, in one embodiment, the first texture conversion container has a first state identifier, and the second texture conversion container has a second state identifier;

[0105] For the first texture conversion container, after the step of converting the electronic program menu data into the first texture by using the first color enhancement algorithm, the method further includes:

[0106] Setting the first state flag to true, so that the detection module determines that there is a new first texture when the first state flag is true;

[0107] For the second texture conversion container, after the step of converting the online video data into the second texture by the second color enhancement algorithm, the method further includes:

[0108] Setting the second state flag to true, so that the detection module determines that there is a new second texture when the second state flag is true;

[0109] For the rendering module, after the step of rendering the target texture to the display window, the step further includes:

[0110] Sets the state flag of the texture transfer container that provides the destination texture to false.

[0111] In this embodiment, the detection module can quickly and accurately determine whether there are new first textures and second textures according to the first state identifier and the second state identifier, thereby improving the processing performance of the IPTV terminal system.

[0112] Further, in one embodiment, for the rendering module, when the target texture is the second texture, the step of rendering the target texture to the display window includes:

[0113] Obtaining the window position and window size of the online video data from the second texture conversion container;

[0114] Determine a target position and a target size of the second texture on the display window according to the window position and the window size of the online video data;

[0115] Render the second texture at the target size to the target location on the display window.

[0116] In this embodiment, in the IPTV terminal system, the electronic program menu data is always displayed in full screen on the display window, and the requirements of the online video data for the window position and window size will change over time. The rendering module determines the target position and target size of the second texture on the display window according to the window position and window size of the online video data, thereby ensuring that the position and size of the second texture after rendering meet the requirements.

[0117] It is particularly noted that when the electronic program menu data and the online video data need to be displayed simultaneously in the display window, the content of the electronic program menu data is empty in the window position corresponding to the online video data. After the new first texture is rendered on the display window, it will not cover the previous second texture, causing the online video screen to be blocked.

[0118] Optionally, the display window and the rendering module are GLSurfaceView, and the first texture conversion container and the second texture conversion container are SurfaceTexture.

[0119] In a third aspect, an embodiment of the present application provides a terminal system.

[0120] The terminal system includes a display buffer, a display window, a texture conversion container, a detection module and a rendering module. The number of texture conversion containers is multiple, each texture conversion container is bound to a type of image data in the display buffer, and is configured with a color enhancement algorithm adapted to the image data.

[0121] Each texture conversion container is used to continuously obtain bound image data from the display buffer and convert the image data into a texture through the configured color enhancement algorithm;

[0122] The detection module is used to detect whether at least one texture conversion container has a new texture in each display cycle of the display window, and if any texture conversion container has a new texture, one of the new textures is determined as a target texture of the current display cycle;

[0123] The rendering module is used for rendering the target texture to the display window when the target texture exists in the current display period of the display window.

[0124] Furthermore, in one embodiment, the detection module is used to:

[0125] Start detecting whether there is a new texture from the first texture conversion container. If the current texture conversion container is detected to have a new texture, it is determined as the target texture of the current display cycle and the detection ends. Otherwise, continue to detect whether the next texture conversion container has a new texture. The lower the refresh rate of the image data bound to the texture conversion container, the earlier the detection order.

[0126] Further, in one embodiment, each texture conversion container has a state identifier;

[0127] The texture conversion container is also used to set its own state flag to true after converting the image data into texture through the configured color enhancement algorithm, so that the detection module can determine that it has a new texture when the state flag of the current texture conversion container is true;

[0128] The rendering module is further configured to set the state flag of the texture conversion container providing the target texture to false after rendering the target texture to the display window.

[0129] Furthermore, in one embodiment, the rendering module is used to:

[0130] Get the window position and window size of the image data from the texture transfer container that provides the target texture;

[0131] Determine a target position and a target size of the target texture on the display window according to the window position and the window size of the image data;

[0132] Renders the target texture at the target size to the target position on the display window.

[0133] Furthermore, in one embodiment, the display window and the rendering module are GLSurfaceView, and the texture conversion container is SurfaceTexture.

[0134] Further, in one embodiment, the terminal system is an IPTV terminal system;

[0135] The texture conversion container includes a first texture conversion container and a second texture conversion container;

[0136] The first texture conversion container is bound to the electronic program menu data in the display buffer, and the second texture conversion container is bound to the online video data in the display buffer.

[0137] Furthermore, in one embodiment, the detection module detects the first texture conversion container and the second texture conversion container in sequence.

[0138] Among them, the functional implementation of each module in the above terminal system corresponds to each step in the above color enhancement method embodiment, and its functions and implementation processes are no longer repeated here.

[0139] In a fourth aspect, an embodiment of the present application provides an IPTV terminal system.

[0140] The IPTV terminal system includes a display buffer, a display window, a first texture conversion container, a second texture conversion container, a detection module and a rendering module;

[0141] The first texture conversion container is used to continuously obtain the electronic program menu data from the display buffer and convert the electronic program menu data into a first texture through a first color enhancement algorithm;

[0142] The second texture conversion container is used to continuously obtain online video data from the display buffer and convert the online video data into a second texture through a second color enhancement algorithm;

[0143] The detection module is used to detect whether at least one of the first texture conversion container and the second texture conversion container has a new texture in each display cycle of the display window, and if any texture conversion container has a new texture, one of the new textures is determined as a target texture of the current display cycle;

[0144] The rendering module is used for rendering the target texture to the display window when the target texture exists in the current display period of the display window.

[0145] Furthermore, in one embodiment, the detection module is used to:

[0146] Check whether the first texture conversion container has a new first texture. If so, determine the new first texture as the target texture of the current display cycle. Otherwise, continue to check whether the second texture conversion container has a new second texture. If so, determine the new second texture as the target texture of the current display cycle.

[0147] Further, in one embodiment, the first texture conversion container has a first state identifier, and the second texture conversion container has a second state identifier;

[0148] The first texture conversion container is further used to set the first state flag to true after converting the electronic program menu data into the first texture through the first color enhancement algorithm, so that the detection module can determine that there is a new first texture when the first state flag is true;

[0149] The second texture conversion container is further used to set the second state flag to true after converting the online video data into the second texture through the second color enhancement algorithm, so that the detection module can determine that there is a new second texture when the second state flag is true;

[0150] The rendering module is further used to set the state flag of the texture conversion container providing the target texture to false after rendering the target texture to the display window.

[0151] Further, in one embodiment, when the target texture is the second texture, the rendering module is used to:

[0152] Obtaining the window position and window size of the online video data from the second texture conversion container;

[0153] Determine a target position and a target size of the second texture on the display window according to the window position and the window size of the online video data;

[0154] Render the second texture at the target size to the target location on the display window.

[0155] Furthermore, in one embodiment, the display window and the rendering module are GLSurfaceView, and the first texture conversion container and the second texture conversion container are SurfaceTexture.

[0156] Among them, the functional implementation of each module in the above-mentioned IPTV terminal system corresponds to each step in the above-mentioned color enhancement method embodiment, and its functions and implementation processes are no longer repeated here.

[0157] It should be noted that the serial numbers of the above-mentioned embodiments of the present application are only for description and do not represent the advantages or disadvantages of the embodiments.

[0158] The terms "including" and "having" and any variations thereof in the specification and claims of this application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices. The terms "first", "second" and "third" are used to distinguish different objects, etc., and do not represent a sequence, nor do they limit "first", "second" and "third" to different types.

[0159] In the description of the embodiments of the present application, "exemplary", "for example" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary", "for example" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "for example" or "for example" is intended to present related concepts in a specific way.

[0160] In the description of the embodiments of the present application, unless otherwise specified, “ / ” means or, for example, A / B can mean A or B; the “and / or” in the text is merely a description of the association relationship of associated objects, indicating that three relationships may exist, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, “multiple” refers to two or more than two.

[0161] In some processes described in the embodiments of the present application, multiple operations or steps that appear in a specific order are included, but it should be understood that these operations or steps may not be executed in the order in which they appear in the embodiments of the present application or in parallel, and the sequence number of the operation is only used to distinguish the different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed in sequence or in parallel, and these operations or steps may be combined.

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

[0163] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.

Claims

1. A color enhancement method, It is characterized in that The invention is applied to a terminal system including a display buffer, a display window, a texture conversion container, a detection module and a rendering module, wherein the number of texture conversion containers is multiple, each texture conversion container is bound to a type of image data in the display buffer, and a color enhancement algorithm adapted to the image data is configured, and the color enhancement method comprises: Each texture conversion container continuously obtains bound image data from the display buffer and converts the image data into a texture using the configured color enhancement algorithm; The detection module detects whether at least one texture conversion container has a new texture in each display cycle of the display window, and if any texture conversion container has a new texture, determines one of the new textures as a target texture of the current display cycle; The rendering module renders the target texture to the display window when the target texture exists in the current display period of the display window.

2. A color enhancement method as claimed in claim 1, It is characterized in that For the detection module, the step of detecting whether at least one texture conversion container has a new texture, and if any texture conversion container has a new texture, determining one of the new textures as the target texture of the current display cycle includes: Start detecting whether there is a new texture from the first texture conversion container. If the current texture conversion container is detected to have a new texture, it is determined as the target texture of the current display cycle and the detection ends. Otherwise, continue to detect whether the next texture conversion container has a new texture. The lower the refresh rate of the image data bound to the texture conversion container, the earlier the detection order.

3. The color enhancement method according to claim 1, It is characterized in that Each texture conversion container has a state flag; For each texture conversion container, after the step of converting the image data into a texture by using the configured color enhancement algorithm, the method further includes: Set its own status flag to true, so that the detection module can determine that it has a new texture when the status flag of the texture conversion container is true; For the rendering module, after the step of rendering the target texture to the display window, the step further includes: Sets the state flag of the texture transfer container that provides the destination texture to false.

4. The color enhancement method according to claim 1, It is characterized in that For the rendering module, the step of rendering the target texture to the display window includes: Get the window position and window size of the image data from the texture transfer container that provides the target texture; Determine a target position and a target size of the target texture on the display window according to the window position and the window size of the image data; Renders the target texture at the target size to the target position on the display window.

5. A color enhancement method, It is characterized in that Applied to an IPTV terminal system including a display buffer, a display window, a first texture conversion container, a second texture conversion container, a detection module and a rendering module, the color enhancement method includes: The first texture conversion container continuously obtains the electronic program menu data from the display buffer, and converts the electronic program menu data into a first texture through a first color enhancement algorithm; The second texture conversion container continuously obtains online video data from the display buffer, and converts the online video data into a second texture through a second color enhancement algorithm; The detection module detects whether at least one of the first texture conversion container and the second texture conversion container has a new texture in each display cycle of the display window, and if any texture conversion container has a new texture, determines one of the new textures as a target texture of the current display cycle; The rendering module renders the target texture to the display window when the target texture exists in the current display period of the display window.

6. A color enhancement method as claimed in claim 5, It is characterized in that The step of detecting whether at least one of the first texture conversion container and the second texture conversion container has a new texture, and if any texture conversion container has a new texture, determining one of the new textures as the target texture of the current display cycle comprises: Check whether the first texture conversion container has a new first texture. If so, determine the new first texture as the target texture of the current display cycle. Otherwise, continue to check whether the second texture conversion container has a new second texture. If so, determine the new second texture as the target texture of the current display cycle.

7. The color enhancement method according to claim 5, It is characterized in that The first texture conversion container has a first state identifier, and the second texture conversion container has a second state identifier; For the first texture conversion container, after the step of converting the electronic program menu data into the first texture by using the first color enhancement algorithm, the method further includes: Setting the first state flag to true, so that the detection module determines that there is a new first texture when the first state flag is true; For the second texture conversion container, after the step of converting the online video data into the second texture by the second color enhancement algorithm, the method further includes: Setting the second state flag to true, so that the detection module determines that there is a new second texture when the second state flag is true; For the rendering module, after the step of rendering the target texture to the display window, the step further includes: Sets the state flag of the texture transfer container that provides the destination texture to false.

8. The color enhancement method according to claim 5, It is characterized in that For the rendering module, when the target texture is the second texture, the step of rendering the target texture to the display window includes: Obtaining the window position and window size of the online video data from the second texture conversion container; Determine a target position and a target size of the second texture on the display window according to the window position and the window size of the online video data; Render the second texture at the target size to the target location on the display window.

9. A terminal system, It is characterized in that The terminal system includes a display buffer, a display window, a texture conversion container, a detection module and a rendering module. There are multiple texture conversion containers, each of which is bound to a type of image data in the display buffer and is configured with a color enhancement algorithm adapted to the image data. Each texture conversion container is used to continuously obtain bound image data from the display buffer and convert the image data into a texture through the configured color enhancement algorithm; The detection module is used to detect whether at least one texture conversion container has a new texture in each display cycle of the display window, and if any texture conversion container has a new texture, one of the new textures is determined as a target texture of the current display cycle; The rendering module is used for rendering the target texture to the display window when the target texture exists in the current display period of the display window.

10. An IPTV terminal system, It is characterized in that The IPTV terminal system comprises a display buffer, a display window, a first texture conversion container, a second texture conversion container, a detection module and a rendering module; The first texture conversion container is used to continuously obtain the electronic program menu data from the display buffer and convert the electronic program menu data into a first texture through a first color enhancement algorithm; The second texture conversion container is used to continuously obtain online video data from the display buffer and convert the online video data into a second texture through a second color enhancement algorithm; The detection module is used to detect whether at least one of the first texture conversion container and the second texture conversion container has a new texture in each display cycle of the display window, and if any texture conversion container has a new texture, one of the new textures is determined as a target texture of the current display cycle; The rendering module is used for rendering the target texture to the display window when the target texture exists in the current display period of the display window.