Display device and special effect image generation method

By sending the image to be processed and the drawing instruction set to the image processor, the image processor performs pixel recognition and texture rendering, solving the problem of insufficient memory of the central processor and realizing the generation and playback of high-resolution special effects images.

CN118748737APending Publication Date: 2024-10-08VIDAA (NETHERLANDS) INT HLDG BV
View PDF -1 Cites 0 Cited by

Patent Information

Application Number
CN202411017527.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-08

AI Technical Summary

Technical Problem

When the display device generates special effects images, the central processing unit occupies a large amount of memory, resulting in the inability to play high-resolution images.

Method used

By sending the image to be processed and the drawing instruction set to the image processor, the image processor performs pixel identification and texture rendering on the image to be processed according to the drawing instructions, freeing up the memory of the central processor, thereby improving the resolution of the special effects image.

Benefits of technology

It achieves the generation of high-resolution special effects images without occupying a large amount of central processor memory, and improves the image processing efficiency of the display device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118748737A_ABST
    Figure CN118748737A_ABST
Patent Text Reader

Abstract

The invention provides a display device and a special effect image generation method, and the method comprises the steps: obtaining an image code and a target image special effect in response to a special effect generation instruction input by a user, decoding the image code to obtain a to-be-processed image, and obtaining a drawing instruction set according to the target image special effect, and sending the to-be-processed image to an image processor, and performing pixel point identification on the to-be-processed image through the image processor to obtain image pixel points. And the drawing instruction set is sent to the image processor, so that the image processor responds to the drawing instruction, texture drawing is performed on the image pixel points, a special effect image is obtained, and the special effect image is rendered and displayed. The to-be-processed image and the drawing instruction set are sent to the image processor, and the image processor releases the memory of the central processing unit according to the drawing instruction, so that the resolution of the special effect image is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of display devices, and in particular to a display device and a method for generating special effect images. Background Art

[0002] Display devices can be used to play media data. For example, users can view image media through the display device. To enhance the visual display of image media, the display device can add image effects when displaying media data, thereby generating dynamic images that can be played or displayed with image effects.

[0003] When generating dynamic images, the display device needs to blend multiple images based on specific dynamic effects. Therefore, the display device uses the central processing unit (CPU) to import and calculate the multiple images required for the image effects. The large amount of calculation and high-resolution image data cause the CPU to occupy a large amount of memory. When the CPU memory is insufficient to generate dynamic images, the image resolution must be reduced, resulting in the display device being unable to produce the desired effects with high-resolution images. Summary of the Invention

[0004] The present application provides a display device and a special effect image generation method to solve the problem that the central processing unit of the display device occupies a large amount of memory in the process of generating special effect images, resulting in the inability to play high-resolution images.

[0005] In a first aspect, some embodiments of the present application provide a display device, comprising a display, an image processor, and a controller, wherein the display is configured to display an image, the image processor is configured to draw image data, and the controller is configured to:

[0006] In response to a special effect generation instruction input by a user, acquiring an image code and a target image special effect, wherein the target image special effect is an image special effect specified by the special effect generation instruction;

[0007] Decoding the image code to obtain an image to be processed, and acquiring a drawing instruction set according to the target image special effect, wherein the drawing instruction set includes drawing instructions for generating the target image special effect;

[0008] Sending the image to be processed to an image processor so that the image processor performs pixel recognition on the image to be processed to obtain image pixels;

[0009] Sending the drawing instruction set to the image processor, so that the image processor performs texture drawing on the image pixels in response to the drawing instruction to obtain a special effect image;

[0010] Rendering is performed on the special effect image, and the display is controlled to display an image frame corresponding to the rendered special effect image.

[0011] In some embodiments, the device further includes a memory configured to store the image to be processed, and the controller sends the image to be processed to the image processor, configured to:

[0012] Acquiring a storage state of the image to be processed, the storage state including a first storage state and a second storage state, the first storage state being used to indicate that the image to be processed is stored in the memory; the second storage state being used to indicate that the image to be processed is stored in the image processor;

[0013] If the storage state is the first storage state, an image index is created according to the image to be processed, and the image index is sent to the image processor.

[0014] In some embodiments, if the storage state is the second storage state, the controller is specifically configured to:

[0015] Obtaining the memory remaining of the buffer of the image processor;

[0016] If the remaining memory capacity is greater than or equal to the image data size of the image to be processed, the image to be processed is stored in the buffer.

[0017] In some embodiments, the controller performs decoding on the image code and is configured to:

[0018] Acquire a coding format of the image coding, where the coding format includes a first coding format and a second coding format;

[0019] If the image code is in the first coding format, decoding the image code in the first decoding format, and storing the decoded image to be processed in the memory;

[0020] If the image code is in the second coding format, the image code is decoded in the second decoding format, and the decoded image to be processed is stored in the image processor.

[0021] In some embodiments, the image processor includes a first shader and a second shader, and the controller executes sending the drawing instruction set to the image processor and is configured to:

[0022] Obtain pixel vertex coordinates at the image pixel point using a first shader;

[0023] Sending the pixel vertex coordinates to the second shader;

[0024] The second shader performs texture rendering on the image to be processed based on the pixel vertex coordinates to obtain a special effect image.

[0025] In some embodiments, the controller performs texture rendering on the image to be processed based on the pixel vertex coordinates through the second shader, and is configured to:

[0026] Creating a texture index of the image to be processed, wherein the texture index is used to represent a positional relationship between partial images of the image to be processed;

[0027] The second shader performs texture rendering on the image to be processed according to the texture index and the pixel vertex coordinates to obtain a special effect image.

[0028] In some embodiments, the controller performs texture rendering on the image to be processed based on the pixel vertex coordinates through the second shader, and is configured to:

[0029] Set the texture drawing step size;

[0030] Determining texture rendering parameters according to the texture rendering step size;

[0031] Texture rendering is performed on the image to be processed according to the texture rendering parameters to obtain a special effect image.

[0032] In some embodiments, after the controller performs the step of decoding the image code, the controller is further configured to:

[0033] Acquire the image resolution of the image to be processed;

[0034] If the image resolution is greater than the device resolution, the image to be processed is reduced according to the aspect ratio of the image to be processed, and the device resolution is the current resolution of the display device;

[0035] If the image resolution is smaller than the device resolution, the image to be processed is enlarged according to the aspect ratio of the image to be processed.

[0036] In a second aspect, some embodiments of the present application provide a method for generating special effects images, which is applied to the display device described in the first aspect, wherein the display device includes a display, an image processor, and a controller, wherein the display is configured to display an image, and the image processor is configured to draw image data, wherein the method includes:

[0037] In response to a special effect generation instruction input by a user, acquiring an image code and a target image special effect, wherein the target image special effect is an image special effect specified by the special effect generation instruction;

[0038] Decoding the image code to obtain an image to be processed, and acquiring a drawing instruction set according to the target image special effect, wherein the drawing instruction set includes drawing instructions for generating the target image special effect;

[0039] Sending the image to be processed to an image processor so that the image processor performs pixel recognition on the image to be processed to obtain image pixels;

[0040] Sending the drawing instruction set to the image processor, so that the image processor performs texture drawing on the image pixels in response to the drawing instruction to obtain a special effect image;

[0041] Rendering is performed on the special effect image, and the display is controlled to display an image frame corresponding to the rendered special effect image.

[0042] It can be seen from the above technical solutions that the present application provides a display device and a special effect image generation method, which obtains image coding and target image special effects in response to special effect generation instructions input by the user, and decodes the image coding to obtain an image to be processed, and obtains a drawing instruction set according to the target image special effects, and sends the image to be processed to an image processor so that the image processor performs pixel recognition on the image to be processed to obtain image pixels. The drawing instruction set is sent to the image processor so that the image processor responds to the drawing instruction and performs texture drawing on the image pixels to obtain a special effect image, thereby rendering the special effect image and displaying it. The present application improves the resolution of the special effect image by sending the image to be processed and the drawing instruction set to the image processor, and the image processor processes the image according to the drawing instruction, thereby releasing the memory of the central processing unit. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0044] Figure 1 A schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application;

[0045] Figure 2 A schematic diagram of the hardware configuration of a display device provided in some embodiments of the present application;

[0046] Figure 3 A schematic diagram of software configuration of a display device provided in some embodiments of the present application;

[0047] Figure 4 A flowchart of generating special effect images for a display device provided in some embodiments of the present application;

[0048] Figure 5 A flowchart of a method for generating special effects images provided in some embodiments of the present application;

[0049] Figure 6 A timing diagram of a display device generating special effect images according to some embodiments of the present application;

[0050] Figure 7 A schematic diagram of a display device displaying a special effect selection interface provided in some embodiments of the present application;

[0051] Figure 8 A preview display diagram of a special effect image generated by a display device provided in some embodiments of the present application;

[0052] Figure 9 This is a flowchart of an image to be processed in a first storage state in some embodiments of the present application;

[0053] Figure 10 This is a flowchart of an image to be processed in the second storage state in some embodiments of the present application;

[0054] Figure 11 A flowchart of determining a storage location according to an encoding format in some embodiments of the present application;

[0055] Figure 12 A flowchart of an image processor generating a special effect image in some embodiments of the present application;

[0056] Figure 13 A picture of the first embodiment of creating a texture index for this application;

[0057] Figure 14 A screen image of the display device provided by this application showing a special effect image in an initial state;

[0058] Figure 15 This is a screen image of the dynamic effects of the special effects image displayed by the display device provided in this application. DETAILED DESCRIPTION

[0059] The following embodiments are described in detail, with examples illustrated in the accompanying drawings. When the following description refers to the drawings, identical numbers in different figures represent identical or similar elements unless otherwise indicated. The embodiments described in the following embodiments are not intended to represent all possible implementations consistent with the present application. They are merely examples of systems and methods consistent with certain aspects of the present application, as detailed in the claims.

[0060] It should be noted that the brief descriptions of terms in this application are only for the purpose of facilitating the understanding of the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their ordinary and usual meanings.

[0061] In the specification and claims of this application and the accompanying drawings, the terms "first," "second," "third," etc. are used to distinguish similar or similar objects or entities, and are not necessarily intended to limit a particular order or sequence, unless otherwise noted. It should be understood that the terms used in this manner are interchangeable under appropriate circumstances.

[0062] The terms "comprise," "include," and "have," and any variations thereof, are intended to cover but not exclude inclusion; for example, a product or device comprising a list of components is not necessarily limited to all the components expressly listed but may include other components not expressly listed or inherent to such product or device.

[0063] The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functionality associated with that element.

[0064] In the embodiments of the present application, the display device 200 generally refers to a device capable of displaying images and processing data. For example, the display device 200 includes but is not limited to a smart TV, a mobile terminal, a computer, a monitor, an advertising screen, a wearable device, a virtual reality device, an augmented reality device, etc.

[0065] Figure 1 This is a schematic diagram of an operation scenario between a display device and a control device provided in some embodiments of the present application. Figure 1 As shown in FIG, a user can operate the display device 200 through touch operation, the mobile terminal 300, and the control device 100. The control device 100 is used to receive operation instructions input by the user and convert the operation instructions into control instructions that the display device 200 can recognize and respond to. For example, the control device 100 can be a remote control, a stylus pen, a handle, etc.

[0066] The mobile terminal 300 can function as a control device for performing human-computer interaction between a user and the display device 200. The mobile terminal 300 can also function as a communication device for establishing a communication connection with the display device 200 and exchanging data. In some embodiments, the mobile terminal 300 can install software applications with the display device 200, enabling connection and communication via a network communication protocol, enabling one-to-one control operations and data communication. Audio and video content displayed on the mobile terminal 300 can also be transmitted to the display device 200 for synchronized display.

[0067] In some embodiments, the mobile terminal 300 or other electronic devices can also simulate the functions of the control device 100 by running an application program for controlling the display device 200 .

[0068] like Figure 1 As shown in FIG, the display device 200 also communicates data with the server 400 through various communication methods. The display device 200 may be allowed to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks.

[0069] The display device 200 may provide a broadcast receiving television function, and may also additionally provide an intelligent network television function with a computer support function, including but not limited to network television, smart TV, Internet Protocol television (IPTV), etc.

[0070] Figure 2 Some embodiments of this application provide Figure 1 2 is a block diagram of the hardware configuration of the display device 200.

[0071] In some embodiments, the display device 200 may include at least one of a tuner 210, a communication device 220, a detector 230, a device interface 240, a controller 250, a display 260, an audio output device 270, a memory, a power supply, and a user input interface.

[0072] In some embodiments, detector 230 is used to collect signals from the external environment or external interactions. For example, detector 230 may include a light receiver, such as a sensor for collecting ambient light intensity; or an image collector, such as a camera, for collecting external environmental scenes, user attributes, or user interaction gestures; or a sound collector, such as a microphone, for receiving external sounds.

[0073] In some embodiments, the display 260 includes a display component for presenting images and a driver component for driving image display. The display 260 is configured to receive image signals output from the controller 250 for display. For example, the display 260 can be used to display video content, image content, menu control interface components, and user control UI interfaces.

[0074] In some embodiments, the communication device 220 is a component used to communicate with an external device or server 400 according to various communication protocol types. The display device 200 can be provided with multiple communication devices 220 depending on the supported communication methods. For example, if the display device 200 supports wireless network communication, the display device 200 can be provided with a communication device 220 including WiFi functionality. If the display device 200 supports Bluetooth connection communication, the display device 200 needs to be provided with a communication device 220 including Bluetooth functionality.

[0075] The communication device 220 can establish a communication connection between the display device 200 and an external device or server 400 via a wireless or wired connection. A wired connection can connect the display device 200 to an external device via a data cable, an interface, or other components. A wireless connection can connect the display device 200 to an external device via a wireless signal or wireless network. The display device 200 can establish a connection with an external device directly or indirectly through a gateway, router, or connection device.

[0076] In some embodiments, the controller 250 may include at least one of a central processing unit (CPU), a video processor, an audio processor, a graphics processor, and a power processor, and first to nth interfaces for input / output. The controller 250 controls the operation of the display device and responds to user operations through various software control programs stored in a memory. The controller 250 controls the overall operation of the display device 200.

[0077] In some embodiments, the controller 250 and the tuner 210 may be located in different separate devices, that is, the tuner 210 may also be located in an external device of the main device where the controller 250 is located, such as an external set-top box.

[0078] In some embodiments, the user may input a user command through 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).

[0079] In some embodiments, the audio output device 270 may be a local speaker of the display device 200, or an external audio output device connected to the display device 200. For the external audio output device connected to the display device 200, the display device 200 may further be provided with an external audio output terminal, through which the audio output device may be connected to the display device 200 to output the sound of the display device 200.

[0080] In some embodiments, the user input interface 280 may be configured to receive instructions from a user.

[0081] To facilitate user interaction, in some embodiments, the display device 200 may run an operating system. The operating system is a computer program used to manage and control the hardware and software resources of the display device 200. The operating system can control the display device to provide a user interface. For example, the operating system can directly control the display device to provide a user interface, or it can provide a user interface by running an application program. The operating system also allows the user to interact with the display device 200.

[0082] It should be noted that the operating system may be a native operating system based on a specific operating platform, or a third-party operating system deeply customized based on a specific operating platform, or an independent operating system specially developed for the display device.

[0083] The operating system can be divided into different modules or layers according to the functions implemented, e.g. Figure 3 As shown, in some embodiments, the system is divided into four layers, from top to bottom, namely, the application layer (referred to as "application layer"), the application framework layer (referred to as "framework layer"), the system library layer and the kernel layer.

[0084] In some embodiments, the application layer provides services and interfaces for applications, enabling the display device 200 to run applications and interact with the user based on the applications. The application layer can host at least one application, which can include built-in window programs, system settings programs, clock programs, and the like, or applications developed by third-party developers. In specific implementations, the application packages in the application layer are not limited to the examples above.

[0085] The framework layer provides applications with an application programming interface (API) and programming framework. The application framework layer includes predefined functions. The application framework layer acts as a processing center, determining the actions taken by applications in the application layer. Through the API, applications can access system resources and services during execution.

[0086] like Figure 3As shown, in the embodiment of the present application, the application framework layer includes a view system, managers, content providers, etc., wherein the view system can design and implement the interface and interaction of the application, and the view system includes lists, grids, text boxes, buttons, etc. The manager includes at least one of the following modules: an activity manager for interacting with all activities running in the system; a location manager for providing system services or applications with access to the system location service; a package manager for retrieving various information related to the application packages currently installed on the device; a notification manager for controlling the display and clearing of notification messages; and a window manager for managing icons, windows, toolbars, wallpapers, and desktop widgets on the user interface.

[0087] In some embodiments, the activity manager is used to manage the lifecycle of each application and common navigation back functions, such as controlling application exit, opening, and back. The window manager is used to manage all window programs, such as obtaining the display screen size, determining whether there is a status bar, locking the screen, taking screenshots, and controlling changes in display windows, such as shrinking, shaking, or distorting the display window.

[0088] In some embodiments, the system runtime layer can provide support for the framework layer. When the framework layer is used, the operating system will run the instruction library contained in the system runtime layer, such as the C / C++ instruction library, to implement the functions to be implemented by the framework layer.

[0089] In some embodiments, the kernel layer is a functional layer between the hardware and software of the display device 200. The kernel layer can implement functions such as hardware abstraction, multitasking, and memory management. Figure 3 As shown, the kernel layer can be configured with hardware drivers, and the drivers included in the kernel layer can be 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, pressure sensor, etc.), and power driver, etc.

[0090] It should be noted that the above example is only a simple division of the operating system functions and does not constitute a limitation on the specific operating system form of the display device 200 in the embodiment of the present application. Depending on factors such as the function of the display device and the type of operating system, the number of levels and specific level types contained in the operating system may be expressed in other forms.

[0091] In some embodiments, the display device 200 can play corresponding media data, such as video media, audio media, or image media, in response to a play instruction input by the user. In order to enhance the visual display effect of the media data, the display device can add dynamic special effects to the displayable media data, such as video media or image media, to display the media data more vividly and realistically. The embodiment of the present application uses image media as an example, and the image generated after adding special effects is referred to as a special effect image. It should be understood that since video media is composed of multiple video frames with image content, the special effect image can be a static image or a dynamic image including continuous image content.

[0092] In the process of generating special effect images by the display device 200, special effect drawing processing of multiple image media assets is usually involved. Based on different special effect types, the drawing process for multiple image media assets is also different, wherein the special effect types may include display special effects and dynamic special effects. Display special effects are to process image media assets with different display parameters, for example, by adjusting image parameters such as contrast, brightness, saturation or exposure of image media assets, corresponding filter display special effects are generated. Dynamic special effects are to process image media assets with different dynamic effects. For example, in a dynamic image, dynamic effects can be added between two consecutive video frames, such as the disappearance effect of the previous video frame and the appearance effect of the next video frame. The latter is the switching effect between the two video frames, etc. Dynamic effects can include multiple types, such as fade in, fade out, folding and expanding, shutter-like expansion, rotational expansion, etc.

[0093] It should be noted that an image special effect may include only one type of special effect, for example, only display special effects or only dynamic special effects. It may also include multiple special effect types, for example, one display special effect and one dynamic special effect. Multiple display special effects and multiple dynamic special effects may also be arranged and combined in the order of special effects to obtain an image special effect.

[0094] Before generating the special effect image, the display device 200 may obtain image data for generating the special effect image, and the image data may be one or more images. Figure 4As shown, the display device 200 can decode the image data through the image decoding module, and the central processing unit responds to the special effect instructions input by the user to perform special effect mixing on the decoded image data according to the image effect selected by the user, thereby generating a special effect image. Due to the limited memory of the central processing unit, in the process of generating special effect images, the central processing unit needs to perform image data import and special effect synthesis calculations. The large amount of calculation and high-resolution image data will occupy a large amount of memory of the central processing unit. When the memory of the central processing unit is insufficient to generate dynamic images, the image resolution needs to be reduced, resulting in the display device being unable to meet the special effect requirements of displaying high-resolution images.

[0095] In order to solve the problem that the central processing unit of the display device occupies a large amount of memory in the process of generating special effect images, resulting in the inability to play high-resolution images, some embodiments of the present application provide a display device 200, wherein the display device 200 includes a display 260, an image processor and a controller 250, wherein the display 260 is configured to display an image screen, the image processor is configured to draw image data, and the controller 250 is configured to execute a special effect image generation method. Figure 5 A flowchart of a display device executing and generating special effect images is provided in an embodiment of the present application. Figure 6 The timing diagram of the display device generating special effect images provided in the embodiment of the present application. The display device 200 can be as follows Figure 6 The process of generating special effect images by executing the timing relationship is shown in Figure 5 , the method includes the following contents:

[0096] S100: In response to a special effect generation instruction input by a user, an image code and a target image special effect are acquired.

[0097] The user can control the display 260 to display a special effect selection interface through specific setting instructions. The special effect selection interface can include a variety of image special effects. Since image data can also include video frame data, the special effect selection interface can also include video special effects. Video special effects are used to draw special effects on each video frame data in the video data according to the preset special effects. Figure 7 As shown, taking image special effects as an example, the controller 250 can respond to the special effects generation instruction input by the user based on the special effects selection interface to obtain the target image special effect, where the target image special effect is the image special effect specified by the special effects generation instruction.

[0098] In some embodiments, the special effects generation instruction may specify only one image special effect or multiple image special effects, that is, the target image special effect may include one image special effect or multiple image special effects, so as to realize multiple special effects in the image data. Among them, when the target image special effect includes multiple image special effects, they can be arranged in the selection order of the special effects generation instruction, so as to perform special effects drawing on the image data in sequence according to the arrangement order. For example, the target image special effect may include a first image special effect and a second image special effect, wherein the first image special effect is folding and the second image special effect is rotation, then the dynamic effect of the special effects picture generated subsequently is to execute the folding special effect first and then the rotation special effect. When the target image special effect includes multiple image special effects, special effects drawing can also be performed on the image data at the same time. Following the above embodiment, when the special effects drawing of the first image special effect and the second image special effect is performed on the image data at the same time, the dynamic effect of the special effects picture is to execute the folding special effect and the rotation special effect at the same time.

[0099] The target image effect needs to be applied to the image data. Therefore, the controller 250 can obtain the image code in response to the special effect generation instruction. The amount of image data included in the image code varies depending on the complexity of the image effect. For a relatively simple image effect, that is, the target image effect is a display effect, the image code may include a single piece of image data. For a relatively complex image effect, that is, the target image effect includes two or more different types of special effects, the image code may include multiple pieces of image data.

[0100] Controller 250 can obtain an image code based on the amount of image data. Before obtaining the image code, controller 250 traverses the local image data. If the image data is local, the image code is directly obtained from the local image data. If the local image data does not contain image data, controller 250 communicates with server 400 via communication device 220 and requests a data link from server 400 for the image data, thereby obtaining the image code based on the data link.

[0101] S200: Decoding the image code to obtain an image to be processed, and acquiring a drawing instruction set according to the target image special effect.

[0102] After obtaining the image code, the controller 250 can obtain the encoding method of the image code and decode the image code using the decoding method corresponding to the encoding method to obtain the image to be processed. Different image formats use different encoding algorithms, so the controller 250 needs to select an appropriate decoder to decode these images. For example, JPEG format image encoding requires a JPEG decoder, PNG format image encoding requires a PNG decoder, and so on.

[0103] The controller 250 may obtain a drawing instruction set based on the target image effect. The drawing instruction set includes drawing instructions for generating the target image effect. The drawing instruction set may include at least one drawing instruction. The controller 250 may generate more complex image effects using multiple drawing instructions to enhance the visual display effect of the image data.

[0104] Drawing instructions can all be applied to one image to be processed, that is, special effects drawing is performed on the images to be processed in the order in which the drawing instructions are arranged, generating special effects pictures. Drawing instructions can also be applied to multiple images to be processed separately. For example, the target image special effect is to open the first image to be processed with a window animation, and to display the second image to be processed located under the first image to be processed with a fade-out special effect. In this case, Figure 8 As shown, the image to be processed should include a first image to be processed and a second image to be processed. Corresponding to the above-mentioned special effects, the drawing instruction set may include a first drawing instruction and a second drawing instruction, wherein the first drawing instruction is a window animation opening instruction, which acts on the first image to be processed so that the first image to be processed is flipped in a preset direction with a window animation. At the same time, the second drawing instruction is a fade-out display instruction, so that the first image to be processed is displayed with the special effect corresponding to the first drawing instruction while the second image to be processed is faded out to form a complete display effect.

[0105] In some embodiments, the image to be processed can also be divided into multiple partial images according to the drawing instruction. Following the above embodiment, when the first image to be processed is opened with a window animation, the first image to be processed can be divided into two partial images, and according to the following example, Figure 8 The window animation shown is folded to the sides.

[0106] S300: Sending the image to be processed to an image processor, so that the image processor performs pixel recognition on the image to be processed to obtain image pixels.

[0107] In order to save the memory of the central processing unit, the controller 250 can send the image to be processed to the image processor, so that the image processor can generate a special effect image based on the image to be processed, thereby improving the operating efficiency of the central processing unit. Since the present application transfers the process of generating special effect images from the central processing unit to the image processor, the central processing unit can perform other program tasks besides generating special effect images. The image processor can use the memory of the image processor to perform texture rendering on the high-resolution image to achieve the special effect effect of displaying the high-resolution image.

[0108] The controller 250 can be configured as follows: Figure 6The timing relationship shown is to sequentially send the decoded image code and the acquired drawing instruction set to the image processor, so as to first perform pixel recognition on the image to be processed and then perform texture drawing on the image pixels according to the drawing instruction.

[0109] In some embodiments, the controller 250 can also send the image to be processed and the drawing instruction set to the image processor at the same time, so that the image processor can temporarily store the drawing instructions, thereby completing the sending of the drawing instruction set during the pixel point recognition process, saving time in generating special effect images.

[0110] In some embodiments, after decoding the image code, the storage location of the image to be processed also changes. To this end, when sending the image to be processed to the image processor, the controller 250 is configured to obtain the storage status of the image to be processed. The display device 200 can store the image to be processed in the memory and the image processor respectively. Therefore, the storage status of the image to be processed can include a first storage status and a second storage status. The first storage status is used to indicate that the image to be processed is stored in the memory, that is, stored in the system memory of the display device 200. The second storage status is used to indicate that the image to be processed is stored in the image processor, that is, stored in the display memory of the display device 200.

[0111] If the storage state is the first storage state, since the image to be processed is located in the system memory, the image processor cannot directly load the image to be processed. Therefore, the controller 250 needs to send the image to be processed to the image processor so that the image processor can directly load the image to be processed, so as to facilitate the subsequent generation of special effect images and relieve the memory pressure of the central processing unit.

[0112] In some embodiments, when the memory capacity of the memory is greater than the image data volume of the image to be processed, Figure 9 As shown, the controller 250 can also create an image index based on the image to be processed and send the image index to the image processor. The image index can be an index link or multiple index links, which are used to represent the storage path of the image to be processed. When the image processor generates the special effect image, the image to be processed can be loaded from the specified storage path through the image index. The number of index links is the same as the number of images to be processed, and they correspond one to one, that is, one index link corresponds to one image to be processed. In addition, the image data volume of the image index is much smaller than the data volume of the image to be processed. Therefore, by sending the image index to the image processor, the memory pressure of the image processor can be alleviated, and the memory margin of the memory and the memory margin of the image processor can be improved. The efficiency of memory adjustment can be improved. If the image to be processed includes continuous video frame images in a video media, the controller 250 generates a video index based on this video media, loads the video media according to the video index, and performs frame segmentation on the video media to obtain the image to be processed.

[0113] When the storage state is the second storage state, controller 250 can obtain the remaining memory in the image processor's buffer. The buffer can temporarily store the image to be processed to ensure data integrity and continuity. When the transmission rate of the image to be processed is inconsistent with the processing rate of the image processor, the buffer can also balance the transmission rate and processing rate through data buffering, preventing image data loss during the generation of special effect images.

[0114] Figure 10 This is a flowchart of storing images to be processed in an embodiment of the present application. Figure 10 When the memory remaining in the buffer is greater than or equal to the image data amount of the image to be processed, the controller 250 can store the image to be processed in the buffer. In the buffer, the image data of the image to be processed will be arranged in a specific format and order, so that the subsequent image processor can quickly load and process the image to be processed when generating special effect images, thereby improving the image processing speed.

[0115] In some embodiments, the storage location of the image to be processed is related to the encoding format of the image data. The encoding format of the image data may include a first encoding format and a second encoding format. The first encoding format may be software encoding, where the image to be processed is stored in the memory after the software-encoded image code is decoded. The second encoding format may be hardware encoding, where the image to be processed is stored in the image processor after the hardware-encoded image code is decoded.

[0116] Corresponding to the first encoding format and the second encoding format, the display device 200 can perform decoding on the image encoding of the first encoding format through the image decoding module in a first decoding mode, i.e., a software decoding mode, and perform decoding on the image encoding of the second encoding format in a second decoding mode, i.e., a hardware decoding mode.

[0117] The software decoding mode does not rely on a specific hardware decoder and can decode image encodings of different formats. Therefore, the software decoding mode is compatible and flexible, providing a better user experience. Hardware decoding requires the support of a specific hardware decoder, such as an image decoding module. The function and performance of the hardware decoder are determined by the hardware information of the display device 200.

[0118] In order to determine the decoding format, in the process of decoding the image code, such as Figure 11As shown, the controller 250 can obtain the encoding format of the image code. If the image code is in the first encoding mode, the controller 250 can decode the image code using the first decoding format and store the decoded image to be processed in the memory. If the image code is in the second encoding format, the controller 250 uses the image decoding module to decode the image code using the second decoding format and stores the decoded image to be processed in the image processor.

[0119] To facilitate the subsequent generation of special effect images, after the controller 250 sends the image to be processed to the image processor, the image processor can perform pixel recognition on the image to be processed to obtain image pixels. The controller 250 can traverse the image pixels to obtain pixel information, including pixel color value, pixel location, and pixel size, so that the image processor can update the pixel information according to the target image special effect to generate the special effect image.

[0120] S400: Sending the drawing instruction set to the image processor, so that the image processor responds to the drawing instruction and performs texture drawing on the image pixels to obtain a special effect image.

[0121] After the image processor acquires image pixels, it may generate a drawing instruction set acquisition request and send the drawing instruction set acquisition request to the controller 250 to request the drawing instruction set. In response to the drawing instruction set acquisition request, the controller 250 sends the drawing instruction set to the image processor. After receiving the drawing instruction set, the image processor performs texture rendering on the image pixels of the image to be processed in response to the drawing instructions to generate a special effect image.

[0122] S500: Rendering the special effect image, and controlling the display to display an image frame corresponding to the rendered special effect image.

[0123] After obtaining the special effect image, controller 250 can perform a second pixel recognition on the special effect image to update the pixel information of the image pixels. In this case, the pixel information is the pixel information after texture rendering according to the target image special effect. Based on the pixel information, controller 250 can use the rendering engine to render the special effect image to present the display effect of the special effect image, and control display 260 to display the image corresponding to the rendered special effect image.

[0124] In some embodiments, the controller 250 may set the parameters of the rendering engine before rendering the special effect image to improve the rendering speed and rendering accuracy of the special effect image. If the rendered special effect image does not reach the preset rendering accuracy, the controller 250 may control the rendering engine to re-render the special effect image.

[0125] In some embodiments, the image processor includes a first shader and a second shader, wherein the first shader may be a vertex shader for obtaining pixel vertex coordinates, and the second shader is a fragment shader for performing texture rendering on the image to be processed based on the pixel vertex coordinates. Figure 12 As shown, the first shader can obtain pixel vertex coordinates in the image pixel points. The pixel vertex coordinates, which can also be called texture coordinates, are used to determine the vertex positions for executing drawing instructions on the image to be processed. For example, when the target image special effect is to rotate based on the image center, the pixel vertex coordinates are the coordinates of the image center point of the image to be processed. Based on different image effects, there can be multiple pixel vertex coordinates. For example, when the target image special effect is to fold based on the vertical center line of the image to be processed, the pixel vertex coordinates can be the coordinates of each point on the vertical center line, or the pixel vertex coordinates can be the coordinates of the end point and the lower end point on the vertical center line, which are used to represent the position where the folding is performed on the image to be processed.

[0126] After the first shader obtains the pixel vertex coordinates, the controller 250 can send the pixel vertex coordinates to the second shader through the first shader. The second shader can determine the position where the target image special effects are executed on the image to be processed based on the pixel vertex coordinates, and respond to the drawing instruction to perform texture drawing on the image to be processed at the position where the target image special effects are executed based on the pixel vertex coordinates to obtain a special effects image.

[0127] Image texture refers to the visual texture effect presented in the image being processed. This effect is composed of regular changes in pixel color and brightness. When the image processor generates a special effect image, it can perform texture rendering on the image pixels of the image being processed in response to rendering instructions to generate the image into a special effect image. During the texture rendering process, the image processor can obtain pixel information of the image being processed and, based on the rendering instructions, obtain pixel information after texture rendering. The original pixel information is then updated based on the texture rendering pixel information, so that each pixel in the image being processed is rendered according to the target image special effect, thereby generating a special effect image.

[0128] For example, when the target image special effect is a rotation special effect, the second shader can determine the origin position of the rotation based on the pixel vertex coordinates obtained by the first shader, and determine the rotation direction and rotation angle based on the drawing instruction set, and determine the movement path of each image pixel in the image to be processed based on the origin position and rotation direction. Taking an image pixel point A in the image to be processed as an example, the second shader can rotate the image pixel point A based on the origin position. If the drawing instruction at this time is a clockwise rotation of 30°, the second shader can rotate the image pixel point A according to the clockwise rotation direction and the rotation angle of 30°, and obtain the image pixel point B according to the rotation path, that is, the movement path. The above process is only a process of performing texture rendering on an image pixel in the image to be processed. It should be understood that to generate a special effect image, it is necessary to perform the above operation process on each image pixel in the image to be processed, so as to obtain a special effect image. The special effect image includes each image pixel after texture rendering is performed. The color value of each image pixel can be calculated through texture rendering. The controller 250 can store the special effect image in the buffer of the image processor so as to directly access and render the special effect image. The embodiment of the present application is only exemplified by the rotation special effect. It should be understood that the second shader can also perform other special effects such as movement, rotation, flipping, symmetry, etc. on the image pixels in the image to be processed according to different special effects.

[0129] When the target image special effects are applied to multiple images to be processed, the second shader also involves texture drawing such as overlay, full-image movement, and local movement between the images to be processed. In order to improve the accuracy of the special effects image and the target image special effects, the controller 250 can create a texture index for the image to be processed. The texture index is used to represent the positional relationship between the local images of the image to be processed, where the positional relationship can be covering, overlapping, moving, merging, etc.

[0130] The texture index can be represented in various forms. For example, in some embodiments, the texture index may include an index value, which is used to distinguish the order of texture rendering between different images. The controller 250 may sort the digital tags according to the index value, for example, performing texture rendering on the processed images in ascending order. After obtaining the texture index, the controller 250 may use a second shader to perform texture rendering on the processed image based on the texture index and pixel vertex coordinates to obtain a special effect image.

[0131] For example, Figure 13As shown, when generating a page-turning effect with a full page as the turning object, the first image to be processed needs to be folded, and during the folding process, the second image to be processed, which is located below the first image to be processed, is displayed. In this case, the first image to be processed is located above the second image to be processed, and the controller 250 can create a first texture index and a second texture index. In this case, in ascending order, the first index value is smaller than the second index value, and the execution order of the first texture index is placed before the second texture index.

[0132] In some embodiments, the controller 250 may also create different texture indexes for different partial images of the same image to be processed, so as to indicate the drawing levels of different partial images when texture drawing is performed on the same image to be processed. Figure 14 As shown, when the page turning effect uses half a page as the turning object, the controller 250 can perform segmentation on the first image to be processed and obtain a first partial image to be turned and a second partial image that remains unchanged. Figure 15 As shown, the first partial image is folded to overlap with the second partial image, and a partial image of the second image to be processed is displayed at the location of the original first partial image. Therefore, the controller 250 can create a first texture index for the first partial image, a second texture index for the second partial image, and a third texture index for the partial image displayed by the second image to be processed according to the above-mentioned texture rendering process. The controller 250 performs texture rendering on the first image to be processed and the second image to be processed in the order of the first texture index, the second texture index, and the third texture index to obtain a special effect image.

[0133] In some embodiments, the controller 250 can set a texture rendering step size, which is used to represent the difference between special effect images. The smaller the texture rendering step size, the smaller the difference between two consecutive special effect images. The larger the texture rendering step size, the larger the difference between two consecutive special effect images. The controller 250 can input the texture rendering step size into the second shader. The second shader can read the image phase pixel values ​​of the image to be processed based on the texture rendering step size to determine the texture rendering parameters. The texture rendering parameters are used to represent the parameters for performing texture rendering on the image to be processed. For example, if the target image special effect is image folding, the texture rendering parameters can be used to represent the image folding amplitude. The texture rendering step size and the texture rendering parameters are inversely proportional. That is, the smaller the texture rendering step size, the larger the texture rendering parameter, the corresponding image folding amplitude, and the relatively higher the smoothness of the generated special effect image. The larger the texture rendering step size, the smaller the texture rendering parameter, the corresponding image folding amplitude, and the relatively lower the smoothness of the generated special effect image.

[0134] In some embodiments, in order to improve the generation accuracy and generation efficiency of special effect images, the controller 250 can also obtain the input format of the image to be processed. The input format is the decoding format of the image to be processed. The decoding method is different and the input format is also different. For example, the embedded system hardware platform will provide hardware decoding capabilities of the JPEG format. The hardware decoding output is in YUV format, and the software decoding output is in RGB format. The RGB format consists of three channels: red (R), green (G), and blue (B). Each channel occupies one byte, so a pixel usually occupies three bytes. The RGB format directly corresponds to color, and each channel is used to form color. The YUV format consists of brightness (Y) and two chrominance (U, V) components. The Y component represents the brightness information of the image to be processed, while the U and V components are used to represent color and saturation information, respectively.

[0135] Controller 250 needs to determine the input format of the image to be processed based on different decoding formats and compare the input format with the output format, where the output format is the preset rendering format of the image to be processed. If the input format and output format are different, controller 250 can perform format conversion on the image to be processed based on the output format to update the input format of the image to be processed, so that the input format and output format are consistent. This reduces the format conversion process when generating special effect images and improves the efficiency of special effect image generation.

[0136] In some embodiments, the controller 250 may also obtain the image resolution of the image to be processed and compare the image resolution with the device resolution, where the device resolution is the current resolution of the display device. If the image resolution is greater than the device resolution, the controller 250 may detect the image size of the image to be processed, calculate the aspect ratio based on the image size, and based on the aspect ratio, perform proportional reduction on the image to be processed so that the image resolution of the image to be processed is the same as the device resolution, or so that the difference between the image resolution of the image to be processed and the device resolution is less than or equal to the difference threshold. If the image resolution is less than the device resolution, then based on the aspect ratio, perform proportional enlargement on the image to be processed so that the image resolution of the image to be processed is the same as the device resolution, or so that the difference between the image resolution of the image to be processed and the device resolution is less than or equal to the difference threshold.

[0137] Some embodiments of the present application further provide a method for generating special effect images, which is applied to the display device 200 described above. The display device 200 should include at least a display 260, an image processor, and a controller 250. The method includes:

[0138] S100: In response to a special effect generation instruction input by a user, acquiring an image code and a target image special effect, wherein the target image special effect is an image special effect specified by the special effect generation instruction;

[0139] S200: decoding the image code to obtain an image to be processed, and acquiring a drawing instruction set according to the target image special effect, wherein the drawing instruction set includes drawing instructions for generating the target image special effect;

[0140] S300: Sending the image to be processed to an image processor, so that the image processor performs pixel recognition on the image to be processed to obtain image pixels;

[0141] S400: Sending the drawing instruction set to the image processor, so that the image processor performs texture drawing on the image pixels in response to the drawing instruction to obtain a special effect image;

[0142] S500: Rendering the special effect image, and controlling the display to display an image corresponding to the rendered special effect image.

[0143] It can be seen from the above technical solutions that the present application provides a display device and a special effect image generation method, which obtains image coding and target image special effects in response to special effect generation instructions input by the user, and decodes the image coding to obtain an image to be processed, and obtains a drawing instruction set according to the target image special effects, and sends the image to be processed to an image processor so that the image processor performs pixel recognition on the image to be processed to obtain image pixels. The drawing instruction set is sent to the image processor so that the image processor responds to the drawing instruction and performs texture drawing on the image pixels to obtain a special effect image, thereby rendering the special effect image and displaying it. The present application improves the resolution of the special effect image by sending the image to be processed and the drawing instruction set to the image processor, and the image processor processes the image according to the drawing instruction, thereby releasing the memory of the central processing unit.

[0144] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus a necessary general-purpose hardware platform. Based on this understanding, the technical solutions in the embodiments of the present invention, or the portion that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium such as ROM / RAM, a magnetic disk, or an optical disk, and includes a number of instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods of various embodiments of the present invention or certain portions of the embodiments.

[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some or all of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.

[0146] For ease of explanation, the above description has been made with reference to specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Based on the above teachings, various modifications and variations are possible. The above embodiments are selected and described to better explain the principles and practical applications, so that those skilled in the art can better utilize the embodiments and various different variations of the embodiments suitable for specific use considerations.

Claims

1. A display device, It is characterized in that include: A display, used for displaying images; an image processor configured to render image data; The controller is configured as: In response to a special effect generation instruction input by a user, an image code and a target image special effect are acquired, wherein the target image special effect is an image special effect specified by the special effect generation instruction; Decoding the image code to obtain an image to be processed, and acquiring a drawing instruction set according to the target image special effect, wherein the drawing instruction set includes drawing instructions for generating the target image special effect; Sending the image to be processed to an image processor so that the image processor performs pixel recognition on the image to be processed to obtain image pixels; Sending the drawing instruction set to the image processor, so that the image processor performs texture drawing on the image pixels in response to the drawing instruction to obtain a special effect image; Rendering is performed on the special effect image, and the display is controlled to display an image frame corresponding to the rendered special effect image.

2. The display device according to claim 1, It is characterized in that The controller further comprises a memory configured to store the image to be processed, wherein the controller sends the image to be processed to an image processor and is configured to: Acquire a storage state of the image to be processed, the storage state comprising a first storage state and a second storage state, the first storage state being used to represent that the image to be processed is stored in the memory; The second storage state is used to represent that the image to be processed is stored in the image processor; If the storage state is the first storage state, an image index is created according to the image to be processed, and the image index is sent to the image processor.

3. The display device according to claim 2, It is characterized in that If the storage state is the second storage state, the controller is specifically configured as follows: Obtaining the memory remaining of the buffer of the image processor; If the remaining memory capacity is greater than or equal to the image data volume of the image to be processed, the image to be processed is stored in the buffer.

4. The display device according to claim 2, It is characterized in that The controller performs decoding on the image code and is configured to: Acquire a coding format of the image coding, where the coding format includes a first coding format and a second coding format; If the image code is in the first coding format, decoding the image code in the first decoding format, and storing the decoded image to be processed in the memory; If the image code is in the second coding format, the image code is decoded in the second decoding format, and the decoded image to be processed is stored in the image processor.

5. The display device according to claim 1, It is characterized in that The image processor includes a first shader and a second shader, and the controller executes and sends the drawing instruction set to the image processor, and is configured to: Obtain pixel vertex coordinates in the image pixel points by a first shader; Sending the pixel vertex coordinates to the second shader; The second shader performs texture rendering on the image to be processed based on the pixel vertex coordinates to obtain a special effect image.

6. The display device according to claim 5, It is characterized in that The controller performs texture rendering on the image to be processed based on the pixel vertex coordinates through the second shader, and is configured to: Creating a texture index of the image to be processed, wherein the texture index is used to represent the positional relationship between partial images of the image to be processed; The second shader performs texture rendering on the image to be processed according to the texture index and the pixel vertex coordinates to obtain a special effect image.

7. The display device according to claim 5, It is characterized in that The controller performs texture rendering on the image to be processed based on the pixel vertex coordinates through the second shader, and is configured to: Set the texture drawing step size; Determine texture rendering parameters according to the texture rendering step length; Texture rendering is performed on the image to be processed according to the texture rendering parameters to obtain a special effect image.

8. The display device according to claim 1, It is characterized in that After the controller executes the step of decoding the image code, the controller is further configured to: Acquire the input format of the image to be processed; If the input format and the output format are not the same format, format conversion is performed on the image to be processed based on the output format to update the input format of the image to be processed, and the output format is a preset rendering format of the image to be processed.

9. The display device according to claim 1, It is characterized in that After the controller executes the step of decoding the image code, the controller is further configured to: Acquire the image resolution of the image to be processed; If the image resolution is greater than the device resolution, the image to be processed is reduced according to the aspect ratio of the image to be processed, and the device resolution is the current resolution of the display device; If the image resolution is smaller than the device resolution, the image to be processed is enlarged according to the aspect ratio of the image to be processed.

10. A method for generating special effect images, It is characterized in that The display device according to any one of claims 1 to 9 comprises a display, an image processor and a controller, the display is used to display an image, the image processor is configured to draw image data, and the method comprises: In response to a special effect generation instruction input by a user, an image code and a target image special effect are acquired, wherein the target image special effect is an image special effect specified by the special effect generation instruction; Decoding the image code to obtain an image to be processed, and acquiring a drawing instruction set according to the target image special effect, wherein the drawing instruction set includes drawing instructions for generating the target image special effect; Sending the image to be processed to an image processor so that the image processor performs pixel recognition on the image to be processed to obtain image pixels; Sending the drawing instruction set to the image processor, so that the image processor performs texture drawing on the image pixels in response to the drawing instruction to obtain a special effect image; Rendering is performed on the special effect image, and the display is controlled to display an image frame corresponding to the rendered special effect image.