Interactive animation playing method, vehicle-mounted terminal, storage medium and program product
By separating the main video and overlay video streams in the vehicle terminal for hardware decoding and rendering, the problems of high processor usage and discontinuous animation display in existing technologies are solved, thus achieving stability and continuity in animation playback.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-31
- Publication Date
- 2026-04-21
AI Technical Summary
Existing interactive animation playback methods suffer from high processor usage and unstable loading during animation playback, resulting in discontinuous animation display and affecting the overall operating performance of the vehicle terminal.
By using a video processing unit in the vehicle terminal for hardware decoding, the main video and overlay video streams are separated, and the background and overlay layers are rendered separately by the graphics processing unit, reducing the load on the central processing unit and enabling on-demand decoding of the overlay video.
It improves the continuity and stability of animation playback, reduces the unnecessary occupation of system resources, and ensures the smoothness and visual consistency of animation display.
Smart Images

Figure CN121908053A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of animation interaction technology, and in particular to an interactive animation playback method, an in-vehicle terminal, a storage medium, and a program product. Background Technology
[0002] With the continuous improvement of the hardware and software capabilities of in-vehicle terminals, in-vehicle systems are gradually developing towards higher levels of ease of use and user experience, while meeting basic usability requirements. Interactive animations are being widely used as an important means to enhance user experience.
[0003] Existing interactive animation playback methods typically require significant CPU resources during animation playback, which can negatively impact the overall performance of the in-vehicle terminal. To address this, some existing solutions preload and cache animation frames to ensure playback quality. However, in actual operation, the preloading process may be affected by factors such as limited system resources or scheduling anomalies, causing some animation frames to fail to load successfully. This results in abnormal screen display or temporary gaps during animation playback, reducing the continuity and stability of the animation playback. Summary of the Invention
[0004] This invention provides an interactive animation playback method, an in-vehicle terminal, a storage medium, and a program product to solve problems such as high processor usage, unstable loading, and discontinuous animation display in existing interactive animation playback methods, thereby improving the continuity and stability of animation playback on the in-vehicle terminal.
[0005] In a first aspect, the interactive animation playback method provided in the embodiments of the present invention is applied to an in-vehicle terminal, including:
[0006] In response to the animation playback command, the main video stream is obtained, and the first video processing unit is called to perform hardware decoding on the main video stream to obtain the main video frame sequence.
[0007] The main video frame sequence is provided to the graphics processing unit, which then renders the main video frame sequence as a background layer and outputs it for display.
[0008] In response to user interaction events in the preset interactive area of the display page, the overlay video stream is obtained, and the second video processing unit is called to perform hardware decoding on the overlay video stream to obtain the overlay video frame sequence.
[0009] The overlay video frame sequence is provided to the graphics processing unit, which renders the overlay video frame sequence into an overlay layer and displays the overlay layer on top of the background layer.
[0010] Secondly, the interactive animation playback device provided in the embodiments of the present invention includes:
[0011] The first decoding module is used to respond to the animation playback command, obtain the main video stream, call the first video processing unit to perform hardware decoding on the main video stream, and obtain the main video frame sequence.
[0012] The first display module is used to provide the main video frame sequence to the graphics processing unit, and the graphics processing unit renders the main video frame sequence into a background layer and outputs it for display.
[0013] The second decoding module is used to respond to user interaction events in the preset interactive area of the display page, obtain the overlay video stream, call the second video processing unit to perform hardware decoding on the overlay video stream, and obtain the overlay video frame sequence.
[0014] The second display module is used to provide the overlay video frame sequence to the graphics processing unit, which then renders the overlay video frame sequence into an overlay layer and displays the overlay layer on top of the background layer.
[0015] Thirdly, the vehicle terminal provided in the embodiments of the present invention includes a video processing unit, a graphics processing unit, a memory, a central processing unit, and a computer program stored in the memory and capable of running on the processor. When the central processing unit executes the program, it implements the interactive animation playback method as described in any embodiment of the present invention.
[0016] Fourthly, the computer-readable storage medium provided in the embodiments of the present invention stores a computer program thereon, which, when executed by a processor, implements the interactive animation playback method as described in any embodiment of the present invention.
[0017] Fifthly, the computer program product provided in the embodiments of the present invention includes a computer program that, when executed by a processor, implements the interactive animation playback method as described in any embodiment of the present invention.
[0018] In this embodiment of the invention, by responding to an animation playback command, the main video stream is acquired, and the first video processing unit is invoked to perform hardware decoding on the main video stream to obtain the main video frame sequence. This allows the video decoding hardware in the vehicle terminal to complete the main video decoding process, reducing the CPU's workload and thus improving the main video decoding efficiency and minimizing the impact on overall system performance. The main video frame sequence is then provided to the graphics processing unit, which renders it as a background layer and outputs it for display. This enables the main video to play stably and smoothly on the display page, providing a unified basic image for subsequent overlay layers, thereby improving the continuity and visual consistency of the animation display. For user interaction events in the preset interactive area of the display page, the overlay video stream is obtained, and the second video processing unit is called to perform hardware decoding on the overlay video stream to obtain the overlay video frame sequence. The overlay video can be decoded on demand when user interaction occurs, avoiding preprocessing of overlay video that does not need to be displayed, thereby reducing the unnecessary occupation of system resources. The overlay video frame sequence is provided to the graphics processing unit, which renders the overlay video frame sequence into an overlay layer and displays the overlay layer on the background layer. The overlay video can be dynamically displayed without affecting the playback of the background layer, thereby ensuring the continuity and stability of the interactive animation playback. Attached Figure Description
[0019] To more clearly illustrate the technical solution of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0020] Figure 1 This is a flowchart illustrating an interactive animation playback method provided in an embodiment of the present invention;
[0021] Figure 2 This is another flowchart illustrating the interactive animation playback method provided in this embodiment of the invention;
[0022] Figure 3 This is a schematic diagram of the structure of the interactive animation playback device provided in an embodiment of the present invention;
[0023] Figure 4 This is a structural schematic diagram of an in-vehicle terminal provided in an embodiment of the present invention. Detailed Implementation
[0024] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0026] Figure 1 This is a flowchart illustrating an interactive animation playback method provided in an embodiment of the present invention. This method is applicable to animation display scenarios triggered by user interaction in in-vehicle terminals. The interactive animation playback method can be executed by an interactive animation playback device provided in this embodiment, which can be implemented using software and / or hardware. In one specific embodiment, the device can be integrated into the in-vehicle terminal. The following embodiment illustrates this using the integration of the interactive animation playback device into an in-vehicle terminal as an example. (See reference...) Figure 1 The interactive animation playback method in this embodiment may include the following steps:
[0027] Step 101: In response to the animation playback command, obtain the main video stream, call the first video processing unit to perform hardware decoding on the main video stream, and obtain the main video frame sequence.
[0028] Animation playback commands refer to control commands generated by the in-vehicle terminal's application based on business logic or user operations, used to trigger the animation playback process, such as when a user enters a function interface or clicks a start button. The main video stream refers to the core video data stream that constitutes the background of the interactive animation. It typically contains complete, continuous frame information and serves as the basic display content during animation playback. The first video processing unit (VPU) refers to a video processing unit (VPU) within the in-vehicle terminal, used for decoding video data; for example, the multimedia hardware decoder built into the vehicle's infotainment system. Hardware decoding refers to the method of using the in-vehicle terminal's dedicated video decoding hardware (i.e., the first video processing unit) to decode the video stream. Compared to software decoding via the Central Processing Unit (CPU), hardware decoding significantly reduces CPU usage and improves decoding efficiency and overall system smoothness. The main video frame sequence refers to the set of multiple main video frames obtained in chronological order after the main video stream has been decoded, where each main video frame corresponds to the frame content of the main video at a specific moment.
[0029] Specifically, when the vehicle terminal receives the animation playback command to start the animation display, it obtains the main video stream, which serves as the basic content of the animation, and calls the first video processing unit in the vehicle terminal to perform hardware decoding on the main video stream, thereby converting the compressed and encoded main video stream into a main video frame sequence that can be directly used for display, providing basic image data for subsequent graphics rendering and animation overlay.
[0030] Step 102: Provide the main video frame sequence to the graphics processing unit, and use the graphics processing unit to render the main video frame sequence as a background layer and output it for display.
[0031] The Graphics Processing Unit (GPU) is the hardware module in the in-vehicle terminal that performs image rendering and graphics calculations. This module can process large amounts of pixel data, thereby reducing the CPU load. The background layer is the layer that serves as the basic display content in interactive animations. It is located below the overlay video and carries the main video frame information. It is usually played continuously, providing the visual basis for subsequent overlaid interactive animations. Output display refers to continuously displaying the background layer on the in-vehicle terminal's display screen, allowing users to see the animation content.
[0032] Specifically, the decoded main video frame sequence is provided to the GPU, which renders each frame to form a background layer. The background layer is then displayed sequentially on the vehicle terminal screen to achieve dynamic animation effects.
[0033] Step 103: In response to user interaction events in the preset interactive area of the display page, obtain the overlay video stream, call the second video processing unit to perform hardware decoding on the overlay video stream, and obtain the overlay video frame sequence.
[0034] A preset interactive area refers to a predefined interface area on the in-vehicle terminal display page that can respond to user operations. User interaction events refer to event information generated by the user on the in-vehicle terminal display page through touch, voice input, or other operational actions that can be recognized and processed by the application, such as touching the preset interactive area, voice commands, or knob operations. An overlay video stream refers to an auxiliary video data stream that is overlaid on the main video screen, typically containing some animation elements or effects to achieve interactive animation effects. A second video processing unit refers to a video processing unit within the in-vehicle terminal used to decode video data; for example, the multimedia hardware decoder built into the vehicle's infotainment system. The second video processing unit can be the same multimedia hardware decoder as the first video unit. An overlay video frame sequence refers to a set of multiple overlay video frames obtained in chronological order after decoding the overlay video stream, where each overlay video frame corresponds to the content of the overlay video at a specific moment.
[0035] Specifically, when a user interaction event is detected in the preset interaction area of the display page, the overlay video stream associated with the preset interaction area is obtained, and the second video processing unit in the vehicle terminal is called to perform hardware decoding on the overlay video stream, decoding the compressed overlay video stream into a continuous sequence of overlay video frames, providing data for subsequent overlay onto the main video background layer.
[0036] Optionally, there are multiple preset interactive areas for acquiring overlay video streams, including:
[0037] The overlay video stream associated with the preset interactive area is obtained based on the area identifier of the preset interactive area.
[0038] A region identifier is a unique identifier for a specific preset interactive region, such as a region number, region ID, or region index, used to distinguish different preset interactive regions.
[0039] Specifically, the display page features multiple preset interactive areas, each triggering a corresponding interactive animation effect. When a user interacts with a specific preset interactive area, the corresponding area identifier is determined. Based on this identifier, the overlay video stream associated with that preset interactive area is retrieved from multiple available overlay video streams, allowing different interactive areas to trigger different overlay videos. Furthermore, one or more overlay video streams can be associated with the same preset interactive area, and the interactive animation effect is composed of one or more overlay video streams.
[0040] Step 104: Provide the overlay video frame sequence to the graphics processing unit, use the graphics processing unit to render the overlay video frame sequence into an overlay layer, and display the overlay layer on top of the background layer.
[0041] An overlay layer is a layer formed by rendering a sequence of overlay video frames using a graphics processing unit, and is used to display on top of a background layer. Overlay display refers to combining multiple layers according to a preset hierarchical relationship, so that the upper layer covers or partially covers the lower layer, thereby forming a combined display image.
[0042] Specifically, the overlay video frame sequence is input to the GPU, which renders each overlay video frame to form an overlay layer. The overlay layer is then superimposed on the background layer according to a preset display level, and then displayed continuously according to the time sequence of the corresponding video frames to create an interactive animation effect.
[0043] In this embodiment, by responding to the animation playback command, the main video stream is acquired, and the first video processing unit is invoked to perform hardware decoding on the main video stream to obtain the main video frame sequence. This allows the video decoding hardware in the vehicle terminal to complete the main video decoding process, reducing the CPU's workload and thus improving the main video decoding efficiency and minimizing the impact on overall system performance. The main video frame sequence is then provided to the graphics processing unit, which renders it as a background layer and outputs it for display. This enables the main video to play stably and smoothly on the display page, providing a unified basic image for subsequent overlay layers, thereby improving the continuity and visual consistency of the animation display. Responding to... The system displays user interaction events in the preset interactive area of the display page, acquires the overlay video stream, and calls the second video processing unit to perform hardware decoding on the overlay video stream to obtain the overlay video frame sequence. This allows for on-demand decoding of the overlay video when user interaction occurs, avoiding preprocessing of overlay video that does not need to be displayed, thereby reducing the unnecessary occupation of system resources. The overlay video frame sequence is then provided to the graphics processing unit, which renders the overlay video frame sequence into an overlay layer and displays it on top of the background layer. This enables dynamic display of the overlay video without affecting the playback of the background layer, thus ensuring the continuity and stability of the interactive animation playback.
[0044] Figure 2 This is another flowchart illustrating the interactive animation playback method provided in this embodiment of the invention, such as... Figure 2 As shown, the interactive animation playback method in this embodiment may include:
[0045] Step 201: In response to the animation playback command, obtain the main video stream, call the first video processing unit to perform hardware decoding on the main video stream, and obtain the main video frame sequence.
[0046] Step 202: Provide the main video frame sequence to the graphics processing unit, and use the graphics processing unit to render the main video frame sequence as a background layer and output it for display.
[0047] Step 203: In response to user interaction events in the preset interactive area of the display page, identify the type of user interaction event.
[0048] The type of user interaction event refers to the event attributes obtained after classifying user interaction events, including layer activation events or layer deactivation events, used to characterize the control meaning corresponding to the user interaction event. Specifically, a layer activation event refers to an event where the overlay layer corresponding to the user interaction event is not displayed on the currently displayed page, used to instruct the vehicle terminal to activate the corresponding interactive animation effect; a layer deactivation event refers to an event where the overlay layer corresponding to the user interaction event is displayed or in the process of being displayed on the currently displayed page, used to instruct the vehicle terminal to deactivate the corresponding interactive animation effect.
[0049] Specifically, when a user interacts with a user in a preset interactive area on the display page, the type of the user interaction event is determined, thereby providing a basis for determining the control behavior corresponding to the user interaction event.
[0050] Optionally, identifying the type of user interaction event includes: querying the display status of the overlay layer associated with the preset interaction area; if the overlay layer associated with the preset interaction area is not displayed, determining the type of user interaction event as a layer activation event; if the overlay layer associated with the preset interaction area is displayed or in the display state, determining the type of user interaction event as a layer deactivation event.
[0051] The display status of an overlay layer refers to how the overlay layer is displayed on the current page, including the undisplayed state (the overlay layer is not currently displayed on the page), the displaying state (the overlay layer is being continuously rendered and displayed), and the displayed state (the overlay layer has been fully displayed and is still present on the page).
[0052] Specifically, after a user triggers an interaction event, the current display status of the overlay layer associated with the preset interaction area is queried. If the query result shows that the overlay layer is currently not displayed, the user interaction event is identified as a layer activation event, meaning that the user wants to display the corresponding overlay layer. If the query result shows that the overlay layer is currently displayed or is being displayed, the user interaction event is identified as a layer deactivation event, meaning that the user wants to close or cancel the corresponding overlay layer.
[0053] Step 204: If the user interaction event type is a layer activation event, obtain the overlay video stream.
[0054] Specifically, when it is determined that the type of the user interaction event is a layer activation event (i.e., instructing the vehicle terminal to open the corresponding interactive animation effect), the overlay video acquisition operation is performed, that is, loading the overlay video stream corresponding to the user interaction event from the overlay video resource.
[0055] Step 205: Call the second video processing unit to perform hardware decoding on the overlay video stream to obtain the overlay video frame sequence.
[0056] Step 206: When the user interaction event is a layer deactivation event, control the graphics processing unit to stop rendering the overlay video frame sequence and control the second video processing unit to stop hardware decoding the overlay video stream.
[0057] Specifically, when it is determined that the user interaction event belongs to the layer deactivation event (instructing the vehicle terminal to turn off the corresponding interactive animation effect), the graphics processing unit is controlled to stop rendering the overlay video frame sequence, and the second video processing unit is controlled to stop hardware decoding of the overlay video stream, thereby terminating the display of the overlay layer and releasing the computing and decoding resources related to the playback of the overlay video.
[0058] Step 207: Provide the overlay video frame sequence to the graphics processing unit, and use the graphics processing unit to remove invalid pixels from each overlay video frame in the overlay video frame sequence to obtain the effective pixel area of each overlay video frame.
[0059] Invalid pixels refer to pixel areas in the overlay video frames that do not participate in the final display composition. Valid pixel areas refer to pixel areas in the overlay video frames that form visible image content.
[0060] Specifically, after obtaining the overlay video frame sequence, the overlay video frame sequence is passed to the graphics processing unit, which performs pixel-level processing on the overlay video frames one by one, identifies and removes invalid pixel areas that do not participate in the display composition, and retains only the valid pixel areas that actually need to be displayed.
[0061] Optionally, invalid pixels are pixels in the overlay video frame whose pixel transparency is higher than a preset transparency threshold.
[0062] Pixel transparency is a parameter that characterizes the visibility of a pixel, indicating the degree to which the pixel occludes the background layer. The higher the transparency, the lower the pixel's visibility. The preset transparency threshold is a pre-defined standard for distinguishing between valid and invalid pixels based on their transparency.
[0063] Specifically, the transparency of each pixel in the overlay video frame is obtained, and the transparency of each pixel is compared with a preset transparency threshold. If it is higher than the preset transparency threshold, the pixel is considered an invalid pixel.
[0064] Step 208: Use the graphics processing unit to render the effective pixel area of each overlay video frame into an overlay layer, and display the overlay layer on top of the background layer.
[0065] Specifically, the graphics processing unit processes the effective pixel area in each overlay video frame into a displayable layer (i.e., an overlay layer), then displays each overlay layer on its corresponding background layer, and then displays them continuously according to the time sequence of the corresponding video frames, thereby forming an interactive animation effect.
[0066] In this embodiment, by responding to an animation playback command, the main video stream is acquired, and the first video processing unit is invoked to perform hardware decoding on the main video stream to obtain the main video frame sequence. This allows the video decoding hardware in the vehicle terminal to complete the main video decoding process, reducing the CPU's workload and thus improving the main video decoding efficiency while minimizing the impact on overall system performance. The main video frame sequence is then provided to the graphics processing unit, which renders it as a background layer and outputs it for display. This enables stable and smooth playback of the main video on the display page, providing a unified basic image for subsequent overlay layers, thereby improving the continuity and visual consistency of the animation display. Responding to user interaction events in the preset interactive area of the display page, the type of user interaction event is identified, and the system can dynamically determine whether to show or hide the overlay layer based on the user's operation, thus achieving on-demand triggering of interactive animations. When the user interaction event is a layer activation event, the overlay video stream is acquired; the second video processing unit is invoked to perform hardware decoding on the overlay video stream to obtain the overlay video... The frequency frame sequence enables on-demand decoding of overlay video during user interaction, avoiding preprocessing of unnecessary overlay video and reducing unnecessary system resource usage. When the user interaction event is a layer deactivation event, the graphics processing unit (GPU) stops rendering the overlay video frame sequence, and the second video processing unit stops hardware decoding of the overlay video stream. This promptly releases system resources, preventing the overlay animation from affecting the main video playback and system performance, thus ensuring the continuity and stability of the interactive animation playback. By providing the overlay video frame sequence to the GPU, the GPU removes invalid pixels from each overlay video frame, obtaining the effective pixel area of each frame. The GPU then renders the effective pixel area of each overlay video frame as an overlay layer, which is then superimposed on the background layer. This reduces the computational load on the GPU, improves the display efficiency of the overlay animation, and ensures the continuity and stability of the interactive animation playback.
[0067] Figure 3 This is a structural schematic diagram of the interactive animation playback device provided in an embodiment of the present invention, as shown below. Figure 3 As shown, the device includes:
[0068] The first decoding module 301 is used to respond to the animation playback command, obtain the main video stream, call the first video processing unit to perform hardware decoding on the main video stream, and obtain the main video frame sequence.
[0069] The first display module 302 is used to provide the main video frame sequence to the graphics processing unit, and use the graphics processing unit to render the main video frame sequence as a background layer and output it for display.
[0070] The second decoding module 303 is used to respond to user interaction events in the preset interactive area of the display page, obtain the overlay video stream, call the second video processing unit to perform hardware decoding on the overlay video stream, and obtain the overlay video frame sequence.
[0071] The second display module 304 is used to provide the overlay video frame sequence to the graphics processing unit, use the graphics processing unit to render the overlay video frame sequence into an overlay layer, and display the overlay layer on top of the background layer.
[0072] In one embodiment, there are multiple preset interactive areas, and the second decoding module 303 acquires the overlay video stream, including:
[0073] The overlay video stream associated with the preset interactive area is obtained based on the area identifier of the preset interactive area.
[0074] In one embodiment, the second display module 304 uses a graphics processing unit to render the overlay video frame sequence into an overlay layer, including:
[0075] The graphics processing unit is used to remove invalid pixels from each overlay video frame in the overlay video frame sequence to obtain the effective pixel region of each overlay video frame;
[0076] The graphics processing unit is used to render the effective pixel area of each overlay video frame into an overlay layer.
[0077] In one embodiment, invalid pixels are pixels in the overlay video frame whose pixel transparency is higher than a preset transparency threshold.
[0078] In one embodiment, the second decoding module 303, in response to a user interaction event in a preset interactive area of the display page, acquires the overlay video stream, including:
[0079] Responding to user interaction events in the preset interactive areas of the displayed page, identify the type of user interaction event;
[0080] When the user interaction event is a layer activation event, obtain the overlay video stream.
[0081] In one embodiment, the interactive animation playback device further includes a stop module, used for:
[0082] When the user interaction event is a layer deactivation event, the graphics processing unit is controlled to stop rendering the overlay video frame sequence, and the second video processing unit is controlled to stop hardware decoding the overlay video stream.
[0083] In one embodiment, the second decoding module 303 identifies the type of user interaction event, including:
[0084] Query the display status of overlay layers associated with the preset interactive area;
[0085] If the overlay layer associated with the preset interactive area is not displayed, the type of the user interaction event is determined to be a layer activation event;
[0086] If the overlay layer associated with the preset interactive area is in a displayed state or in the display state, the type of user interaction event is determined to be a layer deactivation event.
[0087] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional modules is merely an example. In practical applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. The specific working process of the functional modules described above can be referred to the corresponding process in the foregoing method embodiments, and will not be repeated here.
[0088] The apparatus of this invention, in response to an animation playback command, acquires the main video stream, calls a first video processing unit to perform hardware decoding on the main video stream to obtain a main video frame sequence. This allows the main video to be decoded using the video decoding hardware in the vehicle terminal, reducing the CPU's workload and thus improving decoding efficiency while minimizing the impact on overall system performance. The main video frame sequence is then provided to a graphics processing unit, which renders it as a background layer and displays it. This enables stable and smooth playback of the main video on the display page, providing a unified base image for subsequent overlay layers, thereby improving the continuity and visual consistency of the animation display. For user interaction events in the preset interactive area of the display page, the overlay video stream is obtained, and the second video processing unit is called to perform hardware decoding on the overlay video stream to obtain the overlay video frame sequence. The overlay video can be decoded on demand when user interaction occurs, avoiding preprocessing of overlay video that does not need to be displayed, thereby reducing the unnecessary occupation of system resources. The overlay video frame sequence is provided to the graphics processing unit, which renders the overlay video frame sequence into an overlay layer and displays the overlay layer on the background layer. The dynamic display of the overlay video can be achieved without affecting the playback of the background layer, thereby ensuring the continuity and stability of the interactive animation effect playback.
[0089] The following is for reference. Figure 4 It shows a schematic diagram of the structure of a computer system 400 suitable for implementing an embodiment of the present invention. Figure 4 The vehicle-mounted terminal shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments of the present invention.
[0090] like Figure 4 As shown, the computer system 400 includes a central processing unit (CPU) 401, which can perform various appropriate actions and processes based on programs stored in read-only memory (ROM) 402 or programs loaded from storage section 408 into random access memory (RAM) 403. The RAM 403 also stores various programs and data required for the operation of the computer system 400. The CPU 401, ROM 402, and RAM 403 are interconnected via a bus 404. An input / output (I / O) interface 405 is also connected to the bus 404.
[0091] The following components are connected to I / O interface 405: input section 406 including keyboard, mouse, etc.; output section 407 including cathode ray tube, liquid crystal display, etc., and speakers, etc.; storage section 408 including hard disk, etc.; and communication section 409 including network interface card, such as modem, etc. Communication section 409 performs communication processing via a network such as the Internet. Drive 410 is also connected to I / O interface 405 as needed. Removable media 411, such as disk, optical disk, magneto-optical disk, semiconductor memory, etc., are installed on drive 410 as needed so that computer programs read from them can be installed into storage section 408 as needed.
[0092] In particular, according to the embodiments disclosed in this invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments disclosed in this invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via communication section 409, and / or installed from removable medium 411. When the computer program is executed by central processing unit (CPU) 401, it performs the functions defined above in the system of this invention.
[0093] It should be noted that the computer-readable medium shown in this invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory, an optical fiber, a portable compact disk read-only memory, an optical storage device, a magnetic storage device, or any suitable combination thereof. In this invention, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this invention, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wireless, wire, optical fiber, etc., or any suitable combination thereof.
[0094] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in a block diagram or flowchart, and combinations of blocks in a block diagram or flowchart, may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0095] The modules and / or units described in the embodiments of the present invention can be implemented in software or hardware. The described modules and / or units can also be housed in a processor; for example, a processor can be described as including a first decoding module, a first display module, a second decoding module, and a second display module. The names of these modules do not necessarily limit the functionality of the module itself.
[0096] In another aspect, the present invention also provides a computer-readable medium, which may be included in the vehicle-mounted terminal described in the above embodiments; or it may exist independently and not installed in the vehicle-mounted terminal. The computer-readable medium carries one or more programs, which, when executed by one or more of the vehicle-mounted terminals, cause the vehicle-mounted terminal to include:
[0097] In response to an animation playback command, the system acquires the main video stream, calls the first video processing unit to perform hardware decoding on the main video stream, and obtains the main video frame sequence. The main video frame sequence is then provided to the graphics processing unit, which renders the main video frame sequence as a background layer and outputs it for display. In response to a user interaction event in a preset interactive area of the display page, the system acquires the overlay video stream, calls the second video processing unit to perform hardware decoding on the overlay video stream, and obtains the overlay video frame sequence. The overlay video frame sequence is then provided to the graphics processing unit, which renders the overlay video frame sequence as an overlay layer and displays the overlay layer on top of the background layer.
[0098] The technical solution of this invention, in response to an animation playback command, acquires the main video stream, calls the first video processing unit to perform hardware decoding on the main video stream to obtain the main video frame sequence. This allows the video decoding hardware in the vehicle terminal to complete the decoding process of the main video, reducing the CPU's workload, thereby improving the main video decoding efficiency and reducing the impact on the overall system performance. The main video frame sequence is then provided to the graphics processing unit, which renders the main video frame sequence as a background layer and outputs it for display. This enables the main video to play stably and smoothly on the display page, providing a unified basic image for the display of subsequent overlay layers, thereby improving the continuity and visual consistency of the animation display. In response to user interaction events in the preset interactive area of the display page, the system acquires the overlay video stream, calls the second video processing unit to perform hardware decoding on the overlay video stream, and obtains the overlay video frame sequence. This allows for on-demand decoding of the overlay video when user interaction occurs, avoiding preprocessing of overlay video that does not need to be displayed, thereby reducing the unnecessary occupation of system resources. The overlay video frame sequence is then provided to the graphics processing unit, which renders the overlay video frame sequence into an overlay layer and displays the overlay layer on top of the background layer. This enables dynamic display of the overlay video without affecting the playback of the background layer, thus ensuring the continuity and stability of the interactive animation playback.
[0099] This invention also provides a computer program product, including a computer program that, when executed by a processor, implements the interactive animation playback method provided in any embodiment of this invention.
[0100] In the implementation of a computer program product, computer program code for performing the operations of this invention can be written in one or more programming languages or a combination thereof. Programming languages include object-oriented programming languages as well as conventional procedural programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including local area networks (LANs) or wide area networks (WANs), or it can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0101] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and no limitation is imposed herein.
[0102] It should be noted that the collection, use, storage, sharing, and transfer of user personal information involved in the technical solution of this invention all comply with the provisions of relevant laws and regulations, and require notification to the user and obtaining the user's consent or authorization. Where applicable, user personal information has undergone de-identification and / or anonymization and / or encryption technical processing. In addition, a corresponding operation entry is provided for the user to choose to agree to or reject the automated decision result; if the user chooses to reject, the process proceeds to the expert decision-making process.
[0103] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can occur depending on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.
Claims
1. An interactive animation playback method, characterized in that, Applications in vehicle-mounted terminals include: In response to the animation playback command, the main video stream is acquired, and the first video processing unit is invoked to perform hardware decoding on the main video stream to obtain the main video frame sequence. The main video frame sequence is provided to the graphics processing unit, which then renders the main video frame sequence as a background layer and outputs it for display. In response to user interaction events in the preset interactive area of the display page, the overlay video stream is acquired, and the second video processing unit is invoked to perform hardware decoding on the overlay video stream to obtain the overlay video frame sequence. The overlay video frame sequence is provided to the graphics processing unit, which renders the overlay video frame sequence into an overlay layer and displays the overlay layer on top of the background layer.
2. The method according to claim 1, characterized in that, The preset interactive areas are multiple, and the acquisition of the overlay video stream includes: Based on the region identifier of the preset interactive region, obtain the overlay video stream associated with the preset interactive region.
3. The method according to claim 1, characterized in that, The graphics processing unit renders the overlay video frame sequence into an overlay layer, including: The graphics processing unit is used to remove invalid pixels from each overlay video frame in the overlay video frame sequence to obtain the effective pixel region of each overlay video frame. The graphics processing unit is used to render the effective pixel area of each overlay video frame into an overlay layer.
4. The method according to claim 3, characterized in that, The invalid pixels are those in the overlay video frames whose pixel transparency is higher than a preset transparency threshold.
5. The method according to claim 1, characterized in that, In response to user interaction events in the preset interactive area of the displayed page, acquire the overlay video stream, including: In response to user interaction events in a preset interactive area of the displayed page, the type of the user interaction event is identified; When the user interaction event is a layer activation event, the overlay video stream is obtained.
6. The method according to claim 5, characterized in that, The method further includes: When the user interaction event is a layer deactivation event, the graphics processing unit is controlled to stop rendering the overlay video frame sequence, and the second video processing unit is controlled to stop hardware decoding the overlay video stream.
7. The method according to claim 5 or 6, characterized in that, Identifying the type of the user interaction event includes: Query the display status of the overlay layer associated with the preset interactive area; If the overlay layer associated with the preset interaction area is not displayed, the type of the user interaction event is determined to be the layer activation event; If the overlay layer associated with the preset interaction area is in a displayed state or in a displaying state, the type of the user interaction event is determined to be the layer deactivation event.
8. A vehicle-mounted terminal, comprising a video processing unit, a graphics processing unit, a memory, a central processing unit, and a computer program stored in the memory and executable on the central processing unit, characterized in that, When the central processing unit executes the program, it implements the interactive animation playback method as described in any one of claims 1 to 7.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the program is executed by the processor, it implements the interactive animation playback method as described in any one of claims 1 to 7.
10. A computer program product, characterized in that, The computer program product includes a computer program that, when executed by a processor, implements the interactive animation playback method as described in any one of claims 1 to 7.