Display device and irregular picture display method
By generating target images and displaying them using a video layer, the problem of unsmooth switching when display devices switch between images of different aspect ratios is solved, achieving fast and smooth image switching.
Patent Information
- Application Number
- CN202411044648.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-31
- Publication Date
- 2026-02-10
AI Technical Summary
When display devices switch between images with different aspect ratios, the switching time is long and the transition is not smooth, resulting in a degraded user experience.
By recognizing the identification information of the image to be displayed, a target image is generated. The target image includes a content area and a fill area. The content area is scaled based on the screen resolution and preset display ratio of the display. The fill area is filled with a uniform background pattern. The images to be displayed in the same image set are of equal size. The target image is displayed using a video layer.
The issue of frame flickering during image switching has been improved, the switching time has been shortened, and the smoothness of the switching process has been enhanced.
Smart Images

Figure CN121509723A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of display device technology, and in particular to a display device and a method for displaying irregular images. Background Technology
[0002] Display devices are intelligent devices capable of presenting a user interface and supporting user interaction. Taking smart TVs as an example, smart TVs are television products based on Internet application technology, possessing an open operating system and chip, an open application platform, and enabling two-way human-computer interaction. They integrate multiple functions such as audio-visual entertainment and data to meet diverse and personalized user needs. Display devices can also display images, and the displayed images can have different sizes depending on the image specifications.
[0003] When displaying images, display devices can set appropriate image quality parameters according to the specifications of the images being displayed. For example, display devices can be used for appreciating artistic images. To meet the viewing needs of each artistic image, the display device will design unique image quality parameters for each type of image. Furthermore, to achieve ultra-high definition and distortion-free display effects, the display device will scale the images proportionally and then render them using a video layer.
[0004] However, when a display device switches between images with different aspect ratios, the Video layer needs to constantly change the size and aspect ratio of its drawing. This results in a distorted frame being displayed between the two images, caused by the Video layer scaling the Video layer to match the aspect ratio of the next image. To avoid this distorted frame, the display device needs to display the application layer's full-screen obscuring effect during the switching process, but this leads to longer switching times and less smooth transitions, degrading the user experience. Summary of the Invention
[0005] Some embodiments of this application provide a display device and a method for displaying irregular images, in order to solve the problems of long switching time and unsmooth switching when the display device switches between displaying images of different aspect ratios.
[0006] In a first aspect, some embodiments of this application provide a display device, including: a display, a communication device, and a controller. The display is configured to display a user interface; the communication device is configured to establish a communication connection with a server, the server storing original images of an image set, the image set including multiple images to be displayed; the controller is configured to perform the following steps:
[0007] In response to a display instruction for displaying an image set, the identification information of the image to be displayed is extracted from the image set;
[0008] The target image associated with the image to be displayed is obtained based on the identification information. The target image includes a content area and a fill area. The content area is generated by scaling the original image of the image to be displayed based on the screen resolution and preset display ratio of the display. The fill area is defined according to the content area, the screen resolution, and the display ratio. The fill area is filled with a uniform background pattern. The target images corresponding to the images to be displayed in the same image set are of equal size.
[0009] The display is controlled to show the target image through the video layer.
[0010] Secondly, some embodiments of this application also provide a method for displaying irregular images, applied to the display device provided in the first aspect, wherein the method for displaying irregular images includes:
[0011] In response to a display instruction for displaying an image set, identification information of the images to be displayed is extracted from the image set, which includes multiple images to be displayed;
[0012] The target image associated with the image to be displayed is obtained based on the identification information. The target image includes a content area and a fill area. The content area is generated by scaling the original image of the image to be displayed based on the screen resolution and preset display ratio of the display. The fill area is defined according to the content area, the screen resolution, and the display ratio. The fill area is filled with a uniform background pattern. The target images corresponding to the images to be displayed in the same image set are of equal size.
[0013] The target image is displayed through a video layer.
[0014] As can be seen from the above technical solutions, some embodiments of this application provide a display device and a method for displaying irregular images. The method can, in response to a display instruction for displaying an image set, extract the identification information of the image to be displayed from the image set. Then, based on the identification information, it obtains a target image associated with the image to be displayed and displays the target image through a video layer. The target image includes a content area and a fill area. The content area is generated by scaling the original image of the image to be displayed based on the screen resolution and a preset display ratio of the display. The fill area is defined according to the content area, screen resolution, and display ratio. The fill area is filled with a uniform background pattern; the target images corresponding to images to be displayed in the same image set are of equal size. This method can improve the flickering problem of images to be displayed at different ratios during the switching process by displaying target images of the same size instead of the images to be displayed, thereby shortening the image switching time and improving the smoothness of the switching process. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a schematic diagram illustrating the usage scenarios of the display device in some embodiments of this application;
[0017] Figure 2 Hardware configuration block diagrams of display devices provided in some embodiments of this application;
[0018] Figure 3 This is a schematic diagram of the software configuration in a display device provided in some embodiments of this application;
[0019] Figure 4 This application provides schematic diagrams of display layers on display devices according to some embodiments;
[0020] Figure 5 This application provides schematic diagrams of parameter setting interfaces for some embodiments.
[0021] Figure 6 A schematic flowchart illustrating a method for displaying irregular images provided in some embodiments of this application;
[0022] Figure 7 This is a schematic diagram illustrating the process of obtaining the original image provided in some embodiments of this application;
[0023] Figure 8 These are schematic diagrams illustrating the full-screen display effect provided in some embodiments of this application;
[0024] Figure 9 These are schematic diagrams illustrating the zoomed-in display effect of some embodiments of this application;
[0025] Figure 10 This application provides schematic diagrams of the content area and fill area for some embodiments;
[0026] Figure 11 These are schematic diagrams illustrating the zoomed-in display effect of some embodiments of this application;
[0027] Figure 12 This is a schematic diagram illustrating the subview filling effect provided in some embodiments of this application;
[0028] Figure 13 This is a schematic diagram illustrating the process of switching displayed images provided in some embodiments of this application. Detailed Implementation
[0029] The embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The embodiments described below do not represent all embodiments consistent with this application. They are merely examples of systems and methods consistent with some aspects of this application as detailed in the claims.
[0030] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.
[0031] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.
[0032] The terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.
[0033] The term "module" refers to any known or subsequently developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0034] In this embodiment, the display device 200 generally refers to a device with screen display and data processing capabilities. For example, the display device 200 includes, but is not limited to, smart TVs, mobile terminals, computers, monitors, advertising screens, wearable devices, virtual reality devices, augmented reality devices, etc.
[0035] Figure 1 This is a schematic diagram illustrating an operational scenario between a display device and a control device provided in some embodiments of this application. For example... Figure 1 As shown, a user can operate the display device 200 via touch operation, a mobile terminal 300, and a control device 100. The control device 100 receives user input commands and converts them into control commands that the display device 200 can recognize and respond to. For example, the control device 100 can be a remote control, a stylus, a gamepad, etc.
[0036] In some embodiments, the control device 100 may be a remote control, and the communication between the remote control and the display device includes at least one of infrared protocol communication, Bluetooth protocol communication, and other short-range communication methods, controlling the display device 200 wirelessly or via a wired connection. Users can control the display device 200 by inputting user commands through buttons on the remote control, voice input, control panel input, etc.
[0037] The mobile terminal 300 can function as a control device for human-computer interaction between the user and the display device 200. It 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 have software applications installed on it and communicate with the display device 200 via network communication protocols to achieve one-to-one control and data communication. Furthermore, it can transmit audio and video content displayed on the mobile terminal 300 to the display device 200 for synchronized display.
[0038] In some embodiments, the mobile terminal 300 or other electronic devices may also simulate the functions of the control device 100 by running an application that controls the display device 200.
[0039] like Figure 1 The diagram also shows that the display device 200 communicates with the server 400 via various communication methods. This allows the display device 200 to communicate via a local area network (LAN), a wireless local area network (WLAN), and other networks.
[0040] Display device 200 can provide broadcast television reception function, and can also be equipped with intelligent network television function that provides computer support, including but not limited to network television, smart television, Internet Protocol television (IPTV), etc.
[0041] Figure 2 This is a hardware configuration block diagram of a display device 200 provided in some embodiments of this application.
[0042] 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.
[0043] In some embodiments, detector 230 is used to acquire signals from the external environment or to interact with the outside world. For example, detector 230 includes a light receiver, a sensor for acquiring ambient light intensity; or, detector 230 includes an image acquisition device, such as a camera, which can be used to acquire external environmental scenes, user attributes, or user interaction gestures; or, detector 230 includes a sound acquisition device, such as a microphone, for receiving external sounds.
[0044] In some embodiments, device interface 240 may include, but is not limited to, a high-definition multimedia interface (HDMI), an analog or data high-definition component input interface (component), a composite video input interface (CVBS), a USB input interface (USB), an RGB port, etc. Device interface 240 may also be a composite input / output interface formed by multiple of the above interfaces.
[0045] Display device 200 can connect to external device 500 via device interface 240. External device 500 can be a set-top box, game console, PC, or other similar device. When display device 200 connects to external device 500 via device interface 240, a corresponding signal source channel can be established, and input signals can be received through this signal source channel. For example, display device 200 can connect to a game device via an HDMI interface to establish an HDMI channel, and receive audio and video signals sent by the game device based on the HDMI channel.
[0046] In some embodiments, the display 260 includes display function components for presenting images and driving components for driving image display. The display 260 is used to receive and display image signals output from the controller 250. For example, the display 260 can be used to display video content, image content, menu control interface components, and user control UI interfaces, etc.
[0047] In some embodiments, the communication device 220 is a component used to communicate with external devices or the server 400 according to various communication protocol types. The display device 200 may have multiple communication devices 220 depending on the supported communication methods. For example, when the display device 200 supports wireless network communication, it may have a communication device 220 with WiFi functionality. When the display device 200 supports Bluetooth connectivity, it needs to have a communication device 220 with Bluetooth functionality.
[0048] The communication device 220 enables the display device 200 to communicate with external devices or the server 400 via wireless or wired connections. Wired connections utilize data cables, interfaces, or other components to connect the display device 200 to external devices. Wireless connections utilize wireless signals or wireless networks. The display device 200 can directly establish a connection with external devices or indirectly through gateways, routers, or other connection devices.
[0049] In some embodiments, the controller 250 may include at least one of a central processing unit, a video processor, an audio processor, a graphics processor, and a power processor, and a first to an nth interface 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 memory. The controller 250 controls the overall operation of the display device 200.
[0050] 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.
[0051] In some embodiments, a user can input user commands through a graphical user interface (GUI) displayed on a display 260, and the user input interface receives user input commands through the graphical user interface (GUI).
[0052] In some embodiments, the audio output device 270 can be a built-in 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 also be provided with an external audio output terminal, through which the audio output device can be connected to the display device 200 to output sound from the display device 200.
[0053] In some embodiments, the user input interface 280 can be used to receive instructions from user input.
[0054] To enable 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. The operating system also allows users to interact with the display device 200.
[0055] It should be noted that the operating system can be a native operating system based on a specific operating platform, a third-party operating system that is deeply customized based on a specific operating platform, or an independent operating system specifically developed for display devices.
[0056] An operating system can be divided into different modules or levels based on the functions it implements, for example... Figure 3 As shown, in some embodiments, the system is divided into four layers, from top to bottom: the Applications layer (referred to as the "Application Layer"), the Application Framework layer (referred to as the "Framework Layer"), the System Library layer, and the Kernel layer.
[0057] 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 may contain at least one application, which may be a built-in Windows program, system settings program, or clock program of the operating system; or it may be an application developed by a third-party developer. In specific implementations, the application packages in the application layer are not limited to the examples above.
[0058] The framework layer provides application programming interfaces (APIs) and a programming framework for applications. The application framework layer includes predefined functions. It acts as a central processing unit, determining the actions taken by applications within the application layer. Through the API, applications can access system resources and obtain system services during execution.
[0059] like Figure 3As shown, the application framework layer in this embodiment includes a view system, managers, and content providers. The view system designs and implements the application's interface and interactions, and includes lists, grids, text boxes, and buttons. The managers include at least one of the following modules: an activity manager for interacting with all running activities in the system; a location manager for providing system services or applications with access to system location services; a package manager for retrieving various information related to 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.
[0060] In some embodiments, the Activity Manager manages the lifecycle of individual applications and common navigation and back functions, such as controlling application exit, opening, and back actions. The Window Manager manages all window programs, such as obtaining the screen size, determining if a status bar is present, locking the screen, capturing the screen, and controlling changes to the display window, such as shrinking the display window, shaking the display, or distorting the display.
[0061] In some embodiments, the system runtime library layer can provide support for the framework layer. When the framework layer is used, the operating system runs the instruction library contained in the system runtime library layer, such as the C / C++ instruction library, to implement the functions to be performed by the framework layer.
[0062] In some embodiments, the kernel layer is a functional layer situated between the hardware and software of the display device 200. The kernel layer can implement functions such as hardware abstraction, multitasking, and memory management. For example, ... Figure 3 As shown, hardware drivers can be configured in the kernel layer. The drivers included in the kernel layer can be at least one of the following: 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.
[0063] It should be noted that the above examples are merely a simple division of operating system functions and do not limit the specific form of the operating system of the display device 200 in this application embodiment. Depending on the function of the display device, the type of operating system, and other factors, the number of levels and the specific level type of the operating system may be expressed in other forms.
[0064] The display device 200 described in the above embodiments can display a specific user interface based on user interaction or a specific application scenario. Here, "user interface" broadly refers to the various display content displayed by the display device 200. For example, a user interface may include a boot screen, a home screen, a playback screen, a settings screen, an application screen, etc.
[0065] In some embodiments, the display device 200 can display a set of images through a specific interface. For example, an art book application may be installed on the display device 200. After the user controls the display device 200 to run the art book application, the display device 200 can display the application interface of the art book through the display screen 260. Art images can be presented in the application interface of the art book.
[0066] When displaying an image set, the images in the image set can be displayed in a loop. For example, if the image set includes images A, B, C, and D waiting to be displayed, the display device 200 can, after launching the application, first display image A according to the default display order and record the display duration of image A. When the display duration reaches a preset duration threshold, it switches to displaying image B and records the display duration of image B. Similarly, when the display duration of image D reaches the preset duration threshold, the display device 200 can switch back to displaying image A to cycle through the images in the image set.
[0067] The display device 200 can also switch between displaying images in the image set based on user-input interactive commands. For example, when the display device 200 is displaying image A, the user can switch the display device 200 to display image B by pressing the right arrow key on the control device 100 associated with the display device 200. Similarly, when the display device 200 is displaying image B, the user can switch the display device 200 to display image A by pressing the left arrow key on the control device 100.
[0068] To present a specific user interface, in some embodiments, the display device 200 may set up multiple display layers when displaying the user interface. A specific hierarchical relationship may be established between the multiple display layers, and the corresponding user interface is formed by overlaying multiple display layers with different hierarchical relationships.
[0069] In some embodiments, the display layers of the display device 200 may include a video plane and an on-screen display plane (OSD plane). The video plane is used to display video frames, images, and other playback content; that is, the video plane is responsible for video (image) playback and processing. For example, the video plane of the display device 200 may be involved in the processes of video decoding, rendering, and display. The video plane can optimize video rendering and playback based on encoding and decoding technologies such as H.264 and H.265, as well as hardware acceleration and graphics card utilization technologies.
[0070] The OSD layer is used for display. Also known as the application layer or screen display layer, it displays user interface elements such as menus, settings options, prompts, UI controls, icons, and other graphical content. It can overlay the video layer to provide interactive functionality. The OSD layer can be used in situations where text, graphics, or control elements need to be added, such as settings menus or real-time information overlays on a live streaming screen. The OSD layer can be implemented using graphical user interface (GUI) elements, drawn using APIs provided by the operating system, such as using classes like SurfaceView and Canvas on the display device 200. For example... Figure 4 As shown, in the video interface, the video content being played is displayed on the video layer, while the progress bar, play / pause button, fast forward / rewind control, stop button, and other button controls in the playback interface are displayed on the OSD layer.
[0071] In some embodiments, the Video layer of the display device 200 is located at a lower level in the display hierarchy and is responsible for rendering the decoded video frames onto the screen. The OSD layer, located at a higher level, overlays the video layer and is used to display user-interactive elements.
[0072] Furthermore, video layer processing can consume significant CPU and GPU resources, especially during the decoding and rendering of high-definition video. The video layer's resource consumption is substantial, resulting in a slower video response time compared to the OSD layer. While the OSD layer has relatively lower performance overhead, its transparency processing and multi-layer overlay can negatively impact performance.
[0073] It should be noted that the type and number of display layers used to form the user interface vary depending on the application scenario of the display device 200. For example, to better present animation effects, the display layers of the display device 200 may also include an acceleration layer. The acceleration layer is an additional extended display layer (external OSDplane) set on top of the OSD layer and video layer. The extended display layer can be configured with different layer characteristics according to specific display effect requirements. That is, the bitmap refresh mode of the extended display layer can be modified to allow the extended display layer to refresh in real time according to the area, thereby improving the display speed of graphics and enabling the extended display layer to be used as an acceleration layer in scenarios with high dynamic range display effects.
[0074] To achieve better display results, in some embodiments, some display layers used to present the user interface will have display (Picture Quality, PQ) parameters superimposed. For example, the video layer used to display the playback screen can present the playback screen content according to the user-set display parameters such as contrast, black level, and chroma, in order to adapt to different application scenarios and improve the display quality of the playback screen.
[0075] Display parameters refer to a series of technical indicators that affect the visual experience of digital images or videos. These parameters include, but are not limited to: contrast ratio, black level, chroma, sharpness, color temperature, gamma value, white balance, color correction, and image mode. Different parameters can be set with different values, modes, default values, and ranges. For example, the range for contrast ratio, black level, and chroma is 0-100, with a default value of 50. The range for sharpness is 0-20, with a default value of 10. Color temperature includes standard, warm, and cool color temperature modes, with the standard mode being the default. Image modes include standard, vivid, natural, children's, sports, cinema, game, art book, and text modes.
[0076] Therefore, when displaying a specific interface, the display device 200 can automatically set the current display parameters to adapt to the display requirements of that specific interface. In some embodiments, when displaying an image set, the display device 200 can activate an art album mode and automatically adjust the current display parameters according to the art album mode to improve the display effect of the images in the image set.
[0077] In some embodiments, certain parameter items may also have sub-items, and each sub-item has a different adjustment range. For example, white balance includes sub-items such as red gain, green gain, blue gain, red bias, green gain, and blue gain, with each sub-item having an adjustment range of -30 to +30 and a default value of 0. Color correction includes sub-items such as hue, saturation, and brightness of open red, green, blue, cyan, yellow, purple, and skin tones, with each sub-item having an adjustment range of -15 to +15 and a default value of 0.
[0078] In some embodiments, the display parameters can be actively set by the user as needed. For example, such as Figure 5 As shown, users can control the display device 200 to display the settings menu by pressing the "Menu" button on the control device 100, such as a remote control. Then, by using the arrow keys to control the focus cursor to select the "Display" option, the user can control the display device 200 to display the display settings menu containing the aforementioned parameter items in the user interface. After the user controls the focus cursor to select any parameter item, they can use the arrow keys to modify the specific parameter value of the selected parameter item and set the display parameters.
[0079] In some embodiments, the display parameters can also be set by the display device 200 according to the current scene status parameters. For example, the display device 200 can obtain the current time and determine the time period to which the current time belongs. If the current time is a nighttime period, the display brightness in the color correction parameters can be automatically reduced to achieve an eye protection effect.
[0080] The display device 200 can overlay effects onto the video layer display based on the set display parameters to achieve the corresponding display effect. In some embodiments, to meet the viewing needs of the best unique image effect for each artistic picture, the display device 200 can design unique image quality parameters for each type of image. Furthermore, to achieve ultra-high definition and distortion-free display effects, the images must be scaled proportionally before being drawn using the Video layer, rather than the application layer. This results in the Video layer not needing to constantly change its size and scale when displaying images of different proportions. Consequently, during the transition between two images, distorted frames (flickering frames) caused by scaling the Video layer to the scale of the next image will be displayed first.
[0081] To alleviate the problem of frame flickering during switching, in some embodiments, the display device 200 can display a full-screen obscured image of the application layer during the switching process. For example, different aspect ratio images can be displayed by adding a loading pattern to obscure the image during the switching interval or displaying it on a non-Video layer. However, this method of obscuring the image leads to long switching times and unsmoothness. Furthermore, changing the display method of the layer results in a display effect without special customized image quality, and the display resolution does not reach the device's maximum resolution. The saturation and clarity are poor, reducing the display effect of the image set and affecting the user experience and the artistry of the art album function.
[0082] like Figure 6 As shown, some embodiments of this application provide a method for displaying irregular images, used to display multiple irregularly sized images to be displayed in an image set. The method for displaying irregular images can be applied to the display device 200 described in the above embodiments. That is, to fulfill the implementation of the method for displaying irregular images, the display device 200 may include a display 260, a communication device 220, and a controller 250. The display 260 is configured to display a user interface. The communication device 220 is configured to establish a communication connection with a server 400. The server 400 may store the original images of the image set.
[0083] The controller 250 is configured to execute the steps corresponding to the display effect adjustment method, enabling the display device 200 to quickly and smoothly switch between images to be displayed in the image set. For example... Figure 7 As shown, the method for displaying irregular images specifically includes the following:
[0084] S100: In response to a display instruction for displaying an image set, extract the identification information of the image to be displayed from the image set.
[0085] During operation, the display device 200 can receive various control commands input by the user. Some of these control commands can be used to display image sets and are referred to as display commands. Depending on the interaction methods supported by the display device 200, the user can input display commands in different ways.
[0086] In some embodiments, the display command can be input by launching an application that displays the image set. That is, the user can control the focus cursor to select the "Art Album" application icon in the application list interface displayed on the display device 200, and press the "OK" button on the control device 100 to control the display device 200 to launch the "Art Album" application. At this time, the display device 200 can jump to the Art Album application interface, that is, receive the display command for displaying the image set.
[0087] In some embodiments, the display command can be input by opening any image file in the image set. That is, when the display device 200 displays the file management interface, the user can use the directional keys on the control device 100 (remote control) to control the focus cursor to select any image file option in the image set, such as image A, image B, etc., and then control the display device 200 to display the selected image file by pressing the "OK" button on the control device 100. At this time, if the selected image file belongs to a preset image set, the display device 200 supports switching the displayed image; that is, based on the user's file opening operation, a display command for displaying the image set is received.
[0088] In some embodiments, display commands can also be input based on interactive methods supported by the display device 200, such as touch interaction, voice interaction, and gesture interaction. For example, after a user wakes up the voice assistant application of the display device 200 with the wake word "Hi! Little X", and then inputs the voice command "Open art album", the display device 200 can respond to the input voice command and run the art album application, that is, the display device 200 receives a display command for displaying the picture album.
[0089] It should be noted that the above embodiments are merely examples of display command input methods and do not limit the specific input methods of display commands. Other display command input methods that can be conceived by those skilled in the art based on the above examples are all within the protection scope of this application.
[0090] Upon receiving a display command from the user, the display device 200 can extract the recognition information of the image to be displayed from the image set. This recognition information broadly refers to various pieces of information that can distinguish the image to be displayed, including but not limited to the image's filename, file storage address, content, source information, and specifications.
[0091] In some embodiments, the identification information of the image to be displayed can be a preset string of information. Since an image set may include multiple images to be displayed, the identification information corresponding to multiple images to be displayed belonging to the same image set can have a certain correlation. For example, if image set FG contains five images to be displayed: image A, image B, image C, image D, and image E, then the identification information of images A through E can all contain the name of the image set "FG". That is, the identification information of image A can be FG-A, the identification information of image B can be FG-B, and so on, so that FG can be used to represent the image set FG to which images A through E belong.
[0092] Based on this, in some embodiments, the display device 200 can also determine whether multiple images to be displayed belong to the same image set based on whether the recognition information of multiple images to be displayed contains associated character content, and determine the display order of the images to be displayed based on the associated character content of the recognition information when switching displays. For example, when displaying image A, if the user presses the right arrow key on the remote control, the display device 200 can respond to the right arrow key and query the next image to be displayed adjacent to image A in the image set. When the display device 200 cannot find the next image to be displayed, it can read the recognition information "FG-A" of image A and query images to be displayed that are adjacent or similar in text based on the recognition information. When the recognition information of image B is found to be "FG-B", it can be determined that image B is an adjacent image of image A. At this time, the display device 200 can respond to the user pressing the right arrow key and switch to displaying image B.
[0093] like Figure 7 As shown, in some embodiments, the display device 200 can respond to a user-inputted power-on command to start a background service of a target application, wherein the target application is used to display the image set. For example, when an art album application is installed on the display device 200, the display device 200 can run the art album's background service in the background after startup.
[0094] The network connection status is then detected through the background service. In some embodiments, after the display device 200 runs the background service of the target application, it can detect the network connection through the ConnectivityManager. That is, the display device 200 can first call the ConnectivityManager object, which requires using the getSystemService method of Context to obtain an instance of the system service ConnectionManager. Then, the getActiveNetworkInfo method of ConnectivityManager can be used to obtain the currently active network status information, and then the isConnected method is used to determine whether the device is connected to the network.
[0095] When the network connection is established, the display device 200 can send a data acquisition request to the server 400, so that the server 400 can respond with the image set based on the data acquisition request. Then, the background service is controlled to search for the original image of the image to be displayed in the local data partition based on the recognition information of the image to be displayed in the image set.
[0096] If the original image is not found in the local data partition, the display device 200 can send an image retrieval request to the server, so that the server can return the original image based on the image retrieval request. For example, when the user starts the display device 200, the art album application will start a background service after receiving the device's startup broadcast. The background service, upon detecting that the current network is connected, will access the cloud server through a specified URL address to retrieve the currently operating painting images. The art album application's background service searches for the painting's file name and its corresponding files in the data partition. If the file is not found in the data partition, it will download the painting image in the background at a limited speed using an HTTPS request to obtain the original image files of each image to be displayed in the image set.
[0097] S200: Obtain the target image associated with the image to be displayed based on the identification information.
[0098] After extracting the recognition information of the images to be displayed in the image set, the display device 200 can obtain the target image associated with the images to be displayed based on the recognition information. The target image is an image obtained by uniformly transforming the original images of the images to be displayed. The target images corresponding to images to be displayed within the same image set have the same size.
[0099] To accommodate a uniform size, the target image may include a content area and a fill area. The content area is generated by scaling the original image of the image to be displayed based on the screen resolution of the display 260 and a preset display ratio. The fill area is defined according to the content area, the screen resolution, and the display ratio, and is filled with a uniform background pattern.
[0100] In some embodiments, target images of uniform size can be uniformly generated by the display device 200 during the acquisition of the image set and stored in the cache or specific memory of the display device 200 for retrieval when displaying the image set. To this end, the display device 200 can first receive the original images sent by the server 400, and obtain the screen resolution and preset display ratio of the display 260.
[0101] The screen resolution of display 260 refers to the number of pixels used to form the interface image when displaying the user interface on display device 200, and can be expressed as "width (ScreenW) × height (ScreenH)". The display ratio (Ere) is the preset playback ratio when the user controls the display device 200 to play images from the image set. When the display ratio Ere = 1, the display device 200 can display images in full screen; when the display ratio Ere < 1, images can be displayed only partially.
[0102] For example, the art book application will obtain the resolution information of the display device 200 screen through the operating system platform of the display device 200, including the width as ScreenW and the height as ScreenH. For example, for a 4K display device 200, the ScreenW can be obtained as 3840 and the ScreenH as 2160.
[0103] In some embodiments, after acquiring the original image, screen resolution, and aspect ratio, the display device 200 can compare the screen resolution with the image size of the original image. If the screen resolution and the image size of the original image are equal, the original image is directly used as the target image. If the screen resolution and the image size of the original image are not equal, the display device 200 can also read the width and height pixel values from the screen resolution and calculate the screen aspect ratio, i.e., the ratio of the width pixel value to the height pixel value. Simultaneously, it reads the width and height dimensions of the original image and calculates the image aspect ratio, i.e., the ratio of the width and height dimensions of the original image.
[0104] For example, after the original image of the painting is downloaded, the display device 200 can temporarily store the original image in the application's memory and generate a Bitmap. Using the Bitmap's width and height, the actual width ImageW and height ImageH of the painting resource can be obtained. If ImageW = ScreenW and ImageH = ScreenH, then... Figure 8 As shown, the original image (Bitmap) is directly used as the target image. If ImageW ≠ ScreenW, or ImageH ≠ ScreenH, then the screen aspect ratio ScreenR is calculated, i.e., ScreenR = ScreenW / ScreenH. Similarly, the image aspect ratio ImageR is calculated, i.e., ImageR = ImageW / ImageH.
[0105] Next, comparing the screen aspect ratio and the image aspect ratio, when the screen aspect ratio equals the image aspect ratio, but the screen resolution and the original image size are not equal, the display device 200 can scale the original image according to the screen resolution to generate the target image. That is, as... Figure 8 As shown, if ScreenR = ImageR, then the display device 200 can scale the Bitmap according to the screen resolution ScreenW × ScreenH to generate the target image.
[0106] When the screen aspect ratio is not equal to the image aspect ratio, and the screen resolution and the original image size are not equal, the display device 200 needs to calculate a uniform size based on the screen resolution and the display ratio. Then, it scales the original image according to the uniform size to generate the target image. The uniform size is equal to the product of the screen resolution and the display ratio.
[0107] In some embodiments, in order to generate a target image, the display device 200 may first read the image specification information of the image to be displayed from the original image, the image specification information including identification information and image size. Then, a scaling ratio is calculated based on the image size and the uniform size.
[0108] To calculate the scaling ratio, in some embodiments, the display device 200 may first read the image height and image width from the image dimensions, and extract the uniform height and uniform width from the uniform dimensions. Then, it calculates a first ratio of the uniform height to the image height, and a second ratio of the uniform width to the image width. If the first ratio is greater than the second ratio, the scaling ratio is generated based on the second ratio; if the first ratio is less than or equal to the second ratio, the scaling ratio is generated based on the first ratio.
[0109] For example, after comparing ScreenW, ScreenH and ImageW, ImageH, if the width or height is not equal, the display device 200 generates a Bitmap in memory with ScreenW and ScreenH as the width and height as the background. The Bitmap used as the background can have a preset background pattern, such as the background Bitmap having a color of OX00000.
[0110] Then, by enlarging or shrinking the painting image to the center of the background image with the same width and height, the enlargement or scaling ratio of the painting can be calculated, that is, the scaling ratio Re = Min(ScreenW / ImageW, ScreenH / ImageH).
[0111] After calculating the scaling ratio, the display device 200 can scale the original image according to the scaling ratio to generate the content area of the target image. In some embodiments, the display device 200 can scale the original image based on the scaling ratio to generate a content image, and then calculate the product of the image size and the scaling ratio to obtain the content size. Based on the content size and the uniform size, a set of vertex coordinates is calculated, and the content area is delineated based on the set of vertex coordinates, and the content image is filled into the content area.
[0112] In some embodiments, based on the screen resolution, image size, and scaling ratio, the coordinates of the top left corner can be calculated as TL = ((ScreenW – ImageW * Re) / 2, (ScreenH – ImageH * Re) / 2); the coordinates of the top right corner are TR = ((ScreenW – (ScreenW – ImageW * Re) / 2), (ScreenH – ImageH * Re) / 2); the coordinates of the bottom left corner are BL = ((ScreenW – ImageW * Re) / 2, (ScreenH – (ScreenH – ImageH * Re) / 2)); and the coordinates of the bottom right corner are BR = ((ScreenW – (ScreenW – ImageW * Re) / 2), (ScreenH – (ScreenH – ImageH * Re) / 2)).
[0113] For example, such as Figure 9 As shown, the four position coordinates of the painting merged into the background board relative to the upper left of the background board can be calculated as follows: upper left corner coordinate TL = ((ScreenW – ImageW * Re) / 2, 0); upper right corner coordinate TR = ((ScreenW – (ScreenW – ImageW * Re) / 2, 0); lower left corner coordinate BL = ((ScreenW – ImageW * Re) / 2, ScreenH); lower right corner coordinate BR = ((ScreenW – (ScreenW – ImageW * Re) / 2), ScreenH).
[0114] Next, a fill area for the target image is defined based on the content area and the uniform size, wherein the fill area is the region outside the content area within the image region corresponding to the uniform size. The target image is then generated by obtaining a preset background pattern and filling the fill area with the background pattern.
[0115] For example, if the user-preset display ratio is 1, then according to the method in the above embodiment, the uniform size can be determined as a uniform width ScreenW and a uniform height ScreenH. For an original image file with a slender shape, where the width is ImageW, the height is ImageH, and ImageH > ImageW, the display device 200 can first determine the scaling ratio based on the height, that is, the display device 200 makes the height of the displayed image equal to the screen height when displaying, resulting in a scaling ratio of ScreenH / ImageH. After scaling the original image according to the calculated scaling ratio, the display area of the content area can be obtained, that is, the area enclosed by the coordinates of the upper left corner TL, the upper right corner TR, the lower right corner BR, and the lower left corner BL.
[0116] Next, define the fill area, which is the area of the entire screen display area that is not occupied by the content area. For example... Figure 10 As shown, the filled area comprises two sub-regions: a first sub-region located to the left of the content area and a second sub-region located to the right of the content area. The first sub-region is bounded by the top-left corner (0,0), the top-left corner coordinates TL, the bottom-left corner coordinates BL, and the bottom-left corner coordinates (0,ScreenH). The second sub-region is bounded by the top-right corner coordinates TR, the top-right corner coordinates (ScreenW,0), the bottom-right corner coordinates (ScreenW,ScreenH), and the bottom-right corner coordinates BR.
[0117] After defining the fill area, the display device 200 can add a fill pattern within the fill area according to the fill scheme set by the user. The fill pattern can have different display effects depending on the user's settings. For example, the fill pattern can be a solid color fill, or it can be a wood texture effect similar to the frame pattern. In other words, the display device 200 can draw the artwork Bitmap in memory onto the background Bitmap's Canvas based on the calculated TL, TR, BL, BR coordinates, and generate the final merged Bitmap.
[0118] In some embodiments, the screen resolution of the display and a preset display ratio are obtained. If the display ratio is less than 1, a background view is generated based on the screen resolution and the display ratio, wherein the background view is displayed through a graphics layer, and the display level of the graphics layer is higher than that of the video layer. Then, based on the fill pattern of the target image, the fill pattern of the background view is set so that the fill pattern of the target image and the fill pattern of the background view have the same filling effect.
[0119] For example, such as Figure 11 As shown, when the display device 200 runs the art album application, in order to present the picture frame effect, if the user sets the picture to be played according to a certain fixed non-full-screen ratio through the menu of the art album application, and the display ratio is recorded as Ere (the display ratio Ere is 1 when the full-screen ratio is displayed), then when the painting is played, the width and height of the painting SurfaceView of the Video layer drawing area will be set to (ScreenW*Ere, ScreenH*Ere) respectively.
[0120] When a user selects an artwork to play, the display ratio set by the user is obtained. If the display ratio Ere < 1, a full-screen application layer view is generated and the view's view level is set to the minimum application level to prevent the background color from showing through the edges due to the video layer artwork not being full-screen.
[0121] The SurfaceView used for video layer playback is set to have a width of ScreenW*Ere and a height of ScreenH*Ere using WindowManager's layoutParam. The starting coordinates relative to the top-left corner of the screen are (ScreenW - ScreenW*Ere) / 2. The area defined by (ScreenH - ScreenH*Ere) / 2 is the background view. The SurfaceView's view hierarchy is then set to be the layer above the full-screen application layer view to achieve a framed effect.
[0122] In some embodiments, after generating the target image, the display device 200 can store the generated target image. To facilitate subsequent display, the display device 200 can also establish an association between the target image and the original image (the image to be displayed) when storing the target image. This association can be between storage names or between storage paths. Therefore, the display device 200 can set the retrieval ID of the target image based on the identification information of the image to be displayed, and set the storage path according to the retrieval ID to store the target image. For example, the display device 200 stores the merged Bitmap from memory to the application's data partition; and stores the coordinate information corresponding to this drawing in the local SQLite database of the data partition using the drawing name as the key, for subsequent display.
[0123] Therefore, after the display device 200 receives the recognition information of the image to be displayed in response to the display command, it can query the data storage unit based on the recognition information to obtain the target image associated with the image to be displayed. Since all target images corresponding to images to be displayed in the same image set have the same size, the video layer can directly use the display parameters of the target image when switching between images, thus alleviating the frame flickering phenomenon during switching and improving the image switching display speed.
[0124] In some embodiments, when querying a target image, the display device 200 can also determine whether the current database contains a target image corresponding to the image to be displayed. If the current database does not contain a target image corresponding to the image to be displayed, a target image of uniform size is created in real time according to the method provided in the above embodiments. However, since the creation process takes a certain amount of time, the display device 200 needs to display a transition screen when performing the switch to improve the smoothness of the switch process. If the current database contains a target image corresponding to the image to be displayed, the target image is displayed.
[0125] S300: Control the display to show the target image through the video layer.
[0126] After acquiring the target image, the display device 200 can display the target image through the video layer. In some embodiments, after the display device 200 reads the locally merged target image file through an art book application, it can draw the target image file onto a SurfaceView. During this process, the display device 200 can use media middleware to set the SurfaceView onto the Video layer for playback.
[0127] Since the target image is displayed through the video layer, while other content in the image display interface is displayed through the graphics layer, and the display device 200 processes the video layer and graphics layer differently, in some scenarios the filled area in the target image may display differently from other content in the image display interface. Therefore, in some embodiments, in order to present a better image display effect, the display device 200 can also use subviews to assist in displaying the filled area.
[0128] That is, Figure 12 As shown, when the image display interface includes a frame, after the SurfaceView finishes drawing the image, the filled area, i.e., the non-artwork area (such as the background area), will have a significant color difference from the frame area due to the different drawing layers (graphics layer and video layer). At this time, the display device 200 can read the coordinate data stored in the SQLite corresponding to this image through the art book application. Then, taking the upper left corner of the video layer area as the initial coordinate (0, 0), the read coordinate data (i.e., TL, TR, BL, BR coordinates) multiplied by Ere is the actual drawing coordinate of the artwork. Then, the two undrawn filled areas of the artwork are added to the application layer view respectively. When adding the application layer view, the layer of the view can be set to the layer above the SurfaceView's layer through WindowManager to ensure that the application layer view is above the video layer. The background color of the view is set to the same color as the user-selected color, which is the background color of the underlying full-screen view view. This ensures that the video layer view does not change when the proportion of the artwork is irregular, preventing frame flickering during the switching process.
[0129] like Figure 13 As shown, in some embodiments, during the process of controlling the display to show the first target image corresponding to the current image, the display device 200 can also obtain a switching command input by the user for switching the display of images to be displayed in the image set. In conjunction with the input method of the display command in the above embodiments, the switching command can also be input through the remote control directional keys, touch interaction, voice interaction, or other methods provided with the display device 200.
[0130] Upon receiving a switching command, the display device 200 can respond to the switching command by acquiring the adjacent image information of the currently displayed image in the image set. Then, based on the adjacent image information, it extracts a second target image associated with the adjacent images. Since the currently displayed image and the adjacent images belong to the same image set, the second target image has the same size as the first target image. After acquiring the target image of the adjacent images, the display device 200 controls the display to show the second target image through the video layer.
[0131] For example, when the display device 200 is displaying the first target image PA corresponding to image A, the user inputs a switching command by pressing the right arrow key on the remote control. Then, the display device 200 can obtain the recognition information of the adjacent image of image A, namely image B, and obtain the second target image PB corresponding to image B based on the recognition information of image B, and display it. The second target image PB and the first target image PA have the same size. They are both uniformly sized images with a width of ScreenW*Ere and a height of ScreenH*Ere generated from the original images of image A and image B when downloading the image set.
[0132] In some embodiments, in order to improve the image switching speed, when displaying an image set, the display device 200 can read all the target images corresponding to the images to be displayed in the image set into the running memory after starting the application corresponding to the image set. This allows the display device 200 to directly perform switching operations on the images in the running memory during the switching process, reducing the time spent querying and retrieving target images.
[0133] In some embodiments, if the shapes or areas of the filled regions in the first target image and the second target image are inconsistent, the display device 200 may, when displaying the second target image through the video layer, first draw the screen content corresponding to the second target image on the video layer, and then read the configuration information field of the second target image. The configuration information field is used to characterize the position of the content area in the second target image.
[0134] The display position of the subview is then dynamically calculated based on the configuration information fields, wherein the display position of the subview overlaps with the filled area in the second target image. The subview is then drawn on a graphics layer based on the display position, wherein the display layer of the graphics layer is higher than the display layer of the video layer.
[0135] For example, if image C is a wide-format painting with a width greater than its height, and image D is a long-format painting with a width less than its height, when the user controls the display device 200 to switch from displaying image C to displaying image D via a switching command, since the filled areas in the first target image PC corresponding to image C are located at the top and bottom, while the filled areas in the second target image PD corresponding to image D are located on the left and right sides, the display device 200 can first cancel the subviews displayed at the top and bottom of the display area, then read the configuration information field corresponding to image D, and determine the display position of the subviews on the left and right sides of the screen based on the configuration information field. Then, according to the determined display positions, the display device 200 adds subviews through the graphics layer to display the subviews on the left and right sides of the screen.
[0136] Based on the above-described method for displaying irregular images, some embodiments of this application also provide a display device 200, including: a display 260, a communication device 220, and a controller 250. The display 260 is configured to display a user interface; the communication device 220 is configured to establish a communication connection with a server 400, the server 400 storing original images of an image set, the image set including multiple images to be displayed; the controller 250 is configured to perform the following steps:
[0137] In response to a display instruction for displaying an image set, identification information of the images to be displayed is extracted from the image set, which includes multiple images to be displayed;
[0138] The target image associated with the image to be displayed is obtained based on the identification information. The target image includes a content area and a fill area. The content area is generated by scaling the original image of the image to be displayed based on the screen resolution and preset display ratio of the display. The fill area is defined according to the content area, the screen resolution, and the display ratio. The fill area is filled with a uniform background pattern. The target images corresponding to the images to be displayed in the same image set are of equal size.
[0139] The target image is displayed through a video layer.
[0140] As can be seen from the above technical solutions, some embodiments of this application provide a display device and a method for displaying irregular images. The method can, in response to a display instruction for displaying an image set, extract the identification information of the image to be displayed from the image set. Then, based on the identification information, it obtains a target image associated with the image to be displayed and displays the target image through a video layer. The target image includes a content area and a fill area. The content area is generated by scaling the original image of the image to be displayed based on the screen resolution and a preset display ratio of the display. The fill area is defined according to the content area, screen resolution, and display ratio. The fill area is filled with a uniform background pattern; the target images corresponding to images to be displayed in the same image set are of equal size. This method can improve the flickering problem of images to be displayed at different ratios during the switching process by displaying target images of the same size instead of the images to be displayed, thereby shortening the image switching time and improving the smoothness of the switching process.
[0141] The same or similar parts among the various embodiments in this specification can be referred to mutually, and will not be repeated here.
[0142] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute 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, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods of various embodiments or certain parts of the embodiments of the present invention.
[0143] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
[0144] For ease of explanation, the above description has been provided in conjunction with specific embodiments. However, the above exemplary discussion is not intended to be exhaustive or to limit the embodiments to the specific forms disclosed above. Various modifications and variations can be obtained based on the above teachings. The selection and description of the above embodiments are for the purpose of better explaining the principles and practical applications, thereby enabling those skilled in the art to better utilize the described embodiments and various different variations of embodiments suitable for specific use considerations.
Claims
1. A display device, characterized in that, include: The monitor is configured to display the user interface; A communication device is configured to establish a communication connection with a server that stores the original images of an image set, the image set including multiple images to be displayed; The controller is configured as follows: In response to a display instruction for displaying an image set, the identification information of the image to be displayed is extracted from the image set; The target image associated with the image to be displayed is obtained based on the identification information. The target image includes a content area and a fill area. The content area is generated by scaling the original image of the image to be displayed based on the screen resolution of the display and a preset display ratio. The fill area is defined according to the content area, the screen resolution, and the display ratio. The fill area is filled with a uniform background pattern. The target images corresponding to the images to be displayed in the same image set are of equal size; The display is controlled to show the target image through the video layer.
2. The display device according to claim 1, characterized in that, The controller executes the process of obtaining the target image associated with the image to be displayed based on the recognition information, specifically configured as follows: Receive the original image sent by the server, and obtain the screen resolution and preset display ratio of the display; The uniform size is calculated based on the screen resolution and the display ratio, and the uniform size is equal to the product of the screen resolution and the display ratio; The original image is scaled to the specified uniform size to generate the target image; The retrieval ID of the target image is set according to the recognition information of the image to be displayed, and the storage path is set according to the retrieval ID to store the target image.
3. The display device according to claim 2, characterized in that, The controller is configured to scale the original image to the uniform size to generate the target image, specifically as follows: The image specification information of the image to be displayed is read from the original image, and the image specification information includes recognition information and image size; Calculate the scaling ratio based on the image size and the uniform size; The original image is scaled according to the stated scaling ratio to generate the content area of the target image; The filling area of the target image is defined based on the content area and the uniform size, wherein the filling area is the area outside the content area in the image area corresponding to the uniform size; A preset background pattern is obtained, and the background pattern is filled into the filling area to generate the target image.
4. The display device according to claim 3, characterized in that, The controller performs the calculation of the scaling ratio based on the image size and the uniform size, specifically configured as follows: Read the image height and width from the image size, and extract the uniform height and uniform width from the uniform size; Calculate a first ratio of the uniform height to the image height, and calculate a second ratio of the uniform width to the image width; If the first ratio is greater than the second ratio, the scaling ratio is generated based on the second ratio. If the first ratio is less than or equal to the second ratio, the scaling ratio is generated based on the first ratio.
5. The display device according to claim 3, characterized in that, The controller performs scaling of the original image according to the scaling ratio to generate the content area, specifically configured as follows: The original image is scaled based on the scaling ratio to generate a content image; Calculate the product of the image size and the scaling ratio to obtain the content size; Calculate the vertex coordinate set based on the content size and the uniform size; The content area is defined based on the set of vertex coordinates, and the content image is filled into the content area.
6. The display device according to claim 2, characterized in that, Before the controller extracts the recognition information of the image to be displayed from the image set, it is also configured to: In response to the power-on command of the display device, the background service of the target application is started, and the target application is used to display the image set; The background service detects the network connection status. When the network connection status is connected, a data acquisition request is sent to the server so that the server can return the image set according to the data acquisition request; The background service is controlled to search for the original image of the image to be displayed in the local data partition based on the recognition information of the image to be displayed in the image set; If the original image is not found in the local data partition, an image retrieval request is sent to the server so that the server can return the original image based on the image retrieval request.
7. The display device according to claim 1, characterized in that, After the controller executes the process of obtaining the target image associated with the image to be displayed based on the recognition information, it is further configured to: Obtain the screen resolution of the display and the preset display ratio; If the display ratio is less than 1, a background view is generated based on the screen resolution and the display ratio. The background view is displayed through a graphics layer, and the display level of the graphics layer is higher than the display level of the video layer. Based on the fill pattern of the target image, set the fill pattern of the background view so that the fill pattern of the target image and the fill pattern of the background view have the same filling effect.
8. The display device according to claim 1, characterized in that, After the controller executes the command to control the display to show the target image through the video layer, it is further configured to: During the process of controlling the display to show the first target image corresponding to the current image, a switching instruction input by the user for switching the display of the images to be displayed in the image set is obtained; In response to the switching command, obtain the adjacent image information of the currently displayed image in the image set; Based on the adjacent image information, extract the second target image associated with the adjacent images, wherein the second target image has the same size as the first target image; The display is controlled to show the second target image through the video layer.
9. The display device according to claim 8, characterized in that, The controller is configured to control the display to show the second target image through the video layer, and is also configured to: The video layer is used to draw the image content corresponding to the second target image. Read the configuration information field of the second target image, the configuration information field being used to characterize the content area location in the second target image; The display position of the subview is dynamically calculated based on the configuration information field, and the display position of the subview overlaps with the filled area in the second target image; A subview is drawn in the graphics layer according to the display position, and the display level of the graphics layer is higher than that of the video layer.
10. A method for displaying irregular images, characterized in that, Applied to the display device according to any one of claims 1-9, the method for displaying the irregular image includes: In response to a display instruction for displaying an image set, identification information of the images to be displayed is extracted from the image set, which includes multiple images to be displayed; The target image associated with the image to be displayed is obtained based on the identification information. The target image includes a content area and a fill area. The content area is generated by scaling the original image of the image to be displayed based on the screen resolution and preset display ratio of the display. The fill area is defined according to the content area, the screen resolution, and the display ratio. The fill area is filled with a uniform background pattern. The target images corresponding to the images to be displayed in the same image set are of equal size. The target image is displayed through a video layer.
Citation Information
Patent Citations
Image data providing device, image display device, image display system, control method for image data providing device, control method for image display device, control program and recording medium
CN101479783A
Picture display method, picture display device, electronic equipment and storage medium
CN110060203A
Screenshot method and device
CN112445394A
Display device and video signal display method
CN114710633A
Picture display method and device, electronic equipment and storage medium
CN117874377A