CN113490035B - Display method, device, television and storage medium - Google Patents

Display method, device, television and storage medium Download PDF

Info

Publication number
CN113490035B
CN113490035B CN202110804919.6A CN202110804919A CN113490035B CN 113490035 B CN113490035 B CN 113490035B CN 202110804919 A CN202110804919 A CN 202110804919A CN 113490035 B CN113490035 B CN 113490035B
Authority
CN
China
Prior art keywords
display
container
determining
parameter
window
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
CN202110804919.6A
Other languages
Chinese (zh)
Other versions
CN113490035A (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.)
Nanjing Xuanjia Network Technology Co ltd
Original Assignee
Nanjing Xuanjia Network Technology Co ltd
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 Nanjing Xuanjia Network Technology Co ltd filed Critical Nanjing Xuanjia Network Technology Co ltd
Priority to CN202110804919.6A priority Critical patent/CN113490035B/en
Publication of CN113490035A publication Critical patent/CN113490035A/en
Application granted granted Critical
Publication of CN113490035B publication Critical patent/CN113490035B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4858End-user interface for client configuration for modifying screen layout parameters, e.g. fonts, size of the windows
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A90/00Technologies having an indirect contribution to adaptation to climate change
    • Y02A90/30Assessment of water resources

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a display method, a display device, a television and a storage medium. The method comprises the following steps: determining display parameters of a focus display element, and determining an initial display state of the focus display element in a display window according to the display parameters, wherein the initial display state comprises complete display and incomplete display; determining a container target position of an element container containing the focus display element based on the display parameter when the initial display state is incomplete display; and adjusting the element container according to the container target position to enable the focus display element to be completely displayed in the display window. The invention realizes reasonable display of the television waterfall stream content, has simple and easy use method, can be compatible with various scenes and is convenient for multiplexing.

Description

Display method, device, television and storage medium
Technical Field
The embodiment of the invention relates to the technical field of network television design, in particular to a display method, a display device, a television and a storage medium.
Background
With the increase of the number of users of the network television, the demands of user experience are also increased. More and more television products use a waterfall flow mode to display contents, but the waterfall flow mobile computing mode of most products is too complex and difficult to expand and use at present.
Disclosure of Invention
The invention provides a display method, a display device, a television and a storage medium, so as to realize reasonable display of television waterfall stream contents.
In a first aspect, an embodiment of the present invention provides a display method, including:
determining display parameters of a focus display element, and determining an initial display state of the focus display element in a display window according to the display parameters, wherein the initial display state comprises complete display and incomplete display;
determining a container target position of an element container containing the focus display element based on the display parameter when the initial display state is incomplete display;
and adjusting the element container according to the container target position to enable the focus display element to be completely displayed in the display window.
Optionally, the display parameters include a landscape display parameter and a portrait display parameter;
the incomplete display includes a lateral incomplete display and/or a longitudinal incomplete display;
correspondingly, the determining the initial display state of the focus display element in the display window according to the display parameter includes:
determining the position relation between the element longitudinal frame of the focus display element and the display window according to the transverse display parameters, and determining that the initial display state of the focus display element is transverse incomplete display when the element longitudinal frame is outside the display window;
and determining the position relation between the element transverse frame of the focus display element and the display window according to the longitudinal display parameters, and determining that the initial display state of the focus display element is longitudinal incomplete display when the element transverse frame is outside the display window.
Optionally, when the initial display state is incomplete display, determining, based on the display parameter, a container target position of an element container containing the focus display element includes:
when the initial display state is a transverse incomplete display, determining a transverse target position parameter of the element container according to the transverse display parameter, and determining a container target position based on the transverse target position parameter;
and when the initial display state is longitudinal incomplete display, determining a longitudinal target position parameter of the element container according to the longitudinal display parameter, and determining a container target position based on the longitudinal target position parameter.
Optionally, the lateral display parameters include an element width of the focus display element, an element lateral position parameter of the focus display element relative to the element container, a container lateral position parameter of the element container relative to the display window, and a window width of the display window;
the element longitudinal frames comprise an element left frame and an element right frame;
correspondingly, the determining, according to the lateral display parameter, the positional relationship between the element longitudinal frame of the focus display element and the display window includes:
when the sum of the element transverse position parameter and the element width is larger than the difference between the window width and the container transverse position parameter, determining that the element right frame is outside the display window;
and when the element transverse position parameter is smaller than the opposite number of the container transverse position parameter, determining that the element left frame is outside the display window.
Optionally, when the initial display state is a lateral incomplete display, determining a lateral target position parameter of the element container according to the lateral display parameter, including:
when the right frame of the element is outside the display window, determining the sum of the width of the element and the transverse position parameter of the element as a transverse display width, and taking the difference between the width of the window and the transverse display width as a transverse target position parameter;
and when the left frame of the element is outside the display window, taking the opposite number of the element width as a transverse target position parameter.
Optionally, the longitudinal display parameters include an element height of the focus display element, an element longitudinal position parameter of the focus display element relative to the element container, a container longitudinal position parameter of the element container relative to the display window, and a window height of the display window;
the element transverse frame comprises an element upper frame and an element lower frame;
correspondingly, the determining, according to the longitudinal display parameter, the positional relationship between the element transverse frame of the focus display element and the display window includes:
when the sum of the element longitudinal position parameter and the element height is larger than the difference between the window height and the container longitudinal position parameter, determining that the element lower frame is outside the display window;
and when the element longitudinal position parameter is smaller than the opposite number of the container longitudinal position parameter, determining that the element upper frame is outside the display window.
Optionally, when the initial display state is a portrait incomplete display, determining a portrait target location parameter of the element container according to the portrait display parameter, including:
when the element lower frame is outside the display window, determining the sum of the element height and the element longitudinal position parameter as a longitudinal display width, and taking the difference between the window height and the longitudinal display width as a longitudinal target position parameter;
and when the upper frame of the element is outside the display window, taking the opposite number of the element height as a longitudinal target position parameter.
In a second aspect, an embodiment of the present invention further provides a display apparatus, including:
the display parameter determining module is used for determining the display parameters of the focus display element;
an initial display state determining module, configured to determine an initial display state of the focus display element in a display window according to the display parameter, where the initial display state includes complete display and incomplete display;
a container target position determining module configured to determine, when the initial display state is incomplete display, a container target position of an element container containing the focus display element based on the display parameter;
and the element display adjustment module is used for adjusting the element container according to the container target position so that the focus display element is completely displayed in the display window.
In a third aspect, an embodiment of the present invention further provides a television, including:
one or more processors;
a memory for storing one or more programs;
the display is used for displaying the content in the display window;
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the display methods as described in any of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer executable instructions which, when executed by a computer processor, are used to perform a display method according to any of the embodiments of the present invention.
The invention determines the display parameters of the focus display element and determines the initial display state of the focus display element in the display window according to the display parameters, wherein the initial display state comprises complete display and incomplete display, when the initial display state is the incomplete display, the container target position of the element container containing the focus display element is determined based on the display parameters, and the element container is adjusted according to the container target position, so that the focus display element is completely displayed in the display window, the reasonable display of the television waterfall stream content is realized, and the method is simple and easy to use, can be compatible with various scenes and is convenient to multiplex.
Drawings
FIG. 1 is a flow chart of a display method according to a first embodiment of the present invention;
FIG. 2a is a flowchart of a display method according to a second embodiment of the present invention;
fig. 2b is a schematic display diagram of a focus display element in a display method according to a second embodiment of the present invention;
fig. 3 is a block diagram of a display device according to a third embodiment of the present invention;
fig. 4 is a block diagram of a television according to a fourth embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting thereof. It should be noted that, for convenience of description, only some, but not all of the structures related to the present invention are shown in the drawings, and furthermore, embodiments of the present invention and features in the embodiments may be combined with each other without conflict.
Example 1
Fig. 1 is a flowchart of a display method according to an embodiment of the present invention, where the embodiment is applicable to a case of displaying content of a television waterfall stream, the method may be performed by a display device, and the device may be implemented by software and/or hardware.
As shown in fig. 1, the method specifically includes the following steps:
step 110, determining display parameters of the focus display element, and determining an initial display state of the focus display element in the display window according to the display parameters.
The constituent elements of the waterfall stream display page can be mainly divided into three types, namely, windows (windows), containers (containers) and display elements (elements). The display element is in the container and the container is in the window. Where the window is typically of a fixed size, representing the visual range, attribute over-flow = hidden. The container size is set according to the display element, and the container may be larger than the size of the window. Absolute positioning between the container and the element, and relative positioning between the container and the window can be used.
In this embodiment, the user may send an operation signal to the television by pressing the remote controller or clicking the touch screen, and after receiving the signal, the television determines a corresponding operation and directs the focus to a corresponding display element in the page, and the display element that obtains the focus may be referred to as a focus display element. The container containing the focus display element may be referred to as an element container. The window for displaying the focus display element may be referred to as a display window.
The initial display state may include a full display and a non-full display, among others. A full display may be understood as a complete display of the focus display element in the display window, and a non-complete display may be understood as a partial or complete non-display of the focus display element in the display window.
The display parameter of the focus display element may be understood as a parameter for describing the position of the focus display element in the initial display state in which the focus is acquired, and may include a size parameter, a position parameter, and the like of the focus display element itself.
Alternatively, the display parameters may include landscape display parameters and portrait display parameters. The landscape display parameter may be used to determine a display state of the focus display element in a horizontal direction of the display window, and the portrait display parameter may be used to determine a display state of the focus display element in a vertical direction of the display window. Accordingly, the incomplete display may include a lateral incomplete display and/or a vertical incomplete display.
When determining the initial display state of the focus display element in the display window according to the display parameters, two situations can be specifically analyzed:
case one: and determining the position relation between the element longitudinal frame of the focus display element and the display window according to the transverse display parameters, and determining that the initial display state of the focus display element is transverse incomplete display when the element longitudinal frame is outside the display window.
Specifically, whether the longitudinal frame of the focus display element is in the display window or not can be judged through the transverse display parameters, when the longitudinal frame of the focus display element is out of the display window, the focus display element can be considered to be not completely displayed in the horizontal direction of the display window, and the initial display state of the focus display element can be determined to be the transverse incomplete display. It is understood that the element longitudinal border may include an element left border and an element right border.
And a second case: and determining the position relation between the element transverse frame of the focus display element and the display window according to the longitudinal display parameters, and determining that the initial display state of the focus display element is longitudinal incomplete display when the element transverse frame is outside the display window.
Specifically, whether the horizontal border of the focus display element is in the display window can be judged through the longitudinal display parameters, when the focus display element has the horizontal border of the element outside the display window, the focus display element can be considered to be not completely displayed in the vertical direction of the display window, and the initial display state of the focus display element can be determined to be longitudinally incompletely displayed. It is understood that the element landscape border may include an element upper border and an element lower border.
Step 120, when the initial display state is not full display, determining a container target position of the element container containing the focus display element based on the display parameter.
Specifically, if the initial display state of the focus display element is incomplete display, the position of the element container needs to be adjusted according to the display parameter, so as to determine the target position of the container, which can enable the focus display element to be completely displayed in the display window.
Alternatively, the step 120 may be specifically implemented in the following two cases:
case one: when the initial display state is a lateral incomplete display, determining a lateral target position parameter of the element container according to the lateral display parameter, and determining a container target position based on the lateral target position parameter.
Specifically, if the initial display state of the focus display element is a lateral incomplete display, it is indicated that the focus display element is not completely displayed in the horizontal direction of the display window, and therefore, the element container needs to be laterally moved, so that the focus display element is completely displayed in the horizontal direction of the display window. At this time, a transverse target position parameter which can completely display the focus display element in the horizontal direction of the display window can be determined according to the transverse display parameter, the longitudinal display parameter is kept unchanged, and the container target position of the element container is determined.
And a second case: when the initial display state is the longitudinal incomplete display, determining a longitudinal target position parameter of the element container according to the longitudinal display parameter, and determining a container target position based on the longitudinal target position parameter.
Specifically, if the initial display state of the focus display element is a portrait incomplete display, it is indicated that the focus display element is not completely displayed in the vertical direction of the display window, and therefore, it is necessary to move the element container vertically, so that the focus display element is completely displayed in the vertical direction of the display window. At this time, a longitudinal target position parameter that can completely display the focus display element in the vertical direction of the display window can be determined according to the transverse display parameter, the transverse display parameter is kept unchanged, and the container target position of the element container is determined.
And 130, adjusting the element container according to the container target position to enable the focus display element to be completely displayed in the display window.
Specifically, the element container may be adjusted to the container target position, at which time the focus display element may be completely displayed in the display window.
According to the technical scheme, the display parameters of the focus display element are determined, and the initial display state of the focus display element in the display window is determined according to the display parameters, wherein the initial display state comprises complete display and incomplete display, when the initial display state is the incomplete display, the container target position of the element container containing the focus display element is determined based on the display parameters, and the element container is adjusted according to the container target position, so that the focus display element is completely displayed in the display window, reasonable display of television waterfall stream content is achieved, the method is simple and easy to use, can be compatible with various scenes, and is convenient to multiplex.
Example two
Fig. 2a is a flowchart of a display method according to a second embodiment of the present invention. The present embodiment further optimizes the above display method based on the above embodiments.
As shown in fig. 2, the method specifically includes:
step 210, determining display parameters of the focus display element, wherein the display parameters include a lateral display parameter and a longitudinal display parameter, the lateral display parameters include an element width of the focus display element, an element lateral position parameter of the focus display element relative to the element container, a container lateral position parameter of the element container relative to the display window, and a window width of the display window, and the longitudinal display parameters include an element height of the focus display element, an element longitudinal position parameter of the focus display element relative to the element container, a container longitudinal position parameter of the element container relative to the display window, and a window height of the display window.
Fig. 2b is a schematic diagram illustrating a display of a focus display element in a display method according to a second embodiment of the present invention. Wherein rectangle 1 represents the position of the display window, rectangle 2 represents the position of the element container, and rectangle 1 represents the position of the focus display element 3. The element width may be understood as the length of the focus display element 3 in the horizontal direction, and in practical application, the element width may be denoted by w1, and the element height may be understood as the length of the focus display element 3 in the vertical direction, and in practical application, the element height may be denoted by the number of pixels in the vertical direction, and in this embodiment, the element height may be denoted by h1. The element lateral position parameter may be understood as a relative position of the focus display element 3 in the horizontal direction with respect to the element container, and may be expressed by a relative position of a left frame of the focus display element 3 with respect to a left frame of the element container, and in this embodiment, the element lateral position parameter may be denoted as x1. The element longitudinal position parameter may be understood as a relative position of the focus display element in the vertical direction to the element container, and may be represented by a relative position of an upper frame of the focus display element 3 to an upper frame of the element container, and in this embodiment, the element longitudinal position parameter may be denoted as y1. The container lateral position parameter may be understood as the relative position of the element container in the horizontal direction to the display window, and may be represented by the relative position of the left border of the element container to the left border of the display window, in this embodiment, the container lateral position parameter may be denoted as x2, and in fig. 2b, the container lateral position parameter x2 may be represented by a negative number. The container longitudinal position parameter may be understood as the relative position of the element container in the vertical direction with respect to the display window, and may be represented by the relative position of the upper border of the element container with respect to the upper border of the display window, in this embodiment, the container longitudinal position parameter may be denoted as y2, and in fig. 2b, the container longitudinal position parameter y2 may be represented by a negative number. The window width may be understood as the length of the display window in the horizontal direction, and in practical application, the number of pixels in the horizontal direction may be expressed, in this embodiment, the window width may be denoted as w0, and the window height may be understood as the length of the display window in the vertical direction, and in practical application, the number of pixels in the vertical direction may be expressed, in this embodiment, the window height may be denoted as h0.
Specifically, after determining the display parameters of the focus display element, steps 220, 240, 270, and 290 may be continued as appropriate.
And 220, determining that the right frame of the element is outside the display window when the sum of the element transverse position parameter and the element width is larger than the difference between the window width and the container transverse position parameter.
Specifically, when the element lateral position parameter x1+ element width w1 > window width w0—the container lateral position parameter x2, it may be determined that the element right frame is outside the display window, and then step 230 may be continued.
And 230, determining the sum of the element width and the element lateral position parameter as a lateral display width, and taking the difference between the window width and the lateral display width as a lateral target position parameter.
Specifically, it may be noted that the lateral target position parameter is x, and when the element right frame is outside the display window, step 260 may be continued by making the lateral target position parameter x=the window width w 0-the element lateral position parameter x 1-the element width w 1.
And step 240, when the element transverse position parameter is smaller than the opposite number of the container transverse position parameter, determining that the element left frame is outside the display window.
Specifically, when the element lateral position parameter x1 < 0—the container lateral position parameter x2, it may be determined that the element left frame is outside the display window, at which point step 250 may proceed.
Step 250, the inverse number of element widths is used as the lateral target position parameter.
Specifically, when the left frame of the element is outside the display window, the step 260 may be continued by letting the lateral target position parameter x=0—the element width w 1.
Step 260, determining the container target position according to the transverse target position parameter and the container longitudinal position parameter.
Specifically, the transverse target position parameter can be determined as a new container transverse position parameter of the element container, the container longitudinal position parameter is kept unchanged, and the new container transverse position parameter and the container longitudinal position parameter can be used for locating the container target position. After determining the container target location, step 2120 may continue.
And 270, when the sum of the element longitudinal position parameter and the element height is larger than the difference between the window height and the container longitudinal position parameter, determining that the element lower frame is outside the display window.
Specifically, when the element longitudinal position parameter y1+ element height h1 > window height h0—container longitudinal position parameter y2, it may be determined that the element lower frame is outside the display window, and step 280 may be continued at this time.
And 280, determining the sum of the element height and the element longitudinal position parameter as a longitudinal display width, and taking the difference between the window height and the longitudinal display width as a longitudinal target position parameter.
Specifically, it may be noted that the longitudinal target position parameter is y, and when the element lower frame is outside the display window, the longitudinal target position parameter y=window height h 0-element longitudinal position parameter y 1-element height h1 may be made, and step 2110 may be continued.
And step 290, when the element longitudinal position parameter is smaller than the opposite number of the container longitudinal position parameter, determining that the element upper frame is outside the display window.
Specifically, when the element longitudinal position parameter y1 is less than 0—the container longitudinal position parameter y2, it may be determined that the element upper border is outside the display window, at which point step 2100 may proceed.
Step 2100, regarding the opposite number of element heights as the longitudinal target position parameter.
Specifically, when the upper frame of the element is outside the display window, the longitudinal target position parameter y=0—the element height h1 may be set, and step 2110 may be continued.
Step 2110, determining the container target position according to the longitudinal target position parameter and the container transverse position parameter.
Specifically, the longitudinal target position parameter can be determined as a new container longitudinal position parameter of the element container, the container transverse position parameter is kept unchanged, and the new container longitudinal position parameter and the container transverse position parameter can be used for locating the container target position. After determining the container target location, step 2120 may continue.
Step 2120, the element container is adjusted according to the container target position, so that the focus display element is completely displayed in the display window.
Specifically, the element container may be adjusted to the container target position, at which time the focus display element may be completely displayed in the display window.
According to the technical scheme, the display parameters of the focus display elements are determined, the initial display state of the focus display elements in the display window is determined according to the display parameters, the container target position of the element container is determined according to the conditions, and the element container is adjusted according to the container target position, so that the focus display elements are completely displayed in the display window, reasonable display of television waterfall stream contents is achieved, the method is simple and easy to use, multiple scenes can be compatible, and multiplexing is convenient.
Example III
The display device provided by the embodiment of the invention can execute the display method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method. Fig. 3 is a block diagram of a display device according to a third embodiment of the present invention, and as shown in fig. 3, the device includes: a display parameter determination module 310, an initial display state determination module 320, a container target location determination module 330, and an element display adjustment module 340.
The display parameter determining module 310 is configured to determine a display parameter of the focus display element.
An initial display state determining module 320, configured to determine an initial display state of the focus display element in a display window according to the display parameter, where the initial display state includes a full display and a non-full display.
A container target position determining module 330, configured to determine, when the initial display state is not full display, a container target position of an element container containing the focus display element based on the display parameter.
And the element display adjustment module 340 is configured to adjust the element container according to the container target position, so that the focus display element is completely displayed in the display window.
According to the technical scheme, the display parameters of the focus display element are determined, and the initial display state of the focus display element in the display window is determined according to the display parameters, wherein the initial display state comprises complete display and incomplete display, when the initial display state is the incomplete display, the container target position of the element container containing the focus display element is determined based on the display parameters, and the element container is adjusted according to the container target position, so that the focus display element is completely displayed in the display window, reasonable display of television waterfall stream content is achieved, the method is simple and easy to use, can be compatible with various scenes, and is convenient to multiplex.
Optionally, the display parameters include a landscape display parameter and a portrait display parameter;
the incomplete display includes a lateral incomplete display and/or a longitudinal incomplete display;
accordingly, the initial display state determining module 320 includes:
a transverse position relation determining unit, configured to determine a position relation between an element longitudinal frame of the focus display element and the display window according to the transverse display parameter;
a transverse initial display state determining unit, configured to determine that an initial display state of the focus display element is transverse incomplete display when the element longitudinal frame is outside the display window;
a longitudinal position relation determining unit, configured to determine a position relation between an element transverse frame of the focus display element and the display window according to the longitudinal display parameter;
and the vertical initial display state determining unit is used for determining that the initial display state of the focus display element is vertical incomplete display when the element transverse frame is outside the display window.
Optionally, the container target location determining module 330 includes:
a transverse target position parameter determining unit, configured to determine a transverse target position parameter of the element container according to the transverse display parameter when the initial display state is a transverse incomplete display;
a first container target position determining unit for determining a container target position based on the lateral target position parameter;
a longitudinal target position parameter determining unit configured to determine a longitudinal target position parameter of the element container according to the longitudinal display parameter when the initial display state is a longitudinal incomplete display;
and a second container target position determining unit for determining a container target position based on the longitudinal target position parameter.
Optionally, the lateral display parameters include an element width of the focus display element, an element lateral position parameter of the focus display element relative to the element container, a container lateral position parameter of the element container relative to the display window, and a window width of the display window;
the element longitudinal frames comprise an element left frame and an element right frame;
correspondingly, the transverse position relation determining unit is specifically configured to:
when the sum of the element transverse position parameter and the element width is larger than the difference between the window width and the container transverse position parameter, determining that the element right frame is outside the display window;
and when the element transverse position parameter is smaller than the opposite number of the container transverse position parameter, determining that the element left frame is outside the display window.
Optionally, the transverse target position parameter determining unit is specifically configured to:
when the right frame of the element is outside the display window, determining the sum of the width of the element and the transverse position parameter of the element as a transverse display width, and taking the difference between the width of the window and the transverse display width as a transverse target position parameter;
and when the left frame of the element is outside the display window, taking the opposite number of the element width as a transverse target position parameter.
Optionally, the longitudinal display parameters include an element height of the focus display element, an element longitudinal position parameter of the focus display element relative to the element container, a container longitudinal position parameter of the element container relative to the display window, and a window height of the display window;
the element transverse frame comprises an element upper frame and an element lower frame;
correspondingly, the longitudinal position relation determining unit is specifically configured to:
when the sum of the element longitudinal position parameter and the element height is larger than the difference between the window height and the container longitudinal position parameter, determining that the element lower frame is outside the display window;
and when the element longitudinal position parameter is smaller than the opposite number of the container longitudinal position parameter, determining that the element upper frame is outside the display window.
Optionally, the longitudinal target position parameter determining unit is specifically configured to:
when the element lower frame is outside the display window, determining the sum of the element height and the element longitudinal position parameter as a longitudinal display width, and taking the difference between the window height and the longitudinal display width as a longitudinal target position parameter;
and when the upper frame of the element is outside the display window, taking the opposite number of the element height as a longitudinal target position parameter.
Example IV
Fig. 4 is a block diagram of a television according to a fourth embodiment of the present invention, and as shown in fig. 4, the television includes a processor 410, a memory 420, and a display 430; the number of processors 410 in the television may be one or more, one processor 410 being taken as an example in fig. 4; processor 410, memory 420, and display 430 in the television may be connected by a bus or other means, for example in fig. 4.
The memory 420 is used as a computer readable storage medium for storing software programs, computer executable programs, and modules, such as program instructions/modules corresponding to the display method in the embodiment of the present invention (for example, the display parameter determining module 310, the initial display state determining module 320, the container target position determining module 330, and the element display adjusting module 340 in the display device). The processor 410 executes various functional applications of the television and data processing, i.e., implements the display method described above, by running software programs, instructions, and modules stored in the memory 420.
Memory 420 may include primarily a program storage area and a data storage area, wherein the program storage area may store an operating system, at least one application program required for functionality; the storage data area may store data created according to the use of the terminal, etc. In addition, memory 420 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid-state storage device. In some examples, memory 420 may further include memory remotely located with respect to processor 410, which may be connected to the television via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The display 430 may be used to display content in a display window, and may include a display device such as a display screen.
Example five
A fifth embodiment of the present invention also provides a storage medium containing computer-executable instructions, which when executed by a computer processor, are for performing a display method, the method comprising:
determining display parameters of a focus display element, and determining an initial display state of the focus display element in a display window according to the display parameters, wherein the initial display state comprises complete display and incomplete display;
determining a container target position of an element container containing the focus display element based on the display parameter when the initial display state is incomplete display;
and adjusting the element container according to the container target position to enable the focus display element to be completely displayed in the display window.
Of course, the storage medium containing the computer executable instructions provided in the embodiments of the present invention is not limited to the method operations described above, and may also perform the related operations in the display method provided in any embodiment of the present invention.
From the above description of embodiments, it will be clear to a person skilled in the art that the present invention may be implemented by means of software and necessary general purpose hardware, but of course also by means of hardware, although in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, etc., and include several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments of the present invention.
It should be noted that, in the embodiment of the display device, each unit and module included are only divided according to the functional logic, but not limited to the above-mentioned division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Note that the above is only a preferred embodiment of the present invention and the technical principle applied. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, while the invention has been described in connection with the above embodiments, the invention is not limited to the embodiments, but may be embodied in many other equivalent forms without departing from the spirit or scope of the invention, which is set forth in the following claims.

Claims (10)

1. A display method, applied to display of television waterfall stream content, the method comprising:
determining display parameters of a focus display element, and determining an initial display state of the focus display element in a display window according to the display parameters, wherein the initial display state comprises complete display and incomplete display;
determining a container target position of an element container containing the focus display element based on the display parameter when the initial display state is incomplete display;
and adjusting the element container according to the container target position to enable the focus display element to be completely displayed in the display window.
2. The display method according to claim 1, wherein,
the display parameters comprise a transverse display parameter and a longitudinal display parameter;
the incomplete display includes a lateral incomplete display and/or a longitudinal incomplete display;
correspondingly, the determining the initial display state of the focus display element in the display window according to the display parameter includes:
determining the position relation between the element longitudinal frame of the focus display element and the display window according to the transverse display parameters, and determining that the initial display state of the focus display element is transverse incomplete display when the element longitudinal frame is outside the display window;
and determining the position relation between the element transverse frame of the focus display element and the display window according to the longitudinal display parameters, and determining that the initial display state of the focus display element is longitudinal incomplete display when the element transverse frame is outside the display window.
3. The display method according to claim 2, wherein the determining a container target position of an element container containing the focus display element based on the display parameter when the initial display state is not full display includes:
when the initial display state is a transverse incomplete display, determining a transverse target position parameter of the element container according to the transverse display parameter, and determining a container target position based on the transverse target position parameter;
and when the initial display state is longitudinal incomplete display, determining a longitudinal target position parameter of the element container according to the longitudinal display parameter, and determining a container target position based on the longitudinal target position parameter.
4. A display method according to claim 3, wherein,
the lateral display parameters include an element width of the focus display element, an element lateral position parameter of the focus display element relative to the element container, a container lateral position parameter of the element container relative to the display window, and a window width of the display window;
the element longitudinal frames comprise an element left frame and an element right frame;
correspondingly, the determining, according to the lateral display parameter, the positional relationship between the element longitudinal frame of the focus display element and the display window includes:
when the sum of the element transverse position parameter and the element width is larger than the difference between the window width and the container transverse position parameter, determining that the element right frame is outside the display window;
and when the element transverse position parameter is smaller than the opposite number of the container transverse position parameter, determining that the element left frame is outside the display window.
5. The display method according to claim 4, wherein when the initial display state is a landscape incomplete display, determining a landscape target position parameter of the element container according to the landscape display parameter includes:
when the right frame of the element is outside the display window, determining the sum of the width of the element and the transverse position parameter of the element as a transverse display width, and taking the difference between the width of the window and the transverse display width as a transverse target position parameter;
and when the left frame of the element is outside the display window, taking the opposite number of the element width as a transverse target position parameter.
6. A display method according to claim 3, wherein,
the longitudinal display parameters include an element height of the focus display element, an element longitudinal position parameter of the focus display element relative to the element container, a container longitudinal position parameter of the element container relative to the display window, and a window height of the display window;
the element transverse frame comprises an element upper frame and an element lower frame;
correspondingly, the determining, according to the longitudinal display parameter, the positional relationship between the element transverse frame of the focus display element and the display window includes:
when the sum of the element longitudinal position parameter and the element height is larger than the difference between the window height and the container longitudinal position parameter, determining that the element lower frame is outside the display window;
and when the element longitudinal position parameter is smaller than the opposite number of the container longitudinal position parameter, determining that the element upper frame is outside the display window.
7. The display method according to claim 6, wherein when the initial display state is a portrait incomplete display, determining a portrait target location parameter of the element container according to the portrait display parameter includes:
when the element lower frame is outside the display window, determining the sum of the element height and the element longitudinal position parameter as a longitudinal display width, and taking the difference between the window height and the longitudinal display width as a longitudinal target position parameter;
and when the upper frame of the element is outside the display window, taking the opposite number of the element height as a longitudinal target position parameter.
8. A display device for presenting television waterfall stream content, the device comprising:
the display parameter determining module is used for determining the display parameters of the focus display element;
an initial display state determining module, configured to determine an initial display state of the focus display element in a display window according to the display parameter, where the initial display state includes complete display and incomplete display;
a container target position determining module configured to determine, when the initial display state is incomplete display, a container target position of an element container containing the focus display element based on the display parameter;
and the element display adjustment module is used for adjusting the element container according to the container target position so that the focus display element is completely displayed in the display window.
9. A television, the television comprising:
one or more processors;
a memory for storing one or more programs;
the display is used for displaying the content in the display window;
when executed by the one or more processors, causes the one or more processors to implement the display method of any of claims 1-7.
10. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the display method of any of claims 1-7.
CN202110804919.6A 2021-07-16 2021-07-16 Display method, device, television and storage medium Active CN113490035B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110804919.6A CN113490035B (en) 2021-07-16 2021-07-16 Display method, device, television and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110804919.6A CN113490035B (en) 2021-07-16 2021-07-16 Display method, device, television and storage medium

Publications (2)

Publication Number Publication Date
CN113490035A CN113490035A (en) 2021-10-08
CN113490035B true CN113490035B (en) 2023-06-23

Family

ID=77938886

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110804919.6A Active CN113490035B (en) 2021-07-16 2021-07-16 Display method, device, television and storage medium

Country Status (1)

Country Link
CN (1) CN113490035B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678622A (en) * 2013-12-18 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for dynamic rendering of waterfall-type picture
CN107343216A (en) * 2017-06-29 2017-11-10 环球智达科技(北京)有限公司 System for showing the waterfall stream page
CN111010601A (en) * 2019-12-17 2020-04-14 深圳康佳电子科技有限公司 Smart television focus control method, smart television and storage medium

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120221971A1 (en) * 2011-02-28 2012-08-30 Sony Network Entertainment Inc. User interface for presenting graphical elements
CN104679414B (en) * 2015-03-16 2020-08-25 联想(北京)有限公司 Display control method and device
CN105554553B (en) * 2015-12-15 2019-02-15 腾讯科技(深圳)有限公司 The method and device of video is played by suspension windows
CN108664310A (en) * 2018-05-22 2018-10-16 平安科技(深圳)有限公司 Display box processing method, device, computer equipment and storage medium
US11032508B2 (en) * 2018-09-04 2021-06-08 Samsung Electronics Co., Ltd. Display apparatus and method for controlling audio and visual reproduction based on user's position
CN109286836B (en) * 2018-10-11 2021-04-30 腾讯科技(深圳)有限公司 Multimedia data processing method and device, intelligent terminal and storage medium
CN109710368B (en) * 2018-12-29 2021-10-22 联想(北京)有限公司 Processing method, device and system
CN111338740A (en) * 2020-03-20 2020-06-26 北京金山云网络技术有限公司 Page element display method and device and electronic equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103678622A (en) * 2013-12-18 2014-03-26 百度在线网络技术(北京)有限公司 Method and device for dynamic rendering of waterfall-type picture
CN107343216A (en) * 2017-06-29 2017-11-10 环球智达科技(北京)有限公司 System for showing the waterfall stream page
CN111010601A (en) * 2019-12-17 2020-04-14 深圳康佳电子科技有限公司 Smart television focus control method, smart television and storage medium

Also Published As

Publication number Publication date
CN113490035A (en) 2021-10-08

Similar Documents

Publication Publication Date Title
CN109783181B (en) Screen adaptive display method, electronic device and computer storage medium
US20180232135A1 (en) Method for window displaying on a mobile terminal and mobile terminal
JP6255495B2 (en) Method and apparatus for displaying browser resource, and computer readable storage medium
US9135885B2 (en) Resolution independent client side rendering
CN103823620A (en) Screen adaption method and device
US20140225894A1 (en) 3d-rendering method and device for logical window
US20160378272A1 (en) Systems and methods for providing multi-focus to applications for collaboration
CN115878935B (en) Method, system, device, equipment and medium for partial refreshing of chart
JP4742051B2 (en) Spatial and temporal motion blur effect generation method
CN110597444A (en) Handwriting display method, device, terminal equipment and storage medium
CN116627579B (en) Method and device for scaling android application window on Linux
CN112363787B (en) Image processing method, device and electronic device
CN106598410B (en) Display methods, device and the terminal device of e-book
CN107025100A (en) Play method, interface rendering intent and device, the equipment of multi-medium data
CN103176993B (en) A kind of content presenting device and method
CN107861711B (en) Page adaptation method and device
CN111222302A (en) Web page rendering control method, control device and computer readable medium
CN111176530A (en) 3D model display method and device in WeChat applet
CN102880382B (en) Interface display system, method and equipment
CN113791857A (en) Application window background fuzzy processing method and device in Linux system
CN113490035B (en) Display method, device, television and storage medium
CN105389308B (en) Webpage display processing method and device
CN111913343A (en) Panoramic image display method and device
CN108762756B (en) Application program display method and device
CN113608644A (en) Multi-window adjusting method, readable storage medium, electronic device and system

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
GR01 Patent grant
GR01 Patent grant