CN105786235A - Data processing method and electronic device - Google Patents

Data processing method and electronic device Download PDF

Info

Publication number
CN105786235A
CN105786235A CN201410831968.9A CN201410831968A CN105786235A CN 105786235 A CN105786235 A CN 105786235A CN 201410831968 A CN201410831968 A CN 201410831968A CN 105786235 A CN105786235 A CN 105786235A
Authority
CN
China
Prior art keywords
coordinate
display screen
ratio
output resolution
resolution ratio
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
CN201410831968.9A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410831968.9A priority Critical patent/CN105786235A/en
Publication of CN105786235A publication Critical patent/CN105786235A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The invention discloses a data processing method and apparatus and an electronic device. The method is applied to the electronic device. The electronic device comprises a first display screen and a second display screen, the first display screen has a first output resolution, and the second display screen has a second output resolution. The method comprises the following steps: determining a target point on the first display screen; obtaining a first coordinate of the target point, wherein the first coordinate corresponds to a preset first coordinate system on the first display screen; determining a corresponding relation of the first output resolution and the second output resolution; when the first output resolution and the second output resolution has a first corresponding relation, obtaining a second coordinate in a first mode based on the first coordinate; when the first output resolution and the second output resolution has a second corresponding relation, obtaining the second coordinate in a second mode based on the first coordinate, wherein the second coordinate corresponds to a preset second coordinate system on the second display screen; and executing an operation instruction according to the second coordinate.

Description

A kind of data processing method and electronic equipment
Technical field
The present invention relates to technical field of data processing, particularly to a kind of data processing method and electronic equipment.
Background technology
At present, multi-display device is more and more applied in the Working Life of people, and because the difference of the output resolution ratio of each display screen, when showing the content such as view data etc. of same input resolution under different output resolution ratios, by carrying out Coordinate Conversion, to reach on the display screen of different output resolution ratio the Coordinate Conversion between touch input and display output, for instance on the first display screen after touch input, show the coordinate position of this touch input of output on a second display.
But in Coordinate Conversion scheme of the prior art, generally according to actual display resolution, length in pixels value and pixel wide value are directly substituted into ratio conversion formula to obtain conversion coordinate, such scheme is unbalanced proportionate relationship owing to different output resolution ratios are generally pixel length and width, hence with when carrying out the input operations such as click after the display screen that in prior art, image is shown to different resolution, generally occur within the corresponding inaccurate situation of same content coordinate, the accurate synchronization of touch input and display output cannot be realized, affect Consumer's Experience.
Summary of the invention
It is an object of the invention to, a kind of data processing method and electronic equipment are provided, in order to solve image is shown to by prior art different resolution display screen after carry out the input operations such as click time, generally occur within the corresponding inaccurate situation of same content coordinate, the accurate synchronization of touch input and display output cannot be realized, affect the technical problem of Consumer's Experience.
The invention provides a kind of data processing method, being applied to electronic equipment, described electronic equipment includes the first display screen and second display screen, and described first display screen has the first output resolution ratio, described second display screen has the second output resolution ratio, and described method includes:
Determine the impact point on described first display screen;
Obtaining the first coordinate of described impact point, described first coordinate is corresponding with default first coordinate system on described first display screen;
Determine the corresponding relation of described first output resolution ratio and described second output resolution ratio;
When described first output resolution ratio has the first corresponding relation with described second resolution, obtain the second coordinate in the first way based on described first coordinate;
When described first output resolution ratio has the second corresponding relation with described second resolution, obtain the second coordinate in a second manner based on described first coordinate;
Wherein, described second coordinate is corresponding with default second coordinate system on described second display screen;
Operational order is performed according to described second coordinate.
Described method, it is preferred that described first corresponding relation is: in described first output resolution ratio the first ratio value between lateral resolution with longitudinal resolution and in described second output resolution ratio the second ratio value between lateral resolution and longitudinal resolution identical;
Accordingly, described obtain the second coordinate in the first way based on described first coordinate, including:
It is multiplied by the first ratio of the lateral resolution of described second output resolution ratio and the lateral resolution of described first output resolution ratio with the abscissa in described first coordinate, obtains the abscissa in described second coordinate;
It is multiplied by the second ratio of the longitudinal resolution of described second output resolution ratio and the longitudinal resolution of described first output resolution ratio with the vertical coordinate in described first coordinate, obtains the vertical coordinate in described second coordinate.
Described method, it is preferred that described second corresponding relation is: described first ratio value is more than or less than described second ratio value;
Accordingly, described obtain the second coordinate in a second manner based on described first coordinate, including:
According to the second corresponding relation, determining the second viewing area on described first display screen, described second viewing area forms whole viewing areas of described first display screen with the first viewing area of the first content of the second output resolution ratio on the described second display screen of display;
According to described second viewing area, obtain second coordinate corresponding with described first coordinate.
Described method, preferably, described second corresponding relation is: described first ratio value is more than described second ratio value, and described second viewing area is transversely arranged to form whole viewing areas of described first display screen on described first display screen with described first viewing area;
Accordingly, described obtain second coordinate corresponding with described first coordinate according to described second viewing area, including:
Determine the laterally wide angle value of described second viewing area;
After the abscissa of described first coordinate is deducted described laterally wide angle value, then it is multiplied by described first ratio, obtains the abscissa in described second coordinate;
The vertical coordinate of described first coordinate is multiplied by described second ratio, obtains the vertical coordinate in described second coordinate.
Described method, preferably, described second corresponding relation is: described first ratio value less than described second ratio value, described second viewing area and described first viewing area on described first display screen longitudinal arrangement to form whole viewing areas of described first display screen;
Accordingly, described obtain second coordinate corresponding with described first coordinate according to described second viewing area, including:
Determine the longitudinally wide value of described second viewing area;
Abscissa in described first coordinate is multiplied by described first ratio, obtains the abscissa in described second coordinate;
After vertical coordinate in described first coordinate is deducted described longitudinally wide value, then it is multiplied by described second ratio, obtains the vertical coordinate in described second coordinate.
Described method, it is preferred that show the first content on described second display screen on described first display screen;
Wherein, described first content is at least part of content showing content on described second display screen, and described second output resolution ratio is corresponding with the display resolution of described first content.
Present invention also offers a kind of data processing equipment, being applied to electronic equipment, described electronic equipment includes the first display screen and second display screen, and described first display screen has the first output resolution ratio, described second display screen has the second output resolution ratio, and described device includes:
Target determination unit, for determining the impact point on described first display screen;
First coordinate acquiring unit, for obtaining the first coordinate of described impact point, described first coordinate is corresponding with default first coordinate system on described first display screen;
Relation determination unit, for determining the corresponding relation of described first output resolution ratio and described second output resolution ratio, when described first output resolution ratio has the first corresponding relation with described second output resolution ratio, trigger the first acquiring unit, when described first output resolution ratio has the second corresponding relation with described second output resolution ratio, trigger second acquisition unit;
First acquiring unit, for obtaining the second coordinate in the first way based on described first coordinate;
Second acquisition unit, for obtaining the second coordinate in a second manner based on described first coordinate;
Wherein, described second coordinate is corresponding with default second coordinate system on described second display screen;
Instruction execution unit, for performing operational order according to described second coordinate.
Described device, it is preferred that described first corresponding relation is: in described first output resolution ratio the first ratio value between lateral resolution with longitudinal resolution and in described second output resolution ratio the second ratio value between lateral resolution and longitudinal resolution identical;
Accordingly, described first acquiring unit includes:
First abscissa obtains subelement, for being multiplied by the first ratio of the lateral resolution of described second output resolution ratio and the lateral resolution of described first output resolution ratio with the abscissa in described first coordinate, obtains the abscissa in described second coordinate;
First vertical coordinate obtains subelement, for being multiplied by the second ratio of the longitudinal resolution of described second output resolution ratio and the longitudinal resolution of described first output resolution ratio with the vertical coordinate in described first coordinate, obtains the vertical coordinate in described second coordinate.
Described device, it is preferred that described second corresponding relation is: described first ratio value is more than or less than described second ratio value;
Accordingly, described second acquisition unit includes:
Subelement is determined in region, for according to the second corresponding relation, determining the second viewing area on described first display screen, described second viewing area forms whole viewing areas of described first display screen with the first viewing area of the first content of the second output resolution ratio on the described second display screen of display;
Coordinate obtains subelement, for according to described second viewing area, obtaining second coordinate corresponding with described first coordinate.
Described device, preferably, described second corresponding relation is: described first ratio value is more than described second ratio value, and described second viewing area is transversely arranged to form whole viewing areas of described first display screen on described first display screen with described first viewing area;
Accordingly, described coordinate acquisition subelement includes:
First value determines module, for determining the laterally wide angle value of described second viewing area;
Second abscissa acquisition module, after the abscissa of described first coordinate is deducted described laterally wide angle value, then is multiplied by described first ratio, obtains the abscissa in described second coordinate;
Second vertical coordinate acquisition module, for the vertical coordinate of described first coordinate is multiplied by described second ratio, obtains the vertical coordinate in described second coordinate.
Described device, preferably, described second corresponding relation is: described first ratio value less than described second ratio value, described second viewing area and described first viewing area on described first display screen longitudinal arrangement to form whole viewing areas of described first display screen;
Accordingly, described coordinate acquisition subelement includes:
Second value determines module, for determining the longitudinally wide value of described second viewing area;
3rd abscissa acquisition module, for the abscissa in described first coordinate is multiplied by described first ratio, obtains the abscissa in described second coordinate;
3rd vertical coordinate acquisition module, for the vertical coordinate in described first coordinate is multiplied by described second ratio, obtains the vertical coordinate in described second coordinate.
Described device, it is preferred that show the first content on described second display screen on described first display screen;
Wherein, described first content is at least part of content showing content on described second display screen, and described second output resolution ratio is corresponding with the display resolution of described first content.
Present invention also offers a kind of electronic equipment, described electronic equipment includes the first display screen and second display screen, and described first display screen has the first output resolution ratio, and described second display screen has the second output resolution ratio, and described electronic equipment also includes:
Data processing equipment, for determining the impact point on described first display screen, obtain the first coordinate of described impact point, determine the corresponding relation of described first output resolution ratio and described second output resolution ratio, and when described first output resolution ratio has the first corresponding relation with described second resolution, the second coordinate is obtained in the first way based on described first coordinate, when there is the second corresponding relation at described first output resolution ratio with described second resolution, the second coordinate is obtained in a second manner based on described first coordinate, operational order is performed according to described second coordinate;
Wherein, described first coordinate is corresponding with default first coordinate system on described first display screen;Described second coordinate is corresponding with default second coordinate system on described second display screen.
From such scheme, a kind of data processing method provided by the invention, device and electronic equipment, by the corresponding relation of the output resolution ratio of two display screens is judged, and when corresponding relation difference, obtain the second coordinate that the first coordinate on the first display screen is corresponding on a second display in a different manner, the display screen display content avoiding different output resolution ratio there will be different display distributions, and cause that adopting coordinate of the prior art to obtain scheme cannot realize the situation of touch input and the accurate synchronization of display output, the display screen display content of different output resolution ratios is occurred in the acquisition scheme that coordinate is considered in different display distributions by the present invention, to improve the accuracy rate of the coordinate obtained, realize the accurate synchronization of touch input and display output, improve Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly that the embodiment of the present invention or technical scheme of the prior art, the accompanying drawing used required in embodiment or description of the prior art will be briefly described below, apparently, accompanying drawing in the following describes is only embodiments of the invention, for those of ordinary skill in the art, under the premise not paying creative work, it is also possible to obtain other accompanying drawing according to the accompanying drawing provided.
Fig. 1 is the flow chart of a kind of data processing method embodiment one provided by the invention;
The application example figure of Fig. 2 a to Fig. 2 f respectively embodiment of the present invention;
Fig. 3 is the partial process view of a kind of data processing method embodiment two provided by the invention;
Fig. 4 is the Another Application exemplary plot of the embodiment of the present invention;
Fig. 5 is the partial process view of a kind of data processing method embodiment three provided by the invention;
The another application example figure of Fig. 6 a and Fig. 6 b respectively embodiment of the present invention;
Fig. 7 is the partial process view of the embodiment of the present invention three;
Other application example figure of Fig. 8 a to Fig. 8 d respectively embodiment of the present invention;
Fig. 9 is the partial process view of the embodiment of the present invention three;
Other application example figure of Figure 10 a, Figure 10 b, Figure 11 a and Figure 11 b respectively embodiment of the present invention;
Figure 12 is the structural representation of a kind of data processing equipment embodiment provided by the invention;
Figure 13 is the part-structure schematic diagram of a kind of data processing equipment embodiment five provided by the invention;
Figure 14 is the part-structure schematic diagram of a kind of data processing equipment embodiment six provided by the invention;
Figure 15 is another part structural representation of the embodiment of the present invention six;
Figure 16 is the another part-structure schematic diagram of the embodiment of the present invention six;
Figure 17 is the structural representation of a kind of electronic equipment embodiment seven provided by the invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
nullWith reference to Fig. 1,Flow chart for a kind of data processing method embodiment one provided by the invention,Wherein,Described method is applied in electronic equipment,Described electronic equipment can be the mobile phone with the first display screen and second display screen、The terminals such as pad,Here the first display screen and the display screen that described second display screen can be different display structure,It can also be mutually isostructural display screen,Such as,Described first display screen and described second display screen can be all LCDs,Or described first display screen is the projection screen of mobile phone,Described second display screen is the capacitance plate of mobile phone,As shown in Fig. 2 a and Fig. 2 b,In fig. 2 a,Described electronic equipment is in the pattern of delivering directly,That is,The described first display screen s2 being on metope or curtain is parallel with the described second display screen s1 each place plane on the electronic equipment being in desktop or less parallel,First content on described second display screen is projected on described first display screen and exports;In figure 2b, described electronic equipment is in oblique throwing pattern, that is, the described first display screen s2 being in desktop is vertical with the described second display screen s1 each place plane being in desktop or near normal, and the first content on described second display screen is projected on described first display screen and exports.
It should be noted that, described first display screen and described second display screen have respective output resolution ratio, described first display screen has the first output resolution ratio, and described second display screen has the second output resolution ratio, and described first output resolution ratio can be the same or different.
In the present embodiment, described method may comprise steps of realization:
Step 101: determine the impact point on described first display screen.
Wherein, described impact point it is to be understood that when user operation body is operated clicked or sliding on described first display screen as described in operation point on the first display screen, as illustrated in fig. 2 c.
Step 102: obtain the first coordinate of described impact point.
Wherein, described first coordinate is corresponding with default first coordinate system on described first display screen.It is to say, as shown in fig. 2d, with the point in the upper left corner of described first display screen for initial point, being to the right transverse axis, the coordinate system for the longitudinal axis is benchmark downwards, and the pixel coordinate of this impact point is designated as the first coordinate, and its abscissa is xp, its vertical coordinate is yp
It should be noted that described impact point is the point on described first display screen with effective first content, described first coordinate is the point coordinates having on described first display screen and effectively showing pixel.
Step 103: determine the corresponding relation of described first output resolution ratio and described second output resolution ratio, when described first output resolution ratio has the first corresponding relation with described second output resolution ratio, perform step 104, when described first output resolution ratio has the second corresponding relation with described second output resolution ratio, perform step 105.
Such as, when described first output resolution ratio is 800*600, described second output resolution ratio is 1280*720;Or, when described first output resolution ratio is 800*600, described second output resolution ratio is 800*600;Or, when described first output resolution ratio is 1280*720, described second output resolution ratio is 1280*720;Or, when described first output resolution ratio is 1280*720, described second output resolution ratio is 800*600 etc., described first output resolution ratio is consistent or inconsistent with described second output resolution ratio respective transverse and longitudinal resolution ratio so that described first output resolution ratio has the first corresponding relation or second corresponding with described second output resolution ratio.
Step 104: obtain the second coordinate in the first way based on described first coordinate.
Step 105: obtain the second coordinate in a second manner based on described first coordinate.
Wherein, described second coordinate is corresponding with default second coordinate system on described second display screen, that is, as shown in figure 2e, with the point in the upper left corner of described second display screen for initial point, being to the right transverse axis, the coordinate system for the longitudinal axis is benchmark downwards, the abscissa of this second coordinate is x, and its vertical coordinate is y.And described second coordinate is corresponding to described first coordinate, it is possible to understand that for: the pixel coordinate of the initial point on described second display screen corresponding to impact point that described first coordinate is corresponding on described first display screen is described second coordinate, as shown in Fig. 2 f.
Realize in process at the present embodiment, it is possible to because described first output resolution ratio is different from the corresponding relation of described second output resolution ratio, carry out the acquisition of the second coordinate on second display screen in a different manner.
Step 106: perform operational order according to described second coordinate.
Wherein, described operational order may be used for default display mode if the display mode of red or visible marking is to point corresponding to the second coordinate as described on second display screen as described in showing;Described operational order can be used for carrying out corresponding application according to described second coordinate and starts or screen locking, etc..
From such scheme, a kind of data processing method embodiment one provided by the invention, by the corresponding relation of the output resolution ratio of two display screens is judged, and when corresponding relation difference, obtain the second coordinate that the first coordinate on the first display screen is corresponding on a second display in a different manner, first content on the display screen of different output resolution ratio is avoided to there will be different display distributions, and cause that adopting coordinate of the prior art to obtain scheme cannot realize the situation of touch input and the accurate synchronization of display output, the display screen first content of different output resolution ratios is occurred in the acquisition scheme that coordinate is considered in different display distributions by the present embodiment, to improve the accuracy rate of the coordinate obtained, realize the accurate synchronization of touch input and display output, improve Consumer's Experience.
In the present invention, described first corresponding relation can be: in described first output resolution ratio the first ratio value between lateral resolution with longitudinal resolution and in described second output resolution ratio the second ratio value between lateral resolution and longitudinal resolution identical.Such as, when described first output resolution ratio is 800*600, described second output resolution ratio is 800*600;Or, when described first output resolution ratio is 1280*720, described second output resolution ratio is 1280*720;Or, when described first output resolution ratio is 800*600, described second output resolution ratio is 960*720;Or, when described first output resolution ratio is 1280*720, described second output resolution ratio is 800*450, etc., now, in described first output resolution ratio, the second ratio value between the first ratio value and the transverse and longitudinal resolution in described second output resolution ratio between transverse and longitudinal resolution is identical, it is to say, the relation of described first output resolution ratio and described second output resolution ratio respective transverse and longitudinal resolution obtains the transverse and longitudinal resolution of described first output resolution ratio it is to be understood that the transverse and longitudinal resolution of described second output resolution ratio carries out the convergent-divergent of equal proportion respectively.
The first corresponding relation based on aforementioned first output resolution ratio Yu described second output resolution ratio, with reference to Fig. 3, for the flowchart of step 104 described in a kind of data processing method embodiment two provided by the invention, wherein, described step 104 may comprise steps of realization:
Step 141: be multiplied by the first ratio of the lateral resolution of described second output resolution ratio and the lateral resolution of described first output resolution ratio with the abscissa in described first coordinate, obtain the abscissa in described second coordinate.
Step 142: be multiplied by the second ratio of the longitudinal resolution of described second output resolution ratio and the longitudinal resolution of described first output resolution ratio with the vertical coordinate in described first coordinate, obtain the vertical coordinate in described second coordinate.
Wherein, in the present embodiment, due to described first output resolution ratio and the first corresponding relation of described second output resolution ratio: in described first output resolution ratio the first ratio value between lateral resolution and longitudinal resolution and in described second output resolution ratio the second ratio value between lateral resolution and longitudinal resolution identical, now, on described second display screen, the first content of the second output resolution ratio is the display effect being full of screen on described first display screen, as shown in Figure 4.
Such as, when described first output resolution ratio is 800*600, described second output resolution ratio is 800*600, and described first ratio is 1, and described second ratio is 1, and now the abscissa x of described second coordinate is the abscissa x of described first coordinatepBeing multiplied by 1 to obtain, the vertical coordinate y of described second coordinate is the vertical coordinate y of described first coordinatepIt is multiplied by 1 to obtain;For another example, when described first output resolution ratio is 800*600, described second output resolution ratio is 960*720, and described first ratio is: 1.2, and described second ratio is 1.2, and now, the abscissa x of described second coordinate is the abscissa x of described first coordinatepBeing multiplied by 1.2 to obtain, the vertical coordinate y of described second coordinate is the vertical coordinate y of described first coordinatepIt is multiplied by 1.2 to obtain, etc..
In the present invention, described second corresponding relation can be: described first ratio value is more than or less than described second ratio value, it is to say, in described first output resolution ratio the first ratio value between lateral resolution and longitudinal resolution and in described second output resolution ratio the second ratio value between lateral resolution and longitudinal resolution differ.Such as, when described first output resolution ratio is 800*600, described second output resolution ratio is 1280*720;Or, when described first output resolution ratio is 1280*720, described second output resolution ratio is 800*600;Or, when described first output resolution ratio is 600*800, described second output resolution ratio is 800*600 or 1280*720;Or, when described first output resolution ratio is 720*1280, described second output resolution ratio is 800*600 or 1280*720, etc., it is to say, the relation of described first output resolution ratio and described second output resolution ratio respective transverse and longitudinal resolution obtains the transverse and longitudinal resolution of described first output resolution ratio it is to be understood that the transverse and longitudinal resolution of described second output resolution ratio carries out the convergent-divergent of different proportion respectively.
The second corresponding relation based on aforementioned first output resolution ratio Yu described second output resolution ratio, with reference to Fig. 5, for the flowchart of step 105 described in a kind of data processing method embodiment three provided by the invention, wherein, described step 105 may comprise steps of realization:
Step 151: according to the second corresponding relation, it is determined that the second viewing area on described first display screen.
Wherein, described second viewing area forms whole viewing areas of described first display screen with the first viewing area of the first content of the second output resolution ratio on the described second display screen of display.That is, when described first viewing area shows the first content carrying out output display on described second display screen with the second output resolution ratio, described first viewing area is not the whole viewing areas on described first display screen, described first content is not full of whole viewing areas of described first display screen, thus, having the second viewing area being different from described first viewing area on described first display screen, this second viewing area is inactive area, such as black surround or white space etc..
Step 152: according to described second viewing area, obtain second coordinate corresponding with described first coordinate.
Wherein, in the present embodiment, due to described first output resolution ratio and the second corresponding relation of described second output resolution ratio: in described first output resolution ratio the first ratio value between lateral resolution and longitudinal resolution and in described second output resolution ratio the second ratio value between lateral resolution and longitudinal resolution different, namely described first ratio value is more than or less than described second ratio value, now, on described second display screen, the first content of the second output resolution ratio has the display effect of the invalid viewing area of black surround or blank on described first display screen for the lower edges of described first display screen or left and right edges, as shown in Fig. 6 a and Fig. 6 b.
Such as, when described first output resolution ratio is 800*600, described second output resolution ratio is 1280*720;Or, when described first output resolution ratio is 600*800, described second output resolution ratio is 800*600 or 1280*720;Or, when described first output resolution ratio is 720*1280, described second output resolution ratio is 800*600 or 1280*720, etc., now, described first ratio value is more than described second ratio value, when the first content of the second output resolution ratio of second display screen described in the first display screen display of described first output resolution ratio, the right and left on described first display screen all there will be second viewing area, this the second viewing area can be understood as the inactive area of black surround or blank, now two described second viewing areas and described first viewing area form whole viewing areas of described first display screen, as shown in FIG. 6 a.
For another example, when described first output resolution ratio is 1280*720, described second output resolution ratio is 800*600, now described first ratio value is less than described second ratio value, when the first content of the second output resolution ratio of second display screen described in the first display screen display of described first output resolution ratio, the both sides up and down of described first display screen all there will be second viewing area, this the second viewing area can be understood as the inactive area of black surround or blank, now two described second viewing areas and described first viewing area form whole viewing areas of described first display screen, as shown in Figure 6b.
In the present embodiment, second coordinate corresponding with described first coordinate is obtained based on aforesaid second viewing area layout on described first display screen.
It should be noted that, in the implementing of the present embodiment, need effectiveness or the legitimacy of described first coordinate are judged, that is, after determining and obtaining the second viewing area, need to judge whether described first coordinate is in this second viewing area, if described first coordinate is the point coordinates in described second viewing area, illustrate that the impact point that described first coordinate is corresponding is the operation point that user clicks in the inactive area of black surround or blank, that is, the any point of the effective coverage of first content on second display screen described in position that user clicks non-corresponding, now, terminate carrying into execution a plan in the present embodiment, without the second coordinate that described first coordinate is corresponding is obtained, because now this first coordinate is invalid, second coordinate of its correspondence is non-existent.
Concrete, based on previous embodiment, in the acquisition process of described second coordinate, it is possible to obtain second coordinate corresponding with described first coordinate because of described first ratio value and described second ratio value magnitude relationship by different modes:
Wherein, described second corresponding relation can be: described first ratio value is more than described second ratio value, now, as shown in FIG. 6 a, the first content of the second output resolution ratio on described second display screen the first viewing area on described first display screen shows, not it is full of whole viewing areas of described first display screen, the left and right sides of described first display screen has second viewing area, that is: two the second viewing areas and described first viewing area are transversely arranged to form and to take whole viewing areas of described first display screen on described first display screen, now, with reference to Fig. 7, flow chart is implemented for step 152 described in the present embodiment, wherein, described step 152 may comprise steps of:
Step 701: determine the laterally wide angle value of described second viewing area.
As shown in figure 8 a, determine the laterally wide angle value x1 of each described second viewing area, here laterally wide angle value x1 is the laterally wide angle value of the pixel of described second viewing area, before obtaining the laterally wide angle value x1 of this pixel, it is necessary to obtain the screen width value D of described second viewing area on this first display screen.
With described first output resolution ratio for 800*600, described second output resolution ratio is 720*1280 is example, can be understood as the example that now described electronic equipment carries out projecting on the projection screen of 800*600 with the state of perpendicular screen, as shown in figure 8b, now, D is: (800-720*600/1280 (namely 337.5))/2, it is: 231.25, accordingly, the laterally wide angle value x1 of pixel is 231.25* pixel wide 800/ screen width 800, is 231.25.
Or, with described first output resolution ratio for 1280*720, described second output resolution ratio is 720*1280 is example, it is possible to understand that carry out the example projecting on the projection screen of 1280*720 with the state of perpendicular screen for now described electronic equipment, as shown in fig. 8 c, now, D is: (1280-720*720/1280 (namely 405))/2, is: 437.5, accordingly, the laterally wide angle value x1 of pixel is 437.5* pixel wide 1280/ screen width 1280, is 437.5.
Or, with described first output resolution ratio for 1280*720, described second output resolution ratio is 800*600 is example, it is possible to understand that carry out the example projecting on the projection screen of 1280*720 with the state of transverse screen for now described electronic equipment, as shown in Fig. 8 d, now, D is: (1280-800*720/600 (namely 960))/2, is: 160, accordingly, the laterally wide angle value x1 of pixel is 160* pixel wide 1280/ screen width 1280, is 160.
Step 702: after the abscissa of described first coordinate is deducted described laterally wide angle value, then be multiplied by described first ratio, obtain the abscissa in described second coordinate.
Wherein, difference after the abscissa of described first coordinate is deducted described laterally wide angle value is multiplied by the meaning of described first ratio again and is in that: the coordinate system at described first coordinate place carried out to after angle value laterally wide described in right translation, carry out the convergent-divergent of laterally the first ratio, to be corresponded in described second coordinate system by described first coordinate.
With described first output resolution ratio for 800*600, described second output resolution ratio is 720*1280 is example, can be understood as the example that now described electronic equipment carries out projecting on the projection screen of 800*600 with the state of perpendicular screen, as shown in figure 8b, now, the laterally wide angle value x1 of pixel is 231.25, and now the abscissa of described second coordinate is: (xp-231.25) * 720/800, wherein, 720/800 is described first ratio.
Or, with described first output resolution ratio for 1280*720, described second output resolution ratio is 720*1280 is example, can be understood as the example that now described electronic equipment carries out projecting on the projection screen of 1280*720 with the state of perpendicular screen, as shown in fig. 8 c, now, the laterally wide angle value x1 of pixel is 437.5, and now the abscissa of described second coordinate is: (xp-437.5) * 720/1280, wherein, 720/1280 is described first ratio.
Or, with described first output resolution ratio for 1280*720, described second output resolution ratio is 800*600 is example, can be understood as the example that now described electronic equipment carries out projecting on the projection screen of 1280*720 with the state of transverse screen, as shown in Fig. 8 d, now, the laterally wide angle value x1 of pixel is 160, and now the abscissa of described second coordinate is: (xp-160) * 720/800, wherein, 800/1280 is described first ratio.
Step 703: the vertical coordinate of described first coordinate is multiplied by described second ratio, obtains the vertical coordinate in described second coordinate.
With described first output resolution ratio for 800*600, described second output resolution ratio is 720*1280 is example, it is possible to understand that carry out the example projecting on the projection screen of 800*600 with the state of perpendicular screen for now described electronic equipment, as shown in figure 8b, now, the vertical coordinate of described second coordinate is: yp* 1280/600, wherein, 1280/600 is described second ratio.
Or, with described first output resolution ratio for 1280*720, described second output resolution ratio is 720*1280 is example, can be understood as the example that now described electronic equipment carries out projecting on the projection screen of 1280*720 with the state of perpendicular screen, as shown in fig. 8 c, now, the vertical coordinate of described second coordinate is: yp* 1280/720, wherein, 1280/720 is described second ratio.
Or, with described first output resolution ratio for 1280*720, described second output resolution ratio is 800*600 is example, can be understood as the example that now described electronic equipment carries out projecting on the projection screen of 1280*720 with the state of transverse screen, as shown in Fig. 8 d, now, the vertical coordinate of described second coordinate is: yp* 600/720, wherein, 600/720 is described second ratio.
Additionally, described second corresponding relation can be: described first ratio value is less than described second ratio value, now, as shown in Figure 6b, the first content of the second output resolution ratio on described second display screen the first viewing area on described first display screen shows, not it is full of whole viewing areas of described first display screen, the both sides up and down of described first display screen have second viewing area, that is: two the second viewing areas and described first viewing area on described first display screen longitudinal arrangement with composition the whole viewing areas taking described first display screen, now, with reference to Fig. 9, flow chart is implemented for step 152 described in the present embodiment, wherein, described step 152 may comprise steps of:
Step 901: determine the longitudinally wide value of described second viewing area.
As illustrated in fig. 10 a, determine the longitudinally wide value y1 of each described second viewing area, here longitudinally wide value y1 is the longitudinally wide value of the pixel of described second viewing area, before obtaining the longitudinally wide value y1 of this pixel, it is necessary to obtain the screen width value H of the second viewing area on this first display screen.
With described first output resolution ratio for 800*600, described second output resolution ratio is 1280*720 is example, can be understood as the example that now described electronic equipment carries out projecting on the projection screen of 800*600 with the state of transverse screen, as shown in fig. 10b, now, H is: (600-720*800/1280 (namely 450))/2, it is: 75, accordingly, the laterally wide angle value x1 of pixel is 75* pixel wide 600/ screen width 600, is 75.
Step 902: the abscissa in described first coordinate is multiplied by described first ratio, obtains the abscissa in described second coordinate.
With described first output resolution ratio for 800*600, described second output resolution ratio is 1280*720 is example, it is possible to understand that carry out the example projecting on the projection screen of 800*600 with the state of transverse screen for now described electronic equipment, as shown in fig. 10b, now, the abscissa of described second coordinate is: xp* 1280/800, wherein, 1280/800 is described first ratio.
Step 903: after the vertical coordinate in described first coordinate is deducted described longitudinally wide value, then be multiplied by described second ratio, obtain the vertical coordinate in described second coordinate.
Wherein, difference after the vertical coordinate of described first coordinate is deducted described longitudinally wide value is multiplied by the meaning of described second ratio again and is in that: after the coordinate system at described first coordinate place is carried out longitudinally wide value described in pan-down, carry out the convergent-divergent of longitudinally the second ratio, to be corresponded in described second coordinate system by described first coordinate.
With described first output resolution ratio for 800*600, described second output resolution ratio is 1280*720 is example, can be understood as the example that now described electronic equipment carries out projecting on the projection screen of 800*600 with the state of transverse screen, as shown in fig. 10b, now, the longitudinally wide value y1 of pixel is 75, and now the vertical coordinate of described second coordinate is: (yp-75) * 720/600, wherein, 720/600 is described second ratio.
Based on middle embodiment above, after the second coordinate obtained on described second display screen, it is also possible to the switching also needing to carry out horizontal/vertical screen, that is, if after its first content is projected to described first display screen and gets the second coordinate that the first coordinate is corresponding by described second display screen, after described second display screen is carried out roller blind action, needs carry out the switching of transverse and longitudinal coordinate to obtaining the second coordinate, assume described second coordinate: (x, y), the true coordinate after conversion is (xt, yt), then under the roller blind angle that second display screen is different, corresponding Coordinate Conversion mode is different, for described second output resolution ratio for 1280*720, as follows:
If indexing is 0, namely do not do roller blind action, then xt=x, yt=y;
If indexing is 90 degree, is namely turned 90 by transverse screen and turn 90 to transverse screen to perpendicular screen or by perpendicular screen, then xt=y, yt=x;
If indexing is 180 degree, namely by transverse screen turnback to transverse screen or by perpendicular screen turnback to perpendicular screen, then xt=1280-x, yt=720-y;
If indexing is 270 degree, is namely turned 270 by transverse screen and turn 270 to transverse screen to perpendicular screen or by perpendicular screen, then xt=720-y, yt=1280-x.
In practical implementations, described first display screen shows the first content on described second display screen, and described first content is at least part of content showing content on described second display screen, and the second output resolution ratio of described second display screen refers to the display resolution of described first content.When described first content is the full content showing content on described second display screen, the content of its all displays is projected on described first display screen by described second display screen, to realize mirror image pattern, in Figure 11 a, the content E (resolution 1280*720) on described second display screen is projected on described first display screen (resolution 800*600);When described first content is the partial content showing content on described second display screen, the content that its part shows is projected on described first display screen by described second display screen, to realize mode of extension, in Figure 11 b, content F (resolution 800*600) on described second display screen is projected on described first display screen (resolution 800*600), the content E on described second display screen is not projected on described first display screen.The scheme obtaining the second coordinate corresponding with the first coordinate on described first display screen on second display screen in the present embodiment is applicable under above two pattern, and the process of implementing is referred to content in above, no longer describes in detail herein.
nullWith reference to Figure 12,Structural representation for a kind of data processing equipment embodiment provided by the invention,Wherein,Described device is applied in electronic equipment,Described electronic equipment can be the mobile phone with the first display screen and second display screen、The terminals such as pad,Here the first display screen and the display screen that described second display screen can be different display structure,It can also be mutually isostructural display screen,Such as,Described first display screen and described second display screen can be all LCDs,Or described first display screen is the projection screen of mobile phone,Described second display screen is the capacitance plate of mobile phone,As shown in Fig. 2 a and Fig. 2 b,In fig. 2 a,Described electronic equipment is in the pattern of delivering directly,That is,The described first display screen s2 being on metope or curtain is parallel with the described second display screen s1 each place plane on the electronic equipment being in desktop or less parallel,First content on described second display screen is projected on described first display screen and exports;In figure 2b, described electronic equipment is in oblique throwing pattern, that is, the described first display screen s2 being in desktop is vertical with the described second display screen s1 each place plane being in desktop or near normal, and the first content on described second display screen is projected on described first display screen and exports.
It should be noted that, described first display screen and described second display screen have respective output resolution ratio, described first display screen has the first output resolution ratio, and described second display screen has the second output resolution ratio, and described first output resolution ratio can be the same or different.
In the present embodiment, described device can include following structure:
Target determination unit 1201, for determining the impact point on described first display screen.
Wherein, described impact point it is to be understood that when user operation body is operated clicked or sliding on described first display screen as described in operation point on the first display screen, as illustrated in fig. 2 c.
First coordinate acquiring unit 1202, for obtaining the first coordinate of described impact point, described first coordinate is corresponding with default first coordinate system on described first display screen.
Wherein, described first coordinate is corresponding with default first coordinate system on described first display screen.It is to say, as shown in fig. 2d, with the point in the upper left corner of described first display screen for initial point, being to the right transverse axis, the coordinate system for the longitudinal axis is benchmark downwards, and the pixel coordinate of this impact point is designated as the first coordinate, and its abscissa is xp, its vertical coordinate is yp
It should be noted that described impact point is the point on described first display screen with effective first content, described first coordinate is the point coordinates having on described first display screen and effectively showing pixel.
Relation determination unit 1203, for determining the corresponding relation of described first output resolution ratio and described second output resolution ratio, when described first output resolution ratio has the first corresponding relation with described second output resolution ratio, trigger the first acquiring unit 1204, when described first output resolution ratio has the second corresponding relation with described second output resolution ratio, trigger second acquisition unit 1205.
Such as, when described first output resolution ratio is 800*600, described second output resolution ratio is 1280*720;Or, when described first output resolution ratio is 800*600, described second output resolution ratio is 800*600;Or, when described first output resolution ratio is 1280*720, described second output resolution ratio is 1280*720;Or, when described first output resolution ratio is 1280*720, described second output resolution ratio is 800*600 etc., described first output resolution ratio is consistent or inconsistent with described second output resolution ratio respective transverse and longitudinal resolution ratio so that described first output resolution ratio has the first corresponding relation or second corresponding with described second output resolution ratio.
First acquiring unit 1204, for obtaining the second coordinate in the first way based on described first coordinate.
Second acquisition unit 1205, for obtaining the second coordinate in a second manner based on described first coordinate.
Wherein, described second coordinate is corresponding with default second coordinate system on described second display screen, that is, as shown in figure 2e, with the point in the upper left corner of described second display screen for initial point, being to the right transverse axis, the coordinate system for the longitudinal axis is benchmark downwards, the abscissa of this second coordinate is x, and its vertical coordinate is y.And described second coordinate is corresponding to described first coordinate, it is possible to understand that for: the pixel coordinate of the initial point on described second display screen corresponding to impact point that described first coordinate is corresponding on described first display screen is described second coordinate, as shown in Fig. 2 f.
Realize in process at the present embodiment, it is possible to because described first output resolution ratio is different from the corresponding relation of described second output resolution ratio, carry out the acquisition of the second coordinate on second display screen in a different manner.
Instruction execution unit 1206, for performing operational order according to described second coordinate.
Wherein, described operational order may be used for default display mode if the display mode of red or visible marking is to point corresponding to the second coordinate as described on second display screen as described in showing;Described operational order can be used for carrying out corresponding application according to described second coordinate and starts or screen locking, etc..
From such scheme, a kind of data processing equipment embodiment four provided by the invention, by the corresponding relation of the output resolution ratio of two display screens is judged, and when corresponding relation difference, obtain the second coordinate that the first coordinate on the first display screen is corresponding on a second display in a different manner, first content on the display screen of different output resolution ratio is avoided to there will be different display distributions, and cause that adopting coordinate of the prior art to obtain scheme cannot realize the situation of touch input and the accurate synchronization of display output, the display screen first content of different output resolution ratios is occurred in the acquisition scheme that coordinate is considered in different display distributions by the present embodiment, to improve the accuracy rate of the coordinate obtained, realize the accurate synchronization of touch input and display output, improve Consumer's Experience.
In the present invention, described first corresponding relation can be: in described first output resolution ratio the first ratio value between lateral resolution with longitudinal resolution and in described second output resolution ratio the second ratio value between lateral resolution and longitudinal resolution identical.Such as, when described first output resolution ratio is 800*600, described second output resolution ratio is 800*600;Or, when described first output resolution ratio is 1280*720, described second output resolution ratio is 1280*720;Or, when described first output resolution ratio is 800*600, described second output resolution ratio is 960*720;Or, when described first output resolution ratio is 1280*720, described second output resolution ratio is 800*450, etc., now, in described first output resolution ratio, the second ratio value between the first ratio value and the transverse and longitudinal resolution in described second output resolution ratio between transverse and longitudinal resolution is identical, it is to say, the relation of described first output resolution ratio and described second output resolution ratio respective transverse and longitudinal resolution obtains the transverse and longitudinal resolution of described first output resolution ratio it is to be understood that the transverse and longitudinal resolution of described second output resolution ratio carries out the convergent-divergent of equal proportion respectively.
The first corresponding relation based on aforementioned first output resolution ratio Yu described second output resolution ratio, with reference to Figure 13, structural representation for the first acquiring unit 1204 described in a kind of data processing equipment embodiment five provided by the invention, wherein, described first acquiring unit 1204 can include following structure:
First abscissa obtains subelement 1241, for being multiplied by the first ratio of the lateral resolution of described second output resolution ratio and the lateral resolution of described first output resolution ratio with the abscissa in described first coordinate, obtains the abscissa in described second coordinate.
First vertical coordinate obtains subelement 1242, for being multiplied by the second ratio of the longitudinal resolution of described second output resolution ratio and the longitudinal resolution of described first output resolution ratio with the vertical coordinate in described first coordinate, obtains the vertical coordinate in described second coordinate.
Wherein, in the present embodiment, due to described first output resolution ratio and the first corresponding relation of described second output resolution ratio: in described first output resolution ratio the first ratio value between lateral resolution and longitudinal resolution and in described second output resolution ratio the second ratio value between lateral resolution and longitudinal resolution identical, now, on described second display screen, the first content of the second output resolution ratio is the display effect being full of screen on described first display screen, as shown in Figure 4.
Such as, when described first output resolution ratio is 800*600, described second output resolution ratio is 800*600, and described first ratio is 1, and described second ratio is 1, and now the abscissa x of described second coordinate is the abscissa x of described first coordinatepBeing multiplied by 1 to obtain, the vertical coordinate y of described second coordinate is the vertical coordinate y of described first coordinatepIt is multiplied by 1 to obtain;For another example, when described first output resolution ratio is 800*600, described second output resolution ratio is 960*720, and described first ratio is: 1.2, and described second ratio is 1.2, and now, the abscissa x of described second coordinate is the abscissa x of described first coordinatepBeing multiplied by 1.2 to obtain, the vertical coordinate y of described second coordinate is the vertical coordinate y of described first coordinatepIt is multiplied by 1.2 to obtain, etc..
In the present invention, described second corresponding relation can be: described first ratio value is more than or less than described second ratio value, it is to say, in described first output resolution ratio the first ratio value between lateral resolution and longitudinal resolution and in described second output resolution ratio the second ratio value between lateral resolution and longitudinal resolution differ.Such as, when described first output resolution ratio is 800*600, described second output resolution ratio is 1280*720;Or, when described first output resolution ratio is 1280*720, described second output resolution ratio is 800*600;Or, when described first output resolution ratio is 600*800, described second output resolution ratio is 800*600 or 1280*720;Or, when described first output resolution ratio is 720*1280, described second output resolution ratio is 800*600 or 1280*720, etc., it is to say, the relation of described first output resolution ratio and described second output resolution ratio respective transverse and longitudinal resolution obtains the transverse and longitudinal resolution of described first output resolution ratio it is to be understood that the transverse and longitudinal resolution of described second output resolution ratio carries out the convergent-divergent of different proportion respectively.
The second corresponding relation based on aforementioned first output resolution ratio Yu described second output resolution ratio, with reference to Figure 14, structural representation for second acquisition unit 1205 described in a kind of data processing equipment embodiment six provided by the invention, wherein, described second acquisition unit 1205 can include following structure:
Subelement 1251 is determined in region, for according to the second corresponding relation, it is determined that the second viewing area on described first display screen.
Wherein, described second viewing area forms whole viewing areas of described first display screen with the first viewing area of the first content of the second output resolution ratio on the described second display screen of display.That is, when described first viewing area shows the first content carrying out output display on described second display screen with the second output resolution ratio, described first viewing area is not the whole viewing areas on described first display screen, described first content is not full of whole viewing areas of described first display screen, thus, having the second viewing area being different from described first viewing area on described first display screen, this second viewing area is inactive area, such as black surround or white space etc..
Coordinate obtains subelement 1252, for according to described second viewing area, obtaining second coordinate corresponding with described first coordinate.
Wherein, in the present embodiment, due to described first output resolution ratio and the second corresponding relation of described second output resolution ratio: in described first output resolution ratio the first ratio value between lateral resolution and longitudinal resolution and in described second output resolution ratio the second ratio value between lateral resolution and longitudinal resolution different, namely described first ratio value is more than or less than described second ratio value, now, on described second display screen, the first content of the second output resolution ratio has the display effect of the invalid viewing area of black surround or blank on described first display screen for the lower edges of described first display screen or left and right edges, as shown in Fig. 6 a and Fig. 6 b.
Such as, when described first output resolution ratio is 800*600, described second output resolution ratio is 1280*720;Or, when described first output resolution ratio is 600*800, described second output resolution ratio is 800*600 or 1280*720;Or, when described first output resolution ratio is 720*1280, described second output resolution ratio is 800*600 or 1280*720, etc., now, described first ratio value is more than described second ratio value, when the first content of the second output resolution ratio of second display screen described in the first display screen display of described first output resolution ratio, the right and left on described first display screen all there will be second viewing area, this the second viewing area can be understood as the inactive area of black surround or blank, now two described second viewing areas and described first viewing area form whole viewing areas of described first display screen, as shown in FIG. 6 a.
For another example, when described first output resolution ratio is 1280*720, described second output resolution ratio is 800*600, now described first ratio value is less than described second ratio value, when the first content of the second output resolution ratio of second display screen described in the first display screen display of described first output resolution ratio, the both sides up and down of described first display screen all there will be second viewing area, this the second viewing area can be understood as the inactive area of black surround or blank, now two described second viewing areas and described first viewing area form whole viewing areas of described first display screen, as shown in Figure 6b.
In the present embodiment, second coordinate corresponding with described first coordinate is obtained based on aforesaid second viewing area layout on described first display screen.
It should be noted that, in the implementing of the present embodiment, need effectiveness or the legitimacy of described first coordinate are judged, that is, after determining and obtaining the second viewing area, need to judge whether described first coordinate is in this second viewing area, if described first coordinate is the point coordinates in described second viewing area, illustrate that the impact point that described first coordinate is corresponding is the operation point that user clicks in the inactive area of black surround or blank, that is, the any point of the effective coverage of first content on second display screen described in position that user clicks non-corresponding, now, terminate carrying into execution a plan in the present embodiment, without the second coordinate that described first coordinate is corresponding is obtained, because now this first coordinate is invalid, second coordinate of its correspondence is non-existent.
Concrete, based on previous embodiment, in the acquisition process of described second coordinate, it is possible to obtain second coordinate corresponding with described first coordinate because of described first ratio value and described second ratio value magnitude relationship by different modes:
Wherein, described second corresponding relation can be: described first ratio value is more than described second ratio value, now, as shown in FIG. 6 a, the first content of the second output resolution ratio on described second display screen the first viewing area on described first display screen shows, not it is full of whole viewing areas of described first display screen, the left and right sides of described first display screen has second viewing area, that is: two the second viewing areas and described first viewing area are transversely arranged to form and to take whole viewing areas of described first display screen on described first display screen, now, with reference to Figure 15, the structural representation of subelement 1252 is obtained for coordinate described in the present embodiment, wherein, described coordinate obtains subelement 1252 can include following structure:
First value determines module 1501, for determining the laterally wide angle value of described second viewing area.
As shown in figure 8 a, determine the laterally wide angle value x1 of each described second viewing area, here laterally wide angle value x1 is the laterally wide angle value of the pixel of described second viewing area, before obtaining the laterally wide angle value x1 of this pixel, it is necessary to obtain the screen width value D of described second viewing area on this first display screen.
With described first output resolution ratio for 800*600, described second output resolution ratio is 720*1280 is example, can be understood as the example that now described electronic equipment carries out projecting on the projection screen of 800*600 with the state of perpendicular screen, as shown in figure 8b, now, D is: (800-720*600/1280)/2, it is: 231.25, accordingly, the laterally wide angle value x1 of pixel is 231.25* pixel wide 800/ screen width 800, is 231.25.
Or, with described first output resolution ratio for 1280*720, described second output resolution ratio is 720*1280 is example, it is possible to understand that carry out the example projecting on the projection screen of 1280*720 with the state of perpendicular screen for now described electronic equipment, as shown in fig. 8 c, now, D is: (1280-720*720/1280)/2, is: 437.5, accordingly, the laterally wide angle value x1 of pixel is 437.5* pixel wide 1280/ screen width 1280, is 437.5.
Or, with described first output resolution ratio for 1280*720, described second output resolution ratio is 800*600 is example, it is possible to understand that carry out the example projecting on the projection screen of 1280*720 with the state of transverse screen for now described electronic equipment, as shown in Fig. 8 d, now, D is: (1280-800*720/600)/2, is: 160, accordingly, the laterally wide angle value x1 of pixel is 160* pixel wide 1280/ screen width 1280, is 160.
Second abscissa acquisition module 1502, after the abscissa of described first coordinate is deducted described laterally wide angle value, then is multiplied by described first ratio, obtains the abscissa in described second coordinate.
Wherein, difference after the abscissa of described first coordinate is deducted described laterally wide angle value is multiplied by the meaning of described first ratio again and is in that: the coordinate system at described first coordinate place carried out to after angle value laterally wide described in right translation, carry out the convergent-divergent of laterally the first ratio, to be corresponded in described second coordinate system by described first coordinate.
With described first output resolution ratio for 800*600, described second output resolution ratio is 720*1280 is example, can be understood as the example that now described electronic equipment carries out projecting on the projection screen of 800*600 with the state of perpendicular screen, as shown in figure 8b, now, the laterally wide angle value x1 of pixel is 231.25, and now the abscissa of described second coordinate is: (xp-231.25) * 720/800, wherein, 720/800 is described first ratio.
Or, with described first output resolution ratio for 1280*720, described second output resolution ratio is 720*1280 is example, can be understood as the example that now described electronic equipment carries out projecting on the projection screen of 1280*720 with the state of perpendicular screen, as shown in fig. 8 c, now, the laterally wide angle value x1 of pixel is 437.5, and now the abscissa of described second coordinate is: (xp-437.5) * 720/1280, wherein, 720/1280 is described first ratio.
Or, with described first output resolution ratio for 1280*720, described second output resolution ratio is 800*600 is example, can be understood as the example that now described electronic equipment carries out projecting on the projection screen of 1280*720 with the state of transverse screen, as shown in Fig. 8 d, now, the laterally wide angle value x1 of pixel is 160, and now the abscissa of described second coordinate is: (xp-160) * 720/800, wherein, 800/1280 is described first ratio.
Second vertical coordinate acquisition module 1503, for the vertical coordinate of described first coordinate is multiplied by described second ratio, obtains the vertical coordinate in described second coordinate.
With described first output resolution ratio for 800*600, described second output resolution ratio is 720*1280 is example, it is possible to understand that carry out the example projecting on the projection screen of 800*600 with the state of perpendicular screen for now described electronic equipment, as shown in figure 8b, now, the vertical coordinate of described second coordinate is: yp* 1280/600, wherein, 1280/600 is described second ratio.
Or, with described first output resolution ratio for 1280*720, described second output resolution ratio is 720*1280 is example, can be understood as the example that now described electronic equipment carries out projecting on the projection screen of 1280*720 with the state of perpendicular screen, as shown in fig. 8 c, now, the vertical coordinate of described second coordinate is: yp* 1280/720, wherein, 1280/720 is described second ratio.
Or, with described first output resolution ratio for 1280*720, described second output resolution ratio is 800*600 is example, can be understood as the example that now described electronic equipment carries out projecting on the projection screen of 1280*720 with the state of transverse screen, as shown in Fig. 8 d, now, the vertical coordinate of described second coordinate is: yp* 600/720, wherein, 600/720 is described second ratio.
Additionally, described second corresponding relation can be: described first ratio value is less than described second ratio value, now, as shown in Figure 6b, the first content of the second output resolution ratio on described second display screen the first viewing area on described first display screen shows, not it is full of whole viewing areas of described first display screen, the both sides up and down of described first display screen have second viewing area, that is: two the second viewing areas and described first viewing area on described first display screen longitudinal arrangement with composition the whole viewing areas taking described first display screen, now, with reference to Figure 16, the structural representation of subelement 1252 is obtained for coordinate described in the present embodiment, wherein, described coordinate obtains subelement 1252 can include following structure:
Second value determines module 1601, for determining the longitudinally wide value of described second viewing area.
As illustrated in fig. 10 a, determine the longitudinally wide value y1 of each described second viewing area, here longitudinally wide value y1 is the longitudinally wide value of the pixel of described second viewing area, before obtaining the longitudinally wide value y1 of this pixel, it is necessary to obtain the screen width value H of the second viewing area on this first display screen.
With described first output resolution ratio for 800*600, described second output resolution ratio is 1280*720 is example, can be understood as the example that now described electronic equipment carries out projecting on the projection screen of 800*600 with the state of transverse screen, as shown in fig. 10b, now, H is: (600-720*800/1280)/2, it is: 75, accordingly, the laterally wide angle value x1 of pixel is 75* pixel wide 600/ screen width 600, is 75.
3rd abscissa acquisition module 1602, for the abscissa in described first coordinate is multiplied by described first ratio, obtains the abscissa in described second coordinate.
With described first output resolution ratio for 800*600, described second output resolution ratio is 1280*720 is example, it is possible to understand that carry out the example projecting on the projection screen of 800*600 with the state of transverse screen for now described electronic equipment, as shown in fig. 10b, now, the abscissa of described second coordinate is: xp* 1280/800, wherein, 1280/800 is described first ratio.
3rd vertical coordinate acquisition module 1603, for the vertical coordinate in described first coordinate is multiplied by described second ratio, obtains the vertical coordinate in described second coordinate.
With described first output resolution ratio for 800*600, described second output resolution ratio is 1280*720 is example, can be understood as the example that now described electronic equipment carries out projecting on the projection screen of 800*600 with the state of transverse screen, as shown in fig. 10b, now, the longitudinally wide value y1 of pixel is 75, and now the vertical coordinate of described second coordinate is: (yp-75) * 720/600, wherein, 720/600 is described second ratio.
Based on middle embodiment above, after the second coordinate obtained on described second display screen, it is also possible to the switching also needing to carry out horizontal/vertical screen, that is, if after its first content is projected to described first display screen and gets the second coordinate that the first coordinate is corresponding by described second display screen, after described second display screen is carried out roller blind action, needs carry out the switching of transverse and longitudinal coordinate to obtaining the second coordinate, assume described second coordinate: (x, y), the true coordinate after conversion is (xt, yt), then under the roller blind angle that second display screen is different, corresponding Coordinate Conversion mode is different, for described second output resolution ratio for 1280*720, as follows:
If indexing is 0, namely do not do roller blind action, then xt=x, yt=y;
If indexing is 90 degree, is namely turned 90 by transverse screen and turn 90 to transverse screen to perpendicular screen or by perpendicular screen, then xt=y, yt=x;
If indexing is 180 degree, namely by transverse screen turnback to transverse screen or by perpendicular screen turnback to perpendicular screen, then xt=1280-x, yt=720-y;
If indexing is 270 degree, is namely turned 270 by transverse screen and turn 270 to transverse screen to perpendicular screen or by perpendicular screen, then xt=720-y, yt=1280-x.
In practical implementations, described first display screen shows the first content on described second display screen, and described first content is at least part of content showing content on described second display screen, and the second output resolution ratio of described second display screen refers to the display resolution of described first content.When described first content is the full content showing content on described second display screen, the content of its all displays is projected on described first display screen by described second display screen, to realize mirror image pattern, in Figure 11 a, the content E (resolution 1280*720) on described second display screen is projected on described first display screen (resolution 800*600);When described first content is the partial content showing content on described second display screen, the content that its part shows is projected on described first display screen by described second display screen, to realize mode of extension, in Figure 11 b, content F (resolution 800*600) on described second display screen is projected on described first display screen (resolution 800*600), the content E on described second display screen is not projected on described first display screen.The scheme obtaining the second coordinate corresponding with the first coordinate on described first display screen on second display screen in the present embodiment is applicable under above two pattern, and the process of implementing is referred to content in above, no longer describes in detail herein.
With reference to Figure 17, structural representation for a kind of electronic equipment embodiment seven provided by the invention, wherein, described electronic equipment includes the first display screen 1701 and second display screen 1702, described first display screen 1701 has the first output resolution ratio, described second display screen 1702 has the second output resolution ratio, and described electronic equipment also includes:
Data processing equipment 1703, for determining the impact point on described first display screen, obtain the first coordinate of described impact point, determine the corresponding relation of described first output resolution ratio and described second output resolution ratio, and when described first output resolution ratio has the first corresponding relation with described second resolution, the second coordinate is obtained in the first way based on described first coordinate, when there is the second corresponding relation at described first output resolution ratio with described second resolution, the second coordinate is obtained in a second manner based on described first coordinate, operational order is performed according to described second coordinate;
Wherein, described first coordinate is corresponding with default first coordinate system on described first display screen;Described second coordinate is corresponding with default second coordinate system on described second display screen.
Wherein, described data processing equipment 1703 realize structure and corresponding contents that operating scheme is referred in above in each embodiment, no longer describe in detail herein.
It should be noted that the device that processes in the present embodiment can be the execution program module being arranged in the processor in described electronic equipment, to realize two switching controls between display device and input equipment in described electronic equipment.
It should be noted that each embodiment in this specification all adopts the mode gone forward one by one to describe, what each embodiment stressed is the difference with other embodiments, between each embodiment identical similar part mutually referring to.
Finally, it can further be stated that, in this article, term " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, so that include the article of a series of key element or equipment not only includes those key elements, but also include other key elements being not expressly set out, or also include the key element intrinsic for this article or equipment.When there is no more restriction, statement " including ... " key element limited, it is not excluded that there is also other identical element in the article including described key element or equipment.
Above a kind of data processing method provided by the invention, device and electronic equipment are described in detail, principles of the invention and embodiment are set forth by specific case used herein, and the explanation of above example is only intended to help to understand the core concept of the present invention;Simultaneously for one of ordinary skill in the art, according to the thought of the application, all will change in specific embodiments and applications, in sum, this specification content should not be construed as limitation of the present invention.

Claims (13)

1. a data processing method, is applied to electronic equipment, and described electronic equipment includes the first display screen and second display screen, and described first display screen has the first output resolution ratio, and described second display screen has the second output resolution ratio, and described method includes:
Determine the impact point on described first display screen;
Obtaining the first coordinate of described impact point, described first coordinate is corresponding with default first coordinate system on described first display screen;
Determine the corresponding relation of described first output resolution ratio and described second output resolution ratio;
When described first output resolution ratio has the first corresponding relation with described second resolution, obtain the second coordinate in the first way based on described first coordinate;
When described first output resolution ratio has the second corresponding relation with described second resolution, obtain the second coordinate in a second manner based on described first coordinate;
Wherein, described second coordinate is corresponding with default second coordinate system on described second display screen;
Operational order is performed according to described second coordinate.
2. method according to claim 1, it is characterized in that, described first corresponding relation is: in described first output resolution ratio the first ratio value between lateral resolution with longitudinal resolution and in described second output resolution ratio the second ratio value between lateral resolution and longitudinal resolution identical;
Accordingly, described obtain the second coordinate in the first way based on described first coordinate, including:
It is multiplied by the first ratio of the lateral resolution of described second output resolution ratio and the lateral resolution of described first output resolution ratio with the abscissa in described first coordinate, obtains the abscissa in described second coordinate;
It is multiplied by the second ratio of the longitudinal resolution of described second output resolution ratio and the longitudinal resolution of described first output resolution ratio with the vertical coordinate in described first coordinate, obtains the vertical coordinate in described second coordinate.
3. method according to claim 2, it is characterised in that described second corresponding relation is: described first ratio value is more than or less than described second ratio value;
Accordingly, described obtain the second coordinate in a second manner based on described first coordinate, including:
According to the second corresponding relation, determining the second viewing area on described first display screen, described second viewing area forms whole viewing areas of described first display screen with the first viewing area of the first content of the second output resolution ratio on the described second display screen of display;
According to described second viewing area, obtain second coordinate corresponding with described first coordinate.
4. method according to claim 3, it is characterized in that, described second corresponding relation is: described first ratio value is more than described second ratio value, and described second viewing area is transversely arranged to form whole viewing areas of described first display screen on described first display screen with described first viewing area;
Accordingly, described obtain second coordinate corresponding with described first coordinate according to described second viewing area, including:
Determine the laterally wide angle value of described second viewing area;
After the abscissa of described first coordinate is deducted described laterally wide angle value, then it is multiplied by described first ratio, obtains the abscissa in described second coordinate;
The vertical coordinate of described first coordinate is multiplied by described second ratio, obtains the vertical coordinate in described second coordinate.
5. method according to claim 3, it is characterized in that, described second corresponding relation is: described first ratio value less than described second ratio value, described second viewing area and described first viewing area on described first display screen longitudinal arrangement to form whole viewing areas of described first display screen;
Accordingly, described obtain second coordinate corresponding with described first coordinate according to described second viewing area, including:
Determine the longitudinally wide value of described second viewing area;
Abscissa in described first coordinate is multiplied by described first ratio, obtains the abscissa in described second coordinate;
After vertical coordinate in described first coordinate is deducted described longitudinally wide value, then it is multiplied by described second ratio, obtains the vertical coordinate in described second coordinate.
6. method according to claim 1, it is characterised in that show the first content on described second display screen on described first display screen;
Wherein, described first content is at least part of content showing content on described second display screen, and described second output resolution ratio is corresponding with the display resolution of described first content.
7. a data processing equipment, is applied to electronic equipment, and described electronic equipment includes the first display screen and second display screen, and described first display screen has the first output resolution ratio, and described second display screen has the second output resolution ratio, and described device includes:
Target determination unit, for determining the impact point on described first display screen;
First coordinate acquiring unit, for obtaining the first coordinate of described impact point, described first coordinate is corresponding with default first coordinate system on described first display screen;
Relation determination unit, for determining the corresponding relation of described first output resolution ratio and described second output resolution ratio, when described first output resolution ratio has the first corresponding relation with described second output resolution ratio, trigger the first acquiring unit, when described first output resolution ratio has the second corresponding relation with described second output resolution ratio, trigger second acquisition unit;
First acquiring unit, for obtaining the second coordinate in the first way based on described first coordinate;
Second acquisition unit, for obtaining the second coordinate in a second manner based on described first coordinate;
Wherein, described second coordinate is corresponding with default second coordinate system on described second display screen;
Instruction execution unit, for performing operational order according to described second coordinate.
8. device according to claim 7, it is characterized in that, described first corresponding relation is: in described first output resolution ratio the first ratio value between lateral resolution with longitudinal resolution and in described second output resolution ratio the second ratio value between lateral resolution and longitudinal resolution identical;
Accordingly, described first acquiring unit includes:
First abscissa obtains subelement, for being multiplied by the first ratio of the lateral resolution of described second output resolution ratio and the lateral resolution of described first output resolution ratio with the abscissa in described first coordinate, obtains the abscissa in described second coordinate;
First vertical coordinate obtains subelement, for being multiplied by the second ratio of the longitudinal resolution of described second output resolution ratio and the longitudinal resolution of described first output resolution ratio with the vertical coordinate in described first coordinate, obtains the vertical coordinate in described second coordinate.
9. device according to claim 8, it is characterised in that described second corresponding relation is: described first ratio value is more than or less than described second ratio value;
Accordingly, described second acquisition unit includes:
Subelement is determined in region, for according to the second corresponding relation, determining the second viewing area on described first display screen, described second viewing area forms whole viewing areas of described first display screen with the first viewing area of the first content of the second output resolution ratio on the described second display screen of display;
Coordinate obtains subelement, for according to described second viewing area, obtaining second coordinate corresponding with described first coordinate.
10. device according to claim 9, it is characterized in that, described second corresponding relation is: described first ratio value is more than described second ratio value, and described second viewing area is transversely arranged to form whole viewing areas of described first display screen on described first display screen with described first viewing area;
Accordingly, described coordinate acquisition subelement includes:
First value determines module, for determining the laterally wide angle value of described second viewing area;
Second abscissa acquisition module, after the abscissa of described first coordinate is deducted described laterally wide angle value, then is multiplied by described first ratio, obtains the abscissa in described second coordinate;
Second vertical coordinate acquisition module, for the vertical coordinate of described first coordinate is multiplied by described second ratio, obtains the vertical coordinate in described second coordinate.
11. device according to claim 9, it is characterized in that, described second corresponding relation is: described first ratio value less than described second ratio value, described second viewing area and described first viewing area on described first display screen longitudinal arrangement to form whole viewing areas of described first display screen;
Accordingly, described coordinate acquisition subelement includes:
Second value determines module, for determining the longitudinally wide value of described second viewing area;
3rd abscissa acquisition module, for the abscissa in described first coordinate is multiplied by described first ratio, obtains the abscissa in described second coordinate;
3rd vertical coordinate acquisition module, for the vertical coordinate in described first coordinate is multiplied by described second ratio, obtains the vertical coordinate in described second coordinate.
12. device according to claim 7, it is characterised in that show the first content on described second display screen on described first display screen;
Wherein, described first content is at least part of content showing content on described second display screen, and described second output resolution ratio is corresponding with the display resolution of described first content.
13. an electronic equipment, described electronic equipment includes the first display screen and second display screen, and described first display screen has the first output resolution ratio, and described second display screen has the second output resolution ratio, and described electronic equipment also includes:
Data processing equipment, for determining the impact point on described first display screen, obtain the first coordinate of described impact point, determine the corresponding relation of described first output resolution ratio and described second output resolution ratio, and when described first output resolution ratio has the first corresponding relation with described second resolution, the second coordinate is obtained in the first way based on described first coordinate, when there is the second corresponding relation at described first output resolution ratio with described second resolution, the second coordinate is obtained in a second manner based on described first coordinate, operational order is performed according to described second coordinate;
Wherein, described first coordinate is corresponding with default first coordinate system on described first display screen;Described second coordinate is corresponding with default second coordinate system on described second display screen.
CN201410831968.9A 2014-12-26 2014-12-26 Data processing method and electronic device Pending CN105786235A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410831968.9A CN105786235A (en) 2014-12-26 2014-12-26 Data processing method and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410831968.9A CN105786235A (en) 2014-12-26 2014-12-26 Data processing method and electronic device

Publications (1)

Publication Number Publication Date
CN105786235A true CN105786235A (en) 2016-07-20

Family

ID=56389055

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410831968.9A Pending CN105786235A (en) 2014-12-26 2014-12-26 Data processing method and electronic device

Country Status (1)

Country Link
CN (1) CN105786235A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108073594A (en) * 2016-11-10 2018-05-25 北京国双科技有限公司 A kind of method and device for generating thermodynamic chart
CN108345418A (en) * 2017-01-22 2018-07-31 北京新唐思创教育科技有限公司 The display methods and its device of interactive objects in a kind of online teaching
CN109753171A (en) * 2017-11-03 2019-05-14 深圳市鸿合创新信息技术有限责任公司 The bearing calibration of touch-control coordinate under a kind of mirror image display pattern
CN114115633A (en) * 2020-08-25 2022-03-01 广州视源电子科技股份有限公司 Touch method and device of single-touch screen multi-touch receiving equipment and computer equipment
CN114578993A (en) * 2022-03-09 2022-06-03 杭州雾联科技有限公司 Cloud equipment resolution self-adaption method, device and medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103180809A (en) * 2012-07-31 2013-06-26 华为终端有限公司 Screen-interface display method and terminal
CN103186018A (en) * 2011-12-27 2013-07-03 精工爱普生株式会社 Projector and method of controlling projector
JP2014078236A (en) * 2012-10-10 2014-05-01 Samsung Electronics Co Ltd Multi-display device and display control method of the same
CN104656944A (en) * 2013-11-18 2015-05-27 联想(北京)有限公司 Information processing method and electronic device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103186018A (en) * 2011-12-27 2013-07-03 精工爱普生株式会社 Projector and method of controlling projector
CN103180809A (en) * 2012-07-31 2013-06-26 华为终端有限公司 Screen-interface display method and terminal
JP2014078236A (en) * 2012-10-10 2014-05-01 Samsung Electronics Co Ltd Multi-display device and display control method of the same
CN104656944A (en) * 2013-11-18 2015-05-27 联想(北京)有限公司 Information processing method and electronic device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108073594A (en) * 2016-11-10 2018-05-25 北京国双科技有限公司 A kind of method and device for generating thermodynamic chart
CN108345418A (en) * 2017-01-22 2018-07-31 北京新唐思创教育科技有限公司 The display methods and its device of interactive objects in a kind of online teaching
CN108345418B (en) * 2017-01-22 2021-06-04 北京新唐思创教育科技有限公司 Interactive object display method and device in online teaching
CN109753171A (en) * 2017-11-03 2019-05-14 深圳市鸿合创新信息技术有限责任公司 The bearing calibration of touch-control coordinate under a kind of mirror image display pattern
CN114115633A (en) * 2020-08-25 2022-03-01 广州视源电子科技股份有限公司 Touch method and device of single-touch screen multi-touch receiving equipment and computer equipment
CN114578993A (en) * 2022-03-09 2022-06-03 杭州雾联科技有限公司 Cloud equipment resolution self-adaption method, device and medium

Similar Documents

Publication Publication Date Title
CN105786235A (en) Data processing method and electronic device
CN103593098B (en) The display device with integrated touch screen and the method driving this display device
CN102200857B (en) Touch signal scanning frequency determining method of touch panel
JP2009252230A (en) Capacitive touch control device and control method therefor
CN102760027B (en) A kind of display processing method, device and electronic equipment
JP6432409B2 (en) Touch panel control device and touch panel control program
CN103412720A (en) Method and device for processing touch-control input signals
CN112840291A (en) Touch display alignment
CN105430331A (en) Method and device for adjusting display direction of monitor image
JP2015207287A (en) video display system
CN105487804A (en) Control method and electronic device
CN106612423A (en) Touch control method and device for projection image
CN104166508B (en) A kind of touch-control implementation method and device
CN103164142B (en) The method of adjustment of a kind of screen touch point position of picture-in-picture interface and electronic equipment
CN104423829A (en) Information processing method and electronic equipment
CN103984478B (en) Dynamic icon displaying method and system
CN104820562A (en) Electronic equipment, image display method and device for the same
CN103605436B (en) Interaction projection location method and interaction projection device
US9146625B2 (en) Apparatus and method to detect coordinates in a penbased display device
US10521067B2 (en) Sensor-equipped display device, control device, and control method
CN112015320B (en) Electronic color matching device, color matching method, drawing system and drawing method
US20150007073A1 (en) Information processing apparatus
CN105630444A (en) Display method and electronic equipment
CN106961590A (en) Control method and electronic equipment
CN103677550A (en) Information processing method and electronic equipment

Legal Events

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

Application publication date: 20160720

RJ01 Rejection of invention patent application after publication