CN102890603A - Video image processing method and video image processing device - Google Patents

Video image processing method and video image processing device Download PDF

Info

Publication number
CN102890603A
CN102890603A CN2011102038847A CN201110203884A CN102890603A CN 102890603 A CN102890603 A CN 102890603A CN 2011102038847 A CN2011102038847 A CN 2011102038847A CN 201110203884 A CN201110203884 A CN 201110203884A CN 102890603 A CN102890603 A CN 102890603A
Authority
CN
China
Prior art keywords
window
video image
video
pixel region
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
CN2011102038847A
Other languages
Chinese (zh)
Other versions
CN102890603B (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 haisai future digital technology 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 CN201110203884.7A priority Critical patent/CN102890603B/en
Publication of CN102890603A publication Critical patent/CN102890603A/en
Application granted granted Critical
Publication of CN102890603B publication Critical patent/CN102890603B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention provides a video image processing method and a video image processing device, relates to the technical field of electronics to solve the technical problems of single function and troublesome operation in the prior art. The video image processing method comprises the following steps: tracking a track of a cursor in a play window when the cursor is in the play window of a player and a translation function key is activated; when the play window overlaps with a video window in the play window and a part of a video image intercepted from an original video image is displayed in the play window, translating the part of video image displayed in the video window along with the track of the cursor. The video image processing device comprises a user interface, a player and an external device, and the player comprises a play window and a play control module. The video image processing method is used for translating and zooming the video image.

Description

Method of video image processing and video image processing device
Technical field
The present invention relates to electronic technology field, be specifically related to a kind of method of video image processing and a kind of video image processing device that uses this method of video image processing.
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, thereby realization is amplified demonstration to the video image in the broadcast window when the frame size of the broadcast window of player is constant.
The inventor finds in realizing process of the present invention, and there is following technical matters at least in prior art:
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 in the situation that do not change broadcast window frame size, can't translation through the video image that amplifies, when watching the video image that broadcast window do not show under the state that the user amplifies, need the video after reduction is amplified first, then on the video image of watching under the state that needs amplify, again pull out a rectangular area, the video image that broadcast window does not show before just watching after in this way video image being amplified, operate bothers very much, so there is function singleness in prior art, the technical matters of troublesome poeration.
Summary of the invention
The invention provides a kind of method of video image processing and a kind of video image processing device that uses this method of video image processing, 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:
Method of video image processing provided by the present invention may further comprise the steps:
When cursor is positioned at the broadcast window of player and translation functions key and is activated, follow the trail of the track of described cursor in described broadcast window;
When video window in the described broadcast window overlapped, and described broadcast window showed intercepting when the partial video image of raw video image at described broadcast window, and the partial video image that described video window shows is followed the track of described cursor and translation.
The video image processing device of the method for video image processing that use the invention described above provides comprises User Interface, player, peripheral hardware, and described player comprises broadcast window and transmit control module, wherein:
Described User Interface is used for following the trail of the track of described cursor in described broadcast window when cursor is positioned at the described broadcast window of described player and translation functions key and is activated;
Described transmit control module, be used at described broadcast window when video window in the described broadcast window overlaps, and described broadcast window shows intercepting when the partial video image of raw video image, and the partial video image that described video window is shown is followed the track of described cursor and translation.
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 when the video image that video window shows is partial video image on the 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, use the user of technique scheme provided by the present invention, in the situation of the frame size constancy of the video window in broadcast window, after 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, when wanting the video image of demonstration in the translation broadcast window, (for example: pin Ctrl can activate first the translation functions key, pin simultaneously left mouse button), then, the video image that shows in the mode translation broadcast window by translation cursor in broadcast window, thereby the video image that the video window in the broadcast window does not show is moved to video window to be shown, compared with prior art, when watching the video image that does not show in the video window 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, more convenient so operate, and then solved prior art and have function singleness, the technical matters of troublesome poeration.
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 method of video image processing provided by the present invention;
Fig. 2 is for using method of video image processing provided by the present invention, when in video window, playing the partial video image on the raw video image, the change procedure schematic 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 method of video image processing 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 schematic 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 schematic diagram of the annexation of the inside chief component of the preferred implementation of the video image processing device of use method of video image processing 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, method of video image processing simple to operate, easy to use and the video image processing device that uses this method of video image processing.
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; After region representation shown in the R amplifies raw video image according to enlargement factor, at the pixel region corresponding to partial video image of video window demonstration; Region representation shown in the S amplifies demonstration to the video window in the broadcast window, the video window before amplifying; When region representation shown in the E will dwindle demonstration through the video image that amplifies according to minification, 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; Position after the cursor of being drawn by solid line on the video window in 1c and the 1d part among Fig. 1 (mouse is at the arrow that shows screen display) the expression cursor translation, the cursor of dotted lines represents the position of cursor before translation.
The video image that the translation video window shows after being amplified by raw video image:
Shown in 1c among Fig. 1 and 1d part, method of video image processing provided by the present invention may further comprise the steps:
S1, 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;
S2, at broadcast window P when video window O in the broadcast window P overlaps, and when the video window O in the broadcast window P showed the partial video image of intercepting on original video figure, the partial video image that video window O is shown was followed the track of cursor and translation.
Overlap with video window O in the broadcast window P at broadcast window P, and when the video image that video window O shows is partial video image on the 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, the video image that shows in the mode translation broadcast window P by the translation cursor, 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, more convenient so operate, and then solved prior art and have function singleness, the technical matters of troublesome poeration.
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 method for 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 video image that the translation video window shows after being dwindled by raw video image:
Method of video image processing in the present embodiment, further comprising the steps of:
When the video window O that shows raw video image is less than or equal to broadcast window P, make video window O with and the video image of interior demonstration all follow track translation under the constraint of broadcast window P of cursor.
The video window O that shows raw video image is less than or equal to two kinds of situations of broadcast window P existence, 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, 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 the video image that this moment, video window O showed is 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 video window O with and the track translation under the constraint of broadcast window P of all following cursor of the video image of interior demonstration comprise that the Geometric center coordinates of the long limit of video window O and long limit that broadside is no more than broadcast window P and broadside or video window O is limited in the broadcast window P or the track of cursor is limited in the broadcast window P.
This design so that the user when translation video window O, can video window O thoroughly not shifted out broadcast window P because of maloperation, thereby affect normally watching of video image.
In the present embodiment, the track of cursor is the track of cursor translation in video window O, make in this method of video image processing video window O with and the video image of interior demonstration all follow the method for track translation under the constraint of broadcast window of cursor, 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 translation 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 the track of cursor translation in video window O, also can be the track of the regional translation of cursor between video window O and broadcast window P, is preferably the track of translation 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 method of video image processing, make the video image that shows in the video window O follow the track of cursor and the method for translation 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 by the partial video image that shows in the mode translation broadcast window P of translation cursor, show thereby the video image that the video window O in the broadcast window P does not show is moved to video window O.
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, make the method for the interior partial video image of video window O demonstration raw video image in the broadcast window P, may further comprise the steps:
S01, receive the trigger pip by the peripheral hardware input, and determine enlargement factor according to trigger pip, enlargement factor is amplified the multiple that shows for the video image that will show in the video window O;
S02, calculate the mapping point of pixel region in pixel region corresponding to raw video image corresponding to partial video image that the video image after the amplification shows according to enlargement factor in video window O;
Pixel data corresponding to pixel region that S03, extract real-time mapping point limit, and in video window O, play out corresponding partial video image according to pixel data.
The present invention can be by peripheral hardware (for example: the roller of roll mouse and/or the left button of clicking the mouse, right button, roller, pressing keys) mode, in the situation of the frame size constancy of input broadcast window P and video window O, the video image that shows in the video window O is amplified the multiple that shows, and then can amplify demonstration to the video image that shows in the video window O according to enlargement factor, need not to adopt the method for prior art in video window O, to pull out a rectangular area, as seen, the present invention not only inputs enlargement factor can be more accurate, and operation is also more convenient.
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, this method of video image processing, further comprising the steps of:
S04, receive the trigger pip of peripheral hardware input, and determine minification according to trigger pip, minification is for dwindling the video image that shows in the video window O multiple of demonstration;
S05, video window O show be the partial video image time, calculate the mapping point of pixel region in pixel region A corresponding to raw video image corresponding to partial video image that the video image after dwindling according to minification shows in video window O;
Pixel data corresponding to pixel region that S06, extract real-time mapping point limit, 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 the partial video image 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 partial video image that the present invention shows in can also realizing in the situation of the frame size constancy of video window O video window O dwindles 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:
Shown in 1a among Fig. 1 and 1b part, method of video image processing in the present embodiment, further comprising the steps of:
Reception is by the trigger pip of peripheral hardware input, and determines minification according to trigger pip, and minification is for all dwindling the video image that shows in video window O and the video window O multiple of demonstration with same ratio;
When pixel region corresponding to video image that shows at video window O is pixel region corresponding to raw video image, dwindle video window O according to minification, determine video window O contracted position coordinate;
The step of contracted position coordinate is: being that the height of minification and current video window O is long-pending with the reduced height of video window O frame, is the amassing of width of minification 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.
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 video image of video window O is raw video image, 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 minification is 1/2 o'clock, 1/2 before the frame of video window O is of a size of and dwindles.At this moment, minification m 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 minification diminishes, can think the 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 minification 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 enlargement factor n and increase to 2 or 1.1 from 1, if when continuing forward (or upwards) scroll wheel, inductor produces a trigger pip, then enlargement factor n increases 1 or 0.1.
Shown in 1b among Fig. 1 and 1f part, method of video image processing in the present embodiment, further comprising the steps of:
Reception is by the trigger pip of peripheral hardware input, and determine enlargement factor according to trigger pip, enlargement factor is in the situation of the frame size constancy of broadcast window P, and the video image that shows in video window O and the video window O is all amplified the multiple that shows with same ratio;
Pixel region corresponding to video image that shows at video window O is pixel region corresponding to raw video image and video window O during less than broadcast window P, according to enlargement factor amplified video window O, determines that video window O amplifies position coordinates; The step of amplifying position coordinates is: the height of video window O frame is enlarged into enlargement factor long-pending with the height of current video window S shown in 1f part among Fig. 1, the width of video window O is enlarged into the amassing of width of enlargement factor 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 method of video image processing, 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;
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, the method for the mapping point of pixel region in pixel region A corresponding to raw video image that the partial video image that calculating shows in broadcast window is corresponding may further comprise the steps:
S0201, judge whether cursor is positioned at video window O;
S0202, 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 video image after the enlargement factor amplification, 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 video image after dwindling according to minification 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 video image after dwindling according to minification shows at video window O, because the geometric center of video window O is the point that location comparison is easily determined, 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 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 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 enlargement factor 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.Pixel of mouse translation, then also pixel of translation of picture.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 method 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 video image after calculating is amplified according to enlargement factor shows in video window O is corresponding may further comprise the steps:
S021, with one of them summit of video window O as the window initial point, determine that cursor is with respect to the coordinate figure of window initial point;
S022, 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;
S023, 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, enlargement factor, 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 video image after amplifying according to enlargement factor 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 video image after amplifying according to enlargement factor 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 enlargement factor 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 method for 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 video image after amplifying according to enlargement factor shows with respect to the method for 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 video image after X1=W1/n+Xo, Y1=H1/n+Yo calculate respectively and amplify according to enlargement factor 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 enlargement factor, n>1;
The summit in the upper left corner of the pixel region R that the partial video image that the video image after Xo, Yo respectively are and amplify according to enlargement factor 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 video image after X1, Y1 respectively are and amplify according to enlargement factor 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 realizing accurately the invariant position of the pixel in 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 method for 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 method for 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-m) * (X1-Xo) * Xo/[Wo-(X1-Xo)],
YBo=Yo-(1-m)*(Y1-Yo)*Yo/[Ho-(Y1-Yo)],
XB1=X1+(1-m)*(X1-Xo)-X1*Xo/[Wo-(X1-Xo)],
YB1=Y1+ (1-m) * (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:
M is minification, 1>m>0, and (1/m)≤n;
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 video image after dwindling according to minification 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 video image after dwindling according to minification 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 wanting multidisplay pixel to be in X-direction after dwindling: x1=(1-m) * (X1-Xo);
Want multidisplay pixel to be in Y direction after dwindling: y1=(1-m) * (Y1-Yo);
Therefore 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-m)*(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-m)*(Y1-Yo)*Yo/[Ho-(Y1-Yo)];
Dwindle rear point (X1, Y1) should be on x axle positive dirction translation x1-FBx;
Therefore dwindle the point (XB1, YB1) in the rear lower right corner be
XB1=X1+x1-FBx;
=X1+(1-m)*(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-m)*(Y1-Yo)-y1*Yo/[Ho-(Y1-Yo)];
When partial video image shown in the video window O is dwindled demonstration, minification m is greater than 0, less than 1, and (1/m)≤n, at this moment, owing to being to dwindle through the video image that amplifies, so although video image has dwindled, but the effect that shown video image brings the user in the video window O for the video image that does not amplify 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 realizing accurately the invariant position of the pixel in 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 the method for enlargement factor or minification according to trigger pip, may further comprise the steps:
S040, judge whether predefined zoom function key is activated;
If S041 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 enlargement factor or the minification of S042, the trigger pip sent according to inductor is determined the concrete numerical value of enlargement factor or minification.
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 enlargement factor or minification, for example: in wanting the amplified video window during shown partial video image, can be set as when (or making progress) rolls a roller forward, inductor produces a trigger pip, enlargement factor increases by 0.1, for example enlargement factor increases to 1.1 by 1, video image is exaggerated 1.1 times, the initial value that is to say enlargement factor and minification can be defaulted as 1, in the time of can being set as in the given time forward (or upwards) scroll wheel, inductor produces a trigger pip, enlargement factor n becomes n+0.1 or enlargement factor n are become n by n (for example 1.1) square (for example 1.21) by n (for example 1), backward during (or downwards) scroll wheel, inductor produces a trigger pip, enlargement factor n becomes n-0.1 by square root (for example 1.1) or the enlargement factor n that n (for example 1.21) becomes n by n, 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, minification becomes 1-0.1 namely 0.9 or minification becomes 1/ (k+1) by 1/k or be 1/ (k+0.1) by the initial value 1 of minification, k is 1, if when continuing backward (or downwards) scroll wheel, inductor produces a trigger pip, minification continue to reduce 0.1 or k continue to increase by 0.1.The rule of correspondence between the number of times of the trigger pip that inductor sends, rotating direction and enlargement factor or the minification is Set arbitrarily artificially.
Certainly, in the present embodiment pressing keys can use press+or-number (for example: by once+enlargement factor adds 1 or 0.1) or the mode of directly inputting concrete numerical value input enlargement factor or minification.
As shown in Figure 4, the video image processing device of the method for video image processing that use the invention described above provided by the present invention provides, comprise User Interface 1, player 2, peripheral hardware (for example can comprise button 5 and the mouse 6 that is provided with roller), player 2 comprises broadcast window 20 and transmit control module 25 wherein:
User Interface 1 is used for when cursor is positioned at the broadcast window 20 of player and translation functions key and is activated the track of tracking cursor in broadcast window 20;
Transmit control module 25, be used at broadcast window 20 when video window 200 in the broadcast window 20 overlaps, and the video windows in the broadcast window 20 200 show intercepting when the partial video image of raw video image, and the partial video image that video window 200 is shown is followed the track of cursor and translation.
Video image processing device provided by the present invention has identical technical characterictic with the method for video image processing that the invention described above provides, so also can realize identical technique effect, solves identical technical matters, so no longer repeat to set forth herein.
User Interface 1 in the present embodiment, when the video window 200 that also be used for to show raw video image is less than or equal to broadcast window 20, make video window 200 with and the video image of interior demonstration all follow track translation under the constraint of broadcast window 20 of cursor.
User Interface 1 can be when video window 200 shows raw video image, realize to video window 200 with and the translation of the video image of interior demonstration, thereby so that the function of video process apparatus provided by the present invention horn of plenty more.
In the present embodiment video window 200 with and the track translation under the constraint of broadcast window 20 of all following cursor of the video image of interior demonstration comprise that the Geometric center coordinates of the long limit of video window 200 and long limit that broadside is no more than broadcast window 20 and broadside or video window 200 is limited in the broadcast window 20 or the track of cursor is limited in the broadcast window 20.
This design not be so that the user when translation video window 200, can thoroughly shift out broadcast window 20 with video window 200 because of maloperation, thereby affects normally watching of video image.
As shown in Figure 4, in the present embodiment, player 2 also comprises file read module 21, separation module 22 and video decode module 23 and Video Rendering module 24, wherein:
Transmit control module 25, also be used at the video window 200 that shows raw video image during less than broadcast window 20, according to the corresponding relation between the coordinate of the track of the coordinate of video window before the translation 200 in broadcast window 20, cursor and predefined track and video window 200, calculate the coordinate of translation rear video window 200 in broadcast window 20, and with the position translation of video window 200 position to the coordinate indication that calculates;
Video Rendering module 24 also is used at the video window 200 that shows raw video image during less than broadcast window 20, the pixel data that the extract real-time raw video image is corresponding, and in video window 200, play out corresponding video image according to pixel data;
Transmit control module 25, also be used at broadcast window 20 when video window 200 in the broadcast window 20 overlaps, and 200 demonstrations of the video window in the broadcast window 20 intercept when the partial video image of raw video image, and the mapping point of pixel region on pixel region corresponding to raw video image corresponding to partial video image that video window 200 is shown followed the track of cursor and changed;
Video Rendering module 24 also is used for pixel data corresponding to pixel region that extract real-time is limited by the mapping point after changing, and plays out in video window 200 with mapping point according to pixel data and to follow the trail of accordingly video image;
File read module 21 is used for reading transmission control end 7 has video resource in the P2P network 8 in the mode of P2P the video file that node was obtained, 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.
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 1 in the present embodiment, also be used for receiving the trigger pip by the peripheral hardware input, and determine minification or enlargement factor according to trigger pip, enlargement factor is all amplified the multiple that shows with same ratio for the video image that will show in video window and the video window;
User Interface 1, also be used for when pixel region corresponding to partial video image that video window 200 shows is pixel region corresponding to raw video image, dwindle video window 200 according to minification, determine video window 200 contracted position coordinates, the step of contracted position coordinate is: being that the height of minification and current video window 200 is long-pending with the reduced height of video window 200 frames, is the amassing of width of minification and current video window 200 with the reduced width of video window 200;
User Interface, also being used at pixel region corresponding to video image that video window 200 shows is that pixel region corresponding to raw video image and video window 200 are during less than broadcast window 20, according to enlargement factor amplified video window 200, determine that video window 200 amplifies position coordinates; The step of amplifying position coordinates is: the height of video window 200 frames is enlarged into the amassing of height of enlargement factor and current video window 200, the width of video window 200 is enlarged into the amassing of width of enlargement factor and current video window 200.
Can realize the video windows 200 in the broadcast window 20 are dwindled and amplify by the said method User Interface.
User Interface in the present embodiment also is used for Fill Color between the frame of the frame of the video window after dwindling and broadcast window, and the color of filling is preferably black.
The preferred implementation that provides in the preferred implementation of the algorithm that the partial video image of 25 pairs of video window 200 interior demonstrations of transmit control module is processed in the present embodiment and the method for video image processing 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 enlargement factor and minification, thereby realization is in the situation of the 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, the input enlargement factor 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 method of video image processing is characterized in that, may further comprise the steps:
When cursor is positioned at the broadcast window of player and translation functions key and is activated, follow the trail of the track of described cursor in described broadcast window;
When video window in the described broadcast window overlapped, and described video window showed intercepting when the partial video image of raw video image at described broadcast window, and the partial video image that described video window shows is followed the track of described cursor and translation.
2. method of video image processing according to claim 1 is characterized in that, this method of video image processing is further comprising the steps of:
When the described video window that shows raw video image during less than described broadcast window, described video window with and the video image of interior demonstration all follow track translation under the constraint of described broadcast window of described cursor.
3. method of video image processing according to claim 2, it is characterized in that, described video window with and the track translation under the constraint of broadcast window of all following described cursor of the video image of interior demonstration comprise that the Geometric center coordinates of the long limit of described video window and long limit that broadside is no more than described broadcast window and broadside or described video window is limited in the described broadcast window or the track of cursor is limited in the described broadcast window.
4. according to claim 1 and 2 or 3 described method of video image processing, it is characterized in that, the track of described cursor is the track of described cursor translation in described video window;
In this method of video image processing, make described video window with and the video image of interior demonstration all follow the method for track translation under the constraint of described broadcast window of described cursor, may further comprise the steps:
According to the corresponding relation between the coordinate of the track of the coordinate of described video window before the translation in described broadcast window, described cursor and predefined described track and described video window, calculate the coordinate of described video window in described broadcast window after the translation, and with the position translation of described video window to the corresponding position of described coordinate that calculates;
The pixel data that the extract real-time raw video image is corresponding, and according to playing out corresponding video image in the described video window of described pixel data after translation;
Perhaps, in this method of video image processing, the partial video image that described video window is shown is followed the track of described cursor and the method for translation 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 described video window is shown followed the track of described cursor and changed;
Pixel data corresponding to pixel region that extract real-time is limited by the described mapping point after changing, and in described video window, play out with described mapping point according to described pixel data and to follow the trail of accordingly video image;
And/or, in this method of video image processing, when video window in the broadcast window overlaps, make described broadcast window show the method for the partial video image of intercepting in raw video image at described broadcast window, may further comprise the steps:
Reception is by the trigger pip of peripheral hardware input, and determines enlargement factor according to described trigger pip, and described enlargement factor is amplified the multiple that shows for the video image that will show in the described video window;
Calculate the mapping point of pixel region in pixel region corresponding to described raw video image corresponding to partial video image that the video image after the amplification shows according to described enlargement factor 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;
Reception is by the trigger pip of peripheral hardware input, and determines minification according to described trigger pip, and described minification is for dwindling the described video image that shows in the described video window multiple of demonstration;
Described video window show be the partial video image time, calculate 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 minification 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.
5. method of video image processing according to claim 4 is characterized in that, when the described video window that shows raw video image during less than described broadcast window, plays the method for raw video image at described video window, may further comprise the steps:
Reception is by the trigger pip of peripheral hardware input, and determines minification according to described trigger pip, and described minification is for all dwindling the described video image that shows in described video window and the described video window multiple of demonstration with same ratio;
When pixel region corresponding to video image that shows at described video window is pixel region corresponding to raw video image, dwindle video window according to minification, determine described video window contracted position coordinate;
The step of described definite video window contracted position coordinate is: being that the height of described minification and current described video window is long-pending with the reduced height of described video window frame, is the amassing of width of described minification and current described video window with the reduced width of described video window;
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;
And/or, when the described video window that shows raw video image during less than described broadcast window, play the method for raw video image at described video window, may further comprise the steps:
Reception is by the trigger pip of peripheral hardware input, and determine enlargement factor according to described trigger pip, described enlargement factor is in the situation of the frame size constancy of described broadcast window, and the video image that shows in described video window and the video window is all amplified the multiple that shows with same ratio;
Pixel region corresponding to video image that shows at described video window is pixel region corresponding to raw video image and video window during less than described broadcast window, according to enlargement factor amplified video window, determines that video window amplifies position coordinates;
The step that described definite video window amplifies position coordinates is: the height of described video window frame is enlarged into the amassing of height of described enlargement factor and current described video window, the width of described video window is enlarged into the amassing of width of described enlargement factor and current described video window;
The pixel data that the extract real-time raw video image is corresponding, and in the described video window that amplifies, play out corresponding video image according to described pixel data.
6. method of video image processing 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 method of video image processing, calculate the method for the mapping point of pixel region in pixel region corresponding to described raw video image corresponding to partial video image that the video image after the amplification shows according to described enlargement factor in described video window, may further comprise the steps:
A, with the top left corner apex of described video window as the window initial point, determine that described cursor is with respect to the coordinate figure of described window initial point;
B, 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 enlargement factor 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 enlargement factor, n>1;
The summit in the upper left corner of the pixel region that the partial video image that the described video image after Xo, Yo respectively are and amplify according to described enlargement factor 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 video image after X1, Y1 respectively are and amplify according to described enlargement factor 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;
In this method of video image processing, the mapping point of pixel region on pixel region corresponding to raw video image corresponding to partial video image that described video window is shown followed the track of described cursor and the method for translation is specially:
In real time the coordinate figure with respect to the horizontal ordinate of described pixel benchmark initial point is adjusted into Xo+ Δ X* (n-1)/(n*W) on the summit in the upper left corner of pixel region corresponding to raw video image with the described video image that shows in the described video window, and the coordinate figure of ordinate is adjusted into Yo+ Δ Y* (n-1)/(n*W);
In real time the described video image that shows in the described video window is adjusted into Y1+ Δ Y* (n-1)/(n*W) on the summit in the lower right corner of pixel region corresponding to raw video image with respect to the coordinate figure that the coordinate figure of the horizontal ordinate of described pixel benchmark initial point is adjusted into X1+ Δ X* (n-1)/(n*W), ordinate, wherein:
Δ X, Δ Y respectively are described cursor on described broadcast window in the translation process, and the horizontal ordinate of described cursor, ordinate are with respect to the distance of described window origin translation.
7. method of video image processing according to claim 4 is characterized in that, describedly outer is made as mouse and button, and described button comprises described translation functions key and zoom function key;
Described reception is by the trigger pip of peripheral hardware input, and determines the method for described enlargement factor or described minification according to described trigger pip, may further comprise the steps:
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 described enlargement factor or the described minification of the described trigger pip of sending according to described inductor is determined the concrete numerical value of the described minification of described enlargement factor.
8. a right to use requires the video image processing device of 1 to 7 arbitrary described method of video image processing, it is characterized in that this video image processing device comprises User Interface, player, peripheral hardware, described player comprises broadcast window and transmit control module, wherein:
Described User Interface is used for following the trail of the track of described cursor in described broadcast window when cursor is positioned at the described broadcast window of described player and translation functions key and is activated;
Described transmit control module, be used at described broadcast window when video window in the described broadcast window overlaps, and described broadcast window shows intercepting when the partial video image of raw video image, and the partial video image that described video window is shown is followed the track of described cursor and translation.
9. video image processing device according to claim 8, it is characterized in that, described User Interface, when also being used for video window when the demonstration raw video image less than described broadcast window, make described video window with and the video image of interior demonstration all follow track translation under the constraint of described broadcast window of described cursor.
10. video image processing device according to claim 9 is characterized in that, describedly outer is made as mouse and button, and described player also comprises file read module, separation module, Video Rendering module and video decode module, wherein:
Described transmit control module, also be used at the described video window that shows raw video image during less than described broadcast window, according to the corresponding relation between the coordinate of the track of the coordinate of described video window before the translation in described broadcast window, described cursor and predefined described track and described video window, calculate the coordinate of described video window in described broadcast window after the translation, and with the position translation of the described video window position to the described coordinate indication that calculates;
Described Video Rendering module, also be used at the video window that shows raw video image during less than described broadcast window, the pixel data that the extract real-time raw video image is corresponding, and in described video window, play out corresponding video image according to described pixel data;
Described transmit control module, also be used for overlapping with video window in the described broadcast window at described broadcast window, and described broadcast window demonstration intercepts when the partial video image of raw video image, and the mapping point of pixel region on pixel region corresponding to raw video image corresponding to partial video image that described video window is shown followed the track of described cursor and changed;
Described Video Rendering module also is used for pixel data corresponding to pixel region that extract real-time is limited by the described mapping point after changing, and plays out in described video window with described mapping point according to described pixel data and to follow the trail of accordingly video image;
Described file read module is used for reading the transmission control end has video resource in the P2P network in the mode of P2P the video file that node was obtained, 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.
CN201110203884.7A 2011-07-20 2011-07-20 Video image processing method and video image processing device Active CN102890603B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110203884.7A CN102890603B (en) 2011-07-20 2011-07-20 Video image processing method and video image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110203884.7A CN102890603B (en) 2011-07-20 2011-07-20 Video image processing method and video image processing device

Publications (2)

Publication Number Publication Date
CN102890603A true CN102890603A (en) 2013-01-23
CN102890603B CN102890603B (en) 2015-05-27

Family

ID=47534119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110203884.7A Active CN102890603B (en) 2011-07-20 2011-07-20 Video image processing method and video image processing device

Country Status (1)

Country Link
CN (1) CN102890603B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105635522A (en) * 2015-12-30 2016-06-01 广州华多网络科技有限公司 Video displaying method and device based on user requirements
CN105657564A (en) * 2015-12-30 2016-06-08 广东欧珀移动通信有限公司 Video processing method and video processing system for browser
CN107765964A (en) * 2017-09-07 2018-03-06 深圳岚锋创视网络科技有限公司 A kind of method, apparatus and portable terminal of the regional area for browsing full-view image file
CN107918584A (en) * 2016-10-06 2018-04-17 株式会社东芝 Information generating system, device, method and computer-readable recording medium
CN108804539A (en) * 2018-05-08 2018-11-13 山西大学 A kind of track method for detecting abnormality under time and space double-visual angle
CN109298818A (en) * 2018-09-14 2019-02-01 Oppo广东移动通信有限公司 A kind of method, mobile terminal and computer readable storage medium that window is adjusted
CN109978968A (en) * 2019-04-10 2019-07-05 广州虎牙信息科技有限公司 Video rendering method, apparatus, equipment and the storage medium of Moving Objects
CN111935544A (en) * 2020-07-31 2020-11-13 北京字节跳动网络技术有限公司 Interaction method and device and electronic equipment
CN113596564A (en) * 2021-09-29 2021-11-02 卡莱特云科技股份有限公司 Picture playing method and device

Citations (4)

* 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
CN101576996A (en) * 2009-06-05 2009-11-11 腾讯科技(深圳)有限公司 Processing method and device for realizing image zooming
CN101874402A (en) * 2007-09-24 2010-10-27 全球设备管理有限责任公司 Target acquisition system
CN101951493A (en) * 2010-09-25 2011-01-19 中兴通讯股份有限公司 Mobile terminal and method for partially amplifying far-end images in video call thereof

Patent Citations (4)

* 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
CN101874402A (en) * 2007-09-24 2010-10-27 全球设备管理有限责任公司 Target acquisition system
CN101576996A (en) * 2009-06-05 2009-11-11 腾讯科技(深圳)有限公司 Processing method and device for realizing image zooming
CN101951493A (en) * 2010-09-25 2011-01-19 中兴通讯股份有限公司 Mobile terminal and method for partially amplifying far-end images in video call thereof

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105657564A (en) * 2015-12-30 2016-06-08 广东欧珀移动通信有限公司 Video processing method and video processing system for browser
CN105635522A (en) * 2015-12-30 2016-06-01 广州华多网络科技有限公司 Video displaying method and device based on user requirements
CN107918584A (en) * 2016-10-06 2018-04-17 株式会社东芝 Information generating system, device, method and computer-readable recording medium
CN107765964A (en) * 2017-09-07 2018-03-06 深圳岚锋创视网络科技有限公司 A kind of method, apparatus and portable terminal of the regional area for browsing full-view image file
CN108804539B (en) * 2018-05-08 2022-03-18 山西大学 Track anomaly detection method under time and space double view angles
CN108804539A (en) * 2018-05-08 2018-11-13 山西大学 A kind of track method for detecting abnormality under time and space double-visual angle
CN109298818A (en) * 2018-09-14 2019-02-01 Oppo广东移动通信有限公司 A kind of method, mobile terminal and computer readable storage medium that window is adjusted
CN109298818B (en) * 2018-09-14 2020-07-31 Oppo广东移动通信有限公司 Window adjusting method, mobile terminal and computer readable storage medium
CN109978968A (en) * 2019-04-10 2019-07-05 广州虎牙信息科技有限公司 Video rendering method, apparatus, equipment and the storage medium of Moving Objects
CN111935544B (en) * 2020-07-31 2022-03-08 北京字节跳动网络技术有限公司 Interaction method and device and electronic equipment
CN111935544A (en) * 2020-07-31 2020-11-13 北京字节跳动网络技术有限公司 Interaction method and device and electronic equipment
US11863835B2 (en) 2020-07-31 2024-01-02 Douyin Vision Co., Ltd. Interaction method and apparatus, and electronic device
CN113596564A (en) * 2021-09-29 2021-11-02 卡莱特云科技股份有限公司 Picture playing method and device

Also Published As

Publication number Publication date
CN102890603B (en) 2015-05-27

Similar Documents

Publication Publication Date Title
CN102890603A (en) Video image processing method and video image processing device
CN102890816A (en) Method and device for video image scaling
CN101930337B (en) Method for processing on-screen display and associated embedded system
CN103530032B (en) Mobile terminal, image display device and use its user interface providing method
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
CN103297855B (en) Application display method and terminal
US10452777B2 (en) Display apparatus and character correcting method thereof
CN104106037A (en) Projector, graphical input/display device, portable terminal and program
KR101885132B1 (en) Apparatus and method for input by touch in user equipment
CN107343215A (en) Image display device and its operating method
CN101848346A (en) Television and image display method thereof
CN102378958A (en) Information input device and information input method
AU2017383979B2 (en) Projection image construction method and device
US20150130847A1 (en) Display system, display device, display terminal, display method of display terminal, and control program
CN101329761A (en) Method and apparatus for regulating keystone distortion of a projecting equipment
CN103853482A (en) Method and device for video zooming
CN107077296A (en) Subscriber terminal equipment and the method for controlling subscriber terminal equipment
CN102664924A (en) Method and apparatus for information processing during remote assistance process
CN106155478A (en) A kind of application icon display packing and device
TW200807246A (en) A two-way data transmission system and method, a display device and a microcomputer
CN110221738A (en) A kind of method and apparatus of picture processing
JP2014021989A (en) Video display device, video display method and computer readable recording medium
CN104461364A (en) Image magnification display method and image magnification display device
US9858646B2 (en) Resolution enhancer for electronic visual displays

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: 20200618

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: 20201106

Address after: 226100 Guangzhou Road, Jiangsu city of Nantong Province Haimen Haimen Economic and Technological Development Zone No. 999

Patentee after: Nantong Construction Engineering 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
TR01 Transfer of patent right

Effective date of registration: 20220301

Address after: 226000 building 10, Jiangong Lake Science and innovation center, No. 588, Hong Kong Road, Haimen Economic and Technological Development Zone, Nantong City, Jiangsu Province

Patentee after: Nantong haisai future digital technology Co.,Ltd.

Address before: 226100 Guangzhou Road, Haimen Economic and Technological Development Zone, Haimen City, Nantong City, Jiangsu Province, No. 999

Patentee before: Nantong Construction Engineering Co.,Ltd.

TR01 Transfer of patent right