Embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Fig. 1 be the embodiment of the present invention provide based on the live method for previewing flow chart of desktop.Referring to Fig. 1, this embodiment comprises:
101, in the live process of desktop, when detect current live region adjusting operation time, to carrying out sectional drawing when front desktop, obtain desktop sectional drawing.
102,, according to this adjusting operation, obtain the live region after adjustment.
When 103, the size in the live region after this adjustment is greater than live transmission resolution, according to this desktop sectional drawing and this live transmission resolution, generate the preview image in the live region after this adjustment.
Wherein, the form that the size in the live region after this adjustment can pixel represents.For example,, when live region is of a size of 640x480,1024x768.Wherein, the number of pixels that the maximum that this live transmission resolution is this terminal configuration can be transmitted, this live transmission resolution also can represent by pixel, if live transmission resolution can be 640x480,1024x768, hence one can see that, and size and live transmission resolution can be carried out size relatively.
104,, based on this desktop, show this preview image.
The method that the embodiment of the present invention provides, by according to the size in the live region after adjusting and the magnitude relationship between live transmission resolution, the preview image that shows the live region after adjusting, in whole adjustment process, the preview image in the corresponding live region of different phase is adjusted in the real-time demonstration of terminal, make user from beholder's angle preview, to watch in real time the adjustment result in live region, determine suitable live region, guarantee the live effect of desktop.
Alternatively, when the live area size after this adjustment is greater than live transmission resolution, according to this desktop sectional drawing and this live transmission resolution, the preview image that generates the live region after this adjustment comprises:
When the size in the live region after this adjustment is greater than this live transmission resolution, the scope in the live region based on after adjusting intercepts the image in the live region after this adjustment from this desktop sectional drawing, obtains the first image;
This first image is contracted to this live transmission resolution, obtains the preview image in the live region after this adjustment.
Alternatively, this current live region shows with pellucidity, shows preview image in the predeterminable area in the live region being in course of adjustment, and the region in the live region after described adjustment except predeterminable area shows with translucent.
Alternatively, when the live area size after this adjustment is greater than live transmission resolution, according to this desktop sectional drawing and this live transmission resolution, after generating the preview image in the live region after this adjustment, the method also comprises:
When adjustment end operation being detected, based on this desktop, the live region after this adjustment is shown as to pellucidity.
Alternatively, according to this adjusting operation, the live region obtaining after adjustment comprises:
In this adjusting operation process, whenever the execution duration of this adjusting operation being detected, reach default duration, obtain the live region while arriving default duration; Or,
In this adjusting operation process, whenever the displacement of this adjusting operation being detected, reach predeterminable range, obtain the live region while arriving predeterminable range; Or,
In this adjusting operation process, whenever this adjusting operation being detected, pause, obtain the live region while occurring to pause.
Alternatively, the method also comprises:
When detect current live region adjusting operation time, the desktop that termination is carried out based on current live region is live, when this adjusting operation finishes and live region based on after adjusting detected and carry out live instruction, according to the live region after adjusting, proceed desktop live; Or,
When detect current live region adjusting operation time, the desktop that maintenance is carried out based on current live region is live, when this adjusting operation finishes and live region based on after adjusting detected and carry out live instruction, according to the live region after adjusting, proceed desktop live.
Fig. 2 be the embodiment of the present invention provide based on the live method for previewing flow chart of desktop.The main body of the embodiment of the present invention is terminal, this terminal can be fixed terminal or mobile terminal, fixed terminal can be PC(Personal Computer, PC) or display device, mobile terminal can be smart mobile phone, panel computer, PDA(Personal Digital Assistant, personal digital assistant) etc.Referring to Fig. 2, this embodiment comprises:
201, that desktop is carried out in the current live region showing on desktop is live for terminal.
In embodiments of the present invention, when terminal detects when desktop is carried out to the live instruction of desktop, at desktop, show current live region, and be coated with suspended frame on this current live region, this suspended frame is used for pointing out live region, can change the size in live region by adjusting the size of this suspended frame.As shown in Figure 3, this live region is a certain region on desktop.Certainly, in another embodiment of the present invention, this current live region can be also whole desktop area, and the embodiment of the present invention is not done concrete restriction.
Alternatively, this current live region can show by pellucidity, this pellucidity refers to that the suspended frame transparency covering on the live region after this adjustment is set to 100%, make the desktop in the live region after this adjustment be shown as pellucidity, by the region of this pellucidity, can direct viewing arrive all desktops in this region.
In embodiments of the present invention, when terminal is carried out live live to the operant activity in live region, video playback etc. of referring to live region.
In embodiments of the present invention, image on this terminal Real-time Collection desktop in this current live region, and after the image of this collection is processed, be sent to direct broadcast server, make direct broadcast server carry out transfer to vision signal, make the desktop in live region that beholder can see that this terminal plays.
202, when detect this current live region adjusting operation time, terminal, to carrying out sectional drawing when front desktop, obtains desktop sectional drawing.
Wherein, this adjusting operation can be the drag operation to this current live region.This drag operation can be pressed for the LeftMouseDownAction(left button that terminal detects mouse) event, then mouse being detected moves along a direction, also the touch instruction of user's finger can be detected for disposing the terminal of touch-screen, then user's finger detected and move along a direction, the embodiment of the present invention is not done concrete restriction.
It should be noted that, this is to referring to desktop integral body is carried out to sectional drawing when front desktop carrying out sectional drawing, in the desktop sectional drawing obtaining, not only comprised desktop background, operation while also having comprised image when sectional drawing of the video play, sectional drawing on front desktop on desktop etc.
In embodiments of the present invention, to the adjusting operation in this current live region, can be realized by following mode:
When the cursor that mouse detected when terminal moves on to arbitrary summit on a plurality of summits of this suspended frame, cursor is become to the shape of this suspended frame adjusting, when terminal detects left mouse button pressing, and outside or inner when mobile to suspended frame, terminal shows the live region zooming in or out.As shown in Figure 4, when cursor that terminal detects mouse moves on in 4 summits of this suspended frame arbitrary summit, terminal becomes cursor the shape of this suspended frame adjusting, the live region before adjusting as shown in dotted outline in FIG..When terminal detects left mouse button pressing, and when outside mobile to suspended frame, terminal shows the live region of amplifying, the live region after adjusting as shown in solid box in figure.
In embodiments of the present invention, when detect this current live region adjusting operation time, terminal is carried out sectional drawing to current whole desktop, this desktop sectional drawing is kept in internal memory, to read this desktop sectional drawing in subsequent step.
203, terminal, according to this adjusting operation, is obtained the live region after adjustment.
In embodiments of the present invention, terminal, according to this adjusting operation, is obtained each apex coordinate in the live region after adjustment.Wherein, the scope in this live region includes but not limited to the position in this live region and size etc.In embodiments of the present invention, terminal, according to this adjusting operation, can record the coordinate on each summit, live region after this adjustment, according to the coordinate on each summit, live region after this adjustment, determines the scope in the live region after this adjustment.
In embodiments of the present invention, step 203 comprises following arbitrary execution mode:
In this adjusting operation process, terminal reaches default duration whenever the execution duration of this adjusting operation being detected, obtains the live region while arriving default duration.For example, take and preset duration and described as example as 2 seconds, in this adjusting operation process, every 2 seconds terminals, obtain the live region after adjustment now, if whole adjusting operation process time is longer, the corresponding live region of different phase is adjusted in real-time the getting that can be in course of adjustment, and by default duration is set, can avoid the frequent processing to desktop sectional drawing, avoid the operation build-up of pressure to terminal.
In this adjusting operation process, terminal reaches predeterminable range whenever the displacement of this adjusting operation being detected, obtains the live region while arriving predeterminable range.For example, the predeterminable range of take describes as example as 1 centimetre, in this adjusting operation process, every 1 centimetre of terminal, obtain the live region after adjustment herein, if whole adjusting operation process distance is longer, the corresponding live region of different phase is adjusted in real-time the getting that can be in course of adjustment, and by predeterminable range is set, can avoid the frequent processing to desktop sectional drawing, avoid the operation build-up of pressure to terminal.
In this adjusting operation process, terminal is paused whenever this adjusting operation being detected, obtains the live region while occurring to pause.That is to say, in adjusting operation process, because user's adjusting operation may be divided into a plurality of stages, using and pause as a stage at every turn, so, if adjusting operation pauses repeatedly in whole adjusting operation process, the corresponding live region of different phase is adjusted in terminal real-time the getting that can be in course of adjustment.
204, whether the size in the live region after this adjustment of terminal judges is greater than live transmission resolution;
If so, perform step 205;
If not, finish.
In embodiments of the present invention, whether the size in the live region after this adjustment of terminal judges is greater than this live transmission resolution.For example, the live region after this adjustment is of a size of 740x480, and this live transmission resolution is while being 640x480, determines that the size in the live region after this adjustment is greater than this live transmission resolution; Live region after adjusting is of a size of 540x480, and this live transmission resolution is while being 640x480, determines that the size in the live region after this adjustment is not more than this live transmission resolution.
When 205, the size in the live region after this adjustment is greater than this live transmission resolution, the scope in the live region based on after adjusting, terminal intercepts the image in the live region after this adjustment from this desktop sectional drawing, obtains the first image.
In embodiments of the present invention, when the size in the live region after this adjustment is greater than this live transmission resolution, the desktop sectional drawing of preserving in terminal read step 202, according to the coordinate on each summit, live region after this adjustment of record, the identical image of the scope in live region in this desktop sectional drawing after this adjustment of intercepting and this coordinate record, obtains the first image.
206, terminal is contracted to this live transmission resolution by this first image, obtains the preview image in the live region after this adjustment.
Wherein, the size of the preview image in the live region after this adjustment is the size of the image of beholder place terminal demonstration.
Those skilled in the art can be known, when the size in the live region after this adjustment is greater than this live transmission resolution, carrying out desktop when live, terminal is transmitted after the image in the live region after this adjustment gathering need to being contracted to live transmission resolution again, what correspondingly, beholder place terminal was shown has been contracted to the image of live transmission resolution for this.Step 205-step 206 is for generating the process of the preview image identical with the picture size of beholder place terminal demonstration, to reach from the object in beholder's the live region of angle preview.
207,, based on this desktop, show this preview image.
In embodiments of the present invention, when the size in the live region after this adjustment is greater than this live transmission resolution, based on this desktop, in the predeterminable area in live region that terminal can be after adjustment, show this preview image, can in predeterminable area on the table, show this preview image, the embodiment of the present invention is not done concrete restriction yet.
Alternatively, when the size in the live region after this adjustment is greater than this live transmission resolution, in the predeterminable area in the live region that terminal can be after adjustment, show this preview image, the region in live region except predeterminable area can show by translucent.When adjustment end operation being detected, based on this desktop, terminal is shown as pellucidity by the live region after this adjustment.Wherein, this adjustment end operation can be that user clicks the operation of a certain acknowledgement key by operation interface, can be also the end operation of the adjusting operation in step 202, and the embodiment of the present invention is not specifically limited.For example, when this adjusting operation is for pressing left mouse button, then pull mouse, this adjustment end operation can be for unclamping left mouse button.
As shown in Figure 5, in live region on the table, preview image is positioned at middle section, and the peripheral region of preview image shows with translucent.Wherein, this translucent refers to that the suspended frame transparency covering on the live region after this adjustment is set to preset value, make the desktop in the live region after this adjustment be shown as translucent, by the region of this translucent, can watch this intra-zone to divide desktop.
In embodiments of the present invention, when the size in the live region after this adjustment is not more than this live transmission resolution, based on this desktop, terminal can show preview image, also can not show preview image, and the embodiment of the present invention is not done concrete restriction.
Alternatively, those skilled in the art can know, when the size in the live region after this adjustment is not more than this live transmission resolution, and the image in the live region after the size of the image that beholder place terminal shows and this adjustment measure-alike.Therefore, when the size in the live region after this adjustment is not more than this live transmission resolution, based on this desktop, when terminal shows preview image, without preview image being compressed to processing, the scope in the live region that terminal can be based on after adjusting intercepts the image in the live region after this adjustment from this desktop sectional drawing, obtain the preview image in the live region after this adjustment, in the live region after adjustment, show this preview image.
Alternatively, when the size in the live region after this adjustment is not more than this live transmission resolution, based on this desktop, terminal can not show preview image, and after adjusting, live region still shows with pellucidity.
208, when this adjusting operation finishes and live region based on after adjusting detected while carrying out live instruction, it is live that terminal is proceeded desktop according to the live region after adjusting.
Wherein, should the live region based on after adjusting carrying out live instruction and can be triggered by this user, can be also that terminal triggers while this adjustments end operation triggering being detected automatically, and the present embodiment is not done concrete restriction.
In embodiments of the present invention, when this adjusting operation finishes and live region based on after adjusting detected and carry out live instruction, image in live region on terminal Real-time Collection desktop after this adjustment, and after the image of this collection is processed, be sent to direct broadcast server, make direct broadcast server carry out transfer to vision signal, make the desktop in the live region after adjustment that beholder can see that this terminal plays.
In embodiments of the present invention, step 202-step 208 is based on generating in the process of preview image, keep the live execution of desktop that current live region carries out, that is to say when detect current live region adjusting operation time, the live execution of desktop that maintenance is carried out based on current live region, when this adjusting operation finishes and live region based on after adjusting detected and carry out live instruction, according to the live region after adjusting, proceed desktop live.And in another embodiment of the present invention, step 202 can be replaced by following steps: when detect current live region adjusting operation time, the desktop that terminal termination is carried out based on current live region is live, and terminal is to carrying out sectional drawing when front desktop, obtains desktop sectional drawing.Based on this replacement step, step 208 can be replaced by following mode: when this adjusting operation finishes and live region based on after adjusting detected and carry out live instruction, according to the live region after adjusting, proceed desktop live, the embodiment of the present invention is not done concrete restriction.
The method that the embodiment of the present invention provides, by according to the size in the live region after adjusting and the magnitude relationship between live transmission resolution, the preview image that shows the live region after adjusting, in whole adjustment process, the preview image in the corresponding live region of different phase is adjusted in the real-time demonstration of terminal, make user from beholder's angle preview, to watch in real time the adjustment result in live region, determine suitable live region, guarantee the live effect of desktop.
Fig. 6 be the embodiment of the present invention provide based on the live pre-viewing device structural representation of desktop.Referring to Fig. 6, this device comprises: live region acquisition module 602, preview image generation module 603 and preview image display module 604 after desktop sectional drawing acquisition module 601, adjustment.
Desktop sectional drawing acquisition module 601 is in the live process of desktop, when detect current live region adjusting operation time, to carrying out sectional drawing when front desktop, obtain desktop sectional drawing; Desktop sectional drawing acquisition module 601 is connected with live region acquisition module 602 after adjustment, and after adjusting, live region acquisition module 602, for according to this adjusting operation, obtains the live region after adjustment; After adjusting, live region acquisition module 602 is connected with preview image generation module 603, when preview image generation module 603 is greater than live transmission resolution for the size in the live region after this adjustment, according to this desktop sectional drawing and this live transmission resolution, generate the preview image in the live region after this adjustment; Preview image generation module 603 and preview image display module 604, preview image display module 604, for based on this desktop, shows this preview image.
Alternatively, this preview image generation module 603 comprises: the first image acquisition unit, while being greater than this live transmission resolution for the size in live region after this adjustment, the scope in the live region based on after adjusting, the image that intercepts the live region after this adjustment from this desktop sectional drawing, obtains the first image; Preview image generation unit, for this first image is contracted to this live transmission resolution, obtains the preview image in the live region after this adjustment.
Alternatively, this current live region shows with pellucidity, shows preview image in the predeterminable area in the live region being in course of adjustment, and the region in the live region after described adjustment except predeterminable area shows with translucent.
Alternatively, this device also comprises: the second live region display module, for when adjustment end operation being detected, based on this desktop, is shown as pellucidity by the live region after this adjustment.
Alternatively, after this adjustment, live region acquisition module 602 comprises: first adjusts rear live region acquiring unit, for in this adjusting operation process, whenever the execution duration of this adjusting operation being detected, reach default duration, obtain the live region while arriving default duration; Or second adjusts rear live region acquiring unit, in this adjusting operation process, reaches predeterminable range whenever the displacement of this adjusting operation being detected, obtains the live region while arriving predeterminable range; Or the 3rd adjusts rear live region acquiring unit, in this adjusting operation process, pauses whenever this adjusting operation being detected, obtains the live region while occurring to pause.
Alternatively, this device also comprises: the live module of the first desktop, during for adjusting operation when detecting current live region, the desktop that termination is carried out based on current live region is live, when this adjusting operation finishes and live region based on after adjusting detected and carry out live instruction, according to the live region after adjusting, proceed desktop live; Or, the live module of the second desktop, during for adjusting operation when detecting current live region, the desktop that maintenance is carried out based on current live region is live, when this adjusting operation finishes and live region based on after adjusting detected and carry out live instruction, according to the live region after adjusting, proceed desktop live.
The device that the embodiment of the present invention provides, by according to the size in the live region after adjusting and the magnitude relationship between live transmission resolution, the preview image that shows the live region after adjusting, in whole adjustment process, the preview image in the corresponding live region of different phase is adjusted in the real-time demonstration of terminal, make user from beholder's angle preview, to watch in real time the adjustment result in live region, determine suitable live region, guarantee the live effect of desktop.
It should be noted that: above-described embodiment provide based on the live pre-viewing device of desktop when based on the live preview of desktop, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the internal structure that is about to device is divided into different functional modules, to complete all or part of function described above.In addition, above-described embodiment provide based on the live pre-viewing device of desktop with based on the live method for previewing embodiment of desktop, belong to same design, its specific implementation process refers to embodiment of the method, repeats no more here.
One of ordinary skill in the art will appreciate that all or part of step that realizes above-described embodiment can complete by hardware, also can come the hardware that instruction is relevant to complete by program, described program can be stored in a kind of computer-readable recording medium, the above-mentioned storage medium of mentioning can be read-only memory, disk or CD etc.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.