CN108874492A - A kind of method and apparatus of focus frame positioning - Google Patents

A kind of method and apparatus of focus frame positioning Download PDF

Info

Publication number
CN108874492A
CN108874492A CN201810622834.4A CN201810622834A CN108874492A CN 108874492 A CN108874492 A CN 108874492A CN 201810622834 A CN201810622834 A CN 201810622834A CN 108874492 A CN108874492 A CN 108874492A
Authority
CN
China
Prior art keywords
column
page
layout information
focus frame
target
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.)
Pending
Application number
CN201810622834.4A
Other languages
Chinese (zh)
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.)
Shenzhen Ipanel TV Inc
Original Assignee
Shenzhen Ipanel TV Inc
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 Shenzhen Ipanel TV Inc filed Critical Shenzhen Ipanel TV Inc
Priority to CN201810622834.4A priority Critical patent/CN108874492A/en
Publication of CN108874492A publication Critical patent/CN108874492A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

In technical solution of the present invention, a kind of method and device of focus frame positioning is disclosed, set-top box is applied to, the method receives the move of moving focal point frame;Then according to the move, focus frame institute positioning rail purpose column layout information is obtained;The specification of position and occupied units of pages lattice where the column layout information is used to characterize the column in the page;Later according in the move directional information and the column layout information determine target column;Finally goal-focus frame is regenerated as the focus frame after movement according to the target column layout information of the target column.It can be seen that, due in technical solution of the present invention, it does not need to carry out writing for attribute codes for each column in advance, but calculate in real time, focus frame is generated in real time, therefore, for developer, it works, improves work efficiency, while greatly reducing the pressure of set-top box memory space without extra written in code.

Description

A kind of method and apparatus of focus frame positioning
Technical field
The present invention relates to the method and apparatus that technical field of software engineering more particularly to a kind of focus frame position.
Background technique
When playing program using set-top box, it usually needs there is the interface of various formats to carry out page presentation.Wherein, each Generally include can to play different content in the interface of a format has multiple columns, and position of each column in interface is not It may also can difference with, height and width.When user needs to watch the corresponding program of some column, using distant in hand Device is controlled, focus frame in control interface watches column corresponding to program required for navigating to, executes and determine operation, realizes program Watch.As can be seen that the position of positioning focus frame is that broadcasting program is essential.
In the prior art, in order to realize the accurate positionin of focus frame, each of each format column is both needed to It wants moving operation of the focus point frame in the column to be customized and melts hair, specifically by the unit in the page of each format Lattice merge as needed constitute a column, then to focus frame in each column in the column as grasped up and down Make that the artificial carry out Code Design of the operation is arranged, to realize the accurate positionin of focus frame.
But the method for existing focus frame positioning, it is directed to different formats, different columns, is required to carry out not Same code is rewritten and is stored, and code redundancies are high, and working efficiency is affected for developer, for storage For the limited set-top box in space, storage pressure is also very big.
Summary of the invention
In view of this, the embodiment of the invention discloses a kind of method and apparatus of focus frame positioning, for realizing focus frame The dynamic positioning of different columns, improves working efficiency in different format differences interface, reduces storage pressure.
A kind of method of focus frame positioning is disclosed in the embodiment of the present invention, is applied to set-top box, including:
Receive the move of moving focal point frame;
According to the move, focus frame institute positioning rail purpose column layout information is obtained;The column layout information Specification for position and occupied units of pages lattice in the page where characterizing the column;
According in the move directional information and the column layout information determine target column;
Target column layout information according to the target column regenerates goal-focus frame as the focus after movement Frame.
Preferably, further include before the move for receiving moving focal point frame:
The column layout information of each column in the pre-generated page.
Preferably, the column layout information of each column includes in the pre-generated page:
Obtain the corresponding column array of the column generated after each column execution unit lattice merges in the page;
According to column array described in each, the column coordinate of the page where calculating four vertex of the column;
Obtain the height of cell, width and gap in the page;
According to corresponding to the height of the cell, width, gap and each described column Coordinate generation column Column layout information, the column layout information include the column purpose mark, coordinate, height, width, apart from page top Distance and the distance apart from page left end.
Preferably, the directional information according in the move and the column layout information determine target column Including:
Obtain the directional information of the move;
Extract the column coordinate value to match in the column coordinate of the column layout information with the directional information;
Target identification is determined according to the column coordinate value and the directional information;
Using column corresponding to the target identification for meeting mobile condition as target column.
Preferably, the target column layout information according to the target column regenerates goal-focus frame as shifting Focus frame after dynamic includes:
Obtain the column layout information of the target column;
Extract height in the column layout information, width, the distance apart from page top and apart from page left end Distance;
Using the distance apart from page top and the distance apart from page left end as absolute fix, with the height Degree and width generate goal-focus frame as the focus frame after movement.
On the other hand the embodiment of the present invention also discloses a kind of device of focus frame positioning, be applied to set-top box, including:
Receiving unit, for receiving the move of moving focal point frame;
Acquiring unit, for obtaining focus frame institute positioning rail purpose column layout information according to the move;It is described The specification of position and occupied units of pages lattice where column layout information is used to characterize the column in the page;
Determination unit, for according in the move directional information and the column layout information determine target column Mesh;
Positioning unit regenerates goal-focus frame conduct for the target column layout information according to the target column Focus frame after movement.
Preferably, further include:
Pre-generatmg unit, for pre-generating the column layout information of each column in the page.
Preferably, the pre-generatmg unit includes:
Array obtains module, for obtaining in the page column pair generated after each column execution unit lattice merges The column array answered;
Coordinate generation module, for the page where according to column array described in each, calculating four vertex of the column Column coordinate;
Data acquisition module, for obtaining the height of cell, width and gap in the page;
Pre-generatmg module, for raw according to the height of the cell, width, gap and each described column coordinate At column layout information corresponding to the column, the column layout information include the column purpose mark, coordinate, height, width, Distance apart from page top and the distance apart from page left end.
Preferably, the determination unit includes:
Direction obtains module, for obtaining the directional information of the move;
Coordinate extraction module is matched with the directional information in the column coordinate for extracting the column layout information Column coordinate value;
Determining module is identified, for determining target identification according to the column coordinate value and the directional information;
Column determining module, for column corresponding to the target identification of mobile condition will to be met as target column.
Preferably, the positioning unit includes:
Layout information obtains module, for obtaining the column layout information of the target column;
Property extracting module, for extracting height, width, the distance apart from page top in the column layout information And the distance apart from page left end;
Locating module, for using the distance apart from page top and the distance apart from page left end as absolutely Positioning generates goal-focus frame as the focus frame after movement using the height and width.
In technical solution of the present invention, a kind of method and device of focus frame positioning is disclosed, set-top box is applied to, it is described The move of method reception moving focal point frame;Then according to the move, focus frame institute positioning rail purpose column is obtained Layout information;Position and occupied units of pages where the column layout information is used to characterize the column in the page The specification of lattice;Later according in the move directional information and the column layout information determine target column;Finally Target column layout information according to the target column regenerates goal-focus frame as the focus frame after movement.It can see Out, due in technical solution of the present invention, not needing to carry out writing for attribute codes for each column in advance, but meter in real time It calculates, generates focus frame in real time, therefore, for developer, work without extra written in code, improve work effect Rate, while greatly reducing the pressure of set-top box memory space.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this The embodiment of invention for those of ordinary skill in the art without creative efforts, can also basis The attached drawing of offer obtains other attached drawings.
Fig. 1 is a kind of flow diagram of the method for focus frame positioning disclosed by the invention;
Fig. 2 is a kind of another flow diagram of the method for focus frame positioning disclosed by the invention;
Fig. 3 a, 3b are the schematic diagrames of page layout in embodiment disclosed by the invention;
Fig. 4 is a kind of structural schematic diagram of the device of focus frame positioning disclosed by the invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
In technical solution of the present invention, application scenarios are mainly in set-top box, wherein a kind of support television terminal of set-top box The household appliance of integrated information business is provided, the digital signal of compression can be changed into television content, and show on a television set Out, enable users to watch digital television program on existing television set, and can be interacted by network formula digitlization amusement, Education and commercialization activity.
It is a kind of flow diagram of the method for focus frame positioning disclosed by the invention referring to Fig. 1, Fig. 1.
The invention discloses a kind of methods of focus frame positioning, are applied to set-top box comprising:
S101, the move for receiving moving focal point frame;
In technical solution of the present invention, the move of moving focal point frame is received first, it is logical which can be user Remote controler transmission is crossed, be also possible to send by the software app mode of other such as mobile phones can control page in set-top box The mobile order of the focus frame in face.It include moving direction information in the move, such as up and down etc., it can also wrap certainly Operation information is included, such as obtains the program etc. of column.
S102, according to the move, obtain focus frame institute positioning rail purpose column layout information;The column layout The specification of position and occupied units of pages lattice where information is used to characterize the column in the page;
After receiving the move, the column for the column that focus frame in current page was positioned at current time can be obtained Layout information.It include its mark in the page in the column layout information, coordinate, length, height can also include apart from page The distance on face top and distance apart from page left end.In embodiments of the present invention, these parameters can in the form of array table Show.
S103, according in the move directional information and the column layout information determine target column;
After the column layout information for obtaining the column currently positioned, according to the directional information in move and it can be somebody's turn to do Column layout information determines the target column for needing to be moved to.Specific calculating process is introduced later.
S104, goal-focus frame is regenerated as after mobile according to the target column layout information of the target column Focus frame.
Finally, a new focus frame can be generated in real time as the focus frame after movement in the embodiment of the present invention.With it is existing Technology is the difference is that be that various Code Edits were realized to the movement of focus frame later in advance in the prior art, and the application skill It is then to regenerate goal-focus frame as the focus frame after movement in art scheme.It is, of course, understood that regenerating It is meant that after deleting original focus frame and executes the meaning regenerated, i.e., the mobile front and back of focus frame has and there is only one Focus frame.I.e. while regenerating goal-focus frame, original focus frame can be removed.
In technical solution of the present invention, a kind of method and device of focus frame positioning is disclosed, set-top box is applied to, it is described The move of method reception moving focal point frame;Then according to the move, focus frame institute positioning rail purpose column is obtained Layout information;Position and occupied units of pages where the column layout information is used to characterize the column in the page The specification of lattice;Later according in the move directional information and the column layout information determine target column;Finally Target column layout information according to the target column regenerates goal-focus frame as the focus frame after movement.It can see Out, due in technical solution of the present invention, not needing to carry out writing for attribute codes for each column in advance, but meter in real time It calculates, generates focus frame in real time, therefore, for developer, work without extra written in code, improve work effect Rate, while greatly reducing the pressure of set-top box memory space.
In above-described embodiment, the process for generating column layout information is described, is described in detail below to this process.
Referring to fig. 2, Fig. 2 is a kind of another process signal of the method for focus frame positioning disclosed in the embodiment of the present invention Figure.
In the embodiment of the present invention, on the basis of the above embodiments, before the move for receiving moving focal point frame Further include:
The column layout information of each column in S201, the pre-generated page.
That is, the column layout information of each column can be pre-generated in technical solution of the present invention.Then step is executed S101-S104。
Certainly, the process of generation, which can also be, just executes when receiving move every time and stores.The application is excellent Choosing be it is pre-generated, in order to improve execution efficiency.Certainly, with the continuous development of processor technology, therefore, even if It is real-time perfoming, Caton phenomenon also can be unobvious from the user's point of view, will not influence user experience.
Specifically, the column layout information of each column includes in the pre-generated page:
Obtain the corresponding column array of the column generated after each column execution unit lattice merges in the page;
In the embodiment of the present invention, when carrying out the column typesetting of the page according to cell span, the page can be automatically generated Text file, array corresponding to each column is preserved in this article this document.For example, with reference to mono- page of Fig. 3 a by The cell of 3*7 is constituted, and after carrying out cell span, constitutes multiple columns, such as Fig. 3 b, constitutes 11 columns after merging, in figure It is identified using number 0 to 10.Wherein, such as column 0,1,4,8,10 can be formed by multiple cell spans.Complete it The text file including array can be automatically generated afterwards, and wherein each column is all made of an array to indicate.For example, in Fig. 3 b In, [[1,1,1,0,0,0,0], [1,1,1,0,0,0,0], [0,0,0,0,0,0,0]] can be used to indicate the column after merging Mesh 0.In the array, it is identified as the 1 representative column and occupies cell, 0 indicates vacant.And so on, other columns Also it is indicated using such mode.It should be noted that the process is realized in advance in server end, text text is only saved in set-top box Part.
It is understood that the process obtained can be by the move of user's first time moving focal point frame as touching Hair, can also be after set-top box starts with regard to automatic trigger, herein without specifically limiting, as long as available be to column array It can.
According to column array described in each, the column coordinate of the page where calculating four vertex of the column;
In the embodiment of the present invention, after obtaining column data, the column coordinate on four vertex such as column 0 can be calculated.Its In, the data of page location where column coordinate is used to indicate that column.
Since each column belongs to rectangle, regard each column as a rectangle to calculate the column Mesh includes the following steps in the coordinate of the page, the process for obtaining coordinate.
The numerical value for encountering 1 in reading column array for the first time, obtains the subscript of the cell corresponding to it, as column Start unit lattice coordinate ls and wide start unit lattice coordinate ws.That is, having found rectangular upper left side vertex.
Then it is longitudinal go for encountering 0 or to array longitudinal direction the last position, be determined as the vertex in the rectangle lower left corner, That is the end unit lattice coordinate le of the length of column.Meanwhile laterally read 0 or array laterally the last when, determine rectangular The vertex in the shape upper right corner, the i.e. wide end unit lattice we of column.
For example, the coordinate of column 0 is " ws " in Fig. 3 b:0,"we":2,"ls":0,"le":1.That is, column 0 is from the upper left corner First cell starts, and width is 2 cells, the layout of a length of 3 cells.The coordinate of column 1 is " ws ":3,"we": 4,"ls":0,"le":0。
Obtain the height of cell, width and gap in the page;
After having obtained the coordinate on rectangular four vertex, height, width and the gap of cell in the page are obtained, this A little data are configured in advance, the parameter specifically specified according to actual needs.
According to corresponding to the height of the cell, width, gap and each described column Coordinate generation column Column layout information, the column layout information include the column purpose mark, coordinate, height, width, apart from page top Distance and the distance apart from page left end.
Finally, generating the column layout information of each column.Wherein, column layout information include the column purpose mark, Coordinate, height, width, the distance apart from page top and the distance apart from page left end.
For example, in Fig. 3 b, the layout information of obtained column 0 can be:
{"id":"unit00","ws":0,"we":2,"ls":0,"le":1,"left":0,"top":0,"width": 464,"height":258};
Wherein, id is the column purpose mark, left is the distance apart from page left end, top be apart from page top away from From width is width, and height is height.
Wherein, calculation is Left=ws* (width+cell interval of cell), Top=ls* (cell Height+cell interval), width=(we-ws+1) * cell width+(we-ws) * cell interval, height= (le-ls+1) height of * cell+(le-ls) * cell interval.
In this way, having obtained the column layout information of each column.
After obtaining column layout information, so that it may the position of focus frame be accurately positioned using these data.
On the basis of the above embodiments, the present invention can determine target column according to move.
Specifically, according in the move directional information and the column layout information determine target column packet It includes:
Obtain the directional information of the move;
Extract the column coordinate value to match in the column coordinate of the column layout information with the directional information;
Target identification is determined according to the column coordinate value and the directional information;
Using column corresponding to the target identification for meeting mobile condition as target column.
In the embodiment of the present invention, the directional information in move, such as upper and lower, left and right, then according to the direction are obtained Information and column coordinate, to determine the target identification of column.
Specifically, executing following calculation process when user's operation key.
Upper key:Under the premise of le of the ls-1 equal to object element for meeting currentElement, also meet the ws's of currentElement The value that value is greater than the we of the ws and currentElement equal to object element is less than the value of the we equal to object element, or current It is any in the value for the we that the value that the value of the ws of element is equal to the ws of the object element or we of currentElement is equal to object element A kind of situation.
Down key:Under the premise of ls of the le+1 equal to object element for meeting currentElement, also to meet the ws of currentElement Value be greater than the ws equal to object element and meet the value of the we of currentElement and be less than the value of the we equal to object element, or In the value for the we that the value that the value of the ws of person's currentElement is equal to the ws of the object element or we of currentElement is equal to object element Any one situation.
Left button:Under the premise of we of the value -1 equal to object element for meeting the ws of currentElement, it is also necessary to meet current member The value that the ls of element is more than or equal to the ls and currentElement le of object element is less than the value of the le equal to object element, or current It is any in the value for the le that the value that the value of the ls of element is equal to the ls of the object element or le of currentElement is equal to object element A kind of situation.
Right button:Under the premise of ws of the value+1 equal to object element for meeting the we of currentElement, meet the ls of currentElement Value more than or equal to the ls and currentElement le of object element is less than the value or currentElement of the le equal to object element Any one feelings in the value for the le that the value that the value of ls is equal to the ls of the object element or le of currentElement is equal to object element Condition.
The target identification of column is determined according to above-mentioned mobile condition.For example, when focus frame is in column 0, by directionkeys Under, then the mark that can calculate column 7 meets mobile condition, then regard column 7 as target column.
After the target column that needs are moved to has been determined, focus frame can be generated in real time.
Wherein, the target column layout information according to the target column regenerates goal-focus frame as movement Focus frame afterwards includes:
Obtain the column layout information of the target column;
Extract height in the column layout information, width, the distance apart from page top and apart from page left end Distance;
Using the distance apart from page top and the distance apart from page left end as absolute fix, with the height Degree and width generate goal-focus frame as the focus frame after movement.
In the embodiment of the present invention, extract column layout information in height, width, the distance apart from page top and away from With a distance from page left end.
By taking above-described embodiment as an example, obtain " " left ":0,"top":0,"width":464,"height":258 ", to make For the absolute fix of generation goal-focus frame and height and width.
Wherein, left and top is absolute fix position, then regenerates focus frame according to width and height. Realize the movement of focus frame.
As can be seen that the embodiment of the present invention in, the rectangular vertex of positioning rail purpose, when user's operation direction key (on Key, down key, left button, right button) dynamic positioning target column purpose mark, according to the target column calculated before away from a page left side The distance (left) of side, the distance (top) away from page top, width (width), height (height) setting focus position and Size, to realize the switching of focus.Therefore, the embodiment of the present invention does not need that each column position is arranged, as the column is opposite The distance top and size of distance left and top on the left of the page such as the width width and height height of the column, with And corresponding code after focus button operation, so that it may realize the switching at runtime of element focus.Reduce developer The complexity of written in code, improves work efficiency, and does not need to save excessive code, reduces the storage pressure of set-top box Power.
The method for compareing the focus frame positioning of one of above-described embodiment, the embodiment of the invention also discloses a kind of focus frames The device of positioning is applied to set-top box.
Referring to fig. 4, described device includes:
Receiving unit 1, for receiving the move of moving focal point frame;
Acquiring unit 2, for obtaining focus frame institute positioning rail purpose column layout information according to the move;Institute State specification of the column layout information for position and occupied units of pages lattice in the page where characterizing the column;
Determination unit 3, for according in the move directional information and the column layout information determine target Column;
Positioning unit 4 regenerates goal-focus frame for the target column layout information according to the target column and makees For the focus frame after movement.
Optionally, further include:
Pre-generatmg unit, for pre-generating the column layout information of each column in the page.
Optionally, the pre-generatmg unit includes:
Array obtains module, for obtaining in the page column pair generated after each column execution unit lattice merges The column array answered;
Coordinate generation module, for the page where according to column array described in each, calculating four vertex of the column Column coordinate;
Data acquisition module, for obtaining the height of cell, width and gap in the page;
Pre-generatmg module, for raw according to the height of the cell, width, gap and each described column coordinate At column layout information corresponding to the column, the column layout information include the column purpose mark, coordinate, height, width, Distance apart from page top and the distance apart from page left end.
Optionally, the determination unit includes:
Direction obtains module, for obtaining the directional information of the move;
Coordinate extraction module is matched with the directional information in the column coordinate for extracting the column layout information Column coordinate value;
Determining module is identified, for determining target identification according to the column coordinate value and the directional information;
Column determining module, for column corresponding to the target identification of mobile condition will to be met as target column.
Optionally, the positioning unit includes:
Layout information obtains module, for obtaining the column layout information of the target column;
Property extracting module, for extracting height, width, the distance apart from page top in the column layout information And the distance apart from page left end;
Locating module, for using the distance apart from page top and the distance apart from page left end as absolutely Positioning generates goal-focus frame as the focus frame after movement using the height and width.
It should be noted that the device of one of embodiment of the present invention focus frame positioning can be implemented using the above method The method of one of example focus frame positioning, for realizing whole technical solutions in above method embodiment, modules Function can be implemented according to the method in above method embodiment, specific implementation process can refer in above-described embodiment Associated description, details are not described herein again.
In technical solution of the present invention, a kind of device of focus frame positioning is disclosed, set-top box is applied to, described device The move of receiving unit reception moving focal point frame;Then acquiring unit obtains focus frame and determines according to the move Bit field purpose column layout information;Position where the column layout information is used to characterize the column in the page and shared The specification of units of pages lattice;Determination unit is according to the directional information and column layout letter in the move later It ceases and determines target column;Last positioning unit regenerates goal-focus according to the target column layout information of the target column Frame is as the focus frame after movement.As can be seen that due in technical solution of the present invention, do not need in advance for each column into Row attribute codes are write, but are calculated in real time, focus frame are generated in real time, therefore, for developer, without extra Written in code work, improves work efficiency, while greatly reducing the pressure of set-top box memory space.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning Covering non-exclusive inclusion, so that the process, method, article or equipment for including a series of elements not only includes that A little elements, but also including other elements that are not explicitly listed, or further include for this process, method, article or The intrinsic element of equipment.In the absence of more restrictions, the element limited by sentence "including a ...", is not arranged Except there is also other identical elements in the process, method, article or apparatus that includes the element.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.
The foregoing description of the disclosed embodiments makes professional and technical personnel in the field can be realized or use the application. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the application.Therefore, the application It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of method of focus frame positioning, is applied to set-top box, which is characterized in that including:
Receive the move of moving focal point frame;
According to the move, focus frame institute positioning rail purpose column layout information is obtained;The column layout information is used for The specification of position and occupied units of pages lattice where characterizing the column in the page;
According in the move directional information and the column layout information determine target column;
Target column layout information according to the target column regenerates goal-focus frame as the focus frame after movement.
2. the method according to claim 1, wherein also being wrapped before the move for receiving moving focal point frame It includes:
The column layout information of each column in the pre-generated page.
3. according to the method described in claim 2, it is characterized in that, in the pre-generated page each column column cloth Office information include:
Obtain the corresponding column array of the column generated after each column execution unit lattice merges in the page;
According to column array described in each, the column coordinate of the page where calculating four vertex of the column;
Obtain the height of cell, width and gap in the page;
According to column corresponding to the height of the cell, width, gap and each described column Coordinate generation column Mesh layout information, the column layout information include the column purpose mark, coordinate, height, width, the distance apart from page top And the distance apart from page left end.
4. according to the method described in claim 3, it is characterized in that, the directional information and institute according in the move It states column layout information and determines that target column includes:
Obtain the directional information of the move;
Extract the column coordinate value to match in the column coordinate of the column layout information with the directional information;
Target identification is determined according to the column coordinate value and the directional information;
Using column corresponding to the target identification for meeting mobile condition as target column.
5. the method according to claim 3 or 4, which is characterized in that the target column cloth according to the target column Office's information regenerates goal-focus frame as the focus frame after movement:
Obtain the column layout information of the target column;
Extract height in the column layout information, width, the distance apart from page top and apart from page left end away from From;
Using the distance apart from page top and the distance apart from page left end as absolute fix, with the height and Width generates goal-focus frame as the focus frame after movement.
6. a kind of device of focus frame positioning, is applied to set-top box, which is characterized in that including:
Receiving unit, for receiving the move of moving focal point frame;
Acquiring unit, for obtaining focus frame institute positioning rail purpose column layout information according to the move;The column The specification of position and occupied units of pages lattice where layout information is used to characterize the column in the page;
Determination unit, for according in the move directional information and the column layout information determine target column;
Positioning unit regenerates goal-focus frame as movement for the target column layout information according to the target column Focus frame afterwards.
7. device according to claim 6, which is characterized in that further include:
Pre-generatmg unit, for pre-generating the column layout information of each column in the page.
8. device according to claim 7, which is characterized in that the pre-generatmg unit includes:
Array obtains module, and for obtaining, the column generated is corresponding after the merging of each column execution unit lattice in the page Column array;
Coordinate generation module, the column for the page where according to column array described in each, calculating four vertex of the column Coordinate;
Data acquisition module, for obtaining the height of cell, width and gap in the page;
Pre-generatmg module, for being somebody's turn to do according to the height of the cell, width, gap and each described column Coordinate generation Column layout information corresponding to column, the column layout information include column purpose mark, coordinate, height, width, the distance The distance on page top and distance apart from page left end.
9. device according to claim 8, which is characterized in that the determination unit includes:
Direction obtains module, for obtaining the directional information of the move;
Coordinate extraction module, the column to be matched in the column coordinate for extracting the column layout information with the directional information Mesh coordinate value;
Determining module is identified, for determining target identification according to the column coordinate value and the directional information;
Column determining module, for column corresponding to the target identification of mobile condition will to be met as target column.
10. device according to claim 8 or claim 9, which is characterized in that the positioning unit includes:
Layout information obtains module, for obtaining the column layout information of the target column;
Property extracting module, for extract the height in the column layout information, width, the distance apart from page top and Distance apart from page left end;
Locating module, for using the distance apart from page top and the distance apart from page left end as absolutely fixed Position generates goal-focus frame as the focus frame after movement using the height and width.
CN201810622834.4A 2018-06-15 2018-06-15 A kind of method and apparatus of focus frame positioning Pending CN108874492A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810622834.4A CN108874492A (en) 2018-06-15 2018-06-15 A kind of method and apparatus of focus frame positioning

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810622834.4A CN108874492A (en) 2018-06-15 2018-06-15 A kind of method and apparatus of focus frame positioning

Publications (1)

Publication Number Publication Date
CN108874492A true CN108874492A (en) 2018-11-23

Family

ID=64339486

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810622834.4A Pending CN108874492A (en) 2018-06-15 2018-06-15 A kind of method and apparatus of focus frame positioning

Country Status (1)

Country Link
CN (1) CN108874492A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704146A (en) * 2019-08-30 2020-01-17 华为技术有限公司 Focus management method applied to electronic equipment and electronic equipment
CN111638881A (en) * 2020-05-29 2020-09-08 山东浪潮通软信息科技有限公司 Method for adjusting chart and instrument panel
CN113051495A (en) * 2019-12-27 2021-06-29 成都鼎桥通信技术有限公司 Web page focus navigation method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102256079A (en) * 2010-05-19 2011-11-23 索尼公司 Information processing system and information processing apparatus
US20140049692A1 (en) * 2012-08-17 2014-02-20 Flextronics Ap, Llc Intelligent channel changing
CN104301796A (en) * 2014-09-26 2015-01-21 四川长虹电器股份有限公司 Method for automatically controlling focus of master shot of smart television
CN105812944A (en) * 2014-12-29 2016-07-27 深圳Tcl新技术有限公司 Interface focus movement control method and device
CN106569784A (en) * 2015-10-09 2017-04-19 北大方正集团有限公司 Display page generation method and system
CN106658139A (en) * 2016-10-18 2017-05-10 Tcl集团股份有限公司 Focus control method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102256079A (en) * 2010-05-19 2011-11-23 索尼公司 Information processing system and information processing apparatus
US20140049692A1 (en) * 2012-08-17 2014-02-20 Flextronics Ap, Llc Intelligent channel changing
CN104301796A (en) * 2014-09-26 2015-01-21 四川长虹电器股份有限公司 Method for automatically controlling focus of master shot of smart television
CN105812944A (en) * 2014-12-29 2016-07-27 深圳Tcl新技术有限公司 Interface focus movement control method and device
CN106569784A (en) * 2015-10-09 2017-04-19 北大方正集团有限公司 Display page generation method and system
CN106658139A (en) * 2016-10-18 2017-05-10 Tcl集团股份有限公司 Focus control method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110704146A (en) * 2019-08-30 2020-01-17 华为技术有限公司 Focus management method applied to electronic equipment and electronic equipment
CN113051495A (en) * 2019-12-27 2021-06-29 成都鼎桥通信技术有限公司 Web page focus navigation method and device
CN111638881A (en) * 2020-05-29 2020-09-08 山东浪潮通软信息科技有限公司 Method for adjusting chart and instrument panel

Similar Documents

Publication Publication Date Title
CN108874492A (en) A kind of method and apparatus of focus frame positioning
CN102799358B (en) The determination method and device of display position of cursor
CN103336663B (en) A kind of method of data synchronization, device and terminal
CN107463302B (en) Icon layout adjusting method and device
CN109901888B (en) Design method of automatic configuration file generation tool
CN110134600A (en) Test script method for recording, device and storage medium
CN103035031B (en) Towards the three-dimensional man-machine interaction display control method of grid operating monitoring
CN103942823A (en) Game engine rendering method and device
CN105488210B (en) A kind of batch data matching process and device
CN106331869A (en) Video-based picture re-editing method and device
CN103279457B (en) A kind of method and device generating chart based on Excel
CN106021561A (en) Page form processing method and device
CN108762628A (en) Page element mobile display method and device, terminal equipment and storage medium
CN105653255A (en) Method arranging report template to automatically generate report files in office frame
CN110941428B (en) Website creation method and device
CN104298654A (en) Method and device for displaying information
CN107133206A (en) A kind of digital content makes and demonstration tool and its application
CN109344375A (en) A kind of report tool and method based on office software
CN103207730A (en) Generation method and generator for localizable dragging type flow chart
CN104185088A (en) Video processing method and device
CN109710224A (en) Page processing method, device, equipment and storage medium
CN105700767B (en) The stacked display system of file and method
CN104199729A (en) Resource management method and system
CN102855255B (en) Content Management dissemination method and system
CN103761194A (en) Memory management method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20181123

RJ01 Rejection of invention patent application after publication