CN113190202B - Data display method and display equipment - Google Patents

Data display method and display equipment Download PDF

Info

Publication number
CN113190202B
CN113190202B CN202110573644.XA CN202110573644A CN113190202B CN 113190202 B CN113190202 B CN 113190202B CN 202110573644 A CN202110573644 A CN 202110573644A CN 113190202 B CN113190202 B CN 113190202B
Authority
CN
China
Prior art keywords
data
actual
display area
width
display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110573644.XA
Other languages
Chinese (zh)
Other versions
CN113190202A (en
Inventor
何宏磊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vidaa Netherlands International Holdings BV
Original Assignee
Vidaa Netherlands International Holdings BV
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vidaa Netherlands International Holdings BV filed Critical Vidaa Netherlands International Holdings BV
Priority to CN202110573644.XA priority Critical patent/CN113190202B/en
Publication of CN113190202A publication Critical patent/CN113190202A/en
Application granted granted Critical
Publication of CN113190202B publication Critical patent/CN113190202B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/28Databases characterised by their database models, e.g. relational or object models
    • G06F16/284Relational databases
    • G06F16/285Clustering or classification
    • G06F16/287Visualization; Browsing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Databases & Information Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

In the above embodiments, the present application discloses a method for playing data by a display device and the display device, which reduces coupling between the display device and an application by setting a logical size of a screen. The method comprises the following steps: receiving a data playing instruction, and acquiring the logical size of a screen, the actual size of the screen and the logical position of a display area; determining the actual position of the display area according to the logical size of the screen, the actual size of the screen and the logical position of the display area; acquiring the data width and the data height of data; determining the actual display position of the data according to the data width, the data height and the actual position of the display area; judging whether the actual display position of the data needs to be cut or not; if the data needs to be cut, cutting the actual display position of the data, and determining the final display position of the data; and determining the final position of the display area by using the final data display position, controlling the display to display the display area at the final display position of the display area, and displaying corresponding data at the final data display position.

Description

Data display method and display device
Technical Field
The present application relates to the field of data display technologies, and in particular, to a data display method and a display device.
Background
In the related art, the application needs to set the played data according to the actual size of the screen of the terminal, which increases the coupling degree between the application and the terminal, so how to reduce the coupling degree between the application and the terminal when playing the data becomes a problem to be solved by those skilled in the art.
Disclosure of Invention
The embodiment of the application provides a data display method and display equipment, so that the coupling degree between an application and a terminal is reduced when data is played.
In a first aspect, there is provided a display device comprising:
a display for displaying a user interface;
a user interface for receiving an input signal;
a controller respectively coupled to the display and the user interface for performing:
receiving a data playing instruction, and acquiring the logical size of a screen, the actual size of the screen and the logical position of a display area;
determining the actual position of the display area according to the screen logical size, the screen actual size and the display area logical position; acquiring the data width and the data height of the data;
determining the actual display position of the data according to the data width, the data height and the actual position of the display area;
judging whether the actual display position of the data needs to be cut;
if the data needs to be cut, cutting the actual display position of the data, and determining the final display position of the data; and determining the final position of the display area by using the final data display position, controlling a display to display the display area at the final display position of the display area, and displaying corresponding data at the final data display position.
In some embodiments, the controller is configured to determine the display area actual position based on the screen logical size, the screen actual size, and the display area logical position by:
calculating a size ratio according to the screen logic size and the screen actual size, wherein the size ratio comprises a width size ratio and a height size ratio; and calculating to obtain the actual position of the display area according to the logical position and the size proportion of the display area.
In some embodiments, the controller is configured to determine the data actual display position according to the data width, the data height and the display area actual position by:
the actual position of the display area comprises the abscissa of the actual initial point of the display area, the ordinate of the actual initial point of the display area, the actual width of the display area and the actual height of the display area;
the data actual display position comprises a data actual initial point abscissa, a data actual initial point ordinate, a data display area actual width and a data display area actual height;
determining filling information according to the data width, the data height and the actual position of the display area, wherein the filling information comprises height filling or width filling;
if the filling information comprises width filling, the abscissa of the actual initial point of the data is equal to the abscissa of the actual initial point of the display area; the actual width of the data display area is equal to the actual width of the display area; the actual height of the data display area is equal to the actual height of the display area multiplied by the actual width of the display area divided by the data width; the actual width of the data display area is equal to the sum of the actual height of the display area minus the actual height of the data display area divided by 2 and the vertical coordinate of the actual initial point of the display area.
In some embodiments, the controller is further configured to perform:
if the filling information comprises high filling, the vertical coordinate of the actual initial point of the data is equal to the vertical coordinate of the actual initial point of the display area; the actual height of the data display area is equal to the actual height of the display area; the actual width of the data display area is equal to the data width multiplied by the actual height of the display area divided by the data height; the abscissa of the actual initial point of the data is equal to the sum of the actual width of the display area minus the actual width of the display area divided by 2 and the abscissa of the actual initial point of the display area.
In some embodiments, the controller is configured to perform the step of determining whether the data actually displayed position needs to be cut according to the following steps:
judging whether the actual display position of the data meets a preset condition, wherein the preset condition comprises the following steps: the abscissa of the actual data initial point is less than 0, the ordinate of the actual data initial point is less than 0, the abscissa of the actual data initial point plus the actual width of the data display area is greater than the abscissa of the rightmost edge of the screen, and/or the ordinate of the actual data initial point plus the actual height of the data display area is greater than the ordinate of the bottommost edge of the screen;
if the actual display position of the data meets a preset condition, determining that the data needs to be cut;
and if the actual display position of the data does not accord with the preset condition, determining that the cutting is not needed.
In some embodiments, the controller is configured to perform cropping the actual display position of the data and determining the final display position of the data by:
the data final display position comprises a data final initial point abscissa, a data final initial point ordinate, a data display area final width and a data display area final height;
judging whether the abscissa of the actual initial point of the data is greater than 0;
if the abscissa of the actual initial point of the data is greater than 0, establishing a coordinate system by taking the initial point of the data as an origin, wherein the abscissa of the final initial point of the data is equal to 0; if not greater than 0, the data final initial point abscissa is equal to the absolute value of the data actual initial point abscissa multiplied by the data width divided by the data display area actual width.
In some embodiments, the controller is further configured to perform:
determining the abscissa of the upper right corner of the image corresponding to the data actual display position data;
judging whether the abscissa of the upper right corner of the image corresponding to the data actual display position data is smaller than 0;
if the abscissa of the upper right corner is less than 0, the final width of the data display area is 0;
if the abscissa of the upper right corner is not less than 0 and is less than the data width, the final width of the data display area is equal to the data width minus the abscissa of the final initial point of the data;
if the abscissa of the upper right corner is larger than the data width and the abscissa of the actual initial point of the data is not larger than 0, the final width of the data display area is equal to the width of the final size of the screen multiplied by the data width divided by the actual width of the data display area;
if the abscissa of the upper right corner is larger than the data width, the abscissa of the actual initial point of the data is larger than 0, and the abscissa of the actual initial point of the data is smaller than the data width, the final width of the data display area is equal to the width of the actual size of the screen minus the abscissa of the actual initial point of the data, and then multiplied by the data width to divide the actual width of the data display area;
and if the abscissa of the upper right corner is larger than the data width and the abscissa of the actual initial point of the data is not smaller than the data width, the final width of the data display area is 0.
In a second aspect, a data display method is provided, including:
receiving a data playing instruction, and acquiring the logical size of a screen, the actual size of the screen and the logical position of a display area;
determining the actual position of the display area according to the screen logical size, the screen actual size and the display area logical position; acquiring the data width and the data height of the data;
determining the actual display position of the data according to the data width, the data height and the actual position of the display area;
judging whether the actual display position of the data needs to be cut;
if the data needs to be cut, cutting the actual display position of the data, and determining the final display position of the data; and determining the final position of the display area by using the final data display position, controlling a display to display the display area at the final display position of the display area, and displaying corresponding data at the final data display position.
In some embodiments, the step of determining the actual position of the display area according to the screen logical size, the screen actual size, and the display area logical position includes:
calculating a size ratio according to the screen logic size and the screen actual size, wherein the size ratio comprises a width size ratio and a height size ratio; and calculating to obtain the actual position of the display area according to the logical position and the size proportion of the display area.
In some embodiments, the step of determining the actual display position of the data according to the data width, the data height and the actual display position of the display area comprises:
the actual position of the display area comprises the abscissa of the actual initial point of the display area, the ordinate of the actual initial point of the display area, the actual width of the display area and the actual height of the display area;
the data actual display position comprises a data actual initial point abscissa, a data actual initial point ordinate, a data display area actual width and a data display area actual height;
determining filling information according to the data width, the data height and the actual position of the display area, wherein the filling information comprises height filling or width filling;
if the filling information comprises width filling, the abscissa of the actual initial point of the data is equal to the abscissa of the actual initial point of the display area; the actual width of the data display area is equal to the actual width of the display area; the actual height of the data display area is equal to the actual height of the display area multiplied by the actual width of the display area divided by the data width; the actual width of the data display area is equal to the sum of the actual height of the display area minus the actual height of the data display area divided by 2 and the vertical coordinate of the actual initial point of the display area.
In the above embodiments, a method for playing data by a display device and the display device reduce coupling between the display device and an application by setting a logical size of a screen. The method comprises the following steps: receiving a data playing instruction, and acquiring the logical size of a screen, the actual size of the screen and the logical position of a display area; determining the actual position of the display area according to the logical size of the screen, the actual size of the screen and the logical position of the display area; acquiring the data width and the data height of data; determining the actual display position of the data according to the data width, the data height and the actual position of the display area; judging whether the actual display position of the data needs to be cut; if the data needs to be cut, cutting the actual display position of the data, and determining the final display position of the data; and determining the final position of the display area by using the final data display position, controlling the display to display the display area at the final display position of the display area, and displaying corresponding data at the final data display position.
Drawings
FIG. 1 illustrates a usage scenario of a display device according to some embodiments;
fig. 2 illustrates a hardware configuration block diagram of the control apparatus 100 according to some embodiments;
fig. 3 illustrates a hardware configuration block diagram of the display apparatus 200 according to some embodiments;
FIG. 4 illustrates a software configuration diagram in the display device 200 according to some embodiments;
FIG. 5 is a flow diagram illustrating a method for a display device to play data according to some embodiments;
FIG. 6 is a diagram illustrating the relationship of screens, display areas, and data according to some embodiments;
a schematic diagram of the location of the screen, display area and data according to some embodiments is illustrated in fig. 7-24.
Detailed Description
To make the purpose and embodiments of the present application clearer, the following will clearly and completely describe the exemplary embodiments of the present application with reference to the attached drawings in the exemplary embodiments of the present application, and it is obvious that the described exemplary embodiments are only a part of the embodiments of the present application, and not all of the embodiments.
It should be noted that the brief descriptions of the terms in the present application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of the present application. These terms should be understood in their ordinary and customary meaning unless otherwise indicated.
The terms "first," "second," "third," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between similar or analogous objects or entities and not necessarily for describing a particular sequential or chronological order, unless otherwise indicated. It is to be understood that the terms so used are interchangeable under appropriate circumstances.
The terms "comprises" and "comprising," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to all elements expressly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware or/and software code that is capable of performing the functionality associated with that element.
Fig. 1 is a schematic diagram of an operation scenario between a display device and a control apparatus according to an embodiment. As shown in fig. 1, a user may operate the display apparatus 200 through the smart device 300 or the control device 100.
In some embodiments, the control apparatus 100 may be a remote controller, and the communication between the remote controller and the display device includes an infrared protocol communication or a bluetooth protocol communication, and other short-distance communication methods, and controls the display device 200 in a wireless or wired manner. The user may input a user command through a key on a remote controller, a voice input, a control panel input, etc. to control the display apparatus 200.
In some embodiments, a smart device 300 (e.g., a mobile terminal, a tablet, a computer, a laptop, etc.) may also be used to control the display device 200. For example, the display device 200 is controlled using an application program running on the smart device.
In some embodiments, the display device 200 may also be controlled in a manner other than the control apparatus 100 and the smart device 300, for example, the voice command control of the user may be directly received through a module configured inside the display device 200 to obtain a voice command, or may be received through a voice control device provided outside the display device 200.
In some embodiments, the display device 200 is also in data communication with a server 400. The display device 200 may be allowed to be communicatively connected through a Local Area Network (LAN), a Wireless Local Area Network (WLAN), and other networks. The server 400 may provide various contents and interactions to the display apparatus 200. The server 400 may be a cluster or a plurality of clusters, and may include one or more types of servers.
Fig. 2 exemplarily shows a block diagram of a configuration of the control apparatus 100 according to an exemplary embodiment. As shown in fig. 2, the control device 100 includes a controller 110, a communication interface 130, a user input/output interface 140, a memory, and a power supply. The control apparatus 100 may receive an input operation instruction from a user and convert the operation instruction into an instruction recognizable and responsive by the display device 200, serving as an interaction intermediary between the user and the display device 200.
Fig. 3 shows a hardware configuration block diagram of the display apparatus 200 according to an exemplary embodiment.
In some embodiments, the display apparatus 200 includes at least one of a tuner demodulator 210, a communicator 220, a detector 230, an external device interface 240, a controller 250, a display 260, an audio output interface 270, a memory, a power supply, a user interface.
In some embodiments the controller comprises a processor, a video processor, an audio processor, a graphics processor, a RAM, a ROM, a first interface to an nth interface for input/output.
In some embodiments, the display 260 includes a display screen component for presenting a picture, and a driving component for driving image display, a component for receiving an image signal from the controller output, performing display of video content, image content, and a menu manipulation interface, and a user manipulation UI interface.
In some embodiments, the display 260 may be a liquid crystal display, an OLED display, and a projection display, and may also be a projection device and a projection screen.
In some embodiments, communicator 220 is a component for communicating with external devices or servers according to various communication protocol types. For example: the communicator may include at least one of a Wifi module, a bluetooth module, a wired ethernet module, and other network communication protocol chips or near field communication protocol chips, and an infrared receiver. The display apparatus 200 may establish transmission and reception of control signals and data signals with the external control apparatus 100 or the server 400 through the communicator 220.
In some embodiments, the user interface may be configured to receive control signals for controlling the apparatus 100 (e.g., an infrared remote control, etc.).
In some embodiments, the detector 230 is used to collect signals of the external environment or interaction with the outside. For example, detector 230 includes a light receiver, a sensor for collecting the intensity of ambient light; alternatively, the detector 230 includes an image collector, such as a camera, which can be used to collect external environment scenes, attributes of the user, or user interaction gestures, or the detector 230 includes a sound collector, such as a microphone, which is used to receive external sounds.
In some embodiments, the external device interface 240 may include, but is not limited to, the following: high Definition Multimedia Interface (HDMI), analog or data high definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, and the like. Or may be a composite input/output interface formed by the plurality of interfaces.
In some embodiments, the tuner demodulator 210 receives broadcast television signals via wired or wireless reception and demodulates audio/video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.
In some embodiments, the controller 250 and the modem 210 may be located in different separate devices, that is, the modem 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.
In some embodiments, 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 apparatus 200. For example: in response to receiving a user command for selecting a UI object displayed on the display 260, the controller 250 may perform an operation related to the object selected by the user command.
In some embodiments, the object may be any one of selectable objects, such as a hyperlink, an icon, or other actionable control. The operations related to the selected object are: displaying an operation of connecting to a hyperlink page, document, image, etc., or performing an operation of a program corresponding to the icon.
In some embodiments the controller comprises at least one of a Central Processing Unit (CPU), a video processor, an audio processor, a Graphics Processing Unit (GPU), a RAM Random Access Memory (RAM), a ROM (Read-Only Memory), a first to nth interface for input/output, a communication Bus (Bus), and the like.
A CPU processor. For executing operating system and application program instructions stored in the memory, and executing various application programs, data and contents according to various interactive instructions receiving external input, so as to finally display and play various audio-video contents. The CPU processor may include a plurality of processors. E.g. comprising a main processor and one or more sub-processors.
In some embodiments, a graphics processor for generating various graphics objects, such as: icons, operation menus, user input instruction display graphics, and the like. The graphic processor comprises an arithmetic unit, which performs operation by receiving various interactive instructions input by a user and displays various objects according to display attributes; the system also comprises a renderer which renders various objects obtained based on the arithmetic unit, and the rendered objects are used for being displayed on a display.
In some embodiments, the video processor is configured to receive an external video signal, and perform video processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, and image synthesis according to a standard codec protocol of the input signal, so as to obtain a signal that can be displayed or played on the direct display device 200.
In some embodiments, the video processor includes a demultiplexing module, a video decoding module, an image synthesis module, a frame rate conversion module, a display formatting module, and the like. The demultiplexing module is used for demultiplexing the input audio and video data stream. And the video decoding module is used for processing the demultiplexed video signal, including decoding, scaling and the like. And the image synthesis module, such as an image synthesizer, is used for performing superposition mixing processing on the GUI signal input by the user or generated by the user and the video image after the zooming processing by the graphics generator so as to generate an image signal for display. And the frame rate conversion module is used for converting the frame rate of the input video. And the display formatting module is used for converting the received video output signal after the frame rate conversion, and changing the signal to be in accordance with the signal of the display format, such as an output RGB data signal.
In some embodiments, the audio processor is configured to receive an external audio signal, decompress and decode the received audio signal according to a standard codec protocol of the input signal, and perform noise reduction, digital-to-analog conversion, and amplification processing to obtain an audio signal that can be played in the speaker.
In some embodiments, the user may input a user command on 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). Alternatively, the user may input the user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through the sensor.
In some embodiments, a "user interface" is a media interface for interaction and information exchange between an application or operating system and a user that enables conversion between an internal form of information and a form that is acceptable to the user. A commonly used presentation form of the User Interface is a Graphical User Interface (GUI), which refers to a User Interface related to computer operations and displayed in a graphical manner. It may be an interface element such as an icon, a window, a control, etc. displayed in the display screen of the electronic device, where the control may include a visual interface element such as an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc.
In some embodiments, the system of the display device may include a Kernel (Kernel), a command parser (shell), a file system, and an application. The kernel, shell, and file system together form the basic operating system structure that allows users to manage files, run programs, and use the system. After power-on, the kernel is started, kernel space is activated, hardware is abstracted, hardware parameters are initialized, and virtual memory, a scheduler, signals and interprocess communication (IPC) are operated and maintained. And after the kernel is started, loading the Shell and the user application program. The application program is compiled into machine code after being started, and a process is formed.
As shown in fig. 4, the system of the display device may include a Kernel (Kernel), a command parser (shell), a file system, and an application program. The kernel, the shelI, and the file system together form the basic operating system structure that allows users to manage files, run programs, and use the system. After power-on, the kernel is started, kernel space is activated, hardware is abstracted, hardware parameters are initialized, and virtual memory, a scheduler, signals and interprocess communication (IPC) are operated and maintained. And after the kernel is started, loading the Shell and the user application program. The application program is compiled into machine code after being started, and a process is formed.
As shown in fig. 4, the system of the display device is divided into three layers, i.e., an application layer, a middleware layer and a hardware layer from top to bottom.
The Application layer mainly includes common applications on the television and an Application Framework (Application Framework), wherein the common applications are mainly applications developed based on the Browser, such as: HTML5 APPs; and Native APPs (Native APPs);
an Application Framework (Application Framework) is a complete program model, and has all basic functions required by standard Application software, such as: file access, data exchange, and interfaces to use these functions (toolbars, status lists, menus, dialog boxes).
Native APPs (Native APPs) may support online or offline, message push, or local resource access.
The middleware layer comprises various television protocols, multimedia protocols, system components and other middleware. The middleware can use basic service (function) provided by system software to connect each part of an application system or different applications on a network, and can achieve the purposes of resource sharing and function sharing.
The hardware layer mainly comprises an HAL interface, hardware and a driver, wherein the HAL interface is a unified interface for butting all the television chips, and specific logic is realized by each chip. The driving mainly comprises: audio drive, display driver, bluetooth drive, camera drive, WIFI drive, USB drive, HDMI drive, sensor drive (like fingerprint sensor, temperature sensor, pressure sensor etc.) and power drive etc..
In the related art, the application needs to set the played data according to the actual size of the screen of the terminal, which increases the coupling degree between the application and the terminal, so how to reduce the coupling degree between the application and the terminal when playing data becomes a problem to be solved by those skilled in the art.
In order to solve the above problem, an embodiment of the present application provides a method for playing data by a display device, as shown in fig. 5, the method includes:
s100, receiving a data playing instruction, and acquiring the logical size of the screen, the actual size of the screen and the logical position of the display area. In the embodiment of the application, the application does not know the actual size of the screen of each terminal, so that the logical size of the screen is set at will, and the coupling between the terminal and the application can be reduced. In addition, the data needs to be displayed in the display area of the screen after being subjected to intermediate equal scaling, so the application also needs to set a logical position of the display area, and the logical position of the display area is set according to the logical size of the screen. The data in the embodiment of the present application may be images or videos. As shown in fig. 6, the relationship of the screen, the display area, and the data is shown in fig. 6.
And S200, determining the actual position of the display area according to the screen logic size, the screen actual size and the display area logic position.
In some embodiments, the step of determining the actual position of the display area according to the screen logical size, the screen actual size, and the display area logical position includes:
and calculating a size ratio according to the screen logic size and the screen actual size, wherein the size ratio comprises a width size ratio and a height size ratio.
For an application, all screen logical sizes may be the same, and for example, all screen logical sizes may be set to 10000 x 10000. And mapping the logical size (10000 multiplied by 10000) of the screen with the actual size of the screen, namely calculating to obtain the size of a unit logical size representing the real size. Such as wide screen size: 3840 pixels, high: 2160 pixels, then the result is calculated as:
the actual screen size represented by the width dimension ratio is 0.384 pixels, assumed to be unity w;
the height dimension scale represents an actual screen size of 0.216 pixels, assuming unity.
And calculating to obtain the actual position of the display area according to the logical position and the size proportion of the display area.
Applying the logical position of the display area based on the screen logical size setting requires a translation using the size scale to obtain the actual position of the display area, as shown for example in fig. 7 at display area actual position 500.
Illustratively, the logical position of the display area is (logcalx, logcaly, logcalw, logcalh), where (logcalx, logcaly) is the coordinate of the upper left corner of the logical position of the display area, and the embodiment of the present application may set a coordinate system with the upper left corner of the screen as the origin, take the right as the positive direction of the abscissa, take the down as the positive direction of the ordinate, logcalw is the width of the logical position of the display area, and logcalh is the height of the logical position of the display area.
The transformed screen shows that the actual position 500 is (logicalX. Sup. UnitW, logicalY. Sup. UnitH, logicalW. Sup. UnitW, logicalH. Sup. UnitH) and is set to (realyX, realyY, realyW, realyH). The display area actual position includes a display area actual initial point abscissa realyX, a display area actual initial point ordinate realyY, a display area actual width realyW, and a display area actual height realyH, refer again to fig. 7.
S300, acquiring the data width and the data height of the data. In the embodiment of the present application, the data may be a picture or a video.
And S400, determining the actual display position of the data according to the data width, the data height and the actual position of the display area.
And S500, judging whether the actual display position of the data needs to be cut. It should be noted that, since the actual data display position is located in the middle of the actual data display position of the display area, and the actual data display position of the display area has a certain limitation, the actual data display position may need to be cut, and the data is displayed at the actual data display position, where the data may be partially displayed.
S600, if the data are required to be cut, cutting the actual display position of the data, and determining the final display position of the data; and determining the final position of the display area by using the final data display position, controlling a display to display the display area at the final display position of the display area, and displaying corresponding data at the final data display position. As shown in fig. 7, the data actually shows a location 600.
In the embodiment of the application, due to the limitation of the ratio of the data width to the data height of the data, the actual position of the display area cannot be completely occupied, and at this time, the actual display position of the data is obtained by calculation, and the data is displayed at the actual display position of the data.
In some embodiments, the step of determining the actual display position of the data according to the data width, the data height and the actual position of the display area includes:
the actual position of the display area comprises the abscissa of the actual initial point of the display area, the ordinate of the actual initial point of the display area, the actual width of the display area and the actual height of the display area.
The data actual display position 600 is (scaleX, scaleY, scaleW, scaleH), and includes a data actual initial point abscissa scaleX, a data actual initial point ordinate scaleY, a data display area actual width scaleW, and a data display area actual height scaleH, as shown in fig. 7.
And determining filling information according to the data width, the data height and the actual position of the display area, wherein the filling information comprises height filling or width filling.
In some embodiments, the step of determining the filling information according to the data width, the data height and the actual position of the display area includes:
tempValue1= data width videoW/display area actual width realyW;
tempValue2= data height videoH/display area actual height realyH;
tempValue1 > tempValue2: determining that the padding information includes width padding;
tempValue1 < tempValue2: determining that the fill information includes a high fill;
tempValue1= tempValue2: it is determined that the filling information includes height filling or width filling.
If the filling information includes the width filling, as shown in fig. 7, the abscissa of the actual initial point of the data is equal to the abscissa of the actual initial point of the display area (scaleX = realyX); the data display area actual width is equal to the display area actual width (scaleW = realyW); the data width is video W, the data height is video H, all data need be displayed in default, the display area is: (0, video W, video H), wherein (0, 0) is the starting point of the data.
The data display area actual height is equal to the display area actual height multiplied by the display area actual width divided by the data width (scaleH = video h realw/video w); the actual width of the data display area is equal to the sum of the actual height of the display area minus the actual height of the data display area divided by 2 and the ordinate of the actual initial point of the display area (scaleY = realyY + (realh-scaleH)/2).
If the filling information includes the high filling level, as shown in fig. 8, the ordinate of the actual initial point of the data is equal to the ordinate of the actual initial point of the display area (scaleY = realyY); the data display area actual height is equal to the display area actual height (scaleH = realyH); the data display area actual width is equal to the data width multiplied by the display area actual height divided by the data height (scaleW = video w: realyH/video h); the abscissa of the actual initial point of data is equal to the sum of the abscissa of the actual initial point of the display area (scaleX = realx + (realw-scaleW)/2) divided by 2 after subtracting the actual width of the display area of data.
Although the data may be displayed in the actual position of the display area after the above steps, the actual position of the display area may exceed the range of the screen, and the data may also exceed the range of the screen, at which time the actual display position of the data needs to be cut, and at which time the actual display position of the data is not necessarily the final actual display position of the data, that is, the final display position of the data mentioned below. As shown in fig. 9 to 23, the actual display position of the data shown in fig. 9 to 11 does not exceed the screen range, and the actual display position of the data shown in fig. 11 to 23 exceeds the screen range, at this time, the actual display position of the data needs to be cut to obtain the final display position of the data. As shown in fig. 24, the data final display position is shown in fig. 24.
After the actual display position of the data is determined, whether the actual display position of the data needs to be cut is judged.
In some embodiments, the screen range includes an initial point (0, 0), a screen width, and a screen height. The step of judging whether the actual data display position needs to be cut, namely whether the actual data display position exceeds the screen range, comprises the following steps:
judging whether the actual display position of the data meets a preset condition, wherein the preset condition comprises the following steps: the abscissa of the actual initial point of the data is less than 0, the ordinate of the actual initial point of the data is less than 0, the abscissa of the actual initial point of the data plus the actual width of the data display area is greater than the abscissa of the rightmost edge of the screen, and/or the ordinate of the actual initial point of the data plus the actual height of the data display area is greater than the ordinate of the bottommost edge of the screen.
If the actual display position of the data meets a preset condition, determining that the data needs to be cut;
and if the actual display position of the data does not meet the preset condition, determining that the cutting is not needed.
In the embodiment of the application, the screen logic size is mainly set, so that the coupling between the display device and the application is reduced, and the process of specifically displaying data after determining the actual size of the screen is not the most important process in the application, so that any specific algorithm capable of displaying corresponding data at the display position is not limited, and the process of cutting the actual display position of the data and determining the final position of the display area is not limited.
In some embodiments, the step of cropping the actual display position of the data and determining the final display position of the data comprises:
the data final display position includes a data final initial point abscissa video clip x, a data final initial point ordinate video clip y, a data display region final width video clip w, and a data display region final height video clip h, and is exemplarily shown in fig. 24.
Judging whether the abscissa of the actual initial point of the data is larger than 0;
and if the abscissa of the actual initial point of the data is greater than 0, the final display position of the data of the image corresponding to the data is positioned on the right side of the left edge of the screen. And establishing a coordinate system by taking the actual initial point of the data as an original point, taking the right direction as the positive direction of the abscissa, taking the down direction as the positive direction of the ordinate, and taking the abscissa VideoClipX of the final initial point of the data as 0, namely the VideoClipX is 0.
If the data is not greater than 0, it indicates that the data final display position of the picture corresponding to the data is not located on the right side of the left edge of the screen, and the data final initial point abscissa videoClipX is equal to the absolute value of the data actual initial point abscissa scaleX multiplied by the data width videoW divided by the data display area actual width scaleW, i.e., videoClipX = abs (scaleX) < videoW/scaleW.
Similarly, the ordinate of the final initial point of the data can also be determined in the above-mentioned manner of determining the abscissa of the final initial point of the data, but the position related to the width needs to be changed to the height.
How to determine the final width of the data display area is described below, including:
confirm the data and actually show the abscissa of the upper right corner bottom of the position data corresponding image, in this application embodiment, the data and actually show the position in the coordinate system that uses the upper left corner of the screen as the origin, and this coordinate system takes the positive direction that is the abscissa to the right, takes the positive direction that is the ordinate to the down.
Judging whether the abscissa of the upper right corner of the image corresponding to the data actual display position data is less than 0;
if the abscissa of the upper right corner is less than 0, the upper right corner is to the left at the left edge of the screen, and the final width of the data display area, videoClipW, is 0, i.e., the videoClipW is 0.
If the abscissa bottom of the upper right corner is not less than 0 and is less than the data width video w, the upper right corner is to the right at the left edge of the screen, and the data display region final width video clip w is equal to the data width video w minus the data final initial point abscissa video clip x, i.e., video clip w = video w-video clip x.
When the upper right corner is to the right at the right edge of the screen, this situation is subdivided into three categories, as follows:
if the abscissa of the upper right corner is greater than the data width and the actual initial point of data abscissa is not greater than 0, the upper right corner is to the right at the right edge of the screen, the upper left corner is to the left at the left edge of the screen, the data display region final width videoClipW is the width required to fill the entire screen, the data display region final width videoClipW is equal to the width of the actual size of the screen multiplied by the data width videoW divided by the actual width scaleW of the data display region, an exemplary actual size of the screen is 3840, and the videoClipW =3840 video w/scaleW.
If the abscissa of the upper right corner is greater than the data width, the abscissa of the actual initial point of the data is greater than 0, and the abscissa of the actual initial point of the data is less than the data width, the upper right corner is to the right at the right edge of the screen, the upper left corner is to the right at the left edge of the screen, and the upper left corner is to the left at the right edge of the screen, the final width of the data display area, videoClipW, is the image width of the filled screen actual size minus the abscissa of the actual initial point of the data, the final width of the data display area, videoClipW, is equal to the width of the screen actual size minus the scale of the actual initial point of the data, multiplied by the data width, videoW, divided by the actual width of the data display area, scaleW, illustratively, the width of the screen actual size is 3840, i.e., videoClipW = (3840-scale x): video w/scale w.
If the abscissa of the upper right corner is larger than the data width and the actual initial point abscissa of the data is not smaller than the data width, the right corner is positioned on the right side edge of the screen, it is indicated that no image needs to be displayed, and the final width of the data display area is 0, namely, the video ClipW is equal to 0.
Similarly, the final height of the data display area may be determined in the manner described above for determining the final width of the data display area, except that the position related to the width is changed to the height, and the abscissa is changed to the ordinate.
And after the final display position of the data is determined, determining the final position of the display area according to the final display position of the data. The final position of the display area corresponds to the actual position of the display area, data needs to be cut and then displayed in the embodiment of the application, and meanwhile the actual position of the original display area outside the data needs to be determined again. The display area final position includes a display area final initial point abscissa, screen ClipX, a display area final initial point ordinate, screen ClipY, a display area final width, screen ClipW, and a display area final length, screen ClipH, again with reference to FIG. 24. Finally controlling the display to display the data final display position in the display area final position, and displaying the data at the data final display position.
1. When bottom (refer to the previous description) is to the left on the left side of the screen, or scaleX is to the right on the right side of the screen: it is explained that no picture is displayed in the video image, namely: the abscissa, screen ClipX, of the final initial point of the display area and the final width, screen ClipW, of the display area are both 0.
2. When bottom is on the left side of the screen to the right:
the method comprises two steps, namely calculating the abscissa screen ClipX of the final initial point of the display area in the first step, and calculating the final width screen ClipW of the display area in the second step:
the first step is as follows: the abscissa scaleX of the actual initial point of the display area is beyond the edge of the left side of the screen, which shows that the video image intersects the left side of the screen, and the abscissa scalClipX of the final initial point of the display area is equal to 0.
The second step: if bottom is to the right of the screen, the display area final width, screen ClipW, is equal to the screen width minus the display area final initial point abscissa, screen ClipX.
If bottom is to the left of the right side of the screen, the display area final width, screen ClipW, is equal to the abscissa of bottom minus the display area final initial point abscissa, screen ClipX.
And S700, if the data do not need to be cut, controlling the display to display the display area at the actual position of the display area, and displaying the data at the actual display position of the data. And the data is displayed at the actual display position of the data after being reduced.
In the above embodiment, a method for playing data by a display device and the display device reduce coupling between the display device and an application by setting a logical size of a screen. The method comprises the following steps: receiving a data playing instruction, and acquiring the logical size of a screen, the actual size of the screen and the logical position of a display area; determining the actual position of the display area according to the logical size of the screen, the actual size of the screen and the logical position of the display area; acquiring the data width and the data height of data; determining the actual display position of the data according to the data width, the data height and the actual position of the display area; judging whether the actual display position of the data needs to be cut; if the data needs to be cut, cutting the actual display position of the data, and determining the final display position of the data; and determining the final position of the display area by using the final data display position, controlling the display to display the display area at the final display position of the display area, and displaying corresponding data at the final data display position.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; and these modifications or substitutions do not depart from the scope of the technical solutions of the embodiments of the present application.
The foregoing description, for purposes of explanation, has been presented in conjunction with specific embodiments. However, the illustrative discussions above are not intended to be exhaustive or to limit the embodiments to the precise forms disclosed above. Many modifications and variations are possible in light of the above teaching. The embodiments were chosen and described in order to best explain the principles and the practical application, to thereby enable others skilled in the art to best utilize the embodiments and various embodiments with various modifications as are suited to the particular use contemplated.

Claims (10)

1. A display device, comprising:
a display for displaying a user interface;
a user interface for receiving an input signal;
a controller respectively coupled to the display and the user interface for performing:
receiving a data playing instruction, and acquiring the logical size of a screen, the actual size of the screen and the logical position of a display area; determining the actual position of the display area according to the screen logical size, the screen actual size and the display area logical position; acquiring the data width and the data height of the data;
determining the actual display position of the data according to the data width, the data height and the actual position of the display area;
judging whether the actual display position of the data needs to be cut or not; if the data needs to be cut, cutting the actual display position of the data, and determining the final display position of the data; and determining the final display position of the display area by using the final data display position, controlling a display to display the display area at the final display position of the display area, and displaying corresponding data at the final data display position.
2. The display device of claim 1, wherein the controller is configured to determine the display area actual position based on the screen logical size, the screen actual size, and the display area logical position by:
calculating a size ratio according to the screen logic size and the screen actual size, wherein the size ratio comprises a width size ratio and a height size ratio; and calculating to obtain the actual position of the display area according to the logical position and the size proportion of the display area.
3. The display device according to claim 1, wherein the controller is configured to determine a data actual display position based on the data width, the data height and the display area actual position by:
the actual position of the display area comprises the abscissa of the actual initial point of the display area, the ordinate of the actual initial point of the display area, the actual width of the display area and the actual height of the display area;
the data actual display position comprises a data actual initial point abscissa, a data actual initial point ordinate, a data display area actual width and a data display area actual height;
determining filling information according to the data width, the data height and the actual position of the display area, wherein the filling information comprises height filling or width filling;
if the filling information comprises width filling, the abscissa of the actual initial point of the data is equal to the abscissa of the actual initial point of the display area; the actual width of the data display area is equal to the actual width of the display area; the actual height of the data display area is equal to the actual height of the display area multiplied by the actual width of the display area divided by the data width; the actual width of the data display area is equal to the sum of the actual height of the display area minus the actual height of the data display area divided by 2 and the vertical coordinate of the actual initial point of the display area.
4. The display device according to claim 3, wherein the controller is further configured to perform:
if the filling information comprises high filling, the vertical coordinate of the actual initial point of the data is equal to the vertical coordinate of the actual initial point of the display area; the actual height of the data display area is equal to the actual height of the display area; the actual width of the data display area is equal to the data width multiplied by the actual height of the display area divided by the data height; the abscissa of the actual initial point of the data is equal to the sum of the actual width of the display area minus the actual width of the display area divided by 2 and the abscissa of the actual initial point of the display area.
5. The display device according to claim 3 or 4, wherein the controller is configured to perform the step of determining whether the data actual display position needs to be cut according to:
judging whether the actual display position of the data meets a preset condition, wherein the preset condition comprises the following steps: the abscissa of the actual data initial point is less than 0, the ordinate of the actual data initial point is less than 0, the abscissa of the actual data initial point plus the actual width of the data display area is greater than the abscissa of the rightmost edge of the screen, and/or the ordinate of the actual data initial point plus the actual height of the data display area is greater than the ordinate of the bottommost edge of the screen;
if the actual display position of the data meets a preset condition, determining that the data needs to be cut;
and if the actual display position of the data does not accord with the preset condition, determining that the cutting is not needed.
6. The display device of claim 5, wherein the controller is configured to perform cropping the data actual display location, determining the data final display location, according to the following steps:
the data final display position comprises a data final initial point abscissa, a data final initial point ordinate, a data display area final width and a data display area final height;
judging whether the abscissa of the actual initial point of the data is greater than 0;
if the abscissa of the actual initial point of the data is larger than 0, establishing a coordinate system by taking the initial point of the data as an origin, and the abscissa of the final initial point of the data is equal to 0; if not, the abscissa of the final initial point of the data is equal to the absolute value of the abscissa of the actual initial point of the data multiplied by the data width divided by the actual width of the data display area.
7. The display device according to claim 6, wherein the controller is further configured to perform:
determining the abscissa of the upper right corner of the image corresponding to the data actual display position data;
judging whether the abscissa of the upper right corner of the image corresponding to the data actual display position data is less than 0;
if the abscissa of the upper right corner is less than 0, the final width of the data display area is 0;
if the abscissa of the upper right corner is not less than 0 and is less than the data width, the final width of the data display area is equal to the data width minus the abscissa of the final initial point of the data;
if the abscissa of the upper right corner is larger than the data width and the abscissa of the actual initial point of the data is not larger than 0, the final width of the data display area is equal to the width of the final size of the screen multiplied by the data width divided by the actual width of the data display area;
if the abscissa of the upper right corner is larger than the data width, the abscissa of the actual initial point of the data is larger than 0, and the abscissa of the actual initial point of the data is smaller than the data width, the final width of the data display area is equal to the width of the actual size of the screen minus the abscissa of the actual initial point of the data, and then multiplied by the data width to divide the actual width of the data display area;
and if the abscissa of the upper right corner is larger than the data width and the abscissa of the actual initial point of the data is not smaller than the data width, the final width of the data display area is 0.
8. A method of displaying data, comprising:
receiving a data playing instruction, and acquiring the logical size of a screen, the actual size of the screen and the logical position of a display area;
determining the actual position of the display area according to the screen logical size, the screen actual size and the display area logical position; acquiring the data width and the data height of the data;
determining the actual display position of the data according to the data width, the data height and the actual position of the display area;
judging whether the actual display position of the data needs to be cut;
if the data needs to be cut, cutting the actual display position of the data, and determining the final display position of the data; and determining the final display position of the display area by using the final data display position, controlling a display to display the display area at the final display position of the display area, and displaying corresponding data at the final data display position.
9. The method of claim 8, wherein the step of determining the actual position of the display area according to the screen logical size, the screen actual size, and the display area logical position comprises:
calculating a size ratio according to the screen logic size and the screen actual size, wherein the size ratio comprises a width size ratio and a height size ratio; and calculating to obtain the actual position of the display area according to the logical position and the size proportion of the display area.
10. The method of claim 8, wherein the step of determining the actual display position of the data according to the data width, the data height and the actual position of the display area comprises:
the actual position of the display area comprises the abscissa of the actual initial point of the display area, the ordinate of the actual initial point of the display area, the actual width of the display area and the actual height of the display area;
the data actual display position comprises a data actual initial point abscissa, a data actual initial point ordinate, a data display area actual width and a data display area actual height;
determining filling information according to the data width, the data height and the actual position of the display area, wherein the filling information comprises height filling or width filling;
if the filling information comprises width filling, the abscissa of the actual initial point of the data is equal to the abscissa of the actual initial point of the display area; the actual width of the data display area is equal to the actual width of the display area; the actual height of the data display area is equal to the actual height of the display area multiplied by the actual width of the display area divided by the data width; the actual width of the data display area is equal to the sum of the actual height of the display area minus the actual height of the data display area divided by 2 and the vertical coordinate of the actual initial point of the display area.
CN202110573644.XA 2021-05-25 2021-05-25 Data display method and display equipment Active CN113190202B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110573644.XA CN113190202B (en) 2021-05-25 2021-05-25 Data display method and display equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110573644.XA CN113190202B (en) 2021-05-25 2021-05-25 Data display method and display equipment

Publications (2)

Publication Number Publication Date
CN113190202A CN113190202A (en) 2021-07-30
CN113190202B true CN113190202B (en) 2023-01-06

Family

ID=76984937

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110573644.XA Active CN113190202B (en) 2021-05-25 2021-05-25 Data display method and display equipment

Country Status (1)

Country Link
CN (1) CN113190202B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106920562A (en) * 2015-12-24 2017-07-04 中兴通讯股份有限公司 A kind of control method for playing back, device and terminal
CN111857502A (en) * 2020-07-14 2020-10-30 海信视像科技股份有限公司 Image display method and display equipment
CN112492388A (en) * 2020-11-30 2021-03-12 北京百度网讯科技有限公司 Video processing method, device, equipment and storage medium
CN113032696A (en) * 2019-12-05 2021-06-25 北京沃东天骏信息技术有限公司 Display method and display device of page picture
CN113474749A (en) * 2020-03-20 2021-10-01 西安诺瓦星云科技股份有限公司 Screen display control method, device and system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130130453A (en) * 2012-05-22 2013-12-02 엘지전자 주식회사 Image display apparatus and operating method for the same

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106920562A (en) * 2015-12-24 2017-07-04 中兴通讯股份有限公司 A kind of control method for playing back, device and terminal
CN113032696A (en) * 2019-12-05 2021-06-25 北京沃东天骏信息技术有限公司 Display method and display device of page picture
CN113474749A (en) * 2020-03-20 2021-10-01 西安诺瓦星云科技股份有限公司 Screen display control method, device and system
CN111857502A (en) * 2020-07-14 2020-10-30 海信视像科技股份有限公司 Image display method and display equipment
CN112492388A (en) * 2020-11-30 2021-03-12 北京百度网讯科技有限公司 Video processing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN113190202A (en) 2021-07-30

Similar Documents

Publication Publication Date Title
WO2022073392A1 (en) Picture display method, and display device
CN112672195A (en) Remote controller key setting method and display equipment
CN113395562B (en) Display device and boot animation display method
WO2022161401A1 (en) Screen-projection data processing method and display device
CN111899175A (en) Image conversion method and display device
CN113360066B (en) Display device and file display method
WO2021213097A1 (en) Display apparatus and screen projection method
CN113473196A (en) Screen projection data processing method and display device
CN113111214A (en) Display method and display equipment for playing records
CN113163258A (en) Channel switching method and display device
CN112911371B (en) Dual-channel video resource playing method and display equipment
CN113190202B (en) Data display method and display equipment
CN113453052B (en) Sound and picture synchronization method and display device
CN113064691B (en) Display method and display equipment for starting user interface
CN113132809B (en) Channel switching method, channel program playing method and display equipment
CN113453069B (en) Display device and thumbnail generation method
CN113014977B (en) Display device and volume display method
CN113556590B (en) Method for detecting effective resolution of screen-projected video stream and display equipment
CN112882631A (en) Display method of electronic specification on display device and display device
CN113286185A (en) Display device and homepage display method
CN112732396A (en) Media asset data display method and display device
CN113064534A (en) Display method and display equipment of user interface
CN112668546A (en) Video thumbnail display method and display equipment
CN112667285A (en) Application upgrading method, display device and server
CN111949179A (en) Control amplifying method and display device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20221130

Address after: 83 Intekte Street, Devon, Netherlands

Applicant after: VIDAA (Netherlands) International Holdings Ltd.

Address before: 266555, No. 218, Bay Road, Qingdao economic and Technological Development Zone, Shandong

Applicant before: Hisense Video Technology Co.,Ltd.

GR01 Patent grant
GR01 Patent grant