Display apparatus and method of reducing dynamic image data amount
By dividing the animated image into segmented images and setting the static area as the base image, compressing the dynamic area, and using layer overlay technology, the problem of large data volume in animated images is solved, and the loading and display efficiency of animated images is improved.
Patent Information
- Application Number
- CN202311597942.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-27
- Publication Date
- 2026-02-06
- Estimated Expiration
- 2043-11-27
AI Technical Summary
Animated GIFs involve large amounts of data, which can affect the installation speed, upgrade speed, media loading speed, and display efficiency of applications.
The animated image file is divided into multiple segments. The static area is identified as the base image and the dynamic area is compressed. The dynamic effect is achieved by layering.
This reduces the amount of data in animated GIFs, improving their loading speed and display efficiency.
Smart Images

Figure CN118828077B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of image processing, and in particular to a display device and a method for reducing the data volume of a dynamic picture. BACKGROUND
[0002] In order to vividly and visually display some functional scenes, some application programs can use dynamic pictures to present dynamic effects. For example, in an Internet page, a dynamic picture can be used to dynamically display network content. Taking a Graphics Interchange Format (GIF) picture as an example, a GIF picture is a file format that can store multiple pictures. By reading the stored pictures frame by frame, a looped animation can be formed, and the presentation is more vivid and visual than a static picture.
[0003] Although the use of dynamic pictures can improve the expressiveness of scenes, the data volume of dynamic pictures is usually large. For example, a GIF picture is a mixture of multiple pictures that already exist in advance. When the GIF picture is played, it is played frame by frame according to a set time interval, that is, each frame of picture is displayed according to a time axis. In this way, the data volume of the dynamic picture increases geometrically with the number of frames. For an application program, the smaller the data volume of the application package, the higher the installation rate and the upgrade rate. Therefore, when the data volume of the dynamic picture is large, the installation speed, the upgrade speed, the loading speed, and the display efficiency of the application program and the media asset are affected. SUMMARY
[0004] Some embodiments of the present application provide a display device and a method for reducing the data volume of a dynamic picture to solve the problem of a large data volume of a dynamic picture.
[0005] In a first aspect, some embodiments of the present application provide a display device, comprising:
[0006] a display configured to display a user interface;
[0007] a controller configured to:
[0008] identify multiple picture frames in a dynamic picture file; the dynamic picture file is a picture file containing a first proportion of static pictures and a second proportion of dynamic pictures;
[0009] divide a dynamic picture corresponding to the dynamic picture file into multiple segmented pictures according to the motion state of the picture frames;
[0010] identify a static region in the segmented picture, and set the static region as a base picture in the segmented picture;
[0011] identify a dynamic region in the segmented picture, and compress the dynamic region into a compressed dynamic picture;
[0012] record the size and position of the background picture and the compressed dynamic picture;
[0013] replace a segment picture in the dynamic picture with the background picture and the compressed dynamic picture according to the size and the position.
[0014] In some embodiments, the controller performs the step of dividing the dynamic picture corresponding to the dynamic picture file into a plurality of segment pictures according to the motion state of the picture frames, and is further configured to:
[0015] identify static regions and dynamic regions in the picture frames according to pixel differences between adjacent picture frames;
[0016] obtain a time axis sequence of the dynamic picture;
[0017] divide the dynamic picture according to the time axis sequence, the static regions and the dynamic regions to generate a plurality of segment pictures.
[0018] In some embodiments, the controller performs the step of setting the static regions as background pictures in the segment pictures, and is further configured to:
[0019] obtain static regions in the segment pictures;
[0020] set target static frames in the static regions;
[0021] cut the target static frames, and mark the cut target static frames as background pictures in the segment pictures.
[0022] In some embodiments, the controller performs the step of compressing the dynamic regions into compressed dynamic pictures, and is further configured to:
[0023] obtain dynamic regions in the segment pictures and a plurality of dynamic frames of the dynamic regions;
[0024] compress the dynamic frames to generate compressed frames;
[0025] merge the compressed frames into a compressed dynamic picture according to a playing order of the dynamic frames; the data amount of the compressed dynamic picture is less than the sum of the data amounts of the dynamic frames.
[0026] In some embodiments, the controller performs the step of recording the size and position of the background picture and the compressed dynamic picture, and is further configured to:
[0027] calculate a first coordinate range of the background picture and a first height and a first width of a background picture placeholder;
[0028] calculate a second coordinate range of the compressed dynamic picture and a second height and a second width of a compressed dynamic picture placeholder;
[0029] constructing a first quadruple according to the first coordinate range, the first height and the first width, and recording the size and position of the base map by the first quadruple;
[0030] constructing a second quadruple according to the second coordinate range, the second height and the second width, and recording the size and position of the compressed dynamic map by the second quadruple.
[0031] In some embodiments, the controller performing the step of replacing the segmented map in the dynamic map with the base map and the compressed dynamic map according to the size and the position is further configured to:
[0032] determining a first position and a first size of the base map in the segmented map according to the first quadruple;
[0033] determining a second position and a second size of the compressed dynamic map in the segmented map according to the second quadruple;
[0034] in response to a display instruction of displaying the compressed dynamic map, controlling the display to display the base map in a first layer according to the first position and the first size, and to display the compressed dynamic map in a second layer superimposed according to the second position and the second size, wherein the second layer is above the first layer.
[0035] In some embodiments, the controller is further configured to:
[0036] obtaining a number of segmented maps of the segmented map;
[0037] obtaining base maps and compressed dynamic maps corresponding to all segmented maps;
[0038] setting a play sequence of the base maps and the compressed dynamic maps according to the number of segmented maps;
[0039] replacing the dynamic map with the base maps and the compressed dynamic maps according to the play sequence.
[0040] In some embodiments, the controller is further configured to:
[0041] determining a last compressed dynamic map according to the play sequence;
[0042] in response to a play completion event of the last compressed dynamic map, generating a freeze instruction;
[0043] freezing to a last frame static frame and a last frame of the last compressed dynamic map according to the freeze instruction.
[0044] In some embodiments, the controller is further configured to:
[0045] In response to a play instruction for playing the compressed dynamic picture, listen to a play progress of a current frame of the compressed dynamic picture.
[0046] When it is detected that the current frame of the compressed dynamic picture has a target number of frames remaining, pre-load a next frame of the background picture and a next frame of the compressed dynamic picture.
[0047] In a second aspect, some embodiments of the present application provide a method for reducing the data amount of a dynamic picture, which can be applied to the display device of the first aspect. The display device includes a display and a controller. The method for reducing the data amount of the dynamic picture includes:
[0048] Identifying a plurality of picture frames in a dynamic picture file; the dynamic picture file is a picture file containing a first proportion of static pictures and a second proportion of dynamic pictures;
[0049] Dividing a dynamic picture corresponding to the dynamic picture file into a plurality of segmented pictures according to the motion state of the picture frames;
[0050] Identifying a static region in the segmented picture, and setting the static region as a background picture in the segmented picture;
[0051] Identifying a dynamic region in the segmented picture, and compressing the dynamic region into a compressed dynamic picture;
[0052] Recording the size and position of the background picture and the compressed dynamic picture;
[0053] Replacing the segmented picture in the dynamic picture with the background picture and the compressed dynamic picture according to the size and the position.
[0054] According to the above technical solutions, some embodiments of the present application provide a display device and a method for reducing the data amount of a dynamic picture. The method includes: identifying a plurality of picture frames in a dynamic picture file, dividing a dynamic picture corresponding to the dynamic picture file into a plurality of segmented pictures according to the motion state of the picture frames, identifying a static region in the segmented picture, and setting the static region as a background picture in the segmented picture, identifying a dynamic region in the segmented picture, and compressing the dynamic region into a compressed dynamic picture, recording the size and position of the background picture and the compressed dynamic picture, and replacing the segmented picture in the dynamic picture with the background picture and the compressed dynamic picture according to the size and the position. The display device 200 can divide a large dynamic picture into a plurality of segmented pictures. For a dynamic picture that only has dynamic display in part of the region, it can be split into multiple layers. The static part can be replaced by a static frame background picture, and the dynamic part can be replaced by a small-size dynamic picture after compression. The final dynamic effect is achieved through the superposition of the layers. The data amount of the dynamic picture is reduced by the method of "static background picture + compressed dynamic picture", thereby solving the problem of large data amount of the dynamic picture. BRIEF DESCRIPTION OF DRAWINGS
[0055] In order to more clearly illustrate the technical solutions of some embodiments of the present application or the prior art, the drawings needed in the embodiments will be briefly introduced as follows. Obviously, the drawings in the following description only constitute some embodiments of the present application, and for those skilled in the art, other drawings can also be obtained without creative labor on the basis of these drawings.
[0056] Figure 1 A schematic diagram of an operation scenario between a display device and a control device provided by some embodiments of the present application;
[0057] Figure 2 A hardware configuration block diagram of a display device provided by some embodiments of the present application;
[0058] Figure 3 A hardware configuration block diagram of a control device provided by some embodiments of the present application;
[0059] Figure 4 A software configuration schematic diagram in a display device provided by some embodiments of the present application;
[0060] Figure 5 A method flow schematic diagram of a display device for reducing the amount of dynamic picture data provided by some embodiments of the present application;
[0061] Figure 6 A method timing schematic diagram of a display device for reducing the amount of dynamic picture data provided by some embodiments of the present application;
[0062] Figure 7 A flow schematic diagram of a display device for dividing a dynamic picture corresponding to a dynamic picture file into a plurality of segmented pictures according to the motion state of a picture frame provided by some embodiments of the present application;
[0063] Figure 8 A scenario schematic diagram of a display device for dividing a dynamic picture into a plurality of segmented pictures provided by some embodiments of the present application;
[0064] Figure 9 A flow schematic diagram of a display device for setting a static region as a base picture in a segmented picture provided by some embodiments of the present application;
[0065] Figure 10 A scenario schematic diagram of a display device for compressing a dynamic region into a compressed dynamic picture provided by some embodiments of the present application;
[0066] Figure 11 A flow schematic diagram of a display device for recording the size and position of a base picture and a compressed dynamic picture provided by some embodiments of the present application;
[0067] Figure 12The display device provided by some embodiments of the present application replaces the segmented image in the dynamic image with the base image and the compressed dynamic image according to the size and position, and the flowchart of the process is shown in FIG. 1;
[0068] Figure 13 The display device provided by some embodiments of the present application sets the playing sequence of the dynamic image, and the flowchart of the process is shown in FIG. 2;
[0069] Figure 14 The display device provided by some embodiments of the present application freezes the dynamic image, and the flowchart of the process is shown in FIG. 3;
[0070] Figure 15 The method provided by some embodiments of the present application reduces the amount of dynamic image data, and the flowchart of the process is shown in FIG. 4. DETAILED DESCRIPTION
[0071] In order to make the objects, technical solutions and advantages of some embodiments of the present application clearer, the technical solutions of some embodiments of the present application will be described clearly and completely below with reference to the specific embodiments of the present application and corresponding drawings. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments of the present application.
[0072] It should be noted that the brief description of the terms in some embodiments of the present application is only for the convenience of understanding the following described embodiments, and is not intended to limit the implementation of some embodiments of the present application. Unless otherwise specified, these terms should be understood according to their ordinary and general meanings.
[0073] The terms "include" and "have" and any variations thereof are intended to cover but not exclusive inclusion, for example, a product or device including a series of components does not have to be limited to all the components listed clearly, but can include other components not listed clearly or inherent to these products or devices.
[0074] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic or combination of hardware or / and software code capable of performing the functions associated with that element.
[0075] Figure 1 The schematic diagram of the operation scenario between the display device and the control device provided by some embodiments of the present application is shown in FIG. 5. Figure 1 As shown in FIG. 5, the user can operate the display device 200 through the mobile terminal 300 and the control device 100.
[0076] In some embodiments, the mobile terminal 300 can install a software application with the display device 200, realize connection communication through a network communication protocol, and realize the purpose of one-to-one control operation and data communication. The audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 to realize the function of synchronous display.
[0077] As Figure 1 It is also shown in the middle that the display device 200 also communicates data with the server 400 through various communication modes. The display device 200 can be allowed to be connected in communication through a local area network (LAN), a wireless local area network (WLAN), and other networks.
[0078] In addition to providing a broadcast receiving television function, the display device 200 can also provide a smart network television function that additionally provides a computer support function, including but not limited to a network television, a smart television, an Internet protocol television (IPTV), and the like.
[0079] Figure 2 A hardware configuration block diagram of the display device 200 provided for some embodiments of the present application is shown.
[0080] In some embodiments, the display device 200 includes at least one of a tuning demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, and a user interface.
[0081] In some embodiments, the detector 230 is used to collect signals of an external environment or interaction with the outside.
[0082] In some embodiments, the display 260 includes a display screen component for presenting a picture, and a driving component for driving an image display, a component for receiving an image signal originating from a controller output, and a component for displaying video content, image content, and a menu control interface, and a user control UI interface, and the like.
[0083] In some embodiments, the communicator 220 is a component for communicating with an external device or a server 400 according to various communication protocol types.
[0084] In some embodiments, the controller 250 controls the operation of the display device and responds to the user's operation by storing various software control programs on the memory. The controller 250 controls the overall operation of the display device 200.
[0085] In some embodiments, the user can input a user command in a graphical user interface (GUI) displayed on the display 260, and the user input interface receives the user input command through the graphical user interface (GUI).
[0086] In some embodiments, the user interface 280 is an interface that can be used to receive a control input.
[0087] Figure 3 A hardware configuration block diagram of the control device provided for some embodiments of the present application is shown. As Figure 3As shown, the control device 100 includes a controller 110, a communication interface 130, a user input / output interface, a memory, a power supply.
[0088] The control device 100 is configured to control the display device 200, and can receive the user's input operation instructions, and convert the operation instructions into instructions that the display device 200 can recognize and respond to, and play an intermediary role in the interaction between the user and the display device 200.
[0089] In some embodiments, the control device 100 can be a smart device. For example, the control device 100 can install various applications for controlling the display device 200 according to user needs.
[0090] In some embodiments, as shown Figure 1 As shown, the mobile terminal 300 or other smart electronic device can play a similar function of the control device 100 after installing the application for controlling the display device 200.
[0091] The controller 110 includes a processor 112 and a RAM 113 and a ROM 114, a communication interface 130, and a communication bus. The controller 110 is used to control the operation and operation of the control device 100, and the communication and cooperation between the internal components, and the data processing function of the external and internal.
[0092] The communication interface 130 realizes the communication of control signals and data signals between the display device 200 under the control of the controller 110. The communication interface 130 can include at least one of a WiFi chip 131, a Bluetooth module 132, an NFC module 133, and other near field communication modules.
[0093] The user input / output interface 140, wherein the input interface includes at least one of a microphone 141, a touchpad 142, a sensor 143, a key 144, and other input interfaces.
[0094] In some embodiments, the control device 100 includes at least one of the communication interface 130 and the input / output interface 140. The control device 100 is configured with a communication interface 130, such as a WiFi, Bluetooth, NFC module, which can encode the user input instructions through a WiFi protocol, or a Bluetooth protocol, or an NFC protocol, and send them to the display device 200.
[0095] The memory 190 is used to store various running programs, data and applications for driving and controlling the control device 100 under the control of the controller. The memory 190 can store various control signal instructions input by the user.
[0096] The power supply 180 is used to provide operating power support for the elements of the control device 100 under the control of the controller.
[0097] Figure 4 The software configuration diagram of the display device provided for some embodiments of the present application is shown in the following figure. In some embodiments, the system is divided into four layers from top to bottom, namely, the Applications layer (referred to as the "application layer"), the Application Framework layer (referred to as the "framework layer"), the Android runtime and system library layer (referred to as the "system runtime library layer"), and the kernel layer.
[0098] In some embodiments, at least one application program is running in the application layer. These application programs can be window (Window) programs, system setting programs, clock programs, camera applications, etc. provided by the operating system, or can be application programs developed by third-party developers.
[0099] The framework layer provides application programming interfaces (APIs) and programming frameworks for the application programs in the application layer. The application framework layer includes some pre-defined functions. The application framework layer is equivalent to a processing center that decides which application program in the application layer to act.
[0100] As shown in the following figure, the application framework layer in some embodiments of the present application includes managers, content providers, and view systems, etc. Figure 4
[0101] In some embodiments, the activity manager is used to manage the life cycle of each application program and the general navigation back function.
[0102] In some embodiments, the window manager is used to manage all window programs.
[0103] In some embodiments, the system runtime library layer provides support for the upper layer, i.e., the framework layer. When the framework layer is accessed, the Android operating system runs the C / C++ library included in the system runtime library layer to realize the functions of the framework layer.
[0104] In some embodiments, the kernel layer is the layer between hardware and software. As shown in the following figure, the kernel layer includes at least one of the following drivers: audio driver, display driver, Bluetooth driver, camera driver, WIFI driver, USB driver, HDMI driver, sensor driver (such as fingerprint sensor, temperature sensor, touch sensor, pressure sensor, etc.), etc. Figure 4
[0105] In some embodiments, the kernel layer also includes a power supply driving module for power management.
[0106] In some embodiments, Figure 4 The software architecture in the software architecture corresponds to the software programs and / or modules stored in the first memory or the second memory shown in Figure 2 or Figure 3 .
[0107] The above embodiments show a hardware / software architecture and function implementation of a display device 200. The display device 200 can display movies, pictures, web pages, and other media. To implement the function of playing media, various application programs can be deployed in the display device 200 to call and play media content through the application programs.
[0108] To vividly and visually display some function scenarios, some application programs can use dynamic pictures to present dynamic effects. For example, in an Internet page, dynamic pictures can be used to dynamically display network content. Taking the Graphics Interchange Format (GIF) format as an example, a GIF picture is a file format that can store multiple pictures. By reading the stored pictures frame by frame, a looped animation can be formed, and the presentation is more vivid and visual than a static picture.
[0109] Although the use of dynamic pictures can improve the expressiveness of scenarios, the data volume of dynamic pictures is often large. For example, a GIF picture is a mixture of multiple pictures that already exist. When playing the GIF picture, each frame is played according to a set time interval, that is, each frame of picture is displayed according to a time axis. In this way, the data volume of dynamic pictures increases geometrically with the number of frames. For application programs, a smaller data volume of an application package means a higher installation rate and upgrade rate. Therefore, when the data volume of dynamic pictures is large, the installation speed and upgrade speed of the application program, the loading speed and display efficiency of media, and the like are affected.
[0110] To solve the problem of large data volume of dynamic pictures, some embodiments of the present application provide a display device 200, which includes a display 260 and a controller 250, wherein the display 260 is configured to display a user interface, and the controller 250 is configured to perform a method of reducing the data volume of dynamic pictures. For dynamic pictures that are dynamically displayed in only part of the area, the dynamic pictures can be split into multiple layers. The static part can be replaced with a static frame background, and the dynamic part can be replaced with a small-size dynamic picture after compression. The final dynamic effect is achieved through the superposition of layers. For dynamic pictures that are dynamically displayed in part of the area, the data volume of the dynamic pictures can be reduced by the method of “static background + compressed dynamic picture” in the embodiments of the present application, thereby solving the problem of large data volume of dynamic pictures.
[0111] To facilitate the understanding of the technical solutions in some embodiments of the present application, each step is described in detail below in conjunction with some specific embodiments and the accompanying drawings.Figure 5 A flowchart of a method for reducing the data volume of a dynamic picture is provided for some embodiments of the present application, as shown in Figure 5 In some embodiments, the display device 200 can include the following steps S1-S6 when performing the method for reducing the data volume of a dynamic picture, and the specific content is as follows:
[0112] Step S1: The display device 200 identifies a plurality of picture frames in a dynamic picture file.
[0113] A dynamic picture, also known as a "GIF picture", is a picture format that forms an animation effect by alternating a plurality of pictures at a certain time interval, which can be used to display dynamic effects in social media, web design, advertising, etc. to attract the attention of users.
[0114] As mentioned above, although the use of dynamic pictures can improve the expressiveness of the scene, the data volume of dynamic pictures is often large. For example, a GIF picture is a mixture of a plurality of pictures that already exist, and when playing a GIF picture, it will be played frame by frame according to the set time interval, i.e. displaying each frame of image according to the time axis. In this way, the data volume of the dynamic picture will increase geometrically with the number of frames, so its data volume will be very large. It can be understood that a conventional dynamic picture file is a GIF file composed of individual picture frames, which can be picture frames obtained after frame processing or picture frames without other processing.
[0115] It should be noted that the dynamic picture file received by the display device 200 in the present application is not a conventional dynamic picture file, but a processed GIF file, for example, preprocessing can be performed offline. In some embodiments, the server side or operation and maintenance side can first obtain a conventional dynamic picture file, then separate the GIF frames contained in the dynamic picture file, and then identify each frame to separate static pictures and dynamic pictures. For example, it can contain a part of static pictures such as a first proportion of static pictures, and a part of dynamic pictures such as a second proportion of dynamic pictures. After identifying the static pictures and dynamic pictures, the static pictures and dynamic pictures can be combined respectively to generate static picture files and dynamic picture files, and finally the dynamic picture files and static picture files can be packaged into a file package to form the dynamic picture file containing static pictures and dynamic pictures required in the embodiments of the present application. The above process can be completed offline in advance. That is, in the embodiments of the present application, the display device 200 displays the dynamic picture effect according to the pre-processed dynamic picture file.
[0116] In some embodiments, animated graphs can include two forms: one where the entire area is dynamically displayed, and the other where only a portion of the area is dynamically displayed. For animated graphs where the entire area is dynamically displayed, frame-by-frame capture and compression can be performed to reduce the overall data size of the animated graph; this method is relatively easy to implement. However, for animated graphs where only a portion of the area is dynamically displayed, since the data size is mainly concentrated in the dynamic portion, reducing the data size of the dynamic portion can be achieved by focusing on reducing the data size of the dynamic portion, thereby reducing the total data size of the animated graph. The following section will use an animated graph where only a portion of the area is dynamically displayed as an example to illustrate in detail the method for reducing the data size of animated graphs.
[0117] For animated images where only a portion of the image is dynamically displayed, the animated image file can be a file containing a static image at a first scale and an animated image at a second scale, that is, a file consisting of part static images and part animated images. Figure 6 This application provides timing diagrams illustrating the method for reducing the amount of dynamic graph data performed by a display device according to some embodiments. Figure 6 As shown, in some embodiments, the display device 200 can identify multiple image frames in the animated image file, such as identifying GIF image frames, and then determine the motion state of the image frames by observing them frame by frame. After step S1 is completed, step S2 can be executed.
[0118] Step S2: The display device 200 divides the animated image file corresponding to the animated image into multiple segmented images according to the motion state of the image frames.
[0119] After the display device 200 recognizes the motion state of the image frame, it can divide the animated image file corresponding to the animated image into multiple segmented images according to the motion state. Figure 7 This application provides a flowchart illustrating how a display device, according to the motion state of an image frame, divides a dynamic image file corresponding to a dynamic image into multiple segmented images using a display device in some embodiments of the present application. Figure 7 As shown, when dividing the image into segments, the display device 200 can first identify the static and dynamic regions in the image frame based on the pixel difference between adjacent image frames, then obtain the timeline order of the dynamic image, and then divide the dynamic image according to the timeline order, static region and dynamic region to generate multiple segmented images.
[0120] For example, in combination Figure 6 The display device 200 can divide the dynamic image into N segments based on the motion state of the image frames, where N is a positive integer. Figure 8 This application provides some embodiments of a display device that divides a dynamic graph into multiple segmented graphs, as shown in the following schematic diagrams. Figure 8 As shown, Figure 8 The image shown is a cartoon character running. Figure 1The cartoon character runs in a process of 12 picture frames, in which, in the first to fifth frames, the upper body is not moving and the lower body is running; in the sixth to seventh frames, both the upper body and the lower body are moving; and in the eighth to twelfth frames, the upper body is not moving and the lower body is running again. When the dynamic picture is divided into segmented pictures, the following method can be adopted in combination with the moving state of the corresponding picture frame of the cartoon character.
[0121] In some embodiments, the first to fifth frames can be divided into a first segmented picture, which is a partial area dynamic display segmented picture, i.e., only the lower body is running and the upper body is not moving. The sixth to seventh frames can be divided into a second segmented picture, which is a full dynamic display segmented picture. The eighth to twelfth frames can be divided into a third segmented picture, which is similar to the first segmented picture, i.e., a partial area dynamic display segmented picture in which the upper body is not moving and the lower body is running. In this way, the division process of the dynamic picture is completed.
[0122] In some embodiments, the form of the dynamic picture can be relatively simple, for example, the background of the dynamic picture is not changed and only part of the picture is moving. In this case, the dynamic picture does not need to be segmented, and only the static part and the dynamic part need to be determined. After step S2 is executed, step S3 can be executed.
[0123] Step S3: The display device 200 identifies the static area in the segmented picture and sets the static area as the background of the segmented picture.
[0124] In some embodiments, after the display device 200 divides the dynamic picture into multiple segmented pictures, the display device 200 can identify the static area in the segmented picture and set the static area as the background of the segmented picture. Figure 9 The flowchart of setting the static area as the background of the segmented picture by the display device provided in some embodiments of the present application is shown in FIG. 2B. Figure 9 As shown in FIG. 2B, when setting the background of the segmented picture, the display device 200 can first acquire the static area in the segmented picture, then set a target static frame in the static area, and then intercept the target static frame and mark the intercepted target static frame as the background of the segmented picture.
[0125] For example, taking the first segmented picture as an example, the static area in the first segmented picture is the background and the upper body of the cartoon character running. For the picture frame in which the upper body is not moving in the first to fifth frames, a certain frame can be intercepted and the intercepted picture can be set as the background of the segmented picture. For example, the target static frame can be set as the first frame. The display device 200 can intercept the static frame in the first frame and set the intercepted static frame as the background P1 of the first segmented picture. In this way, the setting process of the background of the segmented picture is completed.
[0126] It should be noted that in the embodiments of the present application, after the target static frame is intercepted as the background picture, only one static frame is selected as the background layer. Compared with the manner that the first to fifth frames in the first segmented picture all have static frames, the number of picture frames is reduced. Therefore, on the one hand, the data amount of the dynamic frame can be reduced, and on the other hand, the rendering efficiency of the picture can be improved, and thus the loading speed and display efficiency of the dynamic picture can be improved.
[0127] Step S4: The display device 200 identifies the dynamic region in the segmented picture, and compresses the dynamic region into a compressed dynamic picture.
[0128] In some embodiments, the display device 200 can also identify the dynamic region in the segmented picture, and compress the dynamic region into a compressed dynamic picture, so as to reduce the data amount of the dynamic picture. Figure 10 The display device provided in some embodiments of the present application compresses the dynamic region into a compressed dynamic picture. As shown in Figure 10 When the display device 200 compresses the dynamic picture into a compressed dynamic picture, the dynamic region in the segmented picture and the dynamic frames of the dynamic region can be obtained first, then the dynamic frames can be compressed to generate compressed frames, and the compressed frames can be combined into a compressed dynamic picture according to the playing order of the dynamic frames. The data amount of the compressed dynamic picture is less than the sum of the data amounts of the dynamic frames.
[0129] For example, in combination with Figure 6 and Figure 10 , the display device 200 can intercept the dynamic part frame by frame for the first segmented picture, for example, the part of the lower body of the cartoon character that is always moving. A plurality of dynamic frames can be generated, each of which can correspond to different actions. Then, each dynamic frame can be compressed. The plurality of dynamic frames can be compressed into compressed frames by using lossless compression. Then, the compressed frames can be combined into a compressed dynamic picture G1 according to the playing order of the dynamic frames. It can be understood that, since each dynamic frame is compressed in the process of generating the compressed dynamic picture, the data amount of the compressed dynamic picture is less than the sum of the data amounts of the dynamic frames. Moreover, in the entire compression process, lossless compression can be used. Since there is no inter-frame difference algorithm for the dynamic picture, the decoding manner does not change, and thus the data amount of the entire dynamic picture can be reduced after compression. In this way, the data amount of the dynamic picture can be reduced without affecting the display effect of the dynamic picture, and thus the problem of large data amount of the dynamic picture can be solved.
[0130] It should be noted that, in this embodiment, the steps of identifying multiple image frames in the animated image file in step S1, dividing the animated image into multiple segmented images in step S2, setting the static area as the base image in the segmented images in step S3, and identifying the dynamic area in the segmented images and compressing the dynamic area into a compressed animated image in step S4 are all processing procedures for the animated image. These processing procedures require displaying an interface for processing the animated image. If executed on the server side, since the server cannot display the processing interface, additional port calls and other terminal calls are required, which would negatively impact processing efficiency. Therefore, the above-mentioned processing procedures for the animated image are preferably executed on the display device side.
[0131] Display device 200 can present an interface for processing animated images. When performing the processing flow of steps S1-S4 above on the animated image, since the animated image is fixed and each frame is also fixed, the display device terminal only needs to process the animated image once, and there is no need to repeat the process subsequently. Furthermore, the processing does not require any additional cumbersome procedures or complex interface calls; it only involves basic operations on the animated image, so it does not excessively consume the resources of display device 200. After step S4 is completed, step S5 can be executed.
[0132] Step S5: Display device 200 records the size and position of the base map and compressed animation.
[0133] Continue to combine Figure 6 After extracting the static region to generate the base image P1 in the first segmented image, the other segmented images can be obtained in the same way to get P2-Pn. After compressing the dynamic region into a compressed dynamic image G1 in the first segmented image, the other segmented images can be obtained in the same way to get G2-Gn. After obtaining the base images and compressed dynamic images of all segmented images, the display device 200 can record the size and position of the base images and compressed dynamic images to facilitate the subsequent replacement of the entire large dynamic image with the base images and compressed dynamic images of each segmented image.
[0134] Figure 11 This is a schematic diagram illustrating the flow of recording the size and position of the base map and compressed animation map in some embodiments of this application, such as... Figure 11 As shown, in some embodiments, when recording the size and position of the base image and the compressed animation image, the display device 200 can first calculate the first coordinate range of the base image and the first height and first width of the base image's space, and calculate the second coordinate range of the compressed animation image and the second height and second width of the compressed animation image's space. Then, it can construct a first quaternion based on the first coordinate range, the first height, and the first width, and record the size and position of the base image using the first quaternion. It can also construct a second quaternion based on the second coordinate range, the second height, and the second width, and record the size and position of the compressed animation image using the second quaternion.
[0135] For example, the first segmented graph has a base graph P1 and a compressed dynamic graph G1. The first coordinate range (x1, y1) of P1 is recorded first, and then the first height h1 and the first width w1 of the space occupied by P1 are recorded. The display device 200 can construct a first quadruple (w1, h1, x1, y1) according to the first coordinate range (x1, y1), the first height h1 and the first width w1. The second coordinate range (x2, y2) of the compressed dynamic graph G1 is calculated, and then the second height h2 and the second width w2 of the space occupied by the compressed dynamic graph G1 are calculated. The display device 200 can construct a second quadruple (w2, h2, x2, y2) according to the second coordinate range (x2, y2), the second height h2 and the second width w2. In this way, the size and position of the base graph P1 can be recorded by the first quadruple (w1, h1, x1, y1), and the size and position of the compressed dynamic graph G1 can be recorded by the second quadruple (w2, h2, x2, y2). After the size and position of the base graph P1 and the compressed dynamic graph G1 in the first segmented graph are recorded, the size and position of the base graphs P2-Pn and the compressed dynamic graphs G2-Gn in other segmented graphs can be recorded in the same way.
[0136] In some embodiments, the dynamic graph is a dynamic graph in which all regions are dynamically displayed. In this case, the size of the base graph can be set to 0, and the size of the compressed dynamic graph can be set to the size of the entire dynamic graph. Thus, the display device 200 completes the recording of the size and position of the base graph and the compressed dynamic graph. After step S5 is completed, step S6 can be performed.
[0137] Step S6: The display device 200 replaces the segmented graphs in the dynamic graph with the base graphs and the compressed dynamic graphs according to the size and position.
[0138] After the size and position of all base graphs and compressed dynamic graphs of the segmented graphs are recorded, the display device 200 can replace the segmented graphs in the dynamic graph with the base graphs and the compressed dynamic graphs according to the size and position, so as to reduce the data amount of the entire dynamic graph.
[0139] Figure 12 The flowchart of replacing the segmented graphs in the dynamic graph with the base graphs and the compressed dynamic graphs according to the size and position provided by the display device of some embodiments of the present application is shown in FIG. 6. Figure 12As shown, the display device 200 can first determine the first position and the first size of the base picture in the segmented picture according to the first quadruple, and then determine the second position and the second size of the compressed dynamic picture in the segmented picture according to the second quadruple. In response to the display instruction of the compressed dynamic picture, the display device 200 can control the display 260 to display the base picture in the first picture layer according to the first position and the first size, and display the compressed dynamic picture in the second picture layer according to the second position and the second size, where the second picture layer is above the first picture layer.
[0140] For example, the base picture and the compressed dynamic picture in the first segmented picture are replaced. The first position and the first size of the base picture P1 in the first segmented picture are determined according to the first quadruple (w1, h1, x1, y1), and then the second position and the second size of the compressed dynamic picture G1 in the first segmented picture are determined according to the second quadruple (w2, h2, x2, y2). When the final dynamic picture is displayed, the display device 200 can first add the base picture P1, for example, in the first picture layer, and add the compressed dynamic picture G1 in the second picture layer, that is, in the picture layer above the first picture layer. That is, the base picture and the compressed dynamic picture are displayed in a layered manner. The other segmented pictures are replaced in the same way, that is, the original segmented pictures are replaced by the respective base pictures and dynamic pictures. In this way, the entire large dynamic picture is replaced by the small dynamic picture composed of P1-Pn and G1-Gn, thereby reducing the data amount of the original large dynamic picture.
[0141] That is, in the embodiment of the present application, for the dynamic picture that is dynamically displayed in part of the area, the dynamic picture can be split into multiple layers, the static part can be replaced by the base picture of the static frame, and the dynamic part can be replaced by the compressed small-size dynamic picture. The final dynamic effect is achieved through layering. For the dynamic picture that is dynamically displayed in part of the area, the data amount of the dynamic picture can be reduced by using the method of "static base picture + compressed dynamic picture" in the embodiment of the present application.
[0142] In actual use scenarios, the motion state of the dynamic picture can be very complex. No matter how complex the dynamic picture is, a large dynamic picture can be split into multiple base pictures and compressed dynamic pictures in a segmented manner. Therefore, the universality of dynamic picture compression can be improved. Through the segmented picture, a large dynamic picture is split into multiple segments. Some segments that meet the dynamic display in part of the area can use the dynamic picture compression method in the embodiment of the present application, and the dynamic effect of the dynamic picture is displayed in a layered manner.
[0143] In order to ensure that the play order of the replaced dynamic picture is consistent with that of the replaced dynamic picture, in some embodiments, the display device 200 can also set the play sequence of the dynamic picture. Figure 13A flowchart for setting a playing sequence of a dynamic picture by a display device according to some embodiments of the present application is shown in FIG. 2A. As shown in FIG. 2A, the display device 200 can first acquire the number of segments of a segmented picture, and then acquire the base picture and the compressed dynamic picture corresponding to all the segmented pictures, and set the playing sequence of the base picture and the compressed dynamic picture according to the number of segments, and finally replace the dynamic picture with the base picture and the compressed dynamic picture according to the playing sequence. Figure 13
[0144] For example, when the dynamic picture is divided into three segmented pictures, the display device 200 can acquire three base pictures and three compressed dynamic pictures corresponding to the three segmented pictures, and then set the playing sequence of the three base pictures and the three compressed dynamic pictures. The form of setting the playing sequence can be set according to actual needs, for example, the base pictures and the compressed dynamic pictures can be numbered in the order from front to back, or in other ways, as long as the playing sequence of the base pictures and the compressed dynamic pictures can be reflected. After the playing sequence is set, the display device 200 can replace the original large dynamic picture with the base pictures and the compressed dynamic pictures in the segmented pictures according to the playing sequence.
[0145] In order to ensure the continuity of the dynamic picture display, in some embodiments, the display device 200 can also listen to the playing progress of the compressed dynamic picture. For example, as shown in FIG. 2B, the display device 200 can listen to the playing progress of the current frame of the compressed dynamic picture, and when it is detected that the current frame of the compressed dynamic picture still has a target number of frames, the next frame of the base picture and the next frame of the compressed dynamic picture are preloaded. Figure 6
[0146] For example, when the current frame of the compressed dynamic picture is G1 and the target number of frames is two, the display device 200 can listen to the playing progress of the dynamic picture G1, and when G1 still has two frames, the display device 200 can preload the base picture P2 and the dynamic picture G2, so as to ensure the continuity of the dynamic picture display.
[0147] Figure 14 A flowchart for setting a playing sequence of a dynamic picture by a display device according to some embodiments of the present application is shown in FIG. 2A. As shown in FIG. 2A, the display device 200 can first acquire the number of segments of a segmented picture, and then acquire the base picture and the compressed dynamic picture corresponding to all the segmented pictures, and set the playing sequence of the base picture and the compressed dynamic picture according to the number of segments, and finally replace the dynamic picture with the base picture and the compressed dynamic picture according to the playing sequence. Figure 14
[0148] For example, the last compressed animated frame can be Gn. After Gn finishes playing, the display device 200 can generate a freeze command and freeze the frame at the last frame of Pn and Gn. In this way, the display device 200 can freeze the frame at the last static frame and the last animated frame after the entire animated frame has finished playing, thus saving memory resources of the display device 200. In actual use, the settings can be configured according to actual needs, and this application does not impose specific limitations on this.
[0149] As can be seen from the above technical solutions, some embodiments of this application provide a display device 200. The display device 200 can identify multiple image frames in a dynamic image file, divide the dynamic image file corresponding to the dynamic image into multiple segmented images according to the motion state of the image frames, identify static areas in the segmented images, and set the static areas as the base images in the segmented images. It can also identify dynamic areas in the segmented images and compress the dynamic areas into compressed dynamic images. The size and position of the base image and the compressed dynamic image are recorded, and the segmented images in the dynamic image are replaced with the base image and the compressed dynamic image according to the size and position. The display device 200 can divide large dynamic images into multiple segmented images. For dynamic images where only a portion is dynamically displayed, they can be split into multiple layers. The static parts can be replaced with the base image of the static frame, and the dynamic parts can be replaced with compressed small-sized dynamic images. The final dynamic effect is achieved through the overlay of layers. By using the method of "static base image + compressed dynamic image," the data volume of the dynamic image is reduced, thereby solving the problem of large dynamic image data volume.
[0150] Based on the above-described display device 200, some embodiments of this application also provide a method for reducing the amount of dynamic graph data, which can be applied to the above-described display device 200. Figure 15 This is a schematic flowchart of a method for reducing the amount of dynamic graph data provided in some embodiments of this application, such as... Figure 15 As shown, in some embodiments, the method for reducing the amount of dynamic graph data may include the following steps S1-S6, the details of which are as follows:
[0151] Step S1: Identify multiple image frames in the animated image file; the animated image file is an image file containing a static image at a first scale and an animated image at a second scale.
[0152] For animated images where only a portion is dynamically displayed, the animated image file can be a file containing a static image at a first scale and an animated image at a second scale, i.e., a file composed of partly static images and partly animated images. In some embodiments, the display device 200 can identify multiple image frames in the animated image file, such as identifying GIF image frames, and then determine the motion state of the image frames by observing them frame by frame.
[0153] Step S2: Divide the animated image file into multiple segmented images according to the motion state of the image frames.
[0154] After the display device 200 identifies the motion state of the picture frame, the display device 200 can divide the dynamic picture corresponding to the dynamic picture file into a plurality of segment pictures according to the motion state. When dividing the segment pictures, the display device 200 can first identify the static region and the dynamic region in the picture frame according to the pixel difference between adjacent picture frames, then obtain the time axis sequence of the dynamic picture, and divide the dynamic picture according to the time axis sequence, the static region and the dynamic region to generate a plurality of segment pictures.
[0155] Step S3: identifying the static region in the segment picture, and setting the static region as the base picture in the segment picture.
[0156] In some embodiments, after the display device 200 divides the dynamic picture into a plurality of segment pictures, the display device 200 can identify the static region in the segment picture, and set the static region as the base picture in the segment picture. When setting the base picture in the segment picture, the display device 200 can first obtain the static region in the segment picture, then set a target static frame in the static region, cut the target static frame, and mark the cut target static frame as the base picture in the segment picture.
[0157] Step S4: identifying the dynamic region in the segment picture, and compressing the dynamic region into a compressed dynamic picture.
[0158] In some embodiments, the display device 200 can also identify the dynamic region in the segment picture, and compress the dynamic region into a compressed dynamic picture to reduce the data amount of the dynamic picture. When the display device 200 compresses the dynamic picture into a compressed dynamic picture, the display device 200 can first obtain the dynamic region in the segment picture and a plurality of dynamic frames of the dynamic region, then compress the dynamic frames to generate compressed frames, and combine the compressed frames into the compressed dynamic picture according to the playing order of the dynamic frames, wherein the data amount of the compressed dynamic picture is less than the sum of the data amounts of the dynamic frames.
[0159] Step S5: recording the size and position of the base picture and the compressed dynamic picture.
[0160] In some embodiments, when recording the size and position of the base picture and the compressed dynamic picture, the display device 200 can first calculate the first coordinate range of the base picture, the first height and the first width of the base picture placeholder, calculate the second coordinate range of the compressed dynamic picture, and the second height and the second width of the compressed dynamic picture placeholder, then construct a first four-tuple according to the first coordinate range, the first height and the first width, record the size and position of the base picture through the first four-tuple, construct a second four-tuple according to the second coordinate range, the second height and the second width, and record the size and position of the compressed dynamic picture through the second four-tuple.
[0161] Step S6: replacing the segment picture in the dynamic picture with the base picture and the compressed dynamic picture according to the size and position.
[0162] After the size and position of the background picture and the compressed dynamic picture are recorded, the display device 200 can replace the segmented pictures in the dynamic picture with the background picture and the compressed dynamic picture according to the size and position, so as to reduce the data amount of the entire dynamic picture. The display device 200 can first determine the first position and the first size of the background picture in the segmented picture according to the first quadruple, and then determine the second position and the second size of the compressed dynamic picture in the segmented picture according to the second quadruple. In response to the display instruction of the compressed dynamic picture, the display device 200 can control the display 260 to display the background picture in the first picture layer according to the first position and the first size, and to display the compressed dynamic picture in the second picture layer according to the second position and the second size, where the second picture layer is above the first picture layer.
[0163] According to the above technical solution, the method for reducing the data amount of the dynamic picture provided by the above embodiment includes identifying a plurality of picture frames in a dynamic picture file, dividing a dynamic picture corresponding to the dynamic picture file into a plurality of segmented pictures according to the motion state of the picture frames, identifying a static region in the segmented picture, and setting the static region as a background picture in the segmented picture, identifying a dynamic region in the segmented picture, and compressing the dynamic region into a compressed dynamic picture, recording the size and position of the background picture and the compressed dynamic picture, and replacing the segmented pictures in the dynamic picture with the background picture and the compressed dynamic picture according to the size and position. The method can divide a large dynamic picture into a plurality of segmented pictures, for a dynamic picture that only has dynamic display in part of the region, the dynamic picture can be split into multiple layers, the static part can be replaced by the background picture of the static frame, and the dynamic part can be replaced by the small-size dynamic picture after compression, and the final dynamic effect is realized through the superposition of the layers. The data amount of the dynamic picture is reduced through the method of “static background picture + compressed dynamic picture”, and thus the problem of large data amount of the dynamic picture is solved.
[0164] The same or similar parts among the various embodiments in the specification can be referred to each other, and will not be described here again.
[0165] Those skilled in the art can clearly understand that the technology in the embodiments of the present application can be realized by means of software and necessary general hardware platforms. Based on such understanding, the technical solutions in the embodiments of the present application can be embodied in the form of a software product, which can be stored in a storage medium, such as a ROM / RAM, a magnetic disk, an optical disk, etc., and includes a plurality of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method of the various embodiments or some parts of the embodiments of the present application.
[0166] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, and are not intended to limit the present application; although the present application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that the technical solutions recorded in the foregoing embodiments can still be modified, or some or all of the technical features can be replaced by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application.
[0167] The foregoing description has been presented for the purpose of illustration and description. It is not intended to be exhaustive or to limit the embodiments to the precise forms disclosed. Modifications and variations are possible in light of the above teachings or can be acquired from practice of the embodiments. The described embodiments were chosen and described in order to best explain the principles of the embodiments and its practical application. This enables others skilled in the art to best use the embodiments in various embodiments and with various modifications as are suited to the particular use contemplated.
Claims
1. A display device, characterized by comprising: The method comprises: displaying a user interface on a display; controlling a controller to: identify a plurality of picture frames in a dynamic picture file; the dynamic picture file is a picture file containing a first proportion of static pictures and a second proportion of dynamic pictures; divide the dynamic picture corresponding to the dynamic picture file into a plurality of segmented pictures according to the motion state of the picture frames; identify a static region in the segmented picture, and set the static region as a background picture in the segmented picture; identify a dynamic region in the segmented picture, and obtain a plurality of dynamic frames of the dynamic region; compress the dynamic frames to generate a compressed dynamic picture; record the size and position of the background picture and the compressed dynamic picture; determine a first position and a first size of the background picture in the segmented picture according to the size and position of the background picture; determine a second position and a second size of the compressed dynamic picture in the segmented picture according to the size and position of the compressed dynamic picture, the second size being the same as the size of the dynamic region; in response to a display instruction for displaying the compressed dynamic picture, control the display to display the background picture in a first layer according to the first position and the first size, and display the compressed dynamic picture in a second layer superimposed according to the second position and the second size, wherein the second layer is above the first layer.
2. The display device of claim 1, wherein, The controller performing the step of dividing the dynamic picture corresponding to the dynamic picture file into a plurality of segmented pictures according to the motion state of the picture frames is further configured to: identify a static region and a dynamic region in the picture frame according to the pixel difference of adjacent picture frames; obtain a time axis sequence of the dynamic picture; divide the dynamic picture according to the time axis sequence, the static region and the dynamic region to generate a plurality of segmented pictures.
3. The display device of claim 2, wherein, The controller performing the step of setting the static region as a background picture in the segmented picture is further configured to: obtain a static region in the segmented picture; set a target static frame in the static region; cut the target static frame, and mark the cut target static frame as a background picture in the segmented picture.
4. The display device of claim 1, wherein, The controller performing the step of compressing the dynamic frames to generate a compressed dynamic picture is further configured to: compress the dynamic frames to generate compressed frames; merge the compressed frames into a compressed dynamic picture according to the playing order of the dynamic frames; the data amount of the compressed dynamic picture is less than the sum of the data amounts of the dynamic frames.
5. The display device of claim 1, wherein, The controller performing the step of recording the size and position of the background picture and the compressed dynamic picture is further configured to: calculate a first coordinate range of the background picture, and a first height and a first width of the background picture placeholder; calculate a second coordinate range of the compressed dynamic picture, and a second height and a second width of the compressed dynamic picture placeholder; construct a first quadruple according to the first coordinate range, the first height and the first width, and record the size and position of the background picture through the first quadruple; construct a second quadruple according to the second coordinate range, the second height and the second width, and record the size and position of the compressed dynamic picture through the second quadruple.
6. The display device of claim 5, wherein, The controller is further configured to: determine a first position and a first size of the base image in the segment image according to the first quadruple; determine a second position and a second size of the compressed dynamic image in the segment image according to the second quadruple.
7. The display device of claim 6, wherein, The controller is further configured to: acquire a segment number of the segment image; acquire the base image and the compressed dynamic image corresponding to all segment images; set a playing sequence of the base image and the compressed dynamic image according to the segment number; replace the dynamic image with the base image and the compressed dynamic image according to the playing sequence.
8. The display device of claim 7, wherein, The controller is further configured to: determine a last compressed dynamic image according to the playing sequence; generate a freeze instruction in response to a playing completion event of the last compressed dynamic image; freeze to a last frame static frame and a last frame of the last compressed dynamic image according to the freeze instruction.
9. The display device of claim 8, wherein, The controller is further configured to: listen to a playing progress of a current frame compressed dynamic image in response to a playing instruction of the compressed dynamic image; preload a next frame base image and a next frame compressed dynamic image when detecting that the current frame compressed dynamic image still has a target number of frames.
10. A method of reducing the amount of dynamic map data, characterized by, The display device of any one of claims 1-9, the method of reducing the amount of dynamic image data comprises: identifying a plurality of picture frames in a dynamic image file; the dynamic image file is a picture file containing a first proportion of static images and a second proportion of dynamic images; dividing dynamic images corresponding to the dynamic image file into a plurality of segment images according to motion states of the picture frames; identifying static regions in the segment images and setting the static regions as base images in the segment images; identifying dynamic regions in the segment images and acquiring a plurality of dynamic frames of the dynamic regions; compressing the dynamic frames to generate compressed dynamic images; recording sizes and positions of the base images and the compressed dynamic images; determining a first position and a first size of the base image in the segment image according to the sizes and positions of the base images; determining a second position and a second size of the compressed dynamic image in the segment image according to the sizes and positions of the compressed dynamic images, the second size being the same as a size of the dynamic region; controlling the display to display the base image in a first layer according to the first position and the first size and to display the compressed dynamic image in a second layer superimposed according to the second position and the second size in response to a display instruction of the compressed dynamic image, wherein the second layer is above the first layer.
Citation Information
Patent Citations
Real time video image transmission technology
CN100469108C
Dynamic image compression method and device, computer equipment and storage medium
CN109429067A