Display method of local area light control, storage medium and smart television

文档序号:97969 发布日期:2021-10-12 浏览:14次 中文

阅读说明:本技术 一种局域控光的显示方法、存储介质及智能电视 (Display method of local area light control, storage medium and smart television ) 是由 朱政霖 于 2020-03-19 设计创作,主要内容包括:本发明公开了一种局域控光的显示方法、存储介质及智能电视,所述方法获取智能电视的分区信息,并根据所述分区信息在智能电视的显示界面上绘制若干分区边框;每间隔预设时间获取智能电视的显示参数组,并根据所述分区信息及所述显示参数组在所述显示界面绘制显示窗,以显示局域控光。本发明通过在显示界面上绘制分区边框,并将在显示界面上绘制显示窗,通过显示窗显示各分区的控光状态,让用户可以直观获知各分区的明暗信息,使得用户可以亲身感受到局域控光的效果,进而给用户的使用带来方便。(The invention discloses a display method of local light control, a storage medium and a smart television, wherein the method acquires partition information of the smart television and draws a plurality of partition frames on a display interface of the smart television according to the partition information; and acquiring a display parameter group of the intelligent television every preset time, and drawing a display window on the display interface according to the partition information and the display parameter group so as to display the local area light control. According to the invention, the partition frame is drawn on the display interface, the display window is drawn on the display interface, and the light control state of each partition is displayed through the display window, so that a user can visually know the light and shade information of each partition, the user can feel the effect of local light control in person, and convenience is brought to the user.)

1. A method for displaying local-area light, the method comprising:

the method comprises the steps of obtaining partition information of the intelligent television, and drawing a plurality of partition frames on a display interface of the intelligent television according to the partition information so as to divide the display interface into a plurality of first partitions;

and acquiring a display parameter group of the intelligent television every preset time, and drawing a display window on the display interface according to the partition information and the display parameter group so that the display window displays the display parameters corresponding to each first partition.

2. The method of claim 1, wherein the area of the display window is smaller than the display area of the display interface, and the display window is displayed at a predetermined position on the display interface.

3. The method according to claim 1, wherein the drawing a display window on the display interface according to the partition information and the display parameter set specifically comprises:

creating a display window, and dividing the display window into a plurality of second partitions according to the partition information, wherein the plurality of second partitions correspond to the plurality of first partitions one to one, display parameters corresponding to each second partition in the plurality of second partitions are the same as those of a target partition, and the target partition is a first partition corresponding to the second partition in the plurality of first partitions;

and determining display parameters corresponding to the second partitions according to the display parameter sets, and drawing the display window on the display interface according to the display parameters corresponding to the second partitions respectively.

4. The method of claim 3, wherein the partition information comprises a number of partition rows and a number of partition columns, and the number of display parameters in the set of display parameters is equal to a product of the number of partition rows and the number of partition columns.

5. The method of claim 4, wherein the set of display parameters is a one-dimensional array; the determining the display parameters corresponding to the second partitions according to the display parameter group specifically includes:

equally dividing the display parameter group into a plurality of sub-display parameter groups, wherein the number of display parameters included in the sub-display parameter groups is equal to the number of the partition columns;

arranging the sub-color numerical values into a two-dimensional array according to a plurality of sub-color numerical values, wherein the number of rows of the two-dimensional array is the same as the number of rows of the subareas, and the number of rows of each sub-display parameter group in the two-dimensional array corresponds to the position of each sub-display parameter group in the display parameter group;

and determining display parameters corresponding to the second partitions according to the two-dimensional array, wherein the positions of the second partitions in the display window correspond to the positions of the display parameters corresponding to the second partitions in the two-dimensional data.

6. The local area light control display method according to claim 1, wherein the obtaining of the partition information of the smart television and the drawing of the plurality of partition frames on the display interface of the smart television according to the partition information specifically comprise:

creating a partition frame drawing thread, and acquiring partition information of the smart television through the partition drawing thread;

and controlling the drawing thread to draw a plurality of partition frames on a display interface of the intelligent television according to the partition information.

7. The method of claim 1, wherein the partitioned border is a dashed partitioned border.

8. The method according to claim 1, wherein the obtaining a display parameter set of the smart tv at every preset time interval and drawing a display window on the display interface according to the partition information and the display parameter set to display the local area light control specifically comprises:

creating a display window drawing thread, and calling the display window drawing thread at intervals of preset time;

and acquiring a display parameter group of the smart television through the display window drawing thread, and drawing a display window on the display interface according to the partition information and the display parameter group so as to display the local area control light.

9. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps in the method for displaying local area lighting according to any one of claims 1 to 8.

10. An intelligent television, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;

the communication bus realizes connection communication between the processor and the memory;

the processor, when executing the computer readable program, implements the steps in the method for displaying local area lighting as claimed in any one of claims 1 to 8.

Technical Field

The invention relates to the technical field of smart televisions, in particular to a display method of local light control, a storage medium and a smart television.

Background

At present, more and more smart televisions are equipped with a local light control function (that is, a backlight source is divided into a plurality of partitions, and each partition controls light independently), so that the brightness of a local area can be adjusted according to brightness information of an image signal through the local light control function, the contrast and brightness of a picture are improved, and the display effect of the picture is further improved. However, in practical use, the effect of the local light control function is reflected on the display screen, and the user cannot intuitively know the brightness change of each partition, so that the user cannot intuitively feel the local light control effect.

Disclosure of Invention

The technical problem to be solved by the present invention is to provide a display method, a storage medium and a smart tv for local light control, aiming at the defects of the prior art.

In order to solve the technical problems, the technical scheme adopted by the invention is as follows:

a method of displaying local control light, wherein the method comprises:

the method comprises the steps of obtaining partition information of the intelligent television, and drawing a plurality of partition frames on a display interface of the intelligent television according to the partition information so as to divide the display interface into a plurality of first partitions;

and acquiring a display parameter group of the intelligent television every preset time, and drawing a display window on the display interface according to the partition information and the display parameter group so that the display window displays the display parameters corresponding to each first partition.

The display method of the local area light control comprises the steps that the area of the display window is smaller than the display area of the display interface, and the display window is displayed at a preset position of the display interface.

The method for displaying the local area control light, wherein the drawing a display window on the display interface according to the partition information and the display parameter group specifically includes:

creating a display window, and dividing the display window into a plurality of second partitions according to the partition information, wherein the plurality of second partitions correspond to the plurality of first partitions one to one, display parameters corresponding to each second partition in the plurality of second partitions are the same as those of a target partition, and the target partition is a first partition corresponding to the second partition in the plurality of first partitions;

and determining display parameters corresponding to the second partitions according to the display parameter sets, and drawing the display window on the display interface according to the display parameters corresponding to the second partitions respectively.

The display method of the local area light control comprises the steps that the partition information comprises partition line numbers and partition column numbers, and the number of the display parameters of the display parameter group is equal to the product of the partition line numbers and the partition column numbers.

The display method of the local area light control comprises the steps that the display parameter group is a one-dimensional array; the determining the display parameters corresponding to the second partitions according to the display parameter group specifically includes:

equally dividing the display parameter group into a plurality of sub-display parameter groups, wherein the number of display parameters included in the sub-display parameter groups is equal to the number of the partition columns;

arranging the sub-color numerical values into a two-dimensional array according to a plurality of sub-color numerical values, wherein the number of rows of the two-dimensional array is the same as the number of rows of the subareas, and the number of rows of each sub-display parameter group in the two-dimensional array corresponds to the position of each sub-display parameter group in the display parameter group;

and determining display parameters corresponding to the second partitions according to the two-dimensional array, wherein the positions of the second partitions in the display window correspond to the positions of the display parameters corresponding to the second partitions in the two-dimensional data.

The display method of the local area light control includes the steps of obtaining partition information of the smart television, and drawing a plurality of partition frames on a display interface of the smart television according to the partition information:

creating a partition frame drawing thread, and acquiring partition information of the smart television through the partition drawing thread;

and controlling the drawing thread to draw a plurality of partition frames on a display interface of the intelligent television according to the partition information.

According to the display method of the local area light control, the partition frame is a dotted-line partition frame.

The method for displaying the local area control light, wherein the acquiring a display parameter set of the smart television at every preset time interval and drawing a display window on the display interface according to the partition information and the display parameter set to display the local area control light specifically includes:

creating a display window drawing thread, and calling the display window drawing thread at intervals of preset time;

and acquiring a display parameter group of the smart television through the display window drawing thread, and drawing a display window on the display interface according to the partition information and the display parameter group so as to display the local area control light.

A computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps in the method for displaying local area lighting as described in any above.

A smart television, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;

the communication bus realizes connection communication between the processor and the memory;

the processor, when executing the computer readable program, implements the steps in the display method for local area lighting control as described in any one of the above.

Has the advantages that: compared with the prior art, the invention provides a display method of local light control, a storage medium and an intelligent television, wherein the method obtains partition information of the intelligent television, and draws a plurality of partition frames on a display interface of the intelligent television according to the partition information; and acquiring a display parameter group of the intelligent television every preset time, and drawing a display window on the display interface according to the partition information and the display parameter group so as to display the local area light control. According to the invention, the partition frame is drawn on the display interface, the display window is drawn on the display interface, and the light control state of each partition is displayed through the display window, so that a user can visually know the light and shade information of each partition, the user can feel the effect of local light control in person, and convenience is brought to the user.

Drawings

Fig. 1 is a flowchart of a display method of local light control according to the present invention.

Fig. 2 is a schematic flow chart of a display method of local light control according to the present invention.

Fig. 3 is a schematic structural diagram of the smart television provided by the present invention.

Detailed Description

The invention provides a display method of local area light control, a storage medium and a smart television, and in order to make the purpose, technical scheme and effect of the invention clearer and clearer, the invention is further described in detail below by referring to the attached drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.

It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.

The embodiment provides a display method of local area light control, a storage medium and a smart television, and the method can be used for configuring electronic equipment with a smart local area light control function, and the electronic equipment can be realized in various forms. For example, smart televisions, cell phones, tablet computers, palm top computers, Personal Digital Assistants (PDAs), and the like. In addition, the functions realized by the method can be realized by calling the program code by a processor in the electronic equipment, and the program code can be saved in a computer storage medium.

As shown in fig. 1 and 2, the present embodiment provides a display method of local light control, which may include the following steps:

s10, obtaining partition information of the intelligent television, and drawing a plurality of partition borders on a display interface of the intelligent television according to the partition information so as to divide the display interface into a plurality of first partitions.

Specifically, the smart television is configured with a local light control function and a local light control display function, the local light control display function is to display a plurality of partition frames and a display window on a display interface, the display interface is divided into a plurality of first partitions by the plurality of partition frames, the display window includes a plurality of second partitions, the plurality of second partitions in the display window correspond to the plurality of second partitions on the display interface one by one, and each second partition is used for displaying the display parameters of the corresponding first partition. For example, the second partition a in the display window corresponds to the first partition B on the display interface, and then the second partition a displays the display parameters of the first partition B. In addition, the local light control function is to equally divide the backlight area of the display interface of the smart television into a plurality of third partitions in advance, the third partitions are arranged in an array, and each third partition is controlled independently. Therefore, the partition information is partition information corresponding to the local light control function of the smart television (i.e., partition information corresponding to a plurality of third partitions), and is used for indicating the array row number and the array column number of the array formed by the third partitions, and according to the partition information, how many rows and how many columns the backlight area of the smart television is divided into can be determined.

The partition information includes partition row numbers and partition column numbers, wherein the partition row numbers indicate row numbers of an array formed by a plurality of third partitions, and the partition column numbers indicate column numbers of the array formed by the plurality of third partitions. For example, the number of the arrays formed by the third partitions is 64 × 36, the number of the partition rows is 64, and the number of the fractional columns is 36. In addition, the partition information may be obtained through a preset partition information call interface, and the number of partition rows and the number of partition columns are both configured with field names, for example, the field name corresponding to the partition function is row, and the field name corresponding to the partition column number is column. The partition information calling interface may be implemented in the following manner:

mTPicturePanel=TPictureManager.getInstance(context).getPanel BlockNumAplArray()

int row=mTPicturePanel.row;

int column=mTPicturePanel.col;

Int[]blockNum=mTPicturePanel.aplarray

the display parameter group comprises a display parameter group and a display parameter group, wherein the display parameter group comprises a display parameter group and a display parameter group, the display parameter group comprises mTPicturePoanel, the mTPicturePonel is used for calling a calling function of partition information, and the blockNum is the display parameter group corresponding to the moment when the intelligent television acquires the partition information, and the display parameter group comprises the moment when the partition information is acquired and display parameters required to be displayed by each third partition. The display parameter may be a display parameter of each pixel point in the third partition, and the display parameter of each pixel point is a parameter for reflecting a color corresponding to the pixel point, for example, the display parameter may be an RGB value of the pixel point, or may also be an hsl value of the pixel point, where the R value is a red channel value, the G value is a green channel value, and the B value is a blue channel value; the h value is the hue value, l is the brightness value, and s is the saturation value. In addition, it is worth to be explained that the third partition may include a plurality of pixel points, and when the third partition includes a plurality of pixel points, display parameters of any two pixel points of the plurality of pixel points are the same; and the display parameter of the third partition is the display parameter of any pixel point in the third partition.

Further, the partition borders are a plurality of transverse partition borders and a plurality of longitudinal partition borders which are drawn on the display interface of the smart television; any two transverse partition frames in the plurality of transverse partition frames are parallel, any two longitudinal partition frames in the plurality of longitudinal partition frames are parallel, and the plurality of transverse partition frames and the plurality of longitudinal partition frames are crossed transversely and longitudinally to divide the display interface into a plurality of first partitions; the plurality of first partitions correspond to the plurality of third partitions one to one, and the positions of the first partitions in the first array are the same as the positions of the reference partitions in the second array, wherein the first array is an array formed by the plurality of first partitions, the second array is an array formed by the plurality of third partitions, and the reference partitions are third partitions corresponding to the first partitions in the plurality of third partitions. For example, the position of the first partition in the first array is the second row and the third column, and then the position of the third partition corresponding to the first partition in the second array is also the second row and the third column.

In addition, it is worth to be noted that the trigger condition for acquiring the partition information of the smart television may be to start a local light control display function for the smart television, where the local light control display function is configured for the smart television and is used to display the display parameters of each third partition on a display interface of the smart television, where the local light control display function may be triggered by a trigger instruction input by a user, may also be triggered by receiving a start instruction generated by an external device, and may also be automatically triggered when the smart television is started. It can be understood that, in this embodiment, the partition frame is drawn on the display interface of the smart television when the local area light control display function is in the on state, so that a user can know the partition distribution position of the local area light control of the smart television based on the first partition formed by the partition frame. In addition, the display window in the subsequent step is drawn and displayed on the display interface of the smart television when the local area light control display function is in the starting state.

Further, in an implementation manner of this embodiment, the partition frame may be obtained by drawing through a pre-established drawing thread. Correspondingly, the obtaining of the partition information of the smart television and the drawing of the plurality of partition frames on the display interface of the smart television according to the partition information specifically include:

s11, creating a partition frame drawing thread, and acquiring partition information of the intelligent television through the partition drawing thread;

and S12, controlling the drawing thread to draw a plurality of partition frames on the display interface of the intelligent television according to the partition information.

Specifically, the partition frame drawing thread is a process in the smart television system, runs in the smart television system, and is used for drawing the partition frame on the smart television. Therefore, after the partition frame drawing thread is created, the partition information of the intelligent television can be acquired through the partition frame drawing thread, and the plurality of partition frames are drawn on the display interface of the intelligent television according to the partition information, so that the partition frames can be drawn independently. In addition, in this embodiment, the partition frame is displayed on the display interface of the smart television, the display interface of the smart television is divided into a plurality of first partitions, and the distribution positions of the third partitions can be known through the first partitions, so that a user can obtain light control areas for local light control. Meanwhile, in the process of local light control display, the distribution positions of the third partitions of the display interface of the smart television are not changed, so that the partition frames on the display interface are not changed. Therefore, the partition frame drawing thread only needs to draw the partition frame once, and consumption of the partition frame drawing thread on a memory and a CPU is reduced.

Further, the partition border drawing thread may call partition information through a preset partition information call interface, and draw the partition border by calling a drawing interface of the system (e.g., android native interface path. In addition, since a large number of temporary variables are generated by calling a drawing interface of the system, the embodiment reduces the temporary variables generated by drawing the partition frame in the local area control light display process by drawing the partition frame only once, so as to reduce the consumption of the local area control display on the memory. Meanwhile, the consumption of the local area control display on the memory is reduced, so that the memory recovery frequency can be reduced, and the consumption of a CPU (central processing unit) is reduced. In addition, in a specific implementation manner of this embodiment, the partition frame may adopt a dashed-line frame, which may not only ensure that the user obtains the third partition distribution position, but also avoid the influence of the partition frame on the display screen on the display interface.

Further, when the partition frame drawing thread is controlled to draw a plurality of partition frames on the display interface of the smart television according to the partition information, the resolution ratio of the smart television needs to be obtained, and the drawing position of each partition frame is determined according to the resolution ratio, wherein each partition frame comprises a plurality of transverse partition frames and a plurality of longitudinal partition frames, each transverse partition frame is used for equally dividing the display interface of the smart television into a plurality of lines, and the number of the plurality of lines is equal to the number of partition lines in the partition information. In addition, a straight line is drawn at each drawing position after the drawing position of each partition frame is determined, so that a plurality of transversely and longitudinally crossed straight lines are obtained, and the display interface of the intelligent television is divided into a plurality of first partitions through the transversely and longitudinally crossed straight lines.

For example, the following steps are carried out: the resolution of the smart television is 1024 × 720, and the partition information is 64 × 36, it may be determined that 64 horizontal partition borders and 36 vertical borders need to be drawn on the display interface. The left side line of the display interface is taken as a vertical frame as a starting frame, one vertical frame is drawn at intervals of 19 pixel points, and 36 vertical frames are drawn in sequence, wherein the starting frame is not drawn. Correspondingly, the side line on the upper side of the display interface is taken as a transverse partition frame as an initial frame, one transverse partition frame is drawn at intervals of 19 pixel points, and 36 longitudinal frames are drawn in sequence, wherein the initial frame is not required to be drawn.

And S20, acquiring a display parameter group of the smart television at preset intervals, and drawing a display window on the display interface according to the partition information and the display parameter group to display the local light control.

Specifically, the display window is a display window displayed on the display interface, and the display parameters corresponding to the first partitions of the display interface are displayed through the display window. Therefore, the display window comprises a plurality of second partitions, the second partitions correspond to the first partitions obtained by dividing the display interface through the partition frame in a one-to-one mode, each second partition in the second partitions displays the display parameters of the target partition, and the target partition is the first partition corresponding to the second partition in the first partitions. In addition, the first partitions and the backlight area are equally divided into third partitions in one-to-one correspondence.

In an implementation manner of this embodiment, the drawing a display window on the display interface according to the partition information and the display parameter group specifically includes:

a11, creating a display window, and dividing the display window into a plurality of second partitions according to the partition information, wherein the plurality of second partitions are in one-to-one correspondence with the plurality of first partitions, display parameters corresponding to each second partition in the plurality of second partitions are the same as those of a target partition, and the target partition is a first partition corresponding to the second partition in the plurality of first partitions;

and A12, determining display parameters corresponding to the second partitions according to the display parameter group, and drawing the display window on the display interface according to the display parameters corresponding to the second partitions respectively.

Specifically, the display window is used for being displayed at a preset position of a display interface, and the area of the display window is smaller than the display area of the display interface, so that the display window is prevented from blocking a display picture on the display interface. For example, the display window is displayed in a form of a hanging window at the lower right corner of the display interface, and the area of the display window is equal to one third of the display area (e.g., the display area of the display interface is 960 × 960, then the area of the display window is 320 × 320). Of course, in practical applications, in order to avoid the display window from affecting the display screen, the area of the display window may be one sixth of the display area.

Further, dividing the display window into a plurality of second partitions according to the partition information may be to divide the display window into a plurality of second partitions according to the number of partition lines and the number of partition columns included in the partition information, and each second partition in the plurality of second partitions corresponds to one first partition in the plurality of first partitions, so that the display parameters of the corresponding first partition are displayed through the second partition, so that a user can know the change of the display color of each first partition on the display interface through the display window, and the effect of area light control is intuitively obtained.

Further, the display parameter group is used for storing the display parameters corresponding to the first partitions, wherein the display parameter group is a one-dimensional array, a plurality of display parameters are stored in the display parameter group, each display parameter in the plurality of display parameters corresponds to one second partition, and the display parameter is the display parameter of the corresponding second partition. In this embodiment, the number of display parameters of the display parameter set is equal to the number of partitions of the second partition, wherein the number of fractions of the second partition is equal to the product of the number of partition rows and the number of partition columns. That is, the number of display parameters of the display parameter set is equal to the product of the number of partition rows and the number of partition columns. In addition, the display parameter group is one-dimensional data, and the second partitions in the display window are arranged in an array, so that after the display parameter group is obtained, the display parameter group needs to be converted into a two-bit array, and the two-bit array corresponds to the array formed by the second partitions in the display window one to one. Correspondingly, the determining the display parameters corresponding to the second partitions according to the display parameter array specifically includes:

equally dividing the display parameter array into a plurality of sub-display parameter arrays, wherein the number of display parameters included in the sub-display parameter arrays is equal to the number of the partition columns;

arranging the sub-color numerical values into a two-dimensional array according to a plurality of sub-color numerical values, wherein the number of rows of the two-dimensional array is the same as that of the partition rows, and the number of rows of each sub-display parameter array in the two-dimensional array corresponds to the position of each sub-display parameter array in the display parameter array;

and determining display parameters corresponding to the second partitions according to the two-dimensional array, wherein the positions of the second partitions in the display window correspond to the positions of the display parameters corresponding to the second partitions in the two-dimensional data.

Specifically, the equally dividing the display parameter array into a plurality of sub-display parameter arrays refers to dividing the display parameter array into a plurality of sub-display parameter sets, where the number of the plurality of sub-display parameter sets is equal to the number of partition rows, where any two digital display parameter sets in the plurality of sub-display parameter sets include equal number of first display parameters, and the number of the first display parameters is equal to the number of partition columns. In addition, after the sub display parameter groups are obtained through division, the sub display parameter groups are arranged in the column direction to form a two-dimensional array, each row in the two-dimensional array corresponds to one sub display parameter group, the sub display parameter groups corresponding to any two rows of the two-dimensional array are different, the row number of each row in the two-dimensional array is the same as the position of the sub display parameter group corresponding to the row in the display parameter group, each display parameter in the two-dimensional array corresponds to one second partition in the display window, and the display parameter is the display parameter corresponding to the second partition.

For example, the following steps are carried out: the display parameter set is { a1, a2, A3, a4, a5, A6}, the number of partition rows is 2, the number of partition columns is 3 (i.e. the second partition of the display window is 6, and 6 second partitions are arranged in a2 × 3 array), and then the display parameter set is divided into two sub-display parameter sets { [ a1, a2, A3], [ a4, a5, A6] }, which are respectively marked as a first sub-display parameter set and a second sub-display parameter set, and the number of display parameters in the first sub-display parameter set and the second sub-display parameter set is 3. After the first sub-display parameter group and the second sub-display parameter group are obtained through division, the first sub-display parameter group and the second sub-display parameter group are arranged according to the column direction, and a two-dimensional array is obtained as follows:

wherein the first row in the two-dimensional array corresponds to the first sub-set of display parameters, the second row in the two-dimensional array corresponds to the second sub-set of display parameters, and each display parameter corresponds to a second partition in the display window, e.g., a1 corresponds to the second partition in the upper left corner of the display window.

In an implementation manner of this embodiment, the obtaining a display parameter set of the smart television at every preset time interval, and drawing a display window on the display interface according to the partition information and the display parameter set to display the local-area-controlled light specifically includes:

s21, creating a display window drawing thread, and calling the display window drawing thread at intervals of preset time;

and S22, acquiring the display parameter group of the smart television through the display window drawing thread, and drawing a display window on the display interface according to the partition information and the display parameter group to display local light control.

Specifically, the display window drawing thread is used for drawing each second partition in the display window, where each second partition is drawn by using its corresponding display parameter. The display window drawing thread is created for the smart television and runs in the smart television system; the display parameter group of the smart television can be acquired through the display window drawing thread, and the display parameters corresponding to the second partitions are used for drawing the second partitions according to the display parameter group and the partition information, so that the display window can be drawn independently. In addition, in this embodiment, each second partition in the display window is used to display the display parameter of each first partition in the display screen on the display interface, and the display screen on the display interface is continuously updated, so that the display parameter of the first partition in the display screen is also continuously changed. Therefore, the display window drawing thread needs to acquire the display parameter group of the smart television at intervals of preset time, and redraws the display window according to the acquired display parameter group. It will be appreciated that the display window drawing thread needs to be invoked once every preset time interval, so that the display window is updated once every preset time interval. For example, the preset time is 200ms, the display window drawing thread draws the display window once every 200ms, that is, the drawing frequency of the display window drawing thread is 200 ms.

Further, the display window drawing thread may also call partition information and a display parameter group through a preset partition information call interface, and draw the display window through a color block drawing interface (for example, android native interface canvas. draw rec) of the call system, where each second partition in the display window is drawn one by one, and for each second partition, draw the second partition using the display parameter corresponding to the second partition.

Based on the above display method, storage medium and smart television for local area lighting, this embodiment provides a computer-readable storage medium, where one or more programs are stored in the computer-readable storage medium, and the one or more programs can be executed by one or more processors to implement the steps in the display method, the storage medium and the smart television for local area lighting according to the above embodiments.

In summary, the present embodiment provides a display method, a storage medium, and a smart television for local light control, where the method obtains partition information of the smart television, and draws a plurality of partition frames on a display interface of the smart television according to the partition information; and acquiring a display parameter group of the intelligent television every preset time, and drawing a display window on the display interface according to the partition information and the display parameter group so as to display the local area light control. According to the method and the device, the partition frame is drawn on the display interface, the display window is drawn on the display interface, the distribution position of each partition corresponding to each local area control light of the smart television can be determined through the partition frame, and the display parameter of each partition corresponding to each local area control light can be determined through the display parameter of the second partition in the display window, so that the display information of each partition can be visually obtained, a user can feel the effect of the local area control light in person, and convenience is brought to the user. In addition, in the display process of local light control, the partition frame and the display window are independently drawn, the partition frame is drawn once, and the display window is drawn once at preset intervals, so that on one hand, the display parameters of each second partition in the display window can be guaranteed to be updated in real time, and on the other hand, the consumption of local control display on a memory and a CPU is reduced by drawing the partition frame once. For example, for the display of the local light control function of 2304 partitions, the memory occupancy may be below 70M, and the CPU occupancy may be within 3%.

Based on the display method, the storage medium and the smart television of the local area light control, the invention further provides a smart television, as shown in fig. 3, which includes at least one processor (processor) 20; a display screen 21; and a memory (memory)22, and may further include a communication Interface (Communications Interface)23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may call logic instructions in the memory 22 to perform the methods in the embodiments described above.

Furthermore, the logic instructions in the memory 22 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.

The memory 22, which is a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes the functional application and data processing, i.e. implements the method in the above-described embodiments, by executing the software program, instructions or modules stored in the memory 22.

The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the smart tv, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.

In addition, the specific processes loaded and executed by the storage medium and the instruction processors in the smart television are described in detail in the method, and are not stated herein.

Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will 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 technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

13页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:旋转动画的配置方法及显示设备

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类