An animation display method, related device and storage medium

By establishing a dynamic correspondence between brightness and transparency, performing step-by-step linearization and segmented suppression, reconstructing the transparent transition layer, and employing bidirectional smooth blending, the problems of color inversion and halo in transparent overlay animations were solved, achieving stability and naturalness in animation display.

CN122115291APending Publication Date: 2026-05-29WEIFANG UNIVERSITY

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
WEIFANG UNIVERSITY
Filing Date
2026-05-05
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

In existing technologies, when performing transparent overlay animations, the highlighted background area can easily lead to abnormal transparency calculations, resulting in color inversion or edge glow artifacts, which affect the stability of the animation display and the reliability of the system.

Method used

By establishing a dynamic correspondence between brightness and transparency, performing step-by-step linearization and segmented suppression, the transparent transition layer is reconstructed, and a bidirectional smooth blending method is used to repair the inverted color area, achieving smooth transition and continuous display.

Benefits of technology

It effectively avoids the reverse offset and overflow of transparency values, eliminates color inversion and halo traces, and improves the naturalness of animation display and system stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122115291A_ABST
    Figure CN122115291A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of graphic display, and discloses an animation display method, related devices and a storage medium, wherein the animation display method comprises the following steps: S1, in an animation display scene, for a transparent superposition region containing a highlight background in a picture, determining a luminance change range and establishing a corresponding relationship between luminance and transparency, forming a unified display reference basis; S2, according to the display reference basis, performing step-by-step linearization processing on foreground color, background color and transparency, limiting the numerical range of color and transparency, and preventing abnormal deviation of transparency in the highlight pixel interval; through dynamic corresponding and linearization inhibition control of luminance and transparency, the application stabilizes the transparency change in the highlight area, avoids reverse color and light emission artifacts; and through transparent transition layer reconstruction and frame sequence output control, smooth transition and continuous display are realized, and the naturalness and system stability of animation display are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of graphics display technology, and more specifically to an animation display method, related apparatus, and storage medium. Background Technology

[0002] Animated display refers to the display method of presenting visual changes in the form of a continuous sequence of images on electronic devices, making static images appear dynamic. Its core principle is to create a continuous visual experience by rapidly switching multiple frames of images within a short time interval, taking advantage of the persistence of vision in the human eye. Animated display usually involves technical aspects such as image generation, frame transition, rendering control, and display driving. It can realize dynamic changes in the shape, position, color, or lighting effects of objects and is widely used in user interface interaction, human-computer interaction devices, game screen presentation, data visualization, advertising display, and other scenarios to enhance the intuitiveness and visual appeal of information expression.

[0003] In existing technologies, during the rendering process of transparent overlay animation, the colors of the foreground layer and the background layer are usually blended using a transparency calculation formula to achieve a visually layered transition.

[0004] However, when there are bright background areas in the animation scene, the existing transparency calculation formula is prone to numerical back overflow in the bright pixel range, causing the transparency calculation result to exceed the effective range and form abnormal color output. This abnormality manifests visually as color inversion or edge glow artifacts, causing unnatural bright spots or inverted shadows in the picture, which disrupts the overall display continuity. More seriously, if the transparency calculation abnormality is not detected in time, it will cause erroneous data to be written to the rendering buffer, triggering color drift, image residue and rendering link disorder in subsequent frames, ultimately causing the display engine to terminate abnormally or the image processing system to crash, thus seriously affecting the stability of the animation display process and the system reliability. Summary of the Invention

[0005] The purpose of this invention is to provide an animation display method, related apparatus, and storage medium to solve the technical problems mentioned in the background art. It can stabilize the transparency changes of high-brightness areas and avoid color inversion and luminescence artifacts through dynamic correspondence and linear suppression control of brightness and transparency. Furthermore, it can achieve smooth transition and continuous display through transparent transition layer reconstruction and frame sequence output control, thereby improving the naturalness of animation display and system stability.

[0006] To solve the above-mentioned technical problems, the present invention provides the following technical solution: An animation display method includes the following steps: S1, in the animation display scene, for the transparent overlay area containing a bright background in the picture, determine the range of brightness variation and establish the correspondence between brightness and transparency to form a unified display reference basis; S2, based on the display reference, performs progressive linearization processing on the foreground color, background color, and transparency, limiting the numerical range of color and transparency to prevent abnormal shifts in transparency within the bright pixel range; S3, after completing the linearization process, performs segmented suppression on the light energy distribution of the bright pixels, and limits the transparency change range according to the display reference basis to reduce the edge overexposure caused by the bright pixels; S4, after obtaining the segmented suppression results, regenerates the transparent transition layer, uses a two-way smooth blending method to repair the inverted color area, eliminates the halo traces caused by abnormal transparency, and restores the naturalness of the image transition; S5: After the transparent transition layer is rebuilt, the repaired color data and transparency data are written to the display buffer in frame order, and the display output is updated through the frame order control mechanism.

[0007] The following are further optimizations of the above technical solution by the present invention: Step S1 includes: During the animation display process, the overall brightness characteristics of the displayed screen are identified and partitioned. By continuously sampling the brightness distribution of each pixel, the screen is divided into several brightness level regions to determine the range of brightness variation. After completing the brightness partitioning, a correspondence between the brightness variation range and transparency is established based on the brightness level. The brightness value variation range of each brightness interval is used as the mapping input, and the transparency variation range is used as the output to form a continuous correspondence. After obtaining the correspondence between brightness and transparency, the mapping results are standardized. The continuity of transparency changes between brightness ranges is maintained by normalization, and the transparency changes in the bright areas are smoothly adjusted. After establishing a unified display reference, the correspondence between brightness and transparency is dynamically adapted. The mapping range is adjusted according to the real-time changes in the brightness of the animation screen, so that the distribution of transparency and the brightness state of the screen remain consistent.

[0008] Further optimization: Step S2 includes: Based on the display reference, the foreground and background colors in the image are extracted in layers, and the color value range of each layer is divided into linear intervals. After completing the color layering and interval division, the color values ​​in each color interval are linearized and transitioned. Guided by the brightness mapping curve in the display reference base, the foreground color and the background color form a continuous gradient relationship during the brightness change process. After color linearization is completed, the numerical correspondence between foreground color, background color and transparency is jointly adjusted; After performing joint linearization of foreground color, background color, and transparency, the numerical distribution of color and transparency is normalized and its range is limited.

[0009] Further optimization: In the process of normalizing and limiting the numerical distribution of color and transparency, the numerical difference between edge pixels and center pixels is adjusted by continuous smoothing to keep the gradient of color channel and transparency channel consistent.

[0010] Further optimization: Step S3 includes: After linearizing the foreground color, background color, and transparency, the light energy distribution of the bright areas in the display screen is identified and partitioned. The area of ​​concentrated light energy density is determined by scanning the brightness distribution and the spatial boundary is delineated. After obtaining the high-brightness light energy distribution area, the light energy characteristics in different brightness ranges are segmented and the light energy distribution range is subdivided according to the brightness gradient, so that the boundaries of each light energy level are consistent with the transparency change range. After the light energy level is divided, segmented suppression processing is performed on each light energy level to keep the amplitude of light energy suppression matched with the range of transparency variation. After completing the segmented suppression of light energy, the light energy distribution of the entire image is unified and harmonized, so that the brightness changes between light energy levels form a smooth and continuous transition, eliminating the edge overexposure phenomenon caused by high-brightness pixels.

[0011] Further optimization: In the process of unifying and harmonizing the light energy distribution of the overall image, light energy compensation and brightness balance are performed on the boundary areas of the light energy level to coordinate the brightness differences caused by the segmented suppression in the previous stage, and the transparency adjustment trend is realigned with the light energy distribution to maintain a consistent proportional relationship between color, brightness and transparency in space.

[0012] Further optimization: Step S4 includes: After completing the segmented suppression of light energy distribution, the transparent overlay areas in the display screen are identified and their contours are extracted. By analyzing the gradient characteristics of transparency changes, the areas with drastic transparency changes are identified and the transparent reconstruction range is defined. After determining the scope of transparent reconstruction, the basic structure of the transparent transition layer is regenerated. Based on the segmented suppression results, the transparency distribution of the brightness level is used as a reference baseline, and the transparency values ​​of the abnormal areas are redistributed to restore the continuity of the transparent layer. After the basic structure of the transparent transition layer is generated, a two-way smooth blending method is used to fuse and repair the transition area, so that the color and brightness distribution inside the transparent layer remains smooth and consistent in space. After the two-way smooth blending is completed, the resulting transparent transition layer is harmonized with the original image. Edge transition buffering and brightness compensation are used to make the image transition natural and the visual effect stable.

[0013] Further optimization: Step S5 includes: After the reconstruction of the transparent transition layer is completed, the color data and transparency data obtained from the repair are framed and arranged in time order to maintain the continuity between the foreground layer and the background layer in the time dimension. After the frame ordering is completed, the processed color data and transparency data are cached and written frame by frame, so that the color data and transparency data are stored in the display cache synchronously to maintain rendering continuity. After the color data and transparency data are written, the refresh rate of the display output is dynamically scheduled through the frame sequence control mechanism, so that each frame image is continuously output at the time node. After the frame sequence control mechanism completes the output scheduling, the continuously output display screen is updated synchronously. The dynamic smoothing of edge pixels and transparent overlay areas achieves natural frame connection and maintains the stability of animation display.

[0014] The present invention also provides an animation display device for implementing the above-mentioned animation display method, comprising a brightness mapping module, a linearization processing module, a light energy suppression module, a transition reconstruction module, and a frame sequence output module: The brightness mapping module, in the animation display scene, determines the range of brightness variation and establishes the correspondence between brightness and transparency for transparent overlay areas containing bright backgrounds in the image, forming a unified display reference basis; The linearization module performs step-by-step linearization of the foreground color, background color, and transparency based on the display reference, limiting the numerical range of color and transparency to prevent abnormal shifts in transparency within the bright pixel range. The light energy suppression module performs segmented suppression on the light energy distribution of high-brightness pixels after completing the linearization process, and reduces edge overexposure caused by high-brightness pixels by limiting the transparency change range according to the display reference. The transition reconstruction module, after obtaining the segmented suppression results, regenerates the transparent transition layer and uses a two-way smooth blending method to repair the inverted color area, eliminate halo traces caused by abnormal transparency, and restore the naturalness of the image transition; After the transparent transition layer is rebuilt, the frame order output module writes the repaired color data and transparency data into the display buffer in frame order, and updates the display output through the frame order control mechanism.

[0015] The present invention also provides a storage medium storing a computer software program, which, when executed by a processor, implements the above-described animation display method.

[0016] The present invention, by adopting the above technical solution, has at least the following beneficial effects: 1. This invention introduces a dynamic correspondence between brightness and transparency during animation display, and combines progressive linearization and segmented suppression with continuous control to keep the change in transparency within the high-brightness area within a controlled range, thereby effectively avoiding reverse shift and overflow of transparency values. In this way, the transition between the high-brightness and medium-brightness areas of the image is smoother, and there are no more color inversions or abnormal luminescence phenomena in the edge areas. The sense of layering and detail in the animation display are naturally restored, improving the overall light and shadow coordination and visual stability of the image.

[0017] 2. This invention achieves adaptive fusion of foreground and background in the transparent overlay area through the reconstruction of the transparent transition layer and bidirectional smooth blending processing. It can actively repair local artifacts and halo traces caused by abnormal transparency. The repaired color data and transparency data are sequentially written to the display cache under frame order control, so that the display output between consecutive frames remains consistent and eliminates inter-frame jumps caused by rendering delay or abnormal buffer data. Through this solution, the animation playback process is smoother, and the stability of the display system and the reliability of the rendering output are significantly improved. Attached Figure Description

[0018] Figure 1 This is a flowchart of the method in an embodiment of the present invention; Figure 2 This is a schematic diagram of the modules in an embodiment of the present invention; Figure 3 This is a schematic diagram of the storage medium in an embodiment of the present invention. Detailed Implementation

[0019] The technical solutions in the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative effort are within the scope of protection of this application.

[0020] This invention provides, for example Figure 1 An animation display method is shown, comprising the following steps: S1, in the animation display scene, for the transparent overlay area containing a bright background in the picture, determine the range of brightness variation and establish the correspondence between brightness and transparency to form a unified display reference basis.

[0021] In order to achieve a stable and natural visual transition in transparent overlay areas with bright backgrounds during animation display, it is necessary to identify and analyze the brightness characteristics and distribution of the entire display screen at the beginning of the display stage, and establish the correspondence between brightness and transparency to form a unified display reference basis, thereby providing a consistent basis for subsequent color processing and rendering output.

[0022] The specific steps of step S1 are as follows: The overall brightness characteristics of the current animation display are identified and partitioned. Specifically, by continuously sampling the brightness distribution of each pixel in the display, the brightness change trend of different areas in the image is obtained, and the image is divided into several brightness level areas according to the magnitude of brightness change. Each brightness level area corresponds to a brightness interval, and the range of this interval reflects the continuous transition from low brightness to high brightness. In order to ensure that the subsequent allocation of transparency is consistent with the actual brightness change, the partitioning process not only considers the brightness difference of a single frame image, but also comprehensively analyzes the dynamic continuity of brightness change between adjacent frames. Through such continuous analysis, the spatial location of the bright area and its brightness change boundary can be clearly defined, providing a precise brightness reference basis for the subsequent transparency allocation.

[0023] After completing the brightness partitioning, a correspondence between the brightness variation range and transparency is established for the identified brightness intervals. The core of this process is to use the determined brightness levels as a reference to ensure that the transparency value is coordinated with the brightness variation trend, thereby creating a natural visual layering transition. In specific operations, the brightness value variation range within each brightness interval is used as the input of the mapping interval, and the transparency variation range is used as the output. A correspondence between the two is established through continuous mapping. In this way, each brightness interval corresponds to a transparency adjustment interval. As the brightness gradually changes from low to high, the transparency value is smoothly adjusted according to the mapping relationship. This correspondence is not only applicable to static single-frame images, but also maintains continuity during continuous animation playback, making the transparent overlay of the foreground layer under different brightness backgrounds more stable and balanced.

[0024] After obtaining the initial correspondence between brightness and transparency, the mapping results are standardized to ensure that the transparency changes between brightness intervals remain continuous and controllable. Specifically, the brightness-transparency mapping data obtained in the previous stage is normalized so that changes in brightness and transparency follow the same reference scale in different regions. To achieve this, the brightness boundaries need to be smoothly transitioned during the standardization process to ensure that the transparency curves between adjacent brightness intervals are connected and to avoid abrupt changes or discontinuities. At the same time, during the standardization process, the transparency changes in the bright areas need to be fine-tuned based on the actual scene characteristics in the animation, so that they show a more gradual change trend near the upper limit of brightness, thereby reducing the transparency jump phenomenon in the bright areas. Through this processing step, it is possible to ensure that the entire image forms a continuous and consistent display reference basis in the matching relationship between brightness and transparency, so that the visual fusion effect of different brightness areas is natural and layered.

[0025] After establishing a unified display reference, the correspondence between brightness and transparency is dynamically adapted to adapt to changes in the animation content. The main purpose of this step is to ensure that, regardless of changes in screen brightness during animation display, the distribution of transparency remains consistent with the actual brightness state of the current screen. In practice, the unified mapping relationship established in the previous stage is used as the basic reference, and the range of the mapping interval is adjusted according to the real-time changes in the overall screen brightness during animation frame switching. For example, when the scene displayed in the animation gradually transitions from a low-brightness area to a high-brightness area, the range of transparency adjustment also shifts accordingly towards the high-brightness direction to match the new brightness change trend. When the screen returns to a low-brightness area, the transparency range returns to the original range. Through such dynamic adaptation, the relationship between brightness and transparency can remain stable and consistent during continuous animation playback, keeping the transparency overlay effect within a controllable range.

[0026] S2, based on the display reference, performs progressive linearization on the foreground color, background color, and transparency, limiting the numerical range of color and transparency to prevent abnormal shifts in transparency within the bright pixel range.

[0027] After obtaining a unified display reference, it is necessary to perform step-by-step linearization on the overall distribution of foreground color, background color, and transparency in the animation display. By continuously adjusting and limiting the range of color and transparency values ​​at different levels, the transparency changes in the bright pixel range of the image are kept stable, thereby avoiding abnormal offset phenomena.

[0028] The specific steps of step S2 are as follows: Based on the display reference, the foreground and background colors in the image are extracted in layers, and the color value range of each layer is linearly divided. In this stage, the brightness-transparency correspondence defined in the display reference is used to guide the boundary delineation of the color layers, so that the color distribution can be coordinated with the overall brightness structure. In this way, the originally numerically discrete color information can be transformed into a linear region with a continuous distribution, providing a basis for subsequent color correction and transparency coordination. In this step, the color ranges of the foreground and background are processed simultaneously, so that the two are consistent in brightness response characteristics, thus providing a balanced basis for transparency changes.

[0029] After completing the color layering and interval definition, the color values ​​within each color interval undergo linearization transition processing. This processing is guided by the brightness mapping curve in the display reference base, ensuring that the color values ​​in each interval exhibit a smooth and progressive change trend. Through this continuous adjustment, the foreground and background colors can form a consistent gradient relationship during brightness changes. When there are bright areas in the animation, linearization processing can effectively suppress color value jumps, making the transition between bright and mid-bright parts smoother, thus providing a stable basis for subsequent transparency adjustments. At the same time, based on the layering results of the previous stage, the color boundaries between adjacent layers are smoothly connected to prevent color discontinuity caused by sudden brightness changes, ensuring the continuity and consistency of the overall color distribution.

[0030] After color linearization is complete, the numerical correspondence between foreground color, background color, and transparency is jointly adjusted. At this point, the brightness-transparency relationship in the display reference base is applied to the linearized color space to limit the range of transparency values. Through this joint adjustment, the transparency value matches the brightness changes at different color levels, thus avoiding transparency shifts in bright pixel areas. Specifically, as the brightness of the background color gradually approaches the bright range, the range of transparency value changes narrows accordingly to prevent reverse shifts or abnormal amplification of transparency when brightness suddenly increases. In this stage, the linearization results of the foreground and background colors directly participate in the transparency limiting process, so that transparency is no longer controlled solely by numerical calculations, but rather depends on the overall trend of color changes, achieving a coordinated correspondence between brightness, color, and transparency. In this way, during subsequent rendering, the blending of the foreground and background can maintain a stable visual relationship, avoiding unnatural overlay caused by bright pixels.

[0031] After the joint linearization of foreground color, background color, and transparency, the numerical distribution of color and transparency is normalized and its range is limited to form the final usable display data range. The goal of this process is to ensure that the output values ​​of the color channel and transparency channel are within a reasonable effective range and that the gradient of change between all channels remains uniform. At this stage, it is necessary to comprehensively consider the overall range of brightness mapping, the characteristics of the linearized color distribution, and the constraint boundary of transparency limitation. The numerical difference between edge pixels and center pixels is adjusted in a continuous and smooth manner to make the color level of the display output more natural. In this way, after linearization, the entire animation display not only maintains stable transparency changes in the bright areas, but also has a more coordinated transition of color and transparency in the mid-to-low brightness areas, thus providing a unified input basis for the subsequent light energy suppression and transition layer reconstruction stages.

[0032] S3, after completing the linearization process, performs segmented suppression on the light energy distribution of bright pixels, and reduces edge overexposure caused by bright pixels by limiting the transparency variation range according to the display reference.

[0033] After linearizing the foreground color, background color, and transparency, further fine-tuning of the light energy distribution of bright pixels in the image is required to maintain a balanced brightness level in the bright areas. This process effectively reduces edge overexposure caused by bright pixels by segmenting the light energy distribution and limiting the range of transparency changes based on the display reference, so that the animation displays a natural, soft, and stable visual effect in the light and dark boundary areas.

[0034] The specific steps of step S3 are as follows: After linearizing the foreground color, background color, and transparency, the light energy distribution in the bright areas of the displayed image is identified and partitioned. At this point, the linearization result already contains the adjusted data for the brightness, color, and transparency of each pixel, which can be used to analyze the spatial concentration of light energy. Through continuous brightness distribution scanning, areas with prominent light energy density in the image are identified, and the spatial boundaries of these areas are delineated. The identification of light energy distribution not only focuses on the absolute brightness value of pixels in a single frame image but also considers the brightness gradient changes between adjacent pixels to reflect the diffusion trend of light energy in local areas. Through this spatial identification method, high-brightness light energy concentration areas and medium-low brightness areas can be clearly distinguished, providing a basis for subsequent segmented suppression. This step enables the entire light energy control process to accurately locate the areas to be suppressed based on the relationship between brightness and transparency, based on existing display references, avoiding impact on normal brightness areas.

[0035] After obtaining the high-brightness light energy distribution area, the light energy characteristics within different brightness ranges are segmented. Specifically, the light energy distribution range is subdivided according to the brightness gradient, dividing the high-brightness area into multiple light energy levels, each representing a different degree of brightness concentration. This segmentation allows for setting corresponding suppression intensities for each level's light energy characteristics. During the segmentation process, the display reference base established in the previous stage is fully utilized to ensure that the boundaries of each light energy level align with the transparency variation range, thereby ensuring that suppression and transparency adjustment are synchronized. As a result, the suppression is stronger in areas with higher high-brightness light energy density and weaker in areas with smoother brightness transitions, achieving layered control. This segmented structure makes subsequent light energy suppression operations more targeted and adjustable, resulting in smoother brightness changes across the entire high-brightness area.

[0036] After the light energy levels are divided, segmented suppression processing is performed on each light energy level. This step, guided by the display reference base, combines the regulation of light energy distribution with the limitation of transparency changes to ensure that the magnitude of light energy suppression and the range of transparency changes are matched. Specifically, for pixels in the high-brightness range, the light energy distribution weight of their corresponding level is reduced so that the local brightness does not exceed the brightness limit defined by the display reference base. At the same time, in the medium-brightness and low-brightness ranges, the intensity of light energy suppression is reduced in a gradual manner to maintain the continuity of brightness transition in the overall image. During the suppression process, the transparency change of high-brightness pixels is constrained by the display reference base, limiting the transparency change in the high-brightness part while maintaining a normal range in the medium- and low-brightness parts, thereby achieving synchronous brightness control and transparency control. Through this segmented suppression processing, high-brightness pixels can be visually balanced, avoiding overexposure or edge halo phenomena caused by excessive local energy.

[0037] After segmented suppression of light energy, the overall light energy distribution of the image is unified and harmonized, creating a smooth and continuous transition in brightness changes between different light energy levels. This step uses the segmented suppression results as input to compensate for light energy and balance brightness in the boundary areas of each light energy level, coordinating the brightness differences caused by the previous suppression stage. Through this continuous adjustment, the diffusion trend of light energy from high-brightness areas to mid-brightness areas can be effectively controlled, while ensuring that the light energy in low-brightness areas is not disturbed. This stage also combines the limiting results of the transparency changes in the previous stage to realign the transparency adjustment trend with the light energy distribution, ensuring that color, brightness, and transparency maintain a consistent proportional relationship in the numerical space. After this process, the energy distribution of the entire display image in the brightness space is more uniform, especially in the edge areas, where light energy gradually decreases from the center outwards, thereby eliminating the edge overexposure problem caused by high-brightness pixels.

[0038] S4, after obtaining the segmented suppression results, regenerates the transparent transition layer, uses a two-way smooth blending method to repair the inverted color area, eliminates halo traces caused by abnormal transparency, and restores the naturalness of the image transition.

[0039] After completing the segmented suppression of light energy distribution in high-brightness pixels, in order to further repair the local inverted color areas and halo traces caused by abnormal changes in transparency, and to restore the transition of image layers to a natural state, it is necessary to regenerate a transparent transition layer for the entire display image. During the reconstruction process, a two-way smooth blending method is adopted to make the fusion process of foreground and background in the transparent overlay area more balanced, soft and continuous. This process takes the segmented suppression results as the input basis and integrates the coordinated control of color information, brightness distribution and transparency mapping to repair abnormal areas and restore the naturalness of the image.

[0040] The specific steps of step S4 are as follows: After segmented suppression of light energy distribution, the transparent overlay areas in the entire display screen are identified and their contours extracted. At this point, the brightness distribution in the screen after the previous suppression process has been effectively limited, and the energy diffusion of bright pixels tends to be stable. However, color shifts, transparency breaks, or color inversions may still exist at the edges or transition areas. In order to ensure that the shape of the transition layer matches the actual screen structure in the subsequent reconstruction process, it is necessary to identify the spatial range of these overlay areas. This step identifies areas with more drastic transparency changes as potential transition zones by analyzing the gradient characteristics of transparency changes in the segmented suppression results. Then, based on the spatial distribution relationship between the foreground and background colors, the range that needs to be transparently reconstructed is delineated with these areas as the center, making the target area of ​​the entire restoration process clear and the boundaries distinct. In this way, the reconstruction range can cover areas with abnormal transparency while also ensuring a smooth transition with normal areas, providing complete input conditions for subsequent bidirectional smooth blending.

[0041] After determining the reconstruction scope, the basic structure of the transparent transition layer is regenerated. The core objective of this stage is to restore the transparent overlay layer affected by light energy suppression, so that the foreground and background can re-establish a coordinated transparent mapping relationship in the overlapping area. Specifically, based on the segmented suppression results formed in the previous stage, the transparency distribution of each brightness level is used as a reference baseline. According to the brightness-transparency correspondence in the display reference baseline, the transparency values ​​of the abnormal areas are redistributed. The key point of this process is to ensure that the transparent transition layer is consistent with the original image structure in space, so that the new transparent layer can not only cover the original inverted color area, but also connect naturally with the normal transparent layer in terms of value. Through this redistribution operation, the thickness and transparency gradient of the transparent layer regain continuity, avoiding abrupt changes in the transition range from high brightness to medium brightness. At the same time, the foreground and background colors are also matched in this stage to maintain a balance of color fusion under the new transparency distribution, creating coordinated initial conditions for subsequent smooth blending.

[0042] After the basic structure of the transparent transition layer is generated, a two-way smooth blending method is used to fuse and repair the transition area. This step uses the newly generated transparent layer as the core, and through progressive blending in two directions—from foreground to background and from background to foreground—the color and brightness distribution within the transparent layer tends to be smooth and consistent in space. Specifically, the principle of two-way smooth blending is that through continuous two-way superposition, the decay curve of the foreground color and the enhancement curve of the background color cancel each other out within the transparent layer, thereby achieving a smooth intermediate transition effect. During the execution process, the blending ratio in each direction is constrained by the display reference base, so that the blending result always remains within a reasonable transparency range. In this way, the inverted color boundaries that originally appeared in the highlight area are gradually repaired, and halo traces also disappear naturally as the color and brightness are balanced and blended. Because the two-way blending process considers both the continuity of color distribution and the coordination of transparency gradient, the entire transparent transition layer presents a uniform and soft superposition effect visually, making the picture smooth and stable during dynamic playback.

[0043] After bidirectional smooth blending, the resulting transparent transition layer is harmonized with the original image to achieve a natural balance in the overall display transition. This step involves fine-tuning the boundary area between the reconstructed transparent layer and the background layer to ensure that the gradient curves of the two layers in terms of brightness, color, and transparency remain consistent. To achieve this, a transition buffer is applied to the edge area to ensure that the color gradient of the foreground and the brightness distribution of the background completely overlap in space, thus forming a natural blend transition. Simultaneously, based on the light energy suppression results from the previous stage, brightness compensation is applied to the bright pixels in the transition layer to maintain the continuity of light energy distribution in space and avoid local brightness collapse or reverse darkening. Through this overall harmonization, the transparent transition layer not only corrects anomalies in local areas but also improves the overall balance of the display. At this point, the relationship between brightness, color, and transparency in the transparent overlay area is re-harmonized, the image transition returns to naturalness, the visual effect of the edge area is consistent with that of the center area, and each frame of the animation display has stable and smooth visual extension at the transition connection.

[0044] S5, after the transparent transition layer is rebuilt, writes the repaired color data and transparency data into the display cache in frame order, and updates the display output through the frame order control mechanism to achieve continuous rendering and stable display of animation frames.

[0045] After the transparent transition layer is reconstructed, the color data and transparency data in the reconstruction results need to be output and cached in an orderly manner to ensure that the rendering output of each frame of the image can remain continuous and stable during the animation display process. This process takes the repaired color data and transparency data as the core content and coordinates the output order and display refresh of each frame data through the frame order control mechanism, so that the animation frames form a consistent connection in time and space, thereby avoiding the occurrence of screen flickering, ghosting or frame skipping.

[0046] The specific steps of step S5 are as follows: After the reconstruction of the transparent transition layer is completed, the repaired color and transparency data are frame-ordered. The purpose of this step is to arrange the spatially repaired data linearly according to time order, so that the data connection between different frames conforms to the timing logic of animation playback. Specifically, the color and transparency data of each frame need to be indexed and sorted, and a data mapping table is established with the frame order as the main line, so that the foreground layer and the background layer can correspond and match in the time dimension. Since the spatial distribution of the reconstructed transparent layer is consistent with the display reference base, the frame-ordering process only needs to standardize the time series, so that the display position, transparency gradient, and brightness level of each frame data are continuous with the adjacent frames. This sorting process lays the foundation for subsequent writing to the display cache, so that all the data to be output is logically linearly arranged, without frame overlap or discontinuity.

[0047] After frame sequencing is completed, the processed color and transparency data are written to the display cache frame by frame. This step uses the frame sequencing result as input and writes the data of each frame sequentially to the display cache according to the time order. In order to maintain the smoothness of the animation display, the transition between frames must be continuous during the writing process. That is, the output result of the previous frame should retain a certain amount of residual data in the display cache to form a natural connection with the input content of the next frame. In actual operation, color data and transparency data are written synchronously, so that the two types of data correspond one-to-one in the cache, thereby ensuring the consistency of the transparency overlay relationship. During the writing process, the display cache is used as a temporary storage space to store the image data to be output, so that the display engine can directly read the latest color and transparency information when refreshing the frame. This frame-by-frame writing method not only ensures the accuracy of the timing of the displayed content, but also prevents data interference between different frames, thus maintaining the continuity of the rendering process.

[0048] After the color and transparency data are written, the refresh rate of the display output is dynamically scheduled through a frame sequence control mechanism. The key to this step is to coordinate the output timing of the data in the display buffer based on the matching relationship between the animation playback rhythm and the display refresh rate, so that each frame image is refreshed at the appropriate time node. The frame sequence control mechanism, based on the result of frame sequencing, schedules the data in the buffer in an orderly manner, so that the data of the next frame is loaded immediately after the previous frame is output, thereby forming a visually continuous playback effect. In this process, the frame sequence control mechanism also sets a smooth transition time for frame segments with large transparency changes based on the characteristics of the reconstructed transparent transition layer, so that the brightness and color transition of the displayed image remain consistent. Through this orderly scheduling, not only is the temporal continuity of the animation display ensured, but also the flickering or ghosting problems caused by uneven refresh intervals are avoided, thereby achieving a stable transition between frames.

[0049] After the frame sequence control mechanism completes the output scheduling, the continuously output display screen is updated synchronously, enabling smooth rendering and stable display of animation frames on the screen. At this time, the color data and transparency data written to the display cache in the previous stage are read sequentially and presented on the display panel, forming a continuous screen output. In order to ensure the overall consistency of the display process, it is necessary to maintain data synchronization between the display cache and the output port during the update process, so that the displayed content and the frame sequence control maintain the same refresh rhythm. At the same time, at the moment of frame switching, the brightness and transparency of edge pixels and transparent overlay areas are dynamically smoothed to make the visual connection between different frames more natural. As each frame update is completed, new color data and transparency data continue to enter the display cache, forming a continuous input-output loop, thereby maintaining the continuity of the animation display. Through such a cyclical update, the animation frames form an uninterrupted playback stream in the time dimension and maintain continuous changes in light and shadow and transparency in the spatial dimension, making the entire display process stable and balanced.

[0050] This invention introduces a dynamic correspondence between brightness and transparency during animation display, and combines progressive linearization and segmented suppression with continuous control to keep the change in transparency within the bright area within a controlled range, thereby effectively avoiding reverse offset and overflow of transparency values. In this way, the transition between the bright and medium bright areas of the image is smoother, and there are no more color inversions or abnormal luminescence phenomena in the edge areas. The sense of layering and details of the animation display are naturally reproduced, improving the overall light and shadow coordination and visual stability of the image.

[0051] This invention achieves adaptive fusion of foreground and background in the transparent overlay area through the reconstruction of the transparent transition layer and bidirectional smooth blending processing. It can actively repair local artifacts and halo traces caused by abnormal transparency. The repaired color data and transparency data are sequentially written to the display cache under frame order control, so that the display output between consecutive frames remains consistent and eliminates inter-frame jumps caused by rendering delays or abnormal buffer data. With this solution, the animation playback process is smoother, and the stability of the display system and the reliability of the rendering output are significantly improved.

[0052] like Figure 2 As shown, the present invention also provides an animation display device for implementing the above-mentioned animation display method, including a brightness mapping module, a linearization processing module, a light energy suppression module, a transition reconstruction module, and a frame sequence output module: The brightness mapping module, in the animation display scene, determines the range of brightness variation and establishes the correspondence between brightness and transparency for transparent overlay areas containing bright backgrounds in the image, forming a unified display reference basis; The linearization module performs step-by-step linearization of the foreground color, background color, and transparency based on the display reference, limiting the numerical range of color and transparency to prevent abnormal shifts in transparency within the bright pixel range. The light energy suppression module performs segmented suppression on the light energy distribution of high-brightness pixels after completing the linearization process, and reduces edge overexposure caused by high-brightness pixels by limiting the transparency change range according to the display reference. The transition reconstruction module, after obtaining the segmented suppression results, regenerates the transparent transition layer and uses a two-way smooth blending method to repair the inverted color area, eliminate halo traces caused by abnormal transparency, and restore the naturalness of the image transition; After the transparent transition layer is rebuilt, the frame sequence output module writes the repaired color data and transparency data into the display cache in the frame sequence, and updates the display output through the frame sequence control mechanism to achieve continuous rendering and stable display of animation frames.

[0053] The present invention provides an animation display method, which is implemented by the above-mentioned animation display device. For details of the specific method and process of the animation display device, please refer to the above-mentioned embodiment of the animation display method, which will not be repeated here.

[0054] Please see Figure 3 , Figure 3 This is a schematic diagram illustrating an embodiment of a computer-readable storage medium provided in this invention; as shown below. Figure 3 As shown, this embodiment also provides a computer-readable storage medium 600, on which a computer program 611 is stored, which, when executed by a processor, implements the above-described animation display method.

[0055] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.

[0056] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, systems, or computer program products; therefore, the present invention can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects; moreover, the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0057] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention; it should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions; these computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0058] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0059] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0060] For those skilled in the art, any changes, modifications, substitutions, and variations made to the embodiments without departing from the principles and spirit of the present invention, based on the teachings of the present invention, still fall within the protection scope of the present invention.

Claims

1. An animation display method, characterized in that: Includes the following steps: S1, in the animation display scene, for the transparent overlay area containing a bright background in the picture, determine the range of brightness variation and establish the correspondence between brightness and transparency to form a unified display reference basis; S2, based on the display reference, performs progressive linearization processing on the foreground color, background color, and transparency, limiting the numerical range of color and transparency to prevent abnormal shifts in transparency within the bright pixel range; S3, after completing the linearization process, performs segmented suppression on the light energy distribution of the bright pixels, and limits the transparency change range according to the display reference basis to reduce the edge overexposure caused by the bright pixels; S4, after obtaining the segmented suppression results, regenerates the transparent transition layer, uses a two-way smooth blending method to repair the inverted color area, eliminates the halo traces caused by abnormal transparency, and restores the naturalness of the image transition; S5: After the transparent transition layer is rebuilt, the repaired color data and transparency data are written to the display buffer in frame order, and the display output is updated through the frame order control mechanism.

2. The animation display method according to claim 1, characterized in that: Step S1 includes: During the animation display process, the overall brightness characteristics of the displayed screen are identified and partitioned. By continuously sampling the brightness distribution of each pixel, the screen is divided into several brightness level regions to determine the range of brightness variation. After completing the brightness partitioning, a correspondence between the brightness variation range and transparency is established based on the brightness level. The brightness value variation range of each brightness interval is used as the mapping input, and the transparency variation range is used as the output to form a continuous correspondence. After obtaining the correspondence between brightness and transparency, the mapping results are standardized. The continuity of transparency changes between brightness ranges is maintained by normalization, and the transparency changes in the bright areas are smoothly adjusted. After establishing a unified display reference, the correspondence between brightness and transparency is dynamically adapted. The mapping range is adjusted according to the real-time changes in the brightness of the animation screen, so that the distribution of transparency and the brightness state of the screen remain consistent.

3. The animation display method according to claim 2, characterized in that: Step S2 includes: Based on the display reference, the foreground and background colors in the image are extracted in layers, and the color value range of each layer is divided into linear intervals. After completing the color layering and interval division, the color values ​​in each color interval are linearized and transitioned. Guided by the brightness mapping curve in the display reference base, the foreground color and the background color form a continuous gradient relationship during the brightness change process. After color linearization is completed, the numerical correspondence between foreground color, background color and transparency is jointly adjusted; After performing joint linearization of foreground color, background color, and transparency, the numerical distribution of color and transparency is normalized and its range is limited.

4. The animation display method according to claim 3, characterized in that: In the process of normalizing and limiting the numerical distribution of color and transparency, the numerical difference between edge pixels and center pixels is adjusted by continuous smoothing to keep the gradient of color channel and transparency channel uniform.

5. The animation display method according to claim 3, characterized in that: Step S3 includes: After linearizing the foreground color, background color, and transparency, the light energy distribution of the bright areas in the display screen is identified and partitioned. The area of ​​concentrated light energy density is determined by scanning the brightness distribution and the spatial boundary is delineated. After obtaining the high-brightness light energy distribution area, the light energy characteristics in different brightness ranges are segmented and the light energy distribution range is subdivided according to the brightness gradient, so that the boundaries of each light energy level are consistent with the transparency change range. After the light energy level is divided, segmented suppression processing is performed on each light energy level to keep the amplitude of light energy suppression matched with the range of transparency variation. After completing the segmented suppression of light energy, the light energy distribution of the entire image is unified and harmonized, so that the brightness changes between light energy levels form a smooth and continuous transition, eliminating the edge overexposure phenomenon caused by high-brightness pixels.

6. The animation display method according to claim 5, characterized in that: In the process of unifying and harmonizing the overall light energy distribution of the image, light energy compensation and brightness balance are performed on the boundary areas of the light energy level to coordinate the brightness differences caused by the segmented suppression in the previous stage, and the transparency adjustment trend is realigned with the light energy distribution to maintain a consistent proportional relationship between color, brightness and transparency in space.

7. The animation display method according to claim 5, characterized in that: Step S4 includes: After completing the segmented suppression of light energy distribution, the transparent overlay areas in the display screen are identified and their contours are extracted. By analyzing the gradient characteristics of transparency changes, the areas with drastic transparency changes are identified and the transparent reconstruction range is defined. After determining the scope of transparent reconstruction, the basic structure of the transparent transition layer is regenerated. Based on the segmented suppression results, the transparency distribution of the brightness level is used as a reference baseline, and the transparency values ​​of the abnormal areas are redistributed to restore the continuity of the transparent layer. After the basic structure of the transparent transition layer is generated, a two-way smooth blending method is used to fuse and repair the transition area, so that the color and brightness distribution inside the transparent layer remains smooth and consistent in space. After the two-way smooth blending is completed, the resulting transparent transition layer is harmonized with the original image. Edge transition buffering and brightness compensation are used to make the image transition natural and the visual effect stable.

8. The animation display method according to claim 7, characterized in that: Step S5 includes: After the reconstruction of the transparent transition layer is completed, the color data and transparency data obtained from the repair are framed and arranged in time order to maintain the continuity between the foreground layer and the background layer in the time dimension. After the frame ordering is completed, the processed color data and transparency data are cached and written frame by frame, so that the color data and transparency data are stored in the display cache synchronously to maintain rendering continuity. After the color data and transparency data are written, the refresh rate of the display output is dynamically scheduled through the frame sequence control mechanism, so that each frame image is continuously output at the time node. After the frame sequence control mechanism completes the output scheduling, the continuously output display screen is updated synchronously. The dynamic smoothing of edge pixels and transparent overlay areas achieves natural frame connection and maintains the stability of animation display.

9. An animation display device for implementing the animation display method according to any one of claims 1-8, characterized in that: It includes a brightness mapping module, a linearization processing module, a light energy suppression module, a transition reconstruction module, and a frame order output module: The brightness mapping module, in the animation display scene, determines the range of brightness variation and establishes the correspondence between brightness and transparency for transparent overlay areas containing bright backgrounds in the image, forming a unified display reference basis; The linearization module performs progressive linearization of the foreground color, background color, and transparency based on the display reference, limiting the numerical range of color and transparency to prevent abnormal shifts in transparency within the bright pixel range. The light energy suppression module performs segmented suppression on the light energy distribution of high-brightness pixels after completing the linearization process, and reduces edge overexposure caused by high-brightness pixels by limiting the transparency change range according to the display reference. The transition reconstruction module, after obtaining the segmented suppression results, regenerates the transparent transition layer and uses a two-way smooth blending method to repair the inverted color area, eliminate halo traces caused by abnormal transparency, and restore the naturalness of the image transition; After the transparent transition layer is rebuilt, the frame order output module writes the repaired color data and transparency data into the display buffer in frame order, and updates the display output through the frame order control mechanism.

10. A storage medium, characterized in that: The storage medium stores a computer software program, which, when executed by a processor, implements an animation display method as described in any one of claims 1-8.