CN102890816A - Method and device for video image scaling - Google Patents

Method and device for video image scaling Download PDF

Info

Publication number
CN102890816A
CN102890816A CN201110203825XA CN201110203825A CN102890816A CN 102890816 A CN102890816 A CN 102890816A CN 201110203825X A CN201110203825X A CN 201110203825XA CN 201110203825 A CN201110203825 A CN 201110203825A CN 102890816 A CN102890816 A CN 102890816A
Authority
CN
China
Prior art keywords
window
video image
video
convergent
video window
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201110203825XA
Other languages
Chinese (zh)
Other versions
CN102890816B (en
Inventor
吴维检
刘建敏
吴治雄
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nantong Xingshi Material Trade Co ltd
Original Assignee
Shenzhen QVOD Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen QVOD Technology Co Ltd filed Critical Shenzhen QVOD Technology Co Ltd
Priority to CN201110203825.XA priority Critical patent/CN102890816B/en
Publication of CN102890816A publication Critical patent/CN102890816A/en
Application granted granted Critical
Publication of CN102890816B publication Critical patent/CN102890816B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Studio Circuits (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention provides a method and a device for video image scaling, relating to the field of electronic technology. Technical problems of single function and complicated operation in the prior art are solved. According to the method for video image scaling, different scaling approaches are adopted when a video window is overlapped with a playing window or when a video window is smaller than a playing window. The method for video image scaling comprises the following specific steps: receiving a triggering signal input by an external device; confirming a scaling multiples according to the triggering signal; when the video window is overlapped with the playing window, playing a part of video image on the video window, wherein the part of video image is cut from an original video image based on the scale multiples; when the video window is smaller than the playing window, scaling the video window based on a proportion according to the scaling multiples, and displaying the original video image in the scaled video window. The device for video image scaling comprises a user interactive interface, a player and an external device; and the player comprises a playing window, a video window and a playing control module. The method and device are used for scaling video images.

Description

Video image zooming disposal route and video image zooming treating apparatus
Technical field
The present invention relates to electronic technology field, be specifically related to a kind of video image zooming disposal route and a kind of video image zooming treating apparatus that uses this video image zooming disposal route.
Background technology
Along with the develop rapidly of video playback technology, be used for playing video file, audio file player function from strength to strength, kind is also more and more abundanter.
Existing player, such as realplayer, windows media player etc., when playing video file, can't be when the size of player plays window be constant, video image in the broadcast window is carried out convergent-divergent (dwindle or amplify), function ratio is more single, and it is relatively poor that the user experiences (User Experience is called for short UE).
The QQ audio and video player has in the situation of the frame size constancy of broadcast window, amplify the function of the video image that shows in the broadcast window, its method of operating is to pin the ctrl key, when the ctrl key is activated, pin the video image of left button in the broadcast window of player of mouse and pull out a rectangular area, player can be amplified to the video image in the rectangular area in the whole broadcast window afterwards, when thereby the frame size of broadcast window that is implemented in player is constant, the video image in the broadcast window amplified shows.
The inventor finds that there is following technical matters at least in prior art in realizing process of the present invention:
In the prior art, although the QQ audio and video player can be when the frame size of the broadcast window of player be constant, video image in the broadcast window is amplified demonstration, but can only probably amplify demonstration to video image in the prior art, can't realize the accurate amplification to video image, namely can't amplify with multiple accurately, and before amplifying in the prior art, need to pin the video image of left button in the broadcast window of player of mouse and pull out a rectangular area, then could realize amplifying, the step of pulling out a rectangular area operates also cumbersome, so there is function singleness in prior art, the technical matters of troublesome poeration.
Summary of the invention
The invention provides a kind of video image zooming disposal route and a kind of video image zooming treating apparatus that uses this video image zooming disposal route, solved the technical matters that prior art exists function singleness, troublesome poeration.
For achieving the above object, embodiments of the invention adopt following technical scheme:
Video image zooming disposal route provided by the present invention may further comprise the steps:
Overlap at video window and broadcast window, during perhaps less than broadcast window, adopt different convergent-divergents to process, specifically may further comprise the steps:
Reception is by the trigger pip of peripheral hardware input, and determines the convergent-divergent multiple according to described trigger pip;
When described broadcast window overlaps with described video window, play the partial video image that intercepts from raw video image according to described convergent-divergent multiple at described video window;
When described video window during less than described broadcast window, with the video window bi-directional scaling, show raw video image according to described convergent-divergent multiple in the video window of described convergent-divergent.
The video image zooming treating apparatus of the video image zooming disposal route that use the invention described above provides, comprise User Interface, player, peripheral hardware, described player comprises broadcast window, video window and transmit control module, described video window is positioned within the described broadcast window, wherein:
Described User Interface is used for receiving the trigger pip by the peripheral hardware input;
Described transmit control module is used for determining the convergent-divergent multiple according to described trigger pip when described broadcast window overlaps with described video window, plays the partial video image that intercepts from raw video image according to described convergent-divergent multiple at described video window;
Described User Interface, also be used for when described video window less than the video window of described broadcast window and described convergent-divergent in during the demonstration raw video image, determine the convergent-divergent multiple according to described trigger pip, and according to described convergent-divergent multiple with the video window bi-directional scaling.
Compared with prior art, the arbitrary technical scheme in the technique scheme provided by the present invention has following advantage:
Overlap with video window in the broadcast window at broadcast window, and during the partial video image on the video window demonstration raw video image, this moment is because the not change of the size of broadcast window and video window, but the area of the video image that shows on the video window has diminished relatively before, so being the video image that video window shows, the visual effect that the video image that shows on the video window brings to the user has been exaggerated than original image, so can realize by the way of playing the partial video image on the raw video image at video window the amplification to the video image of video window broadcast, like this, can use technique scheme provided by the present invention, in the situation of the frame size constancy of the video window in broadcast window, the raw video image that shows in the video window with broadcast window (raw video image refers to not through amplifying also the not video image through dwindling) amplifies demonstration, owing to can (for example can pass through the roll mouse roller by peripheral hardware among the present invention, press a certain button or press left mouse button, the mode of right button is inputted) the input trigger pip, and determine the convergent-divergent multiple according to trigger pip, so can input convergent-divergent multiple accurately and then realize accurate amplification to video image, simultaneously, it is more simple that the method for pulling out a rectangular area by peripheral hardware input trigger pip and the video image of the left button of pinning mouse in the broadcast window of player is compared operation, convenient, and then solved prior art and have function singleness, the technical matters of troublesome poeration;
In addition, the present invention can also be at video window during less than broadcast window, realize to video window with and the bi-directional scaling of the video image of interior demonstration (dwindle and amplify), so function horn of plenty more.
Description of drawings
In order to be illustrated more clearly in the present invention or technical scheme of the prior art, the below will do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art, apparently, accompanying drawing in the following describes only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain according to these accompanying drawings other accompanying drawing.
Fig. 1 is the schematic flow sheet of video image zooming disposal route provided by the present invention;
Fig. 2 is for using video image zooming disposal route provided by the present invention, when in video window, playing the partial video image on the raw video image, the change procedure synoptic diagram of the mapping point of pixel region on pixel region corresponding to raw video image that the partial video image that shows in the partial video image that shows in the current video window, the processing rear video window is corresponding;
Fig. 3 is for using video image zooming disposal route provided by the present invention, dwindle video window with and during the video image of the part of interior demonstration, before dwindling and the change procedure synoptic diagram of the mapping point of pixel region on pixel region corresponding to raw video image corresponding to the video image after dwindling;
Fig. 4 is the synoptic diagram of the annexation of the inside chief component of the preferred implementation of the video image zooming treating apparatus of use video image zooming disposal route of the present invention.
Embodiment
Below in conjunction with the accompanying drawing among the present invention, the technical scheme among the present invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that obtains under the creative work prerequisite.
The invention provides a kind of feature richness, video image zooming disposal route simple to operate, easy to use and the video image zooming treating apparatus that uses this video image zooming disposal route.
As shown in Figure 1,1a, 1b, 1c, 1d, 1e and 1f are respectively the sequence number of six included parts of Fig. 1, wherein: the video window in the broadcast window of region representation shown in the O; Left oblique line represents the video image that video window shows; The pixel region that the raw video image of region representation shown in the A is corresponding; Right oblique line represents that pixel region corresponding to raw video image is the pixel in the A; The broadcast window of the player of region representation shown in the P; Region representation shown in the R when the convergent-divergent multiple greater than 1 the time, after according to the convergent-divergent multiple raw video image being amplified, pixel region corresponding to partial video image that shows at video window; Region representation shown in the S amplifies demonstration to the video window in the broadcast window, the video window before amplifying; Region representation shown in the E when the convergent-divergent multiple less than 1 the time, in the time of will dwindling demonstration through the video image that amplifies according to the convergent-divergent multiple, after dwindling, pixel region corresponding to partial video image that shows in the video window, the pixel region that is finally shown by video window after also finishing with regard to reduction operation; The cursor of being drawn by solid line on the video window in 1c and the 1d part among Fig. 1 represents the position after the cursor translation, and the cursor of dotted lines represents the position of cursor before translation.
The video image zooming disposal route that the embodiment of the invention provides overlaps at video window O and broadcast window P, when perhaps video window O is less than broadcast window P, adopts different convergent-divergents to process, and specifically may further comprise the steps:
Reception is by the trigger pip of peripheral hardware input, and determines the convergent-divergent multiple according to trigger pip;
When broadcast window P overlaps with video window O, play the partial video image that intercepts from raw video image according to the convergent-divergent multiple at video window O;
As video window O during less than broadcast window P, with video window O bi-directional scaling, show raw video image according to the convergent-divergent multiple in the video window O of convergent-divergent.
In the time of not only can working as broadcast window P and overlap with video window O by said method, realization is to the accurate amplification of the video image that shows in the video window O, but also can work as video window O less than broadcast window P the time, realize to video window O with and the accurate convergent-divergent of the video image of interior demonstration.
Owing to can (for example can pass through the roll mouse roller by peripheral hardware among the present invention, press a certain button or press left mouse button, the mode of right button is inputted) the input trigger pip, and determine the convergent-divergent multiple according to trigger pip, so can input convergent-divergent multiple accurately and then realize accurate amplification to video image, simultaneously, it is more simple that the method for pulling out a rectangular area by the video image of left button in the broadcast window of player of pinning mouse in peripheral hardware input trigger pip and the prior art is compared operation, convenient, and then solved prior art and have function singleness, the technical matters of troublesome poeration.
How the below minute more detailed elaboration the present invention of a plurality of parts specifically realizes above-mentioned said amplification and reduction operation.
The raw video image that shows in the amplified video window O:
Shown in 1a among Fig. 1 and 1c part, in the present embodiment at broadcast window P when video window O in the broadcast window P overlaps, the step of the partial video image that intercepts from raw video image according to the convergent-divergent multiple in video window O broadcast may further comprise the steps:
Greater than 1 o'clock, calculate pixel region mapping point pixel region corresponding to raw video image in corresponding to partial video image that raw video image amplification after among video window Os show according to the convergent-divergent multiple at the convergent-divergent multiple;
Pixel data corresponding to pixel region that the extract real-time mapping point limits, and in video window O, play out corresponding partial video image according to pixel data.
The pixel region that raw video image is corresponding is the corresponding pixel region of whole video image, when the pixel region that raw video image is corresponding is play in video window O, at this moment, what show in the video window O is raw video image, can choose partial pixel zone on pixel region corresponding to raw video image (for example 1/2) by said method plays in video window O, at this moment, just can play out the video image of amplification (for example 2 times) in the video window O.
Dwindle that video window O shows by the partial video image on the raw video image:
Shown in 1c among Fig. 1 and 1e part, in the present embodiment when broadcast window P overlaps with video window O, the step of the partial video image that intercepts from raw video image according to the convergent-divergent multiple in video window O broadcast, further comprising the steps of:
At the convergent-divergent multiple less than 1, and video window O show be the partial video image of raw video image the time, calculate the mapping point of pixel region in pixel region A corresponding to raw video image corresponding to partial video image that the raw video image after dwindling according to the convergent-divergent multiple shows in video window O;
Pixel data corresponding to pixel region that the extract real-time mapping point limits, and in video window O, play out corresponding partial video image according to pixel data.
Among the present invention when video window O show be raw video image partial video image the time, when being pixel region R corresponding to the partial video image that shows of video window O less than pixel region A corresponding to raw video image, be described this moment, the partial video image that video window O shows still is in the state of amplification, for example: after 10 times of raw video image amplifications, dwindle again 2 times, at this moment, the partial video image that video window O shows still is in and amplifies 5 times state, so the pixel region E of the part correspondence that the video image after dwindling shows at video window O is still less than pixel region A corresponding to raw video image.
Because the present invention can also be implemented in the situation of frame size constancy of video window O the partial video image that shows in the video window O is dwindled demonstration, so that the user is when using player to watch video image, can in the situation of the frame size constancy of video window O, arbitrarily amplify, dwindle the partial video image that shows in the video window O, for example: in amplification process, the multiple that amplifies is too large, can also will dwindle again through the video image that amplifies, thereby the video image amplification effect that obtains wanting, so use more convenient.
Dwindle the raw video image that video window O shows:
Video window O comprises also that less than the condition of broadcast window P the size of video window O, raw video image overlaps with broadcast window P three in the present embodiment.
When the size that is to say video window O, raw video image overlaps with broadcast window P three, also can be according to the convergent-divergent multiple with video window O bi-directional scaling, if this moment broadcast window P size dimension when constant, then convergent-divergent only refers to dwindling the frame of video window O and raw video image.
Shown in 1a among Fig. 1 and 1b part, show raw video image at video window O in the present embodiment, and broadcast window P is when being not less than video window O, this video image zooming disposal route, further comprising the steps of:
Show raw video image at video window O, and the convergent-divergent multiple dwindles video window O less than 1 o'clock according to the convergent-divergent multiple, determine video window O contracted position coordinate;
The step of contracted position coordinate is: being that the height of convergent-divergent multiple and current video window O is long-pending with the reduced height of video window O, is the amassing of width of convergent-divergent multiple and current video window O with the reduced width of video window O;
The pixel data that the extract real-time raw video image is corresponding, and in the video window O that dwindles, play out corresponding video image according to pixel data.
Broadcast window P is not less than video window O and has two kinds of situations, and the one, it is broadcast window P and video window O overlaid that video window O equals broadcast window P, the one, broadcast window P is greater than video window O.
When pixel region R corresponding to video image that shows at video window O is pixel region A corresponding to raw video image, the shown raw video image of video window O, at this moment, raw video image is dwindled demonstration, namely dwindle the raw video image that video window O shows, at this moment, the frame size that only need to dwindle video window O, need not to change pixel region corresponding to video image that shows at video window O, for example the convergent-divergent multiple is 1/2 o'clock, 1/2 before the frame of video window O is of a size of and dwindles.At this moment, the convergent-divergent multiple can be set to 1/k, k is greater than 1, when being set as backward (or downwards) scroll wheel, inductor produces a trigger pip, k increases 1 or 0.1, the value that is the convergent-divergent multiple diminishes, can think the raw video image after dwindling is dwindled demonstration again this moment, and during (or upwards) scroll wheel, inductor produces a trigger pip forward, it is the value increase of convergent-divergent multiple that k reduces 1 or 0.1, when the value of k was reduced to 1, when continuing forward (or upwards) scroll wheel, inductor produced a trigger pip, then be considered as the convergent-divergent multiple and increase to 2 or 1.1 from 1, if when continuing forward (or upwards) scroll wheel, inductor produces a trigger pip, then the convergent-divergent multiple increases 1 or 0.1.
Shown in 1b among Fig. 1 and 1f part, video image zooming disposal route in the present embodiment, further comprising the steps of:
Show raw video image at video window O, video window O greater than 1 o'clock, according to convergent-divergent multiple amplified video window O, determines that video window O amplifies position coordinates less than broadcast window P and convergent-divergent multiple; The step of amplifying position coordinates is: it is long-pending with the height of current video window S shown in 1f part among Fig. 1 that the height of video window O frame is enlarged into the convergent-divergent multiple, the width of video window O is enlarged into the amassing of width of convergent-divergent multiple and current video window S;
The pixel data that the extract real-time raw video image is corresponding, and in the video window that amplifies, play out corresponding video image according to pixel data.
The current video window refers to the video window of the last time before zooming in or out, and for example: amplify if want that video window is carried out the 5th, then then for after the 4th amplifies, the 5th is amplified video window before to the current video window.
When the pixel region corresponding to video image that can show at video window O according to said method be pixel region corresponding to raw video image, the video window O after will dwindling and all again amplify with the video image that same ratio dwindles with video window O.
In the present embodiment, this video image zooming disposal route, further comprising the steps of:
As video window O during less than broadcast window P, Fill Color between video window O and broadcast window P; And/or, when the border of video image O moves into video window P, Fill Color between the border of video window O and video image.
The color of filling is preferably ColorKey look (Transparent color) or black, also can fill other colors outside the black such as blueness, green, certainly, dwindle in the present embodiment and also can make broadcast window P in the process of video window O along with video window O and dwindling of video image and scaled down.
As shown in Figure 1, in the present embodiment, in this video image zooming disposal route, according to the convergent-divergent multiple calculate amplify after or dwindle after the step of the mapping point of pixel region in pixel region corresponding to raw video image corresponding to the partial video image that in video window O, shows of raw video image, may further comprise the steps:
Judge whether cursor is positioned at video window O;
When cursor is positioned at video window O, pixel with cursor in the pixel region pointed or that point to the geometric center place of video window O is as the constant point in position, calculate the mapping point of pixel region R in pixel region A corresponding to raw video image corresponding to partial video image that in video window O, shows according in the raw video image after the amplification of convergent-divergent multiple, perhaps
Pixel in the pixel region that points to the geometric center place of video window O is as the constant point in position, calculates the mapping point of pixel region in pixel region A corresponding to raw video image corresponding to partial video image that the raw video image after dwindling according to the convergent-divergent multiple shows in video window O.
In the present embodiment when cursor is positioned at video window O, be preferably with the pixel in the cursor pixel region pointed as the constant point in position, calculate the mapping point of pixel region R in pixel region A corresponding to raw video image corresponding to partial video image that video window O shows, because the position of cursor can artificially be controlled by the user, so the user can control mapping point in pixel region R corresponding to video image that the shown needs of video window O amplify by the position of control cursor, and then can zoom in or out more freely the position of the shown partial video image of video window O, be conducive to improve user's experience.
No matter whether cursor is positioned at video window O in the present embodiment, be preferably geometric center with video window O as the constant point in position, calculate the mapping point of pixel region in pixel region A corresponding to raw video image corresponding to partial video image that the raw video image after dwindling according to the convergent-divergent multiple shows at video window O, because the geometric center of video window O is the point that location comparison is determined easily, so point to pixel in the pixel region as the constant point in position with the geometric center place of video window O, the partial video image that raw video image after calculating is dwindled shows in video window O is when the mapping point of pixel region corresponding on the raw video image in pixel region A corresponding to raw video image, calculating operation can be more easy, and counting yield can be higher.
The raw video image that the translation video window shows after being amplified by raw video image:
Shown in 1c among Fig. 1 and 1d part, video image zooming disposal route provided by the present invention may further comprise the steps:
When cursor is positioned at the broadcast window P of player and translation functions key and is activated, follow the trail of the track of cursor in broadcast window P;
Overlap with video window O in the broadcast window P at broadcast window P, and video window O is when showing partial video image on the raw video image video image translation with the track of cursor that video window O is shown.
Overlap with video window O in the broadcast window P at broadcast window P, and during the partial video image on the video window O demonstration raw video image, this moment is because the not change of the size of broadcast window P and video window O, but the area of the upper video image that shows of video window O has diminished relatively before, so being the video image that video window O shows, the visual effect that the video image that shows on the video window O brings to the user has been exaggerated than original image, so can realize by the way of playing the partial video image on the raw video image at video window O the amplification to the video image of video window O broadcast, like this, use the user of technique scheme provided by the present invention, in the situation of the frame size constancy of the video window O in broadcast window P, after the raw video image that shows in the video window O with broadcast window P (referring to not through amplifying also the not video image through dwindling) amplifies, when wanting the video image of demonstration in the translation broadcast window P, (for example: pin Ctrl can activate first the translation functions key, pin simultaneously left mouse button), then, mode by mobile cursor moves the video image that shows in the broadcast window P, thereby the video image that the video window O in the broadcast window P does not show is moved to video window O to be shown, compared with prior art, when watching the video image that does not show in the video window O under the state that amplifies among the present invention, need not to reduce first video after amplifying, also need not again to pull out again a rectangular area, so it is more convenient to operate.
When the translation functions key was activated in the present embodiment, its trigger pip of sending can be used as the translation instruction, and for example: can be triggered when namely being activated Ctrl and left mouse button, the trigger pip of sending is as the translation instruction.Because the position of cursor is to be controlled by mouse, when arranging like this, clicks by left mouse button, just can confirm the video image that shows in the video window O is carried out translation.Certainly, in the time of also right mouse button and/or other buttons can being triggered in the present embodiment, the trigger pip of sending is as the translation instruction.
Can use following provided by the present inventionly overlap with video window O in the broadcast window P at the broadcast window P of player as shown in Figure 2 in the present embodiment, and show the step of taking from the partial video image on the raw video image in the situation of the frame size constancy of video window O, the video image that shows in the video window O is amplified demonstration, then, after the video image amplification that shows in the video window O, re-use the partial video image that shows in the said method translation video window O provided by the present invention, also can use the method that provides in the prior art with after the video image amplification that shows in the video window O, re-use the video image after amplifying in the said method translation video window O provided by the present invention.
The raw video image that the translation video window shows after being dwindled by raw video image:
Video image zooming disposal route in the present embodiment, further comprising the steps of:
Video window O in broadcast window P is not less than broadcast window P, and video window O is when showing raw video image, make video window O with and all translations with the track of cursor of video image of interior demonstration.
There are two kinds of situations in the video window O that broadcast window P is not less than in the broadcast window P, the one, broadcast window P and video window O overlaid, the one, broadcast window P is greater than video window O, at this moment, video window O with and the video image of interior demonstration all reduced with same ratio, so translation this moment video image need to be with video image and in the lump translation of video window O, but, because this moment, video window O showed raw video image, the video image that video window O shows is whole pixel regions corresponding to raw video image at pixel region corresponding to raw video image.
In the present embodiment, the track of cursor is cursor mobile track in video window O, make in this video image zooming disposal route video window O with and the equal step of translation with the track of cursor of the video image of interior demonstration, may further comprise the steps:
According to the corresponding relation between the coordinate of the track of the coordinate of video window O before the translation in broadcast window P, cursor and predefined track and video window O, calculate the coordinate of translation rear video window O in broadcast window P, and with the position movement of video window O to the corresponding position of the coordinate that calculates;
The pixel data that the extract real-time raw video image is corresponding, and in video window O, play out corresponding video image according to pixel data.
The track of cursor can be cursor mobile track in video window O, and the track that also can move for the zone of cursor between video window O and broadcast window P is preferably the track of movement in video window O.Corresponding relation between the coordinate of track and video window O is in advance artificial setting, and be preferably: the coordinate Complete Synchronization of track and video window O, like this, in the translation process, the coordinate of video window O is relative static with cursor each other.
In the present embodiment video image zooming disposal route, make the step of the video image translation with the track of cursor that shows in the video window O, may further comprise the steps:
The mapping point of pixel region on pixel region corresponding to raw video image corresponding to partial video image that video window O is shown followed the track of cursor and changed;
Pixel data corresponding to pixel region that extract real-time is limited by the mapping point after changing, and in video window O, play out with mapping point according to pixel data and to follow the trail of accordingly video image.
Because video window O display part video image, so video image is in magnifying state, simultaneously, because video window O overlaps each other with broadcast window P and is relative static, so can move by the mode of mobile cursor the partial video image that shows in the broadcast window P, show thereby the video image that the video window O in the broadcast window P does not show is moved to video window O.
In the present embodiment, this video image zooming disposal route, further comprising the steps of:
When video window O less than broadcast window P or part when shifting out broadcast window P, Fill Color between video window O and broadcast window P.
The color of filling is preferably ColorKey look (Transparent color) or black, also can fill other colors outside the black such as blueness, green.
The below more describes for example among the present invention the amplification that specifically how to operate to realize to the video image of playing in the video window in detail, dwindles and translation:
The process of amplifying:
During video playback, pin Ctrl, when mouse pointer (cursor) was positioned on the picture (video image that video window is shown), pointer became the magnifier shape.When unclamping Ctrl, mouse pointer recovers acquiescence and namely is reduced to magnifier shape shape before.
When mouse pointer is positioned on the picture, pin Ctrl, rotate the middle button of mouse roller forward, mouse becomes the magnifier shape with plus sige, picture is pressed the length breadth ratio geometric ratio of Set For Current and is amplified, in the process of amplifying, it is constant that the point at mouse pointer place is kept its relative position in whole video window.Mouse whenever sends a signal, and the picture length and width respectively multiply by 1.1 (this convergent-divergent multiple can artificially be set).When picture after 60 times (this number of times can artificially be set) amplified on the basis of original size, even rotate mouse roller forward, image also no longer amplifies, and mouse pointer is shown as magnifier (not being with plus sige) shape again.
The process of dwindling:
When mouse pointer is positioned on the picture, pin Ctrl, rotate the middle button of mouse roller backward, mouse becomes the magnifier shape with minus sign, picture is by current length breadth ratio Scaling, in the process of dwindling, if picture is also large than window, then to keep its relative position in whole video window constant for the point at mouse pointer place; If picture narrows down to less than window, then picture is placed in the middle.Mouse whenever sends a signal, and the picture length and width are respectively divided by 1.1 (or respectively multiply by 1/1.1).When picture after the basis of original size dwindles 24 times (this number of times can artificially be set), even rotate mouse roller backward, image also no longer dwindles again, and mouse pointer is shown as magnifier (not being with minus sign) shape.
If picture rotates, overturns, then the picture after rotation, upset is done the picture zoom operations.
Picture is exaggerated or when dwindling, shows in picture upper right corner information display area: " pin Ctrl, double-click the picture reduction ".Herein, reduction instigates video window to be back to the state that shows raw video image;
The picture convergent-divergent is only to playing effectively when inferior.
The process of translation:
During video playback, pin Ctrl, when mouse pointer was positioned on the picture, pointer became the magnifier shape.When unclamping Ctrl, mouse pointer recovers acquiescence.
Pin Ctrl, when mouse pointer is positioned on the picture, pin left mouse button, pointer becomes hand shape, drags mouse, and picture is translation thereupon.Mouse moves a pixel, and then picture also moves a pixel.Unclamp left mouse button, pointer recovers the magnifier shape.
If picture rotates, overturns, zooms in or out, then the picture after rotating, overturning, zoom in or out is done the pan operation.
Picture shows in picture upper right corner information display area during by translation: " pin Ctrl, double-click the picture reduction ".
Pan is only to playing effectively when inferior.
Below more detailed elaboration realizes the employed algorithm of above-mentioned functions of the present invention, and following algorithm is part preferred implementation provided by the present invention only, and the present invention can also realize with other algorithms outside the following algorithm:
In the present embodiment, the pixel region A that video window O and raw video image are corresponding is all rectangular, and both are preferably similar figures;
The step of the mapping point in the pixel region A of pixel region R correspondence on raw video image that the partial video image that the raw video image after calculating is amplified according to the convergent-divergent multiple shows in video window O is corresponding may further comprise the steps:
As the window initial point, determine that cursor is with respect to the coordinate figure of window initial point with one of them summit of video window O;
With one of them summit of pixel region corresponding to the video image before amplifying as the temporary transient initial point of pixel, according to the height of the frame of video window O, width respectively with amplify before the height, the proportionate relationship between the width of pixel region corresponding to video image, determine that the position of the pixel in the cursor pixel region pointed is with respect to the coordinate figure of the temporary transient initial point of pixel;
With one of them summit of raw video image as pixel benchmark initial point, determine that the temporary transient initial point of pixel is with respect to the coordinate figure of pixel benchmark initial point, and according to the coordinate figure of the temporary transient initial point of pixel with respect to pixel benchmark initial point, the convergent-divergent multiple, the height of video window O, the position of the pixel in width and the cursor pixel region pointed is with respect to the coordinate figure of the temporary transient initial point of pixel, the height of the pixel region that the video image that shows at video window O before amplifying is corresponding, width calculates at least two nonadjacent vertices of pixel region R corresponding to partial video image that the raw video image after amplifying according to the convergent-divergent multiple shows at video window O with respect to the coordinate figure of pixel benchmark initial point.
The pixel region A that video window O and raw video image are corresponding is similar figures, and both are when all rectangular, raw video image can be on video window O the complete video image that demonstrates.Certainly, video window O and raw video image can not be similar figures also, like this, video window O can play out the partial video image on the raw video image, perhaps, when video window O play raw video image, video window O did not show that the part of image can fill black.
Any one summit of video window O all can be used as the window initial point, any one summit of the pixel region A that raw video image is corresponding is as the temporary transient initial point of pixel, the coordinate figure of any two nonadjacent vertices all can be determined position and the size of a rectangle, in the present embodiment, be preferably the point in the use video window O upper left corner as the window initial point, use the point in the upper left corner of pixel region A corresponding to raw video image as the temporary transient initial point of pixel, use the coordinate of the upper left angle point of pixel region R of the part correspondence that the raw video image after amplifying according to the convergent-divergent multiple shows in video window O and bottom right angle point to determine the position of pixel region R in pixel region A corresponding to raw video image corresponding to video image through amplification.Because point, the bottom right angle point in the upper left corner are than the point that is easier to determine, identify, so help the workload that reduces to calculate.
More elaborate the how video image in the amplified video window O of the present invention below in conjunction with Fig. 2.
As shown in Figure 2, implication regional and among Fig. 1 is identical shown in the A, before region representation shown in the B amplifies, and pixel region corresponding to partial video image that shows in the video window O; Region representation shown in the C amplifies video image according to the convergent-divergent multiple after, pixel region corresponding to partial video image that in video window O, shows, also with regard to after the amplifieroperation, the pixel region of finally playing, showing by video window O;
The coordinate of benchmark initial point is (0,0), and the coordinate of the temporary transient initial point of pixel is (Xbo, Ybo).
In the present embodiment, determine that the position of the pixel in the cursor pixel region pointed with respect to the step of the coordinate figure of the temporary transient initial point of pixel, is specially:
According to formula Px=W1*X/W, Py=H1*Y/H calculates the position of the pixel in the cursor pixel region pointed with respect to the coordinate figure of the temporary transient initial point of pixel, wherein:
Px, Py respectively are the position of the pixel in the cursor pixel region pointed with respect to the horizontal ordinate of the temporary transient initial point of pixel, the coordinate figure of ordinate;
The width of the pixel region that the video image before W1, H1 respectively are and amplify is corresponding, highly;
X, Y respectively are cursor with respect to the horizontal ordinate of window initial point, the coordinate figure of ordinate;
W, H respectively are the width of the frame of video window O, highly;
Calculate at least two nonadjacent vertices of pixel region C corresponding to partial video image that the raw video image after amplifying according to the convergent-divergent multiple shows with respect to the step of the coordinate figure of pixel benchmark initial point in video window O, be specially:
According to formula Xo=(n-1) * Px/n+Xbo, Yo=(n-1) * Py/n+Ybo,
The summit in the upper left corner of the pixel region R that the partial video image that the raw video image after X1=W1/n+Xo, Y1=H1/n+Yo calculate respectively and amplify according to the convergent-divergent multiple shows in video window O is corresponding and the summit in the lower right corner are with respect to the coordinate figure of pixel benchmark initial point; Wherein:
N is the convergent-divergent multiple, n>1;
The summit in the upper left corner of the pixel region R that the partial video image that the raw video image after Xo, Yo respectively are and amplify according to the convergent-divergent multiple shows in video window O is corresponding is with respect to the horizontal ordinate of pixel benchmark initial point, the coordinate figure of ordinate;
The summit in the lower right corner of the pixel region R that the partial video image that the raw video image after X1, Y1 respectively are and amplify according to the convergent-divergent multiple shows in video window O is corresponding is with respect to the horizontal ordinate of pixel benchmark initial point, the coordinate figure of ordinate;
Xbo, Ybo respectively are the temporary transient initial point of pixel with respect to the horizontal ordinate of pixel benchmark initial point, the coordinate figure of ordinate.
In the time of can being implemented in accurately the invariant position of the pixel in the cursor pixel region pointed by the above coordinate figure that calculates, to the amplification of video window O inner video image.
The mapping point of pixel region R on pixel region A corresponding to raw video image corresponding to partial video image that video window O is shown followed the track of cursor translation and the step of translation is specially:
In real time the summit in the upper left corner of the pixel region R that the video image that shows in the video window O is corresponding is adjusted into Xo+ Δ X* (n-1)/(n*W) with respect to the coordinate figure of the horizontal ordinate of pixel benchmark initial point, and the coordinate figure of ordinate is adjusted into Yo+ Δ Y* (n-1)/(n*W);
In real time the summit in the lower right corner of the pixel region R that the video image that shows in the video window O is corresponding is adjusted into Y1+ Δ Y* (n-1)/(n*W) with respect to the coordinate figure that the coordinate figure of the horizontal ordinate of pixel benchmark initial point is adjusted into X1+ Δ X* (n-1)/(n*W), ordinate, wherein:
Δ X, Δ Y respectively are cursor on video window O in the translation process, and the horizontal ordinate of cursor, ordinate are with respect to the distance of window origin translation.
Can realize accurately realizing the partial video image that shows in the video window O is carried out translation by the translation cursor by the above coordinate figure that calculates.
That dwindles video window O demonstration has passed through the video image that amplifies by raw video image:
More elaborate the present invention below in conjunction with 1c among Fig. 1 and 1e part and Fig. 3 and how to dwindle in the video window O the video image through amplifying.
As shown in Figure 3, identical among the implication of region representation shown in A, the E and Fig. 1 among the figure, region representation shown in the D dwindles the partial video image that shows in the video window when showing, before dwindling, and pixel region corresponding to partial video image that shows in the video window; The coordinate of benchmark initial point is (0,0).
In the present embodiment, pixel region R corresponding to the partial video image that shows at video window O is during less than pixel region A corresponding to raw video image, calculate the step of the mapping point of pixel region in pixel region A corresponding to raw video image corresponding to the partial video image that in video window O, shows, be specially:
According to formula XBo=Xo-(1-n) * (X1-Xo) * Xo/[Wo-(X1-Xo)],
YBo==Yo-(1-n)*(Y1-Yo)*Yo/[Ho-(Y1-Yo)],
XB1=X1+(1-n)*(X1-Xo)-X1*Xo/[Wo-(X1-Xo)],
YB1=Y1+ (1-n) * (Y1-Yo)-Y1*Yo/[Ho-(Y1-Yo)] calculate respectively in pixel region A corresponding to raw video image, the summit in the pixel region upper left corner that the partial video image that shows in video window O is corresponding and the summit in the lower right corner are with respect to the coordinate figure of pixel benchmark initial point; Wherein:
N is the convergent-divergent multiple, 1>n>0;
XBo, YBo respectively are in pixel region A corresponding to raw video image, and the summit in the pixel region upper left corner that the partial video image that the raw video image after dwindling according to the convergent-divergent multiple shows in video window O is corresponding is with respect to the horizontal ordinate of pixel benchmark initial point, the coordinate figure of ordinate;
XB1, YB1 respectively are in pixel region A corresponding to raw video image, and the summit in the pixel region lower right corner that the partial video image that the raw video image after dwindling according to the convergent-divergent multiple shows in video window O is corresponding is with respect to the horizontal ordinate of pixel benchmark initial point, the coordinate figure of ordinate;
Wo, Ho respectively are the width of pixel region A corresponding to raw video image, highly.
As shown in Figure 3, owing to want multidisplay pixel to be in X-direction after dwindling: x1=(1-n) * (X1-Xo);
Want multidisplay pixel to be in Y direction after dwindling: y1=(1-n) * (Y1-Yo);
So dwindling rear point (Xo, Yo) should translation on x axle negative direction, the distance of translation is:
FBx=x1*Xo/[Wo-(X1-Xo)];
So, XBo=Xo-x1*Xo/[Wo-(X1-Xo)]
=Xo-(1-n)*(X1-Xo)*Xo/[Wo-(X1-Xo)];
In like manner: dwindling rear point (Xo, Yo) should translation on the Y-axis negative direction, and the distance of translation is:
FBy=y1*Yo/[Ho-(Y1-Yo)];
So, YBo=Yo-y1*Yo[Ho-(Y1-Yo)];
=Yo-(1-n)*(Y1-Yo)*Yo/[Ho-(Y1-Yo)];
Dwindle rear point (X1, Y1) should be on x axle positive dirction translation x1-FBx;
So dwindle the point (XB1, YB1) in the rear lower right corner be
XB1=X1+x1-FBx;
=X1+(1-n)*(X1-Xo)-x1*Xo/[Wo-(X1-Xo)];
Dwindle rear point (X1, Y1) should be on the Y-axis positive dirction translation y1-FBy;
YB1=Y1+y1-FBy;
=Y1+(1-n)*(Y1-Yo)-y1*Yo/[Ho-(Y1-Yo)];
When partial video image shown in the video window O is dwindled demonstration, convergent-divergent multiple n is greater than 0, less than 1, at this moment, owing to be to dwindle through the video image that amplifies, when the multiple that dwindles during less than the multiple that before raw video image amplified, although video image has dwindled, but the effect that shown video image brings the user in the video window O for the raw video image that never amplifies still is the state that video image is in amplification, for example will amplify 6 times video image, be reduced into and amplify 2 times video image, at this moment, although video image has dwindled 3 times, but, amplify 2 times video image, for the video image that does not amplify, still be in and amplify 2 times state, so the interior shown partial video image of video window O still only is the partial video image on raw video image.
In the time of can being implemented in accurately the invariant position of the pixel in the cursor pixel region pointed by the above coordinate figure that calculates, the partial video image that shows in the video window O is dwindled demonstration.
Because the sense organ of user's naked eyes usually can be too inaccurate, so above coordinate figure is to allow suitable error, even can carry out suitable change by above coordinate figure.Certainly, also can determine above-mentioned coordinate figure with the additive method outside the above method, for example: can set other relatively more suitable coordinate figures according to use experience.
In the present embodiment, be made as mouse and button outward, button comprises translation functions key and zoom function key; Reception is by the trigger pip of peripheral hardware input, and determines to may further comprise the steps the method for convergent-divergent multiple according to trigger pip:
Judge whether predefined zoom function key is activated;
If the zoom function key is activated, then detect number of times and rotating direction that inductor in the roller in the roller rolling process sends trigger pip;
The rule of correspondence between number of times, rotating direction and predefined number of times, rotating direction and the convergent-divergent multiple of the trigger pip of sending according to inductor is determined the concrete numerical value of convergent-divergent multiple.
The zoom function key can artificially be set, and zoom function key and translation functions key also can be same button.For example, zoom function key and translation functions key all can be set as Ctrl.
When the zoom function key is pressed, mode by scroll wheel just can be inputted the convergent-divergent multiple, for example: in wanting the amplified video window during shown video image, can be set as when (or making progress) rolls a roller forward, inductor produces a trigger pip, the convergent-divergent multiple increases by 0.1, (or upwards) is when rolling a roller namely for the first time forward, the convergent-divergent multiple becomes 1.1 from 1, video image is exaggerated 1.1 times, the initial value that is to say the convergent-divergent multiple can be defaulted as 1, also can be defaulted as 1.1, in the time of can being set as in the given time forward (or upwards) scroll wheel this moment, inductor produces a trigger pip, convergent-divergent multiple n becomes n square (for example 1.21) or convergent-divergent multiple n by n (for example 1.1) and becomes n+0.1 by n (for example 1), backward during (or downwards) scroll wheel, inductor produces a trigger pip, convergent-divergent multiple n becomes the square root (for example 1.1) of n or convergent-divergent multiple n by n (for example 1.21) and becomes n-0.1 by n (for example 1), until n is 1 o'clock, if when continuing backward in the given time (or downwards) scroll wheel this moment, inductor produces a trigger pip, convergent-divergent multiple n becomes 1-0.1 namely 0.9 or become 1/ (k+1) or be 1/ (k+0.1) by 1/k by n (for example 1), n is 1 o'clock, k is 1, if when continuing backward (or downwards) scroll wheel, inductor produces a trigger pip, and k increases by 1.
Certainly, in the present embodiment pressing keys can use press+or-number (for example: by once+the convergent-divergent multiple adds 1 or 0.1) or the mode of directly inputting concrete numerical value input the convergent-divergent multiple.
As shown in Figure 4, the video image zooming treating apparatus of the video image zooming disposal route that use the invention described above provided by the present invention provides, comprise User Interface 1, player 2, peripheral hardware, player 2 comprises broadcast window 20, video window 200 and transmit control module 25, video window 200 is positioned within the broadcast window 20, wherein:
User Interface 1 is used for receiving the trigger pip by the peripheral hardware input;
Transmit control module 25 is used for determining the convergent-divergent multiple according to trigger pip when broadcast window 20 overlaps with video window 200, plays the partial video image that intercepts from raw video image according to the convergent-divergent multiple at video window 200;
User Interface 1 also is used for determining the convergent-divergent multiple when video window 200 during less than the video window 200 interior demonstration raw video image of broadcast window 20 and convergent-divergent according to trigger pip, and according to the convergent-divergent multiple with video window 200 bi-directional scalings.
Video image zooming treating apparatus provided by the present invention has identical technical characterictic with the video image zooming disposal route that the invention described above provides, so also can realize identical technique effect, solve identical technical matters, so no longer repeat to set forth herein.
Player 2 in the present embodiment, also comprise Video Rendering module 24, wherein:
Transmit control module 25, be used for overlapping with video window 200 at broadcast window 20, and the convergent-divergent multiple is greater than 1 o'clock, calculates raw video image after the amplification at the mapping point of pixel region in pixel region corresponding to raw video image corresponding to the partial video image of video window 200 interior demonstrations according to the convergent-divergent multiple;
Transmit control module 25, also be used for video window 200 show be the partial video image of raw video image and convergent-divergent multiple less than 1 o'clock, calculate raw video image after dwindling according to the convergent-divergent multiple at the mapping point of pixel region in pixel region corresponding to raw video image corresponding to the partial video image of video window 200 interior demonstrations;
Video Rendering module 24 is used for pixel data corresponding to pixel region that the extract real-time mapping point limits, and plays out corresponding partial video image according to pixel data in video window 200.
Above method can be implemented in the situation of size constancy of broadcast window 20 and video window 200, to the amplification of the video image of video window 200 interior demonstrations, can also the video image after amplifying be dwindled.
Present embodiment is made as mouse 5 and button 6 at home and abroad, and player 2 also comprises file read module 21, separation module 22 and video decode module 23, wherein:
Video window 200 comprises also that less than the condition of broadcast window 20 size of video window 200, raw video image overlaps with broadcast window 20 threes;
User Interface 1 also is used for showing that at video window 200 raw video image and convergent-divergent multiple less than 1 o'clock, dwindle video window 200 according to the convergent-divergent multiple, determines video window 200 contracted position coordinates;
User Interface 1 also is used for showing raw video images at video window 200, and video window 200 greater than 1 o'clock, determines that video window 200 amplifies position coordinateses less than broadcast window 20 and convergent-divergent multiple;
The step of determining video window 200 contracted position coordinates is: being that the height of convergent-divergent multiple and current video window 200 is long-pending with the reduced height of video window 200 frames, is the amassing of width of convergent-divergent multiple and current video window 200 with the reduced width of video window 200;
Determine that the step that video window 200 amplifies position coordinateses is: the height that the height of video window 200 frames is enlarged into convergent-divergent multiple and current video window 200 is long-pending, the width of video window 200 is enlarged into the amassing of width of convergent-divergent multiple and current video window 200;
Video Rendering module 24 also is used for pixel data corresponding to extract real-time raw video image, and plays out corresponding video image according to pixel data in video window 200;
File read module 21 is used for reading the transmission control end and has the video file that node was obtained of video resource in the P2P network in the mode of P2P, and video file is sent to separation module 22;
Separation module 22 is used for video file is separated into video data encoder and voice data, and video data encoder is sent to video decode module 23;
Video decode module 23 is used for video data encoder is decoded as input video rendering module 24 behind the pixel data corresponding with the pixel region of video image;
Transmit control module 25 also is used for starting or closing Video Rendering module 24, file read module 21, separation module 22 and video decode module 23.
Can realize scaled down to the video image of the video window 200 in the broadcast window 20 and video window 200 interior demonstrations can also after scaled down, realizing the equal proportion amplification by the said method User Interface.
Transmission control end 7 is with P2P (Peer-to-Peer, Chinese can be translated into " equity " or " point-to-point ") the mode node that has video resource in the P2P network 8 obtain video file, be conducive to the fast transport of video file, and then help the quick broadcast of video image.Certainly, transmission control end 7 also can use other modes outside the P2P to obtain video file.
User Interface in the present embodiment, also for Fill Color between the video window after dwindling and the broadcast window, the color of filling is preferably ColorKey look (Transparent color) or black, also can fill other colors outside the black such as blueness, green.
The preferred implementation that provides in the method that the video image of 25 pairs of video window 200 interior demonstrations of transmit control module is processed in the present embodiment and the preferred implementation of applied algorithm thereof and the video image zooming disposal route that the invention described above provides is identical, so no longer repeat to set forth herein.
The present invention can be by the roller of roll mouse 6 and/or the mode of pressing keys 5, be preferably to adopt and pin Ctrl, and the mode of the roller of roll mouse 6 is inputted the convergent-divergent multiple, thereby be implemented in the situation of frame size constancy of video window 200, the raw video image of video window 200 interior demonstrations amplified show or dwindle, need not to adopt the method for prior art in video window 200, to pull out a rectangular area, not only can realize amplifying, input convergent-divergent multiple can be more accurate, but also can realize dwindling, simultaneously, operation is also more convenient.
The above; be the specific embodiment of the present invention only, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection domain of claim.

Claims (10)

1. a video image zooming disposal route is characterized in that, overlaps at video window and broadcast window, during perhaps less than broadcast window, adopts different convergent-divergents to process, and specifically may further comprise the steps:
Reception is by the trigger pip of peripheral hardware input, and determines the convergent-divergent multiple according to described trigger pip;
When described broadcast window overlaps with described video window, play the partial video image that intercepts from raw video image according to described convergent-divergent multiple at described video window;
When described video window during less than described broadcast window, with the video window bi-directional scaling, show raw video image according to described convergent-divergent multiple in the video window of described convergent-divergent.
2. video image zooming disposal route according to claim 1 is characterized in that, described video window comprises also that less than the condition of described broadcast window the size of described video window, described raw video image overlaps with described broadcast window three.
3. video image zooming disposal route according to claim 1, it is characterized in that, when described broadcast window overlaps with described video window, play the step of the partial video image that intercepts from raw video image according to described convergent-divergent multiple at described video window; May further comprise the steps:
Greater than 1 o'clock, calculate pixel region mapping point pixel region corresponding to described raw video image in corresponding to partial video image that raw video image amplification after described video window in show according to described convergent-divergent multiple at described convergent-divergent multiple; Perhaps, at described convergent-divergent multiple less than 1, and described video window shows when being the partial video image of raw video image, calculates the mapping point of pixel region in pixel region corresponding to described raw video image corresponding to partial video image that the described video image after dwindling according to described convergent-divergent multiple shows in described video window;
Pixel data corresponding to pixel region that the described mapping point of extract real-time limits, and in described video window, play out corresponding partial video image according to described pixel data.
4. according to claim 1 and 2 or 3 described video image zooming disposal routes, it is characterized in that, when described video window during less than described broadcast window, according to the step of described convergent-divergent multiple with the video window bi-directional scaling, also comprise:
A, when described video window shows raw video image, and described convergent-divergent multiple was less than 1 o'clock, dwindle video window according to described convergent-divergent multiple, determine described video window contracted position coordinate, perhaps, when described video window shows raw video image and described video window less than described broadcast window, and described convergent-divergent multiple was greater than 1 o'clock, according to described convergent-divergent multiple amplified video window, determine that video window amplifies position coordinates;
The step of described definite video window contracted position coordinate is: being that the height of described convergent-divergent multiple and current described video window is long-pending with the reduced height of described video window, is the amassing of width of described convergent-divergent multiple and current described video window with the reduced width of described video window;
The step that described definite video window amplifies position coordinates is: the height that the height of described video window frame is enlarged into described convergent-divergent multiple and current described video window is long-pending, the width of described video window is enlarged into the amassing of width of described convergent-divergent multiple and current described video window;
B, the pixel data that the extract real-time raw video image is corresponding, and in the described video window that dwindles, play out corresponding video image according to described pixel data.
5. video image zooming disposal route according to claim 2, it is characterized in that, in this video image zooming disposal route, according to described convergent-divergent multiple calculate amplify after or dwindle after the step of the mapping point of pixel region in pixel region corresponding to described raw video image corresponding to the partial video image that in described video window, shows of raw video image, may further comprise the steps:
Judge whether described cursor is positioned at described video window;
When described cursor is positioned at described video window, pixel with described cursor in the pixel region pointed or that point to the geometric center place of described video window is as the constant point in position, calculate the mapping point of pixel region in pixel region corresponding to described raw video image corresponding to partial video image that in described video window, shows according to the raw video image after the described convergent-divergent multiple amplification, perhaps
Pixel in the pixel region that points to the geometric center place of described video window is as the constant point in position, calculates the mapping point of pixel region in pixel region corresponding to raw video image corresponding to partial video image that the raw video image after dwindling according to described convergent-divergent multiple shows in described video window.
6. video image zooming disposal route according to claim 5 is characterized in that, the pixel region that described broadcast window, described video window and described raw video image are corresponding is all rectangular;
In this video image zooming disposal route, calculate the step of the mapping point of pixel region in pixel region corresponding to described raw video image corresponding to partial video image that the raw video image after the amplification shows according to described convergent-divergent multiple in described video window, may further comprise the steps:
As the window initial point, determine that described cursor is with respect to the coordinate figure of described window initial point with the top left corner apex of described video window;
With the top left corner apex of pixel region corresponding to the described video image that shows in the described video window before amplifying as the temporary transient initial point of pixel, according to formula Px=W1*X/W, Py=H1*Y/H calculates the position of the pixel in the described cursor pixel region pointed with respect to the coordinate figure of the temporary transient initial point of described pixel, wherein:
Px, Py respectively are the position of the pixel in the described cursor pixel region pointed with respect to the horizontal ordinate of the temporary transient initial point of described pixel, the coordinate figure of ordinate;
The width of the pixel region that the video image before W1, H1 respectively are and amplify is corresponding, highly;
X, Y respectively are described cursor with respect to the horizontal ordinate of described window initial point, the coordinate figure of ordinate;
W, H respectively are the width of the frame of described video window, highly;
C, according to formula Xo=(n-1) * Px/n+Xbo, Yo=(n-1) * Py/n+Ybo,
The summit in the upper left corner of the pixel region that the partial video image that the described video image after X1=W1/n+Xo, Y1=H1/n+Yo calculate respectively and amplify according to described convergent-divergent multiple shows in described video window is corresponding and the summit in the lower right corner are with respect to the coordinate figure of described pixel benchmark initial point; Wherein:
N is the convergent-divergent multiple, n>1;
The summit in the upper left corner of the pixel region that the partial video image that the described raw video image after Xo, Yo respectively are and amplify according to described convergent-divergent multiple shows in described video window is corresponding is with respect to the horizontal ordinate of described pixel benchmark initial point, the coordinate figure of ordinate;
The summit in the lower right corner of the pixel region that the partial video image that the described raw video image after X1, Y1 respectively are and amplify according to described convergent-divergent multiple shows in described video window is corresponding is with respect to the horizontal ordinate of described pixel benchmark initial point, the coordinate figure of ordinate;
Xbo, Ybo respectively are the temporary transient initial point of described pixel with respect to the horizontal ordinate of described pixel benchmark initial point, the coordinate figure of ordinate;
Described video window show be the partial video image time, the step of the mapping point of pixel region in pixel region corresponding to described raw video image that the partial video image that the described raw video image after calculating is dwindled according to described convergent-divergent multiple shows in described video window is corresponding is specially:
According to formula XBo=Xo-(1-n) * (X1-Xo) * Xo/[Wo-(X1-Xo)],
YBo=Yo-(1-n)*(Y1-Yo)*Yo/[Ho-(Y1-Yo)],
XB1=X1+(1-n)*(X1-Xo)-X1*Xo/[Wo-(X1-Xo)],
YB1=Y1+ (1-n) * (Y1-Yo)-Y1*Yo/[Ho-(Y1-Yo)] calculate respectively in pixel region corresponding to raw video image, the summit in the pixel region upper left corner that the partial video image that the described raw video image after dwindling according to described convergent-divergent multiple shows in described video window is corresponding and the summit in the lower right corner are with respect to the coordinate figure of described pixel benchmark initial point; Wherein:
N is the convergent-divergent multiple, 1>n>0;
XBo, YBo respectively are in pixel region corresponding to raw video image, and the summit in the pixel region upper left corner that the partial video image that the described raw video image after dwindling according to described convergent-divergent multiple shows in described video window is corresponding is with respect to the horizontal ordinate of described pixel benchmark initial point, the coordinate figure of ordinate;
XB1, YB1 respectively are in pixel region corresponding to raw video image, and the summit in the pixel region lower right corner that the partial video image that the described raw video image after dwindling according to described convergent-divergent multiple shows in described video window is corresponding is with respect to the horizontal ordinate of described pixel benchmark initial point, the coordinate figure of ordinate;
Wo, Ho respectively are the width of pixel region corresponding to raw video image, highly.
7. video image zooming disposal route according to claim 1 is characterized in that, describedly outer is made as mouse and button, and described button comprises the zoom function key;
Described reception is by the trigger pip of peripheral hardware input, and determines to may further comprise the steps the step of described convergent-divergent multiple according to described trigger pip:
Judge whether predefined described zoom function key is activated;
If described zoom function key is activated, then detect number of times and rotating direction that inductor in the roller in the described roller rolling process sends trigger pip;
The rule of correspondence between number of times, rotating direction and predefined described number of times, described rotating direction and the described convergent-divergent multiple of the described trigger pip of sending according to described inductor is determined the concrete numerical value of described convergent-divergent multiple.
8. a right to use requires the video image zooming treating apparatus of 1 to 7 arbitrary described video image zooming disposal route, it is characterized in that, this video image zooming treating apparatus, comprise User Interface, player, peripheral hardware, described player comprises broadcast window, video window and transmit control module, described video window is positioned within the described broadcast window, wherein:
Described User Interface is used for receiving the trigger pip by the peripheral hardware input;
Described transmit control module is used for determining the convergent-divergent multiple according to described trigger pip when described broadcast window overlaps with described video window, plays the partial video image that intercepts from raw video image according to described convergent-divergent multiple at described video window;
Described User Interface, also be used for when described video window less than the video window of described broadcast window and described convergent-divergent in during the demonstration raw video image, determine the convergent-divergent multiple according to described trigger pip, and according to described convergent-divergent multiple with the video window bi-directional scaling.
9. video image zooming treating apparatus according to claim 8 is characterized in that, described player also comprises the Video Rendering module, wherein:
Described transmit control module, be used for overlapping with described video window at described broadcast window, and described convergent-divergent multiple is greater than 1 o'clock, calculates the mapping point of pixel region in pixel region corresponding to described raw video image corresponding to partial video image that the raw video image after the amplification shows according to described convergent-divergent multiple in described video window;
Described transmit control module, also be used for described video window show be the partial video image of raw video image and described convergent-divergent multiple less than 1 o'clock, calculate the mapping point of pixel region in pixel region corresponding to described raw video image corresponding to partial video image that the described raw video image after dwindling according to described convergent-divergent multiple shows in described video window;
Described Video Rendering module is used for pixel data corresponding to pixel region that the described mapping point of extract real-time limits, and plays out corresponding partial video image according to described pixel data in described video window.
10. according to claim 8 or 9 described video image zooming treating apparatus, it is characterized in that describedly be made as mouse and button outward, described player also comprises file read module, separation module and video decode module, wherein:
Described video window comprises also that less than the condition of described broadcast window the size of described video window, described raw video image overlaps with described broadcast window three;
Described User Interface also is used for showing that at described video window raw video image and described convergent-divergent multiple less than 1 o'clock, dwindle described video window according to described convergent-divergent multiple, determines described video window contracted position coordinate;
Described User Interface, also be used for described video window show raw video image, described video window less than described broadcast window and described convergent-divergent multiple greater than 1 o'clock, determine that described video window amplifies position coordinates;
The step of described definite video window contracted position coordinate is: being that the height of described convergent-divergent multiple and current described video window is long-pending with the reduced height of described video window frame, is the amassing of width of described convergent-divergent multiple and current described video window with the reduced width of described video window;
The step that described definite video window amplifies position coordinates is: the height that the height of described video window frame is enlarged into described convergent-divergent multiple and current described video window is long-pending, the width of described video window is enlarged into the amassing of width of described convergent-divergent multiple and current described video window;
Described Video Rendering module also is used for pixel data corresponding to extract real-time raw video image, and plays out corresponding video image according to described pixel data in described video window;
Described file read module is used for reading the transmission control end and has the video file that node was obtained of video resource in the P2P network in the mode of P2P, and described video file is sent to described separation module;
Described separation module is used for described video file is separated into video data encoder and voice data, and described video data encoder is sent to described video decode module;
Described video decode module is inputted described Video Rendering module after described video data encoder being decoded as the pixel data corresponding with the pixel region of video image;
Described transmit control module also is used for starting or closing described Video Rendering module, described file read module, described separation module and described video decode module.
CN201110203825.XA 2011-07-20 2011-07-20 Video image zooming disposal route and video image zooming treating apparatus Expired - Fee Related CN102890816B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110203825.XA CN102890816B (en) 2011-07-20 2011-07-20 Video image zooming disposal route and video image zooming treating apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110203825.XA CN102890816B (en) 2011-07-20 2011-07-20 Video image zooming disposal route and video image zooming treating apparatus

Publications (2)

Publication Number Publication Date
CN102890816A true CN102890816A (en) 2013-01-23
CN102890816B CN102890816B (en) 2015-07-29

Family

ID=47534310

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110203825.XA Expired - Fee Related CN102890816B (en) 2011-07-20 2011-07-20 Video image zooming disposal route and video image zooming treating apparatus

Country Status (1)

Country Link
CN (1) CN102890816B (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079978A (en) * 2014-06-27 2014-10-01 西安诺瓦电子科技有限公司 Window-adaptive media playing method and device and media interconnection release method
CN107371062A (en) * 2017-08-25 2017-11-21 四川长虹电器股份有限公司 The method of video pictures auto zoom
CN107623798A (en) * 2016-07-15 2018-01-23 中兴通讯股份有限公司 A kind of method and device of video local scale
WO2018023847A1 (en) * 2016-08-01 2018-02-08 北京百度网讯科技有限公司 Processor and method for scaling image
CN109348276A (en) * 2018-11-08 2019-02-15 北京微播视界科技有限公司 Video pictures method of adjustment, device, computer equipment and storage medium
CN109727257A (en) * 2018-12-28 2019-05-07 北京金山安全软件有限公司 Method, device and terminal for automatically cutting picture
CN110362250A (en) * 2018-04-09 2019-10-22 杭州海康威视数字技术股份有限公司 A kind of method, apparatus and display equipment of image local amplification
CN110595603A (en) * 2019-04-26 2019-12-20 深圳市豪视智能科技有限公司 Video-based vibration analysis method and related product
CN111835957A (en) * 2019-04-16 2020-10-27 西安诺瓦电子科技有限公司 Video processing method, video processing device and video processing equipment
WO2022022689A1 (en) * 2020-07-31 2022-02-03 北京字节跳动网络技术有限公司 Interaction method and apparatus, and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6323878B1 (en) * 1999-03-03 2001-11-27 Sony Corporation System and method for providing zooming video capture
JP2005345917A (en) * 2004-06-04 2005-12-15 Canon Inc Image processing apparatus and method for same, and program and storage medium
CN101408828A (en) * 2007-10-10 2009-04-15 英业达股份有限公司 Method for scaling display picture of electronic device
CN101576996A (en) * 2009-06-05 2009-11-11 腾讯科技(深圳)有限公司 Processing method and device for realizing image zooming
CN102033725A (en) * 2009-09-28 2011-04-27 英业达股份有限公司 Real-time operation set zoom and display interface, system and method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6323878B1 (en) * 1999-03-03 2001-11-27 Sony Corporation System and method for providing zooming video capture
JP2005345917A (en) * 2004-06-04 2005-12-15 Canon Inc Image processing apparatus and method for same, and program and storage medium
CN101408828A (en) * 2007-10-10 2009-04-15 英业达股份有限公司 Method for scaling display picture of electronic device
CN101576996A (en) * 2009-06-05 2009-11-11 腾讯科技(深圳)有限公司 Processing method and device for realizing image zooming
CN102033725A (en) * 2009-09-28 2011-04-27 英业达股份有限公司 Real-time operation set zoom and display interface, system and method

Cited By (19)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079978A (en) * 2014-06-27 2014-10-01 西安诺瓦电子科技有限公司 Window-adaptive media playing method and device and media interconnection release method
CN104079978B (en) * 2014-06-27 2017-07-21 西安诺瓦电子科技有限公司 Window adaptive media playout method and device and media networking dissemination method
CN107623798A (en) * 2016-07-15 2018-01-23 中兴通讯股份有限公司 A kind of method and device of video local scale
WO2018023847A1 (en) * 2016-08-01 2018-02-08 北京百度网讯科技有限公司 Processor and method for scaling image
CN107680028A (en) * 2016-08-01 2018-02-09 北京百度网讯科技有限公司 Processor and method for zoomed image
US10922785B2 (en) 2016-08-01 2021-02-16 Beijing Baidu Netcom Science And Technology Co., Ltd. Processor and method for scaling image
CN107371062A (en) * 2017-08-25 2017-11-21 四川长虹电器股份有限公司 The method of video pictures auto zoom
CN107371062B (en) * 2017-08-25 2020-06-02 四川长虹电器股份有限公司 Method for automatically zooming video picture
CN110362250A (en) * 2018-04-09 2019-10-22 杭州海康威视数字技术股份有限公司 A kind of method, apparatus and display equipment of image local amplification
CN109348276B (en) * 2018-11-08 2019-12-17 北京微播视界科技有限公司 video picture adjusting method and device, computer equipment and storage medium
CN109348276A (en) * 2018-11-08 2019-02-15 北京微播视界科技有限公司 Video pictures method of adjustment, device, computer equipment and storage medium
US11144201B2 (en) 2018-11-08 2021-10-12 Beijing Microlive Vision Technology Co., Ltd Video picture adjustment method and apparatus, computer device and storage medium
CN109727257A (en) * 2018-12-28 2019-05-07 北京金山安全软件有限公司 Method, device and terminal for automatically cutting picture
CN111835957A (en) * 2019-04-16 2020-10-27 西安诺瓦电子科技有限公司 Video processing method, video processing device and video processing equipment
CN111835957B (en) * 2019-04-16 2021-07-06 西安诺瓦星云科技股份有限公司 Video processing method, video processing device and video processing equipment
CN110595603A (en) * 2019-04-26 2019-12-20 深圳市豪视智能科技有限公司 Video-based vibration analysis method and related product
CN110595603B (en) * 2019-04-26 2022-04-19 深圳市豪视智能科技有限公司 Video-based vibration analysis method and related product
WO2022022689A1 (en) * 2020-07-31 2022-02-03 北京字节跳动网络技术有限公司 Interaction method and apparatus, and electronic device
US11863835B2 (en) * 2020-07-31 2024-01-02 Douyin Vision Co., Ltd. Interaction method and apparatus, and electronic device

Also Published As

Publication number Publication date
CN102890816B (en) 2015-07-29

Similar Documents

Publication Publication Date Title
CN102890816A (en) Method and device for video image scaling
CN102890603B (en) Video image processing method and video image processing device
CN103530032B (en) Mobile terminal, image display device and use its user interface providing method
CN103365572B (en) The remote control method and electronic equipment of a kind of electronic equipment
KR102350933B1 (en) Image display apparatus
CN101930337A (en) Method for processing on-screen display and associated embedded system
CN107678661A (en) The method and apparatus of display data content
EP1825472B1 (en) Method and apparatus for video editing on small screen with minimal input device
US10452777B2 (en) Display apparatus and character correcting method thereof
US9652824B2 (en) Display system, display device, display terminal, display method of display terminal, and control program
CN101848346A (en) Television and image display method thereof
KR101885132B1 (en) Apparatus and method for input by touch in user equipment
CN105022599A (en) Terminal and terminal screen display method
CN103888685A (en) Display control method and system for tiled display device
CN107077296A (en) Subscriber terminal equipment and the method for controlling subscriber terminal equipment
CN112527176A (en) Screen capturing method and screen capturing device
WO2014050211A1 (en) Program, display device, television receiver, display method, and display system
US20160231917A1 (en) Display apparatus and display method
JP2015141327A (en) learning support system and learning support program
CN113741775A (en) Image processing method and device and electronic equipment
CN105635522A (en) Video displaying method and device based on user requirements
CN102999244A (en) Realization method, realization system and manufacturing method for exhibition of electronic house type
CN105975165B (en) Display control method of fisheye menu
KR102246904B1 (en) Image display apparatus
CN108153456B (en) Interface switching method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20200617

Address after: No.266 Chuangyan Road, Qilin science and Technology Innovation Park, Jiangning District, Nanjing City, Jiangsu Province

Patentee after: Nanjing Qianying Technology Development Co.,Ltd.

Address before: 518057 Guangdong city of Shenzhen province Nanshan District Gao Xin Road No. 009 Chinese Technology Development Institute Technology Park building three, floor 22, tower A

Patentee before: SHENZHEN QVOD TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201105

Address after: No.16, dongbanqiao Road, Shizhuang Town, Rugao City, Nantong City, Jiangsu Province, 226000

Patentee after: Nantong Xingshi material Trade Co.,Ltd.

Address before: No.266 Chuangyan Road, Qilin science and Technology Innovation Park, Jiangning District, Nanjing City, Jiangsu Province

Patentee before: Nanjing Qianying Technology Development Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150729

Termination date: 20210720

CF01 Termination of patent right due to non-payment of annual fee