A double-frame sequence dynamic wallpaper adaptive rendering method of a foldable screen device

By introducing a dual-frame sequence dynamic wallpaper adaptive rendering method on foldable screen devices, the problem of insufficient linkage between dynamic wallpaper and device form is solved, the display characteristics of inner and outer screens are distinguished and the rendering stability is improved, and it is applicable to a variety of foldable screen terminals.

CN122111555APending Publication Date: 2026-05-29SICHUAN COOSEA TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
SICHUAN COOSEA TECH CO LTD
Filing Date
2026-02-24
Publication Date
2026-05-29

AI Technical Summary

Technical Problem

Existing dynamic wallpaper solutions for foldable screen devices lack effective perception and response to the physical opening and closing state of the device, resulting in rendering jitter and resource waste, and failing to distinguish the display characteristics of the inner and outer screens, thus affecting the user experience.

Method used

The method employs a dual-frame sequence dynamic wallpaper adaptive rendering approach. By acquiring the hinge angle in real time and performing smoothing, independent wallpaper frame sequences and cache pools are established for the inner and outer screens respectively. Combined with a frame difference driving mechanism, the wallpaper playback direction and speed are controlled to achieve continuous linkage rendering of dynamic wallpapers and device form.

Benefits of technology

It effectively avoids rendering jitter and resource waste, improves the display continuity of dynamic wallpapers and system stability, enhances user experience, and is suitable for foldable screen terminals of different shapes and specifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122111555A_ABST
    Figure CN122111555A_ABST
Patent Text Reader

Abstract

The application discloses a kind of double frame sequence dynamic wallpaper adaptive rendering methods of folding screen equipment.The system is respectively preset and loaded in system layer for the first wallpaper frame sequence for inner screen display and the second wallpaper frame sequence for outer screen display, and the resource management and cache mechanism independent of each other is established for two sets of wallpaper frame sequences.The hinge angle of folding screen equipment is obtained in real time, and the hinge angle is smoothed, and the processed angle value is used as continuous control variable to judge the display state of the current device, and is mapped as the target frame index in corresponding wallpaper frame sequence.According to the frame difference between current display frame and target frame, the playing direction and playing speed of wallpaper animation are dynamically controlled, so as to realize the continuous, smooth linkage rendering between wallpaper animation and device physical folding state.The application can effectively improve the immersion effect of folding screen dynamic wallpaper, and reduce the rendering overhead caused by frequent state switching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of software rendering technology for foldable screen mobile terminals, and more particularly to an adaptive rendering method for dual-frame sequence dynamic wallpapers on foldable screen devices. Background Technology

[0002] With the increasing popularity of foldable screen mobile devices, the form factor of these devices has gradually evolved from the traditional single screen to a multi-form display structure that can switch between folded and unfolded states. To improve user experience, some devices have begun to introduce dynamic wallpapers to enhance interface expressiveness, but most existing dynamic wallpaper solutions still follow the design ideas of traditional candybar devices.

[0003] Specifically, existing dynamic wallpapers typically loop based on a single animation sequence, lacking effective perception and response to the physical opening and closing states of foldable screen devices. When the device is folded, partially folded, or fully unfolded, the wallpaper content often simply switches between different screens or repeats the same animation, making it difficult to create continuous visual feedback that matches changes in the hinge angle. The overall experience is disjointed and lacks immersion.

[0004] Furthermore, existing solutions generally fail to differentiate between the display characteristics of the inner and outer screens, and lack independent wallpaper resource management and rendering mechanisms for different screen forms. This can easily lead to rendering jitter, resource waste, and even performance degradation during frequent opening and closing. Therefore, how to achieve continuous and synchronized rendering between dynamic wallpaper content and the physical form of foldable screen devices without significantly increasing the system load remains a critical technical problem that needs to be solved by existing technologies.

[0005] Therefore, existing technologies still need to be improved. Summary of the Invention

[0006] Given the shortcomings of the existing technologies in the application of dynamic wallpapers on foldable screen devices, especially the lack of continuous linkage between wallpaper content and the physical opening and closing state of the device, the inability to effectively distinguish the display forms of the inner and outer screens, and the rendering jitter caused by frequent state switching, there is an urgent need for a technical solution that can sense the change in the hinge angle of the foldable screen device and realize adaptive rendering of the dynamic wallpaper based on the angle, so as to improve the overall display effect and user experience of dynamic wallpapers on foldable screens while ensuring the stability of system operation.

[0007] The technical solution of the present invention is as follows: This invention provides an adaptive rendering method for dual-frame sequence dynamic wallpapers on foldable screen devices, comprising the following steps: S1. Pre-set and load a first wallpaper frame sequence for inner screen display and a second wallpaper frame sequence for outer screen display at the system layer, wherein the two sets of wallpaper frame sequences are independent of each other; S2. Obtain the hinge angle of the foldable screen device in real time, and smooth the hinge angle to obtain an effective angle value; S3. Using the effective angle value as a continuous control variable, determine whether the current device is in the inner screen display state or the outer screen display state. S4. In the inner screen display state, the effective angle value is mapped to the target frame index in the first wallpaper frame sequence; in the outer screen display state, the effective angle value is mapped to the target frame index in the second wallpaper frame sequence. S5. Based on the frame difference between the current display frame and the target frame index, control the playback direction and playback speed of the corresponding wallpaper frame sequence; S6. Obtain the target frame from the wallpaper frame sequence corresponding to the current display state and complete the rendering output.

[0008] In one embodiment, the first wallpaper frame sequence and the second wallpaper frame sequence are stored in different resource directories, and an independent frame index mapping relationship is established between them in memory.

[0009] In one embodiment, the system establishes independent cache pools for the first wallpaper frame sequence and the second wallpaper frame sequence, respectively, to cache the corresponding wallpaper frame data.

[0010] In one embodiment, the cache pool is managed using a least recently used caching strategy, and cached data of the corresponding wallpaper frame sequence is preferentially retained according to the current display status.

[0011] In one embodiment, the smoothing process for the hinge angle includes at least low-pass filtering to eliminate high-frequency jitter generated during hinge angle acquisition.

[0012] In one embodiment, when the change in hinge angle between two consecutive hinge angles is less than a preset threshold, the angle change is ignored and the wallpaper frame update is not triggered.

[0013] In one embodiment, the effective angle value is converted into the target frame index in the corresponding wallpaper frame sequence according to a linear or non-linear mapping relationship.

[0014] In one embodiment, the playback direction of the wallpaper frame sequence is determined based on the sign of the frame difference, and the playback speed of the wallpaper frame sequence is determined based on the magnitude of the frame difference.

[0015] In one embodiment, when the frame difference exceeds a preset threshold, at least one intermediate interpolation frame is generated to achieve a smooth transition of the wallpaper animation.

[0016] In another aspect, the present invention provides a dual-frame sequence dynamic wallpaper adaptive rendering system for a foldable screen device, including a processor and a memory, wherein the memory stores a computer program, and the computer program, when running on the processor, is used to execute the method described above.

[0017] In summary, this invention is not a simple improvement on existing dynamic wallpaper solutions, but rather, based on the unique physical structural characteristics of foldable screen devices, it introduces a rendering control approach with the hinge angle as a continuous control variable, organically combining the physical opening and closing state of the device with the playback process of the dynamic wallpaper. By constructing two independent wallpaper frame sequences for inner and outer screen display at the system level, and combining angle perception, smoothing processing, and frame difference-driven animation control mechanisms, the dynamic wallpaper can achieve continuous and smooth adaptive presentation as the device's folding angle changes.

[0018] Compared to existing dynamic wallpaper solutions based on a single animation sequence or simple state switching, this invention effectively avoids abrupt image changes and rendering jitter caused by frequent folding or unfolding operations by differentiating display requirements under different screen forms. Simultaneously, it ensures animation continuity while also taking into account the rational utilization of system resources and operational stability. Furthermore, the rendering control method adopted in this invention has good versatility and scalability, enabling it to adapt to foldable screen terminal devices of different forms and specifications without relying on specific hardware modifications.

[0019] Therefore, this invention can improve the display effect of dynamic wallpapers on foldable screens while achieving natural linkage between wallpaper animations and the physical form of the device. It has clear technical relevance and practical application value, and is suitable for promotion and application in existing foldable screen mobile terminal systems.

[0020] Compared with existing technologies, this invention shows significant differences in the implementation method and technical effect of foldable screen dynamic wallpapers. The resulting technical effect cannot be directly expected by existing technologies through conventional technical means.

[0021] First, this invention does not simply switch wallpaper content based on the opening and closing state of the foldable screen device, but rather uses the hinge angle as a continuous control variable in the rendering control process of the dynamic wallpaper. By establishing a mapping relationship between the hinge angle and the frame index in the wallpaper frame sequence, the wallpaper animation can continuously advance or regress as the physical degree of device folding changes, thus creating a visual feedback effect highly consistent with changes in the device's form. This animation presentation method based on continuous angle driving is significantly different from the switching schemes based on discrete state judgments in existing technologies, and the resulting improvement in coherence and immersion is remarkably unexpected.

[0022] Secondly, this invention introduces two independent wallpaper frame sequences at the system layer for both inner and outer screen displays, enabling dynamic wallpapers for different screen configurations to be optimized for their respective display characteristics. This dual-frame sequence decoupling not only avoids the visual fragmentation caused by the repeated use of a single animation resource in different screen configurations in existing technologies, but also maintains the consistency and continuity of wallpaper animation logic in scenarios where devices are frequently folded or unfolded. The overall display effect surpasses what can be achieved simply by increasing the number of animation frames or raising the playback frame rate.

[0023] Furthermore, this invention introduces smoothing processing and frame difference driving mechanisms into the angle perception and rendering control process, enabling the playback direction and speed of the wallpaper animation to be dynamically adjusted based on the difference between the current display frame and the target frame. This control method effectively avoids frequent redraws or screen jumps caused by minor fluctuations in the hinge angle, exhibiting higher stability and a lower probability of system jitter in actual use. Especially in the semi-folded state, this invention can maintain the naturalness of the animation transition, an effect that cannot be expected by existing technologies through simple state threshold judgment.

[0024] Furthermore, this invention establishes independent cache management mechanisms for the wallpaper frame sequences of the inner and outer screens, and dynamically adjusts the cache strategy based on the display status. This effectively reduces system memory usage and unnecessary rendering overhead while ensuring animation smoothness. This balance between display effect and system performance makes the dynamic wallpaper run more stably on foldable screen devices over extended periods, and its overall performance is significantly better than existing single cache or unified resource management solutions.

[0025] In summary, by organically combining the device hinge angle, dual-frame sequence structure, and dynamic rendering control mechanism, this invention not only solves the technical bottlenecks of existing foldable screen dynamic wallpapers in terms of form adaptation and display continuity, but also achieves technical effects that exceed conventional expectations in multiple aspects such as visual experience, system stability, and resource utilization efficiency, demonstrating significant technological progress. Attached Figure Description

[0026] The present invention will be further described below with reference to the accompanying drawings and embodiments. In the accompanying drawings: Figure 1 A flowchart illustrating the method steps of an adaptive rendering method for dual-frame sequence dynamic wallpapers in a foldable screen device provided by this invention; Figure 2 A flowchart of step S1 of a dual-frame sequence dynamic wallpaper adaptive rendering method for a foldable screen device provided by the present invention; Figure 3A flowchart of steps S2-S5 of a dual-frame sequence dynamic wallpaper adaptive rendering method for a foldable screen device provided by the present invention; Figure 4 A flowchart of step S6 of a dual-frame sequence dynamic wallpaper adaptive rendering method for a foldable screen device provided by the present invention; Figure 5 The present invention provides an overall flowchart of a dual-frame sequence dynamic wallpaper adaptive rendering method for foldable screen devices. Detailed Implementation

[0027] To make the objectives, technical solutions, and effects of this invention clearer and more explicit, the invention is further described in detail below. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention. The embodiments of the invention are described below in conjunction with the accompanying drawings.

[0028] One embodiment of the present invention provides a method for adaptive rendering of dual-frame sequence dynamic wallpapers for foldable screen devices. Please refer to [link to relevant documentation]. Figures 1-5 It includes the following steps: S1. Pre-set and load a first wallpaper frame sequence for inner screen display and a second wallpaper frame sequence for outer screen display at the system layer, wherein the two sets of wallpaper frame sequences are independent of each other; In one specific embodiment, the dual-frame sequence dynamic wallpaper adaptive rendering method for foldable screen devices of the present invention runs in the system-level wallpaper service of the foldable screen mobile terminal and is uniformly scheduled and executed by the dynamic wallpaper engine. When the system starts or the dynamic wallpaper service is activated, a first wallpaper frame sequence for inner screen display and a second wallpaper frame sequence for outer screen display are first preset and loaded at the system layer. The first and second wallpaper frame sequences are independent of each other at the resource level and correspond to the display requirements of the foldable screen device under different physical forms. The two sets of wallpaper frame sequences can be composed of multiple static images in a preset order. Each frame image is assigned a corresponding frame index after loading for quick location during subsequent rendering scheduling.

[0029] Furthermore, the method also includes: S2. Obtain the hinge angle of the foldable screen device in real time, and smooth the hinge angle to obtain an effective angle value; After loading the wallpaper resources, the system enters the operation phase, establishing a data channel with the hinge sensor of the foldable screen device to acquire the current hinge angle information of the device in real time. Considering that the hinge angle may be affected by sensor noise or slight device vibration during the acquisition process, the system does not directly use the raw angle data. Instead, it smooths the acquired hinge angle to obtain an effective angle value for subsequent rendering control. This smoothing process makes the changes in the hinge angle more continuous and stable, providing a reliable data foundation for subsequent animation control.

[0030] Furthermore, the method also includes: S3. Using the effective angle value as a continuous control variable, determine whether the current device is in the inner screen display state or the outer screen display state. After obtaining a valid angle value, the system uses this angle value as a continuous control variable to determine the current display state of the device. When the valid angle value is within the preset inner screen angle range, the system determines that the device is in the inner screen display state; when the valid angle value is within the corresponding outer screen angle range, the system determines that the device is in the outer screen display state. This determination process is not a simple discrete state switching, but rather provides the prerequisite for subsequently mapping angle changes continuously to the wallpaper animation playback process.

[0031] Furthermore, the method also includes: S4. In the inner screen display state, the effective angle value is mapped to the target frame index in the first wallpaper frame sequence; in the outer screen display state, the effective angle value is mapped to the target frame index in the second wallpaper frame sequence. After determining the current display state, the system maps the effective angle value to the target frame index in the corresponding wallpaper frame sequence. Specifically, when the device is in inner screen display state, the system maps the effective angle value to the frame index range of the first wallpaper frame sequence; when the device is in outer screen display state, the system maps the effective angle value to the frame index range of the second wallpaper frame sequence. Through this mapping relationship, the continuous angle changes generated by the foldable screen device during folding or unfolding can be correspondingly converted into the continuous advancement or retreat of the wallpaper animation in the frame sequence.

[0032] Furthermore, the method also includes: S5. Based on the frame difference between the current display frame and the target frame index, control the playback direction and playback speed of the corresponding wallpaper frame sequence; After obtaining the target frame index, the system further obtains the index of the currently displayed wallpaper frame and calculates the frame difference between the current display frame and the target frame index. Based on this frame difference, the system dynamically determines the playback direction and speed of the wallpaper frame sequence: when the target frame index is greater than the current display frame index, the wallpaper animation is controlled to play in the forward direction of the frame sequence; when the target frame index is less than the current display frame index, the wallpaper animation is controlled to play in the opposite direction. Simultaneously, the frame difference reflects the magnitude of angle changes, allowing the system to adjust the playback speed accordingly, ensuring that the animation transition process is coordinated with the actual folding or unfolding motion of the device.

[0033] Furthermore, the method also includes: S6. Obtain the target frame from the wallpaper frame sequence corresponding to the current display state and complete the rendering output.

[0034] After determining the playback parameters, the system retrieves the target frame image from the wallpaper frame sequence corresponding to the current display state and renders the target frame onto the current display screen through the corresponding rendering path. During the rendering process, the system only reads frame data from the wallpaper frame sequence corresponding to the current display state, thus avoiding resource sharing between different screen formats. Finally, the target frame is submitted to the display surface and presented on the screen, achieving a rendering effect where the dynamic wallpaper adaptively updates according to changes in the device's physical form.

[0035] Through the above steps, this embodiment realizes a two-frame sequence dynamic wallpaper adaptive rendering process with the hinge angle as a continuous control variable, so that the foldable screen device can obtain wallpaper animation display effects that match its physical form in different opening and closing states.

[0036] In a further embodiment, the first wallpaper frame sequence and the second wallpaper frame sequence are stored in different resource directories, and an independent frame index mapping relationship is established between them in memory.

[0037] To achieve effective resource-level isolation between the inner and outer screen dynamic wallpapers, this invention stores the first wallpaper frame sequence and the second wallpaper frame sequence in different resource directories. Specifically, the first wallpaper frame sequence used for inner screen display can be uniformly stored under a preset inner screen wallpaper resource path, while the second wallpaper frame sequence used for outer screen display is stored in a separate outer screen wallpaper resource path. The two are distinguished from each other at the file system level and are not used interchangeably.

[0038] During system startup or dynamic wallpaper service initialization, the wallpaper engine scans the two resource directories mentioned above and independently loads and parses the wallpaper frame resources. For each set of wallpaper frame sequences, the system organizes the frame files sequentially according to preset naming or sorting rules and assigns a unique frame index identifier to each frame image, thereby establishing frame index mapping relationships for the first wallpaper frame sequence and the second wallpaper frame sequence in memory respectively.

[0039] Through the above method, the first wallpaper frame sequence and the second wallpaper frame sequence remain independent of each other in terms of resource organization structure and frame index system. This allows the system to directly locate and access the corresponding wallpaper frame sequence based on the current display state during subsequent rendering, avoiding erroneous rendering or abnormal resource calls caused by mixed resource paths or index conflicts. This implementation method based on dual resource directories and independent frame index mapping provides a fundamental guarantee for foldable screen devices to stably present corresponding dynamic wallpaper content under different display forms.

[0040] In a further embodiment, the system establishes independent cache pools for the first wallpaper frame sequence and the second wallpaper frame sequence, respectively, to cache the corresponding wallpaper frame data.

[0041] To further improve the operating efficiency and stability of live wallpapers on foldable screen devices, this invention establishes independent cache pools in the system memory for the first and second wallpaper frame sequences, respectively, to cache the image data of the corresponding wallpaper frames. These cache pools are created synchronously when the live wallpaper service starts and are bound to the first and second wallpaper frame sequences respectively.

[0042] After the wallpaper frame resources are loaded and parsed into a renderable data format, the system writes the corresponding wallpaper frame data into the cache pool corresponding to its frame sequence. The wallpaper frame data of the first wallpaper frame sequence is stored only in the first cache pool, and the wallpaper frame data of the second wallpaper frame sequence is stored only in the second cache pool. The two remain independent of each other at the caching level. Through this caching structure design, the system does not need to frequently switch between different screen modes or reuse cache resources when rendering dynamic wallpapers, thereby reducing the complexity of cache management.

[0043] In actual operation, when the system determines that the device is in inner screen display mode based on the hinge angle, it only reads the corresponding wallpaper frame data from the first cache pool for rendering; when the device is in outer screen display mode, it only accesses the wallpaper frame data from the second cache pool. This method of differentiating cache access paths according to display mode makes the rendering process of dynamic wallpapers clearer and more controllable, effectively avoiding the potential risks caused by cross-access of wallpaper frame resources under different screen modes, and also providing a foundation for implementing differentiated management strategies for different cache pools in the future.

[0044] In a further embodiment, the cache pool is managed using a least recently used caching strategy, and cached data of the corresponding wallpaper frame sequence is preferentially retained according to the current display status.

[0045] In order to reduce the memory usage pressure of foldable screen devices during frequent opening and closing while ensuring the smooth playback of dynamic wallpapers, this invention adopts a unified scheduling of cache management strategies based on the least recent use principle for the cache pools corresponding to the first wallpaper frame sequence and the second wallpaper frame sequence.

[0046] Specifically, after establishing independent cache pools for the first and second wallpaper frame sequences, the system maintains usage record information for the wallpaper frame data in each cache pool. This information represents the frequency with which each wallpaper frame is accessed and rendered over a period of time. When the cache pool capacity reaches a preset limit or the system detects insufficient available memory resources, the cache management module, based on the usage record information, prioritizes evicting wallpaper frame data that has not been accessed or has the lowest usage frequency in the recent period, thereby freeing up cache space for new wallpaper frame data.

[0047] Building upon this, the present invention further dynamically adjusts the cache management strategy based on the current display state of the foldable screen device. When the system determines that the device is in the inner screen display state, the cache management module prioritizes retaining the wallpaper frame data in the cache pool corresponding to the first wallpaper frame sequence, and allows some wallpaper frame data in the cache pool corresponding to the second wallpaper frame sequence to be released preferentially according to the aforementioned least recently used principle; correspondingly, when the system determines that the device is in the outer screen display state, it prioritizes retaining the wallpaper frame data in the cache pool corresponding to the second wallpaper frame sequence, while performing a release operation on the inactive wallpaper frame data in the cache pool corresponding to the first wallpaper frame sequence.

[0048] By employing the above method, the cache management strategy no longer relies solely on a single access time or frequency. Instead, it considers the actual display configuration of the foldable device and implements differentiated cache retention strategies for wallpaper frame resources on the inner and outer screens. This approach reduces the consumption of irrelevant wallpaper frame data in scenarios where the device is frequently folded or unfolded, while ensuring that the wallpaper frame resources required by the current display screen are promptly available, thus achieving a better balance between animation smoothness and system resource consumption.

[0049] In a further embodiment, the smoothing process for the hinge angle includes at least low-pass filtering to eliminate high-frequency jitter generated during hinge angle acquisition.

[0050] To improve the stability and usability of hinge angle data during dynamic wallpaper rendering, this invention does not directly use the raw angle data reported by the sensor after acquiring the hinge angle of the foldable screen device. Instead, it smooths the hinge angle. Specifically, the system establishes a continuous data acquisition channel with the hinge angle sensor, periodically receives the hinge angle value of the current device, and uses this angle value as the raw input data.

[0051] Considering that foldable screen devices may experience high-frequency fluctuations in hinge angle data within a short period of time during daily use due to factors such as hand-held shaking, hinge structure micro-vibration, or sensor sampling errors, the system introduces a low-pass filter to smooth the angle changes when processing the raw angle data. By filtering the continuously collected angle data, the trend of hinge angle changes becomes smoother, preventing instantaneous outliers from directly participating in subsequent rendering control logic.

[0052] The angle value obtained after smoothing is used as a valid angle value in subsequent judgment and mapping processes. In this way, the system can effectively reduce rendering instability caused by angle jitter while ensuring timely response to hinge angle changes, providing a reliable data foundation for continuous playback of dynamic wallpapers.

[0053] In a further embodiment, when the change in hinge angle between two adjacent hinge angles is less than a preset threshold, the angle change is ignored and the wallpaper frame update is not triggered.

[0054] After smoothing the hinge angle, this invention further introduces a dead zone mechanism to filter angle changes, in order to avoid frequent triggering of wallpaper frame update operations due to minute angle changes. Specifically, the system calculates the angle change between two adjacent valid angle values ​​and compares the angle change with a preset change threshold.

[0055] When the angle change between two consecutive intervals is less than the preset threshold, the system determines that the angle change is an invalid fluctuation and does not trigger the update operation of the dynamic wallpaper frame, but keeps the current display frame unchanged; only when the angle change is greater than or equal to the preset threshold is the system regarded as a valid input and continues to execute the subsequent frame index mapping and rendering control process. Through this dead zone mechanism, frequent rendering requests caused by slight angle shaking in the semi-folded state of foldable screen devices can be effectively suppressed.

[0056] The dead zone handling method described above, combined with the aforementioned smoothing process, ensures that the hinge angle data undergoes necessary stabilization before entering the dynamic wallpaper control logic. This significantly reduces unnecessary calculations and rendering overhead in scenarios with high-frequency angle changes, while maintaining natural wallpaper animation response. This approach improves overall display stability and also enhances system resource utilization efficiency.

[0057] In a further embodiment, the effective angle value is converted into the target frame index in the corresponding wallpaper frame sequence according to a linear or nonlinear mapping relationship.

[0058] After smoothing the hinge angle and filtering effective angle changes through a dead-zone mechanism, this invention uses the obtained effective angle values ​​to drive continuous changes in the wallpaper frame sequence. Specifically, the system pre-sets corresponding angle intervals and frame index intervals for the first and second wallpaper frame sequences, respectively, and establishes a mapping relationship between these angle intervals and frame index intervals.

[0059] When the device is in inner screen display mode, the system limits the effective angle value to the corresponding inner screen angle range and converts the angle value into a target frame index in the first wallpaper frame sequence according to a preset mapping relationship. When the device is in outer screen display mode, the effective angle value is limited to the outer screen angle range and mapped to a target frame index in the second wallpaper frame sequence. The mapping relationship can adopt a linear mapping method to maintain a proportional relationship between angle changes and frame index changes, thereby making the wallpaper animation present a continuous advancing or retreating effect as the device folds or unfolds.

[0060] In practical applications, to adapt to different wallpaper content or the structural characteristics of different foldable screen devices, the above mapping relationship can also be configured in a non-linear manner. For example, the frame index change range can be amplified or compressed within a specific angle range to highlight the visual performance of key folding stages. Through the above method, the present invention can naturally transform the physical angle change of the foldable screen device into continuous frame changes in the wallpaper animation, so that the dynamic wallpaper no longer depends on a fixed rhythm playback, but responds in real time with the change of device form.

[0061] In a further embodiment, the playback direction of the wallpaper frame sequence is determined based on the sign of the frame difference, and the playback speed of the wallpaper frame sequence is determined based on the magnitude of the frame difference.

[0062] After determining the target frame index, the system further controls the playback process of the live wallpaper through a frame difference driving mechanism. Specifically, the system obtains the currently displayed wallpaper frame index and compares it with the target frame index to calculate the frame difference between the two.

[0063] When the target frame index is greater than the current display frame index, the system determines that the wallpaper animation needs to be played in the forward direction of the frame sequence; when the target frame index is less than the current display frame index, the system determines that the wallpaper animation needs to be played in the opposite direction. Simultaneously, the system dynamically adjusts the playback speed of the wallpaper animation based on the frame difference: when the frame difference is large, the playback speed is increased to quickly follow changes in device angle; when the frame difference is small, the playback speed is decreased to achieve a smoother and more delicate animation transition.

[0064] This frame-difference-based playback control method eliminates the fixed playback rhythm of live wallpapers, allowing them to adaptively adjust based on the actual operating speed of foldable devices. For example, when a user quickly unfolds or folds the device, the wallpaper animation follows the device's movements; conversely, when the user slowly adjusts the device's angle, the wallpaper animation changes continuously at a lower speed, maintaining consistency between visual effects and physical operations. This approach effectively avoids the problem of animation playback rhythm being out of sync with device operation in existing technologies, enabling live wallpapers to present natural and harmonious dynamic effects in various usage scenarios.

[0065] In a further embodiment, when the frame difference exceeds a preset threshold, at least one intermediate interpolation frame is generated to achieve a smooth transition of the wallpaper animation.

[0066] Based on determining the playback direction and speed of the live wallpaper based on the frame difference, when the system detects that the frame difference between the current display frame and the target frame exceeds a preset threshold, this invention further introduces an interpolation frame generation mechanism to improve the smoothness of the transition of the live wallpaper in scenarios with large angle changes.

[0067] Specifically, when a user quickly unfolds or folds a foldable screen device, the hinge angle may change significantly within a short period, resulting in a large frame difference between the target frame index obtained directly through angle mapping and the current display frame index. In this case, directly rendering frames according to the target frame index can easily lead to abrupt changes in the screen or inconsistent animation rhythm. Therefore, after calculating the frame difference, the system first determines whether the frame difference exceeds a preset interpolation threshold.

[0068] When the frame difference does not exceed the interpolation threshold, the system can directly play the wallpaper frame according to the aforementioned frame difference driving mechanism; when the frame difference exceeds the interpolation threshold, the system generates at least one intermediate interpolation frame between the current display frame and the target frame for transition display. The interpolation frame can be calculated and generated based on adjacent original frames, or it can be selected from pre-prepared intermediate transition frames to achieve continuous screen changes while ensuring rendering efficiency.

[0069] During the generation and display of interpolated frames, the system presents the interpolated frames sequentially according to a predetermined playback direction and speed, giving the live wallpaper animation a gradual transition rather than an instantaneous jump. In this way, even when the user performs rapid, large-scale folding or unfolding operations, the live wallpaper maintains a consistent and natural animation, providing a visually coherent response to the device's physical movements.

[0070] By introducing the above-mentioned interpolation frame mechanism, this implementation method effectively improves the display smoothness of dynamic wallpapers in extreme operating scenarios without changing the original angle mapping and frame difference control logic, making the overall performance of dynamic wallpapers on foldable screen devices more stable and delicate.

[0071] Another aspect of this invention provides a dual-frame sequence dynamic wallpaper adaptive rendering system for foldable screen devices, used to implement the aforementioned dual-frame sequence dynamic wallpaper adaptive rendering method for foldable screen devices. The system includes a processor and a memory, wherein the memory stores a computer program executable by the processor.

[0072] The processor can be an application processor or a system-level processing unit in a foldable screen terminal, and the memory can be flash memory, RAM, or a combination thereof, used to store wallpaper resource data, wallpaper frame sequence index relationships, and program instructions for executing dynamic wallpaper rendering logic. When the computer program runs on the processor, the processor is configured to execute the steps of the method described above.

[0073] During actual operation, the processor first controls the system to load a first wallpaper frame sequence and a second wallpaper frame sequence that are pre-configured respectively. The first wallpaper frame sequence is used for inner screen display, and the second wallpaper frame sequence is used for outer screen display. The two sets of wallpaper frame sequences are independent of each other in terms of resource organization, frame indexing, and cache management, thereby avoiding resource conflicts or state confusion between the inner and outer screen dynamic wallpapers during the rendering process.

[0074] Subsequently, the processor acquires the hinge angle information of the foldable screen device in real time by calling the system's underlying interface or hardware sensor data, and smooths the hinge angle information to obtain an effective angle value for subsequent rendering control. The smoothing process may include low-pass filtering and a threshold judgment mechanism to suppress frequent wallpaper frame updates caused by minor hinge jitter.

[0075] After obtaining the effective angle value, the processor uses this effective angle value as a continuous control variable to determine whether the current foldable screen device is in inner screen display mode or outer screen display mode, and selects the wallpaper frame sequence corresponding to the current display mode to participate in subsequent rendering calculations. Further, the processor converts the effective angle value into a target frame index in the current wallpaper frame sequence according to a pre-established mapping relationship.

[0076] After determining the target frame index, the processor calculates the frame difference between the currently displayed frame and the target frame index, and determines the playback direction of the wallpaper frame sequence based on the positive or negative relationship of the frame difference. At the same time, it determines the playback speed of the wallpaper frame sequence based on the magnitude of the frame difference, thereby achieving the effect of continuous playback of the dynamic wallpaper as the folding state changes.

[0077] When the frame difference exceeds a preset threshold, the processor further triggers the interpolation frame generation logic to generate at least one intermediate interpolation frame between the current display frame and the target frame, and inserts the intermediate interpolation frame into the wallpaper frame playback sequence for rendering output, so as to avoid screen jumps or visual discontinuity caused by the folding state changing too quickly.

[0078] Through the above system structure and operation mode, the foldable screen dynamic wallpaper rendering system can achieve adaptive rendering of dynamic wallpapers based on continuous changes in folding state without changing the existing foldable screen terminal hardware structure, thereby fully supporting and implementing the above-mentioned methods and steps at the system level.

[0079] In summary, this invention addresses the problems of discontinuous display, abrupt transitions, and limited rendering efficiency of dynamic wallpapers in different folding states of foldable screen devices. It proposes an adaptive rendering scheme for dynamic wallpapers based on a dual-frame sequence. By introducing a dual-frame sequence mechanism corresponding to the folding state and combining the frame difference relationship between the current display frame and the target display frame, the playback direction, playback speed, and transition method of the dynamic wallpaper are uniformly controlled, enabling the display process of the dynamic wallpaper to transition naturally and continuously with changes in the folding state.

[0080] This invention does not simply increase the number of wallpaper frames or the refresh rate. Instead, it starts from the continuity of folding state changes, establishing a stable and calculable mapping relationship between folding state information and the wallpaper frame sequence. When the state change amplitude is large, an interpolation frame mechanism is used to smooth the display process, thereby effectively controlling the system load while ensuring display quality. This state-driven rendering strategy transforms dynamic wallpapers from static display resources independent of device form changes into dynamic display content that can respond to folding behavior in real time.

[0081] Meanwhile, the technical solution proposed in this invention has high engineering feasibility at the system implementation level. All related functions can be implemented within the existing hardware architecture and operating system environment of foldable screen devices, without requiring additional modifications to the display hardware structure. Deployment can be completed solely through software-level frame sequence management and playback control, demonstrating good versatility and scalability, and making it suitable for different types of foldable screen terminal devices.

[0082] Therefore, through the collaborative design of methods and devices, this invention effectively improves the display continuity and visual consistency of dynamic wallpapers on foldable screen devices in multiple folded states while ensuring controllable implementation costs, providing a stable, reliable and easy-to-implement technical path for personalized display and user interaction experience on foldable screen devices.

[0083] It should be understood that the application of the present invention is not limited to the examples above. Those skilled in the art can make improvements or modifications based on the above description, and all such improvements and modifications should fall within the protection scope of the appended claims.

Claims

1. A method for adaptive rendering of dual-frame sequence dynamic wallpapers for foldable screen devices, characterized in that, Includes the following steps: S1. Pre-set and load a first wallpaper frame sequence for inner screen display and a second wallpaper frame sequence for outer screen display at the system layer, wherein the two sets of wallpaper frame sequences are independent of each other; S2. Obtain the hinge angle of the foldable screen device in real time, and smooth the hinge angle to obtain an effective angle value; S3. Using the effective angle value as a continuous control variable, determine whether the current device is in the inner screen display state or the outer screen display state. S4. In the inner screen display state, the effective angle value is mapped to the target frame index in the first wallpaper frame sequence; in the outer screen display state, the effective angle value is mapped to the target frame index in the second wallpaper frame sequence. S5. Based on the frame difference between the current display frame and the target frame index, control the playback direction and playback speed of the corresponding wallpaper frame sequence; S6. Obtain the target frame from the wallpaper frame sequence corresponding to the current display state and complete the rendering output.

2. The adaptive rendering method according to claim 1, characterized in that, The first wallpaper frame sequence and the second wallpaper frame sequence are stored in different resource directories, and an independent frame index mapping relationship is established between them in memory.

3. The adaptive rendering method according to claim 1, characterized in that, The system establishes independent cache pools for the first wallpaper frame sequence and the second wallpaper frame sequence, respectively, to cache the corresponding wallpaper frame data.

4. The adaptive rendering method according to claim 3, characterized in that, The cache pool is managed using a least recently used caching strategy, and cached data of the corresponding wallpaper frame sequence is retained first based on the current display status.

5. The adaptive rendering method according to claim 1, characterized in that, The smoothing process for the hinge angle includes at least low-pass filtering to eliminate high-frequency jitter generated during hinge angle acquisition.

6. The adaptive rendering method according to claim 5, characterized in that, When the change in hinge angle between two consecutive pairs of frames is less than a preset threshold, the angle change is ignored and the wallpaper frame update is not triggered.

7. The adaptive rendering method according to claim 1, characterized in that, The effective angle values ​​are converted into target frame indices in the corresponding wallpaper frame sequence according to a linear or nonlinear mapping relationship.

8. The adaptive rendering method according to claim 1, characterized in that, The playback direction of the wallpaper frame sequence is determined by the sign of the frame difference, and the playback speed of the wallpaper frame sequence is determined by the magnitude of the frame difference.

9. The adaptive rendering method according to claim 8, characterized in that, When the frame difference exceeds a preset threshold, at least one intermediate interpolation frame is generated to achieve a smooth transition of the wallpaper animation.

10. A dual-frame sequence dynamic wallpaper adaptive rendering system for a foldable screen device, comprising a processor and a memory, wherein the memory stores a computer program, characterized in that, When the computer program is run on the processor, it is used to perform the method according to any one of claims 1 to 9.