Movatterモバイル変換


[0]ホーム

URL:


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
CN102890603ACN2011102038847ACN201110203884ACN102890603ACN 102890603 ACN102890603 ACN 102890603ACN 2011102038847 ACN2011102038847 ACN 2011102038847ACN 201110203884 ACN201110203884 ACN 201110203884ACN 102890603 ACN102890603 ACN 102890603A
Authority
CN
China
Prior art keywords
window
video
video image
video window
pixel
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 Construction Engineering 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 LtdfiledCriticalShenzhen QVOD Technology Co Ltd
Priority to CN201110203884.7ApriorityCriticalpatent/CN102890603B/en
Publication of CN102890603ApublicationCriticalpatent/CN102890603A/en
Application grantedgrantedCritical
Publication of CN102890603BpublicationCriticalpatent/CN102890603B/en
Activelegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Images

Landscapes

Abstract

Translated fromChinese

本发明提供了一种视频图像处理方法以及视频图像处理装置,涉及电子技术领域。解决了现有技术存在功能单一、操作麻烦的技术问题。该视频图像处理方法,包括以下步骤:当光标位于播放器的播放窗口内且平移功能键被激活时,追踪所述光标在所述播放窗口内的轨迹;在所述播放窗口与所述播放窗口内的视频窗口重合时,且所述播放窗口显示截取自原始视频图像的部分视频图像时,所述视频窗口显示的部分视频图像跟随所述光标的轨迹而平移。该视频图像处理装置,包括用户交互界面、播放器、外设,播放器包括播放窗口以及播放控制模块。本发明用于平移、缩放视频图像。

The invention provides a video image processing method and a video image processing device, which relate to the field of electronic technology. The technical problem of single function and cumbersome operation in the prior art is solved. The video image processing method comprises the following steps: when the cursor is located in the play window of the player and the translation function key is activated, tracking the track of the cursor in the play window; When the video windows in the video window are overlapped and the playing window displays a partial video image cut from the original video image, the partial video image displayed in the video window will pan along the track of the cursor. The video image processing device includes a user interface, a player, and peripherals, and the player includes a playback window and a playback control module. The invention is used for panning and zooming video images.

Description

Translated fromChinese
视频图像处理方法以及视频图像处理装置Video image processing method and video image processing device

技术领域technical field

本发明涉及电子技术领域,具体涉及一种视频图像处理方法以及一种使用该视频图像处理方法的视频图像处理装置。The present invention relates to the field of electronic technology, in particular to a video image processing method and a video image processing device using the video image processing method.

背景技术Background technique

随着视频播放技术的飞速发展,用于播放视频文件、音频文件的播放器的功能越来越强大,种类也越来越丰富。With the rapid development of video playback technology, the functions of players for playing video files and audio files are becoming more and more powerful, and the types are also becoming more and more abundant.

现有的播放器,诸如realplayer、windows media player等,在播放视频文件时,无法在播放器播放窗口的尺寸大小不变时,对播放窗口内的视频图像进行缩放(缩小或放大),功能比较单一,用户体验(User Experience,简称UE)较差。Existing players, such as realplayer, windows media player, etc., cannot scale (shrink or enlarge) the video image in the playback window when the size of the playback window of the player is constant when playing video files. Function comparison Single, user experience (User Experience, referred to as UE) is poor.

QQ影音播放器具有在播放窗口的边框尺寸不变的情况下,放大播放窗口内显示的视频图像的功能,其操作方法是按住ctrl键,将ctrl键激活的同时,按住鼠标的左键在播放器的播放窗口内的视频图像上拉出一个矩形区域,之后播放器会将矩形区域内的视频图像放大至整个播放窗口内,从而实现在播放器的播放窗口的边框尺寸大小不变时,对播放窗口内的视频图像放大显示。QQ video player has the function of enlarging the video image displayed in the playback window under the condition that the frame size of the playback window remains unchanged. Pull out a rectangular area on the video image in the playback window of the player, and then the player will enlarge the video image in the rectangular area to the entire playback window, so that when the frame size of the playback window of the player remains unchanged , to enlarge and display the video image in the playback window.

本发明人在实现本发明的过程中发现,现有技术至少存在以下技术问题:The inventor found in the process of realizing the present invention that the prior art has at least the following technical problems:

现有技术中,QQ影音播放器虽然能在播放器的播放窗口的边框尺寸大小不变时,对播放窗口内的视频图像放大显示,但在不改变播放窗口边框尺寸大小的情况下,已经过放大的视频图像是无法平移的,用户放大的状态下观看播放窗口未显示的视频图像时,需要先还原放大后的视频,然后在需要放大的状态下观看的视频图像上重新拉出一个矩形区域,通过这种方式将视频图像放大之后才能观看到之前播放窗口未显示的视频图像,操作起来非常麻烦,所以现有技术存在功能单一、操作麻烦的技术问题。In the prior art, although the QQ audio-visual player can enlarge and display the video image in the playback window when the size of the frame of the playback window of the player remains unchanged, it has been passed without changing the size of the frame of the playback window. The zoomed-in video image cannot be panned. When the user watches a video image that is not displayed in the playback window when zoomed in, the zoomed-in video needs to be restored first, and then a rectangular area needs to be redrawn on the video image that needs to be zoomed in. In this way, only after the video image is enlarged can the video image not displayed in the previous play window be viewed, which is very cumbersome to operate, so the prior art has the technical problems of single function and cumbersome operation.

发明内容Contents of the invention

本发明提供了一种视频图像处理方法以及一种使用该视频图像处理方法的视频图像处理装置,解决了现有技术存在功能单一、操作麻烦的技术问题。The invention provides a video image processing method and a video image processing device using the video image processing method, which solves the technical problems of single function and cumbersome operation in the prior art.

为达到上述目的,本发明的实施例采用如下技术方案:In order to achieve the above object, embodiments of the present invention adopt the following technical solutions:

本发明所提供的视频图像处理方法,包括以下步骤:The video image processing method provided by the present invention comprises the following steps:

当光标位于播放器的播放窗口内且平移功能键被激活时,追踪所述光标在所述播放窗口内的轨迹;When the cursor is located in the play window of the player and the translation function key is activated, track the track of the cursor in the play window;

在所述播放窗口与所述播放窗口内的视频窗口重合时,且所述播放窗口显示截取自原始视频图像的部分视频图像时,所述视频窗口显示的部分视频图像跟随所述光标的轨迹而平移。When the play window overlaps with the video window in the play window, and the play window displays a partial video image intercepted from the original video image, the partial video image displayed in the video window follows the track of the cursor panning.

使用上述本发明所提供的视频图像处理方法的视频图像处理装置,包括用户交互界面、播放器、外设,所述播放器包括播放窗口以及播放控制模块,其中:The video image processing device using the video image processing method provided by the present invention includes a user interface, a player, and peripherals, and the player includes a playback window and a playback control module, wherein:

所述用户交互界面,用于在光标位于所述播放器的所述播放窗口内且平移功能键被激活时,追踪所述光标在所述播放窗口内的轨迹;The user interaction interface is used to track the trajectory of the cursor in the playback window when the cursor is located in the playback window of the player and the translation function key is activated;

所述播放控制模块,用于在所述播放窗口与所述播放窗口内的视频窗口重合时,且所述播放窗口显示截取自原始视频图像的部分视频图像时,使所述视频窗口显示的部分视频图像跟随所述光标的轨迹而平移。The play control module is used to make the video window display part when the play window overlaps with the video window in the play window and the play window displays a partial video image intercepted from the original video image The video image pans following the trajectory of the cursor.

与现有技术相比,本发明所提供上述技术方案中的任一技术方案具有如下优点:Compared with the prior art, any one of the above-mentioned technical solutions provided by the present invention has the following advantages:

在播放窗口与播放窗口内的视频窗口重合,且视频窗口显示的视频图像为原始视频图像上的部分视频图像时,此时由于播放窗口与视频窗口的大小并没有改变,但视频窗口上显示的视频图像的面积相对之前变小了,故而视频窗口上显示出来的视频图像给用户带来的视觉效果是视频窗口显示的视频图像较原始图像而言被放大了,所以可以通过在视频窗口播放原始视频图像上的部分视频图像的办法实现对视频窗口播放的视频图像的放大,这样,使用本发明所提供的上述技术方案的用户,在播放窗口内的视频窗口的边框尺寸不变的情况下,将播放窗口的视频窗口内显示的原始视频图像(原始视频图像指未经过放大也未经过缩小的视频图像)放大之后,想要平移播放窗口内显示的视频图像时,可以先激活平移功能键(例如:按住Ctrl键,同时按住鼠标左键),然后,通过在播放窗口内平移光标的方式平移播放窗口内显示的视频图像,从而将播放窗口内的视频窗口未显示的视频图像平移至视频窗口显示,与现有技术相比,本发明中放大的状态下观看视频窗口内未显示的视频图像时,无需先还原放大后的视频,也无需再重新拉出一个矩形区域,所以操作起来更为方便,进而解决了现有技术存在功能单一、操作麻烦的技术问题。When the playback window overlaps with the video window in the playback window, and the video image displayed in the video window is a part of the video image on the original video image, at this time, the size of the playback window and the video window has not changed, but the video displayed on the video window The area of the video image is smaller than before, so the video image displayed on the video window brings the visual effect to the user that the video image displayed on the video window is enlarged compared with the original image, so you can play the original image in the video window The way of the partial video image on the video image realizes the enlargement of the video image played by the video window, like this, uses the user of above-mentioned technical scheme provided by the present invention, under the constant situation of the frame size of the video window in the playback window, After zooming in on the original video image displayed in the video window of the playback window (the original video image refers to a video image that has not been enlarged or reduced), if you want to pan the video image displayed in the playback window, you can first activate the panning function key ( For example: hold down the Ctrl key and press the left mouse button at the same time), and then move the video image displayed in the playback window by moving the cursor in the playback window, so that the video image not displayed in the video window in the playback window will be moved to The video window display, compared with the prior art, when viewing the undisplayed video image in the video window under the enlarged state in the present invention, there is no need to restore the enlarged video first, and there is no need to re-draw a rectangular area, so it is easy to operate It is more convenient, and then solves the technical problems of single function and cumbersome operation in the prior art.

附图说明Description of drawings

为了更清楚地说明本发明或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the present invention or the technical solutions in the prior art, the accompanying drawings that need to be used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the accompanying drawings in the following description are only the present invention. For some embodiments of the invention, those skilled in the art can also obtain other drawings according to these drawings without paying creative efforts.

图1为本发明所提供的视频图像处理方法的流程示意图;Fig. 1 is a schematic flow chart of the video image processing method provided by the present invention;

图2为使用本发明所提供的视频图像处理方法,在视频窗口内播放原始视频图像上的部分视频图像时,当前视频窗口内显示的部分视频图像、处理后视频窗口内显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域上的映射坐标的变化过程示意图;Fig. 2 is for using the video image processing method provided by the present invention, when playing the partial video image on the original video image in the video window, the partial video image displayed in the current video window and the partial video image displayed in the processed video window correspond A schematic diagram of the change process of the mapping coordinates of the pixel area on the pixel area corresponding to the original video image;

图3为使用本发明所提供的视频图像处理方法,缩小视频窗口以及其内显示的部分的视频图像时,缩小之前以及缩小之后的视频图像对应的像素区域在原始视频图像对应的像素区域上的映射坐标的变化过程示意图;Fig. 3 is a video image processing method provided by the present invention, when shrinking the video window and the video image of the part displayed in it, the pixel area corresponding to the video image before and after shrinking is on the pixel area corresponding to the original video image Schematic diagram of the change process of the mapping coordinates;

图4为使用本发明视频图像处理方法的视频图像处理装置的优选实施方式的内部主要组成部分的连接关系的示意图。FIG. 4 is a schematic diagram of the connection relationship of internal main components of a preferred embodiment of a video image processing device using the video image processing method of the present invention.

具体实施方式Detailed ways

下面将结合本发明中的附图,对本发明中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solution in the present invention will be clearly and completely described below in conjunction with the accompanying drawings in the present invention. Obviously, the described embodiments are only some embodiments of the present invention, not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

本发明提供了一种功能丰富、操作简单、使用方便的视频图像处理方法以及使用该视频图像处理方法的视频图像处理装置。The invention provides a video image processing method with rich functions, simple operation and convenient use and a video image processing device using the video image processing method.

如图1所示,1a、1b、1c、1d、1e以及1f分别为图1所包括的六个部分的序号,其中:O所示区域表示播放窗口内的视频窗口;左斜线表示视频窗口显示的视频图像;A所示区域表示原始视频图像对应的像素区域;右斜线表示原始视频图像对应的像素区域即A内的像素;P所示区域表示播放器的播放窗口;R所示区域表示根据放大倍数将原始视频图像放大之后,在视频窗口显示的部分视频图像对应的像素区域;S所示区域表示对播放窗口内的视频窗口放大显示,放大之前的视频窗口;E所示区域表示根据缩小倍数将已经过放大的视频图像缩小显示时,缩小之后,视频窗口内显示的部分视频图像对应的像素区域,也就缩小操作完成之后最终由视频窗口显示的像素区域;图1中1c以及1d部分中视频窗口上由实线画的光标(鼠标在显示屏上显示的箭头)表示光标平移操作之后的位置,虚线绘制的光标表示光标在平移操作之前的位置。As shown in Figure 1, 1a, 1b, 1c, 1d, 1e and 1f are the sequence numbers of six parts included in Figure 1 respectively, wherein: the area shown in O represents the video window in the playback window; the left oblique line represents the video window The displayed video image; the area shown in A indicates the pixel area corresponding to the original video image; the right slash indicates the pixel area corresponding to the original video image, that is, the pixels in A; the area shown in P indicates the playback window of the player; the area shown in R Indicates the pixel area corresponding to the part of the video image displayed in the video window after the original video image is enlarged according to the magnification factor; the area indicated by S indicates the enlarged display of the video window in the playback window, and the video window before the enlargement; the area indicated by E indicates When the zoomed-in video image is reduced and displayed according to the reduction factor, after the reduction, the pixel area corresponding to the part of the video image displayed in the video window is the pixel area finally displayed by the video window after the zoom-out operation is completed; 1c and 1 in Fig. 1 The cursor drawn by a solid line on the video window inpart 1d (the arrow displayed by the mouse on the display screen) indicates the position of the cursor after the translation operation, and the cursor drawn by a dotted line indicates the position of the cursor before the translation operation.

平移视频窗口显示的由原始视频图像放大后的视频图像:The video image zoomed in from the original video image displayed in the panning video window:

如图1中1c与1d部分所示,本发明所提供的视频图像处理方法,包括以下步骤:As shown inparts 1c and 1d in Fig. 1, the video image processing method provided by the present invention comprises the following steps:

S1、当光标位于播放器的播放窗口P内且平移功能键被激活时,追踪光标在播放窗口P内的轨迹;S1. When the cursor is located in the playback window P of the player and the translation function key is activated, track the trajectory of the cursor in the playback window P;

S2、在播放窗口P与播放窗口P内的视频窗口O重合时,且播放窗口P内的视频窗口O显示截取自原始视频图上的部分视频图像时,使视频窗口O显示的部分视频图像跟随光标的轨迹而平移。S2, when the video window O in the playback window P overlaps with the video window O in the playback window P, and when the video window O in the playback window P shows a partial video image intercepted from the original video image, the partial video image displayed in the video window O follows Move along the trajectory of the cursor.

在播放窗口P与播放窗口P内的视频窗口O重合,且视频窗口O显示的视频图像为原始视频图像上的部分视频图像时,此时由于播放窗口P与视频窗口O的大小并没有改变,但视频窗口O上显示的视频图像的面积相对之前变小了,故而视频窗口O上显示出来的视频图像给用户带来的视觉效果是视频窗口O显示的视频图像较原始图像而言被放大了,所以可以通过在视频窗口O播放原始视频图像上的部分视频图像的办法实现对视频窗口O播放的视频图像的放大,这样,使用本发明所提供的上述技术方案的用户,在播放窗口P内的视频窗口O的边框尺寸不变的情况下,将播放窗口P的视频窗口O内显示的原始视频图像(指未经过放大也未经过缩小的视频图像)放大之后,想要平移播放窗口P内显示的视频图像时,可以先激活平移功能键(例如:按住Ctrl键,同时按住鼠标左键),然后,通过平移光标的方式平移播放窗口P内显示的视频图像,从而将播放窗口P内的视频窗口O未显示的视频图像平移至视频窗口O显示,与现有技术相比,本发明中放大的状态下观看视频窗口O内未显示的视频图像时,无需先还原放大后的视频,也无需再重新拉出一个矩形区域,所以操作起来更为方便,进而解决了现有技术存在功能单一、操作麻烦的技术问题。When the playback window P overlaps with the video window O in the playback window P, and the video image displayed by the video window O is a partial video image on the original video image, at this time, the size of the playback window P and the video window O does not change. However, the area of the video image displayed on the video window O is smaller than before, so the visual effect that the video image displayed on the video window O brings to the user is that the video image displayed on the video window O is enlarged compared with the original image. , so the enlargement of the video image played on the video window O can be realized by playing a part of the video image on the original video image in the video window O. When the size of the border of the video window O remains unchanged, after zooming in on the original video image (referring to the video image that has not been enlarged or reduced) displayed in the video window O of the playback window P, you want to pan the playback window P When the video image is displayed, you can first activate the translation function key (for example: hold down the Ctrl key and press the left mouse button at the same time), and then move the video image displayed in the playback window P by moving the cursor, so that the playback window P The video image that is not displayed in the video window O in the video window is translated to the video window O display. Compared with the prior art, when viewing the video image that is not displayed in the video window O in the zoomed-in state in the present invention, there is no need to first restore the enlarged video image. , and there is no need to re-draw a rectangular area, so it is more convenient to operate, thereby solving the technical problems of single function and cumbersome operation in the prior art.

本实施例中平移功能键被激活时,其发出的触发信号可以作为平移指令,例如:可以在Ctrl键以及鼠标左键被触发即被激活时,发出的触发信号作为平移指令。由于光标的位置是由鼠标所控制的,这样设置时,通过鼠标左键单击,便可以确认对视频窗口O内显示的视频图像进行平移操作。当然,本实施例中也可以将鼠标右键和/或其他按键被触发时,发出的触发信号作为平移指令。In this embodiment, when the translation function key is activated, the trigger signal sent by it can be used as a translation command, for example, when the Ctrl key and the left mouse button are activated, the trigger signal sent can be used as a translation command. Since the position of the cursor is controlled by the mouse, when setting in this way, the video image displayed in the video window O can be confirmed to be translated by clicking the left button of the mouse. Of course, in this embodiment, the trigger signal sent when the right button of the mouse and/or other buttons are triggered can also be used as the translation command.

本实施例中可以使用下述本发明所提供如图2所示在播放器的播放窗口P与播放窗口P内的视频窗口O重合,且视频窗口O的边框尺寸不变的情况下显示取自原始视频图像上的部分视频图像的方法,对视频窗口O内显示的视频图像放大显示,然后,将视频窗口O内显示的视频图像放大之后,再使用本发明所提供的上述方法平移视频窗口O内显示的部分视频图像,也可以使用现有技术中所提供的方法将视频窗口O内显示的视频图像放大之后,再使用本发明所提供的上述方法平移视频窗口O内放大之后的视频图像。In this embodiment, the following provided by the present invention can be used. As shown in FIG. The method for the partial video image on the original video image is to enlarge and display the video image displayed in the video window O, and then, after the video image displayed in the video window O is enlarged, then use the above-mentioned method provided by the present invention to translate the video window O Part of the video image displayed in the video window can also be enlarged using the method provided in the prior art to zoom in on the video image displayed in the video window O, and then use the above-mentioned method provided by the present invention to translate the enlarged video image in the video window O.

平移视频窗口显示的由原始视频图像缩小后的视频图像:The zoomed-out video image of the original video image displayed in the panning video window:

本实施例中视频图像处理方法,还包括以下步骤:The video image processing method in the present embodiment also includes the following steps:

当显示原始视频图像的视频窗口O小于或等于播放窗口P时,使视频窗口O以及其内显示的视频图像均跟随光标的轨迹在播放窗口P的约束下平移。When the video window O displaying the original video image is smaller than or equal to the play window P, make the video window O and the video image displayed therein move along the track of the cursor under the constraints of the play window P.

显示原始视频图像的视频窗口O小于或等于播放窗口P存在两种情形,一是视频窗口O等于播放窗口P即播放窗口P与视频窗口O相重叠,一是播放窗口P大于视频窗口O,此时,视频窗口O以及其内显示的视频图像均以同一比例被缩小了,所以此时平移视频图像需要将视频图像与视频窗口O一并平移,但是,由于此时视频窗口O显示的视频图像为原始视频图像,所以视频窗口O显示的视频图像在原始视频图像对应的像素区域为原始视频图像对应的全部像素区域。There are two situations in the video window O showing the original video image less than or equal to the playback window P. One is that the video window O is equal to the playback window P, that is, the playback window P overlaps with the video window O, and the other is that the playback window P is greater than the video window O. , the video window O and the video image displayed in it are all reduced in the same proportion, so the video image needs to be translated together with the video window O when panning the video image at this time. However, since the video image displayed in the video window O is is the original video image, so the video image displayed by the video window O is in the pixel area corresponding to the original video image, which is all the pixel areas corresponding to the original video image.

本实施例中视频窗口O以及其内显示的视频图像均跟随光标的轨迹在播放窗口P的约束下平移包括视频窗口O的长边和宽边不超过播放窗口P的长边和宽边或者视频窗口O的几何中心坐标限制在播放窗口P内或者光标的轨迹限制在播放窗口P内。In this embodiment, the video window O and the video image displayed in it all follow the track of the cursor and translate under the constraints of the playback window P, including that the long side and the wide side of the video window O do not exceed the long side and the wide side of the playback window P or the video window P. The coordinates of the geometric center of the window O are limited within the playback window P or the trajectory of the cursor is limited within the playback window P.

这种设计使得用户在平移视频窗口O时,不会因为误操作而将视频窗口O彻底移出播放窗口P,从而影响视频图像的正常观看。This design makes it impossible for the user to completely move the video window O out of the playback window P due to misoperation when the user pans the video window O, thereby affecting the normal viewing of the video image.

本实施例中,光标的轨迹为光标在视频窗口O内平移的轨迹,该视频图像处理方法中使视频窗口O以及其内显示的视频图像均跟随光标的轨迹在播放窗口的约束下平移的方法,包括以下步骤:In this embodiment, the track of the cursor is the track of the cursor moving in the video window O. In the video image processing method, the video window O and the video images displayed in it all follow the track of the cursor and translate under the constraints of the playback window. , including the following steps:

根据平移前视频窗口O在播放窗口P内的坐标、光标的轨迹以及预先设定的轨迹与视频窗口O的坐标之间的对应关系,计算出平移后视频窗口O在播放窗口P内的坐标,并将视频窗口O的位置平移至与计算出的坐标相应的位置;According to the correspondence between the coordinates of the video window O in the playback window P before translation, the trajectory of the cursor, and the preset trajectory and the coordinates of the video window O, the coordinates of the video window O in the playback window P after the translation are calculated, and translate the position of the video window O to a position corresponding to the calculated coordinates;

实时提取原始视频图像对应的像素数据,并根据像素数据在视频窗口O内播放出相应的视频图像。The pixel data corresponding to the original video image is extracted in real time, and the corresponding video image is played in the video window O according to the pixel data.

光标的轨迹可以为光标在视频窗口O内平移的轨迹,也可以为光标在视频窗口O与播放窗口P之间的区域平移的轨迹,优选为在视频窗口O内平移的轨迹。轨迹与视频窗口O的坐标之间的对应关系为事先人为设定的,优选为:轨迹与视频窗口O的坐标完全同步,这样,平移过程中,视频窗口O的坐标与光标彼此是相对静止。The track of the cursor can be the track that the cursor translates in the video window O, or the track that the cursor translates in the area between the video window O and the playback window P, preferably the track that the cursor translates in the video window O. The corresponding relationship between the trajectory and the coordinates of the video window O is artificially set in advance, preferably: the coordinates of the trajectory and the video window O are completely synchronized, so that during the translation process, the coordinates of the video window O and the cursor are relatively static.

本实施例视频图像处理方法中,使视频窗口O内显示的视频图像跟随光标的轨迹而平移的方法,包括以下步骤:In the video image processing method of the present embodiment, the method for making the video image displayed in the video window O follow the track of the cursor and translate includes the following steps:

使视频窗口O显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域上的映射坐标跟随光标的轨迹而变化;Make the mapping coordinates of the pixel area corresponding to the part video image displayed by thevideo window 0 follow the track of the cursor to change on the pixel area corresponding to the original video image;

实时提取由变化后的映射坐标限定的像素区域对应的像素数据,并根据像素数据在视频窗口O内播放出与映射坐标相应的追踪视频图像。The pixel data corresponding to the pixel area defined by the changed mapping coordinates is extracted in real time, and a tracking video image corresponding to the mapping coordinates is played in the video window O according to the pixel data.

由于视频窗口O显示部分视频图像,所以视频图像处于放大状态,同时,由于视频窗口O与播放窗口P互相重叠且相对静止,所以可以通过平移光标的方式平移播放窗口P内显示的部分视频图像,从而将播放窗口P内的视频窗口O未显示的视频图像平移至视频窗口O显示。Because the video window O displays part of the video image, the video image is in an enlarged state. At the same time, since the video window O and the playback window P overlap each other and are relatively static, the partial video image displayed in the playback window P can be translated by moving the cursor. Thus, the video images not displayed in the video window O in the playback window P are shifted to the video window O for display.

放大视频窗口O内显示的原始视频图像:Zoom in on the original video image displayed in the video window O:

如图1中1a与1c部分所示,本实施例中在播放窗口P与播放窗口P内的视频窗口O重合时,使播放窗口P内的视频窗口O显示原始视频图像内的部分视频图像的方法,包括以下步骤:As shown inparts 1a and 1c among Fig. 1, in the present embodiment, when the video window O in the playback window P overlaps with the video window O in the playback window P, the video window O in the playback window P is made to display part of the video image in the original video image method, including the following steps:

S01、接收通过外设输入的触发信号,并根据触发信号确定放大倍数,放大倍数为将视频窗口O内显示的视频图像放大显示的倍数;S01, receiving the trigger signal input by the peripheral device, and determining the magnification according to the trigger signal, the magnification is the magnification and display multiple of the video image displayed in the video window O;

S02、根据放大倍数计算出放大后的视频图像在视频窗口O内显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域内的映射坐标;S02. Calculate the mapping coordinates of the pixel area corresponding to the part of the video image displayed in thevideo window 0 of the enlarged video image according to the magnification factor in the pixel area corresponding to the original video image;

S03、实时提取映射坐标限定的像素区域对应的像素数据,并根据像素数据在视频窗口O内播放出相应的部分视频图像。S03. Extract pixel data corresponding to the pixel area defined by the mapping coordinates in real time, and play a corresponding partial video image in the video window O according to the pixel data.

本发明可以通过外设(例如:滚动鼠标的滚轮和/或点击鼠标左键、右键、滚轮、按压按键)的方式,输入播放窗口P以及视频窗口O的边框尺寸不变的情况下,将视频窗口O内显示的视频图像放大显示的倍数,进而可以根据放大倍数对视频窗口O内显示的视频图像放大显示,无需采用现有技术的方法在视频窗口O内拉出一个矩形区域,可见,本发明不仅输入放大倍数可以更为精确,而且操作也更为方便。The present invention can pass the mode of peripheral equipment (for example: the scroll wheel of rolling mouse and/or click left mouse button, right button, scroll wheel, press button), under the situation that the border size of input playback window P and video window O is constant, video The video image displayed in the window O is magnified and displayed, and then the video image displayed in the video window O can be enlarged and displayed according to the magnification, without the need to use the prior art method to pull out a rectangular area in the video window O. It can be seen that this The invention not only can input the magnification more accurately, but also is more convenient to operate.

缩小视频窗口O显示的由原始视频图像上的部分视频图像:Shrink video window O displayed by the part of the video image on the original video image:

如图1中1c与1e部分所示,本实施例中,该视频图像处理方法,还包括以下步骤:As shown inparts 1c and 1e in Figure 1, in this embodiment, the video image processing method further includes the following steps:

S04、接收外设输入的触发信号,并根据触发信号确定缩小倍数,缩小倍数为将视频窗口O内显示的视频图像缩小显示的倍数;S04, receiving the trigger signal input by the peripheral device, and determining the reduction factor according to the trigger signal, the reduction factor is the multiple of the video image displayed in the video window O to reduce the display;

S05、在视频窗口O显示的是部分视频图像时,计算出根据缩小倍数缩小后的视频图像在视频窗口O内显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域A内的映射坐标;S05. When a partial video image is displayed in the video window O, calculate the mapping of the pixel area corresponding to the partial video image displayed in the video window O in the pixel area A corresponding to the original video image according to the video image reduced by the reduction factor coordinate;

S06、实时提取映射坐标限定的像素区域对应的像素数据,并根据像素数据在视频窗口O内播放出相应的部分视频图像。S06. Extract pixel data corresponding to the pixel area defined by the mapping coordinates in real time, and play a corresponding partial video image in the video window O according to the pixel data.

本发明中当视频窗口O显示的是部分视频图像时,即视频窗口O显示的部分视频图像对应的像素区域R小于原始视频图像对应的像素区域A时,说明此时,视频窗口O显示的部分视频图像仍旧处于放大的状态,例如:将原始视频图像放大10倍后,再缩小2倍,此时,视频窗口O显示的部分视频图像仍旧处于放大5倍的状态,所以缩小之后的视频图像在视频窗口O显示的部分对应的像素区域E仍旧小于原始视频图像对应的像素区域A。In the present invention, when the video window O shows a part of the video image, that is, the pixel area R corresponding to the video window O display is smaller than the corresponding pixel area A of the original video image, it is explained that the part displayed by the video window O is at this time The video image is still in the enlarged state, for example: after the original video image is enlarged by 10 times, then reduced by 2 times, at this time, the part of the video image displayed in the video window O is still in the state of magnified by 5 times, so the reduced video image is in the The pixel area E corresponding to the part displayed in the video window O is still smaller than the pixel area A corresponding to the original video image.

由于本发明还可以实现在视频窗口O的边框尺寸不变的情况下对视频窗口O内显示的部分视频图像缩小显示,使得用户在使用播放器观看视频图像时,可以在视频窗口O的边框尺寸不变的情况下随意放大、缩小视频窗口O内显示的部分视频图像,例如:当放大过程中,放大的倍数太大,还可以将已经过放大的视频图像再缩小,从而得到想要的视频图像放大效果,所以使用起来更为方便。Because the present invention can also realize that under the situation that the border size of video window O is constant, the partial video image displayed in video window O is reduced and displayed, so that when the user uses a player to watch a video image, the frame size of video window O can be reduced. Under the same situation, arbitrarily zoom in and zoom out the part of the video image displayed in the video window O, for example: when the zoom factor is too large during zooming in, the zoomed video image can also be zoomed out again to get the desired video Image enlargement effect, so it is more convenient to use.

缩小视频窗口O显示的原始视频图像:Shrink the original video image displayed in the video window O:

如图1中1a与1b部分所示,本实施例中视频图像处理方法,还包括以下步骤:As shown inparts 1a and 1b in Figure 1, the video image processing method in this embodiment also includes the following steps:

接收通过外设输入的触发信号,并根据触发信号确定缩小倍数,缩小倍数为将视频窗口O以及视频窗口O内显示的视频图像均以同一比例缩小显示的倍数;Receive the trigger signal input by the peripheral device, and determine the reduction factor according to the trigger signal, the reduction factor is the multiple that the video image displayed in the video window O and the video window O are all reduced and displayed in the same ratio;

在视频窗口O显示的视频图像对应的像素区域为原始视频图像对应的像素区域时,根据缩小倍数缩小视频窗口O,确定视频窗口O缩小位置坐标;When the pixel area corresponding to the video image displayed in thevideo window 0 is the corresponding pixel area of the original video image, thevideo window 0 is reduced according to the reduction factor, and thevideo window 0 is determined to reduce the position coordinates;

缩小位置坐标的步骤为:将视频窗口O边框的高度缩小为缩小倍数与当前视频窗口O的高度之积,将视频窗口O的宽度缩小为缩小倍数与当前视频窗口O的宽度之积;The step of reducing the position coordinates is: the height of video window O frame is reduced to the product of the height of reduction multiple and current video window O, the width of video window O is reduced to the product of reduction multiple and the width of current video window O;

实时提取原始视频图像对应的像素数据,并根据像素数据在缩小的视频窗口O内播放出相应的视频图像。The pixel data corresponding to the original video image is extracted in real time, and the corresponding video image is played in the reduced video window O according to the pixel data.

在视频窗口O显示的视频图像对应的像素区域R为原始视频图像对应的像素区域A时,视频窗口O所显示的视频图像为原始视频图像,此时,对原始视频图像缩小显示,也就是缩小视频窗口O显示的原始视频图像,此时,只需要缩小视频窗口O的边框尺寸,无需改变在视频窗口O显示的视频图像对应的像素区域,例如缩小倍数为1/2时,视频窗口O的边框尺寸为缩小之前的1/2。此时,缩小倍数m可以设置为1/k,k大于1,设定为向后(或向下)滚动滚轮时,感应器产生一个触发信号,k增大1或0.1,即缩小倍数的值变小,此时可以认为是对缩小后的视频图像再次缩小显示,向前(或向上)滚动滚轮时,感应器产生一个触发信号,k减小1或0.1即缩小倍数的值增大,当k的值减小为1时,继续向前(或向上)滚动滚轮时,感应器产生一个触发信号,则视为放大倍数n从1增加为2或1.1,若继续向前(或向上)滚动滚轮时,感应器产生一个触发信号,则放大倍数n增大1或0.1。When the pixel area R corresponding to the video image displayed in thevideo window 0 is the corresponding pixel area A of the original video image, the video image displayed in thevideo window 0 is the original video image. At this time, the original video image is reduced and displayed, that is, reduced The original video image displayed in the video window O. At this time, only the border size of the video window O needs to be reduced without changing the pixel area corresponding to the video image displayed in the video window O. For example, when the reduction factor is 1/2, the video window O’s The border size is 1/2 of the size before shrinking. At this time, the reduction factor m can be set to 1/k, and k is greater than 1. When it is set to scroll backward (or down), the sensor will generate a trigger signal, and k will increase by 1 or 0.1, which is the value of the reduction factor. At this time, it can be considered that the reduced video image is zoomed out again. When the scroll wheel is rolled forward (or upward), the sensor generates a trigger signal, and k decreases by 1 or 0.1, that is, the value of the reduction factor increases. When When the value of k is reduced to 1, when the scroll wheel continues to move forward (or upward), the sensor generates a trigger signal, which is regarded as the magnification factor n increases from 1 to 2 or 1.1, if the scroll wheel continues to move forward (or upward) When the wheel is turned, the sensor generates a trigger signal, and the magnification factor n increases by 1 or 0.1.

如图1中1b与1f部分所示,本实施例中视频图像处理方法,还包括以下步骤:As shown inparts 1b and 1f in Figure 1, the video image processing method in this embodiment also includes the following steps:

接收通过外设输入的触发信号,并根据触发信号确定放大倍数,放大倍数为在播放窗口P的边框尺寸不变的情况下,将视频窗口O以及视频窗口O内显示的视频图像均以同一比例放大显示的倍数;Receive the trigger signal input through the peripheral device, and determine the magnification according to the trigger signal. The magnification is to make the video window O and the video image displayed in the video window O in the same ratio under the condition that the frame size of the playback window P is unchanged. The multiple of the magnified display;

在视频窗口O显示的视频图像对应的像素区域为原始视频图像对应的像素区域且视频窗口O小于播放窗口P时,根据放大倍数放大视频窗口O,确定视频窗口O放大位置坐标;放大位置坐标的步骤为:将视频窗口O边框的高度放大为放大倍数与如图1中1f部分所示当前视频窗口S的高度之积,将视频窗口O的宽度放大为放大倍数与当前视频窗口S的宽度之积;When the pixel area corresponding to the video image displayed in thevideo window 0 is the corresponding pixel area of the original video image and thevideo window 0 is less than the playback window P, thevideo window 0 is enlarged according to the magnification factor, and thevideo window 0 is determined to enlarge the position coordinates; The steps are: amplify the height of the frame of the video window O to the product of the magnification factor and the height of the current video window S shown in the 1f part in Figure 1, and amplify the width of the video window O to be the product of the magnification factor and the width of the current video window S product;

实时提取原始视频图像对应的像素数据,并根据像素数据在放大的视频窗口内播放出相应的视频图像。The pixel data corresponding to the original video image is extracted in real time, and the corresponding video image is played in the enlarged video window according to the pixel data.

当前视频窗口是指最近一次放大或缩小之前的视频窗口,例如:若想要对视频窗口进行第5次放大,则当前视频窗口则为第4次放大之后,第5次放大之前的视频窗口。The current video window refers to the video window before the latest zoom-in or zoom-out. For example, if you want to zoom in the video window for the fifth time, the current video window is the video window after the fourth zoom-in and before the fifth zoom-in.

根据上述方法可以在视频窗口O显示的视频图像对应的像素区域为原始视频图像对应的像素区域时,将缩小后的视频窗口O以及随视频窗口O均以同一比例缩小的视频图像再次放大。According to the above method, when the pixel area corresponding to the video image displayed in the video window O is the corresponding pixel area of the original video image, the reduced video window O and the video image reduced in the same ratio as the video window O are enlarged again.

本实施例中,该视频图像处理方法,还包括以下步骤:In this embodiment, the video image processing method also includes the following steps:

当视频窗口O小于播放窗口P或者部分移出播放窗口P时,在视频窗口O与播放窗口P之间填充颜色;When the video window O is smaller than the playback window P or partially moved out of the playback window P, fill the color between the video window O and the playback window P;

和/或,当视频图像O的边界移入视频窗口P时,在视频窗口O与视频图像的边界之间填充颜色。And/or, when the boundary of the video image O moves into the video window P, fill the color between the video window O and the boundary of the video image.

填充的颜色优选为ColorKey色(透明色)或者黑色,也可以填充蓝色、绿色等黑色之外的其他颜色,当然,本实施例中缩小视频窗口O的过程中也可以使播放窗口P随着视频窗口O以及视频图像的缩小而等比例缩小。The color of filling is preferably ColorKey color (transparent color) or black, also can fill other colors other than black such as blue, green, certainly, in the process of reducing video window O in the present embodiment, also can make playing window P follow The reduction of the video window O and the video image is proportionally reduced.

如图1所示,本实施例中,计算在播放窗口内显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域A内的映射坐标的方法,包括以下步骤:As shown in Figure 1, in the present embodiment, the method for calculating the mapping coordinates of the pixel area corresponding to the partial video image displayed in the playback window in the pixel area A corresponding to the original video image includes the following steps:

S0201、判断光标是否位于视频窗口O内;S0201, judging whether the cursor is located in the video window O;

S0202、当光标位于视频窗口O内时,以光标所指向或者以视频窗口O的几何中心处所指向的像素区域内的像素点作为位置恒定的点,计算出根据放大倍数放大后的视频图像中在视频窗口O内显示的部分视频图像对应的像素区域R在原始视频图像对应的像素区域A内的映射坐标,或者,S0202. When the cursor is located in the video window O, use the pixel point in the pixel area pointed by the cursor or pointed to by the geometric center of the video window O as a point with a constant position, and calculate the position in the video image enlarged according to the magnification factor. The mapping coordinates of the pixel region R corresponding to the partial video image displayed in the video window O in the pixel region A corresponding to the original video image, or,

以视频窗口O的几何中心处所指向的像素区域内的像素点作为位置恒定的点,计算出根据缩小倍数缩小后的视频图像在视频窗口O内显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域A内的映射坐标。Taking the pixel points in the pixel area pointed to by the geometric center of the video window O as the point with constant position, calculate the pixel area corresponding to the part of the video image displayed in the video window O according to the video image reduced by the zoom factor in the original video image Mapping coordinates in the corresponding pixel area A.

本实施例中当光标位于视频窗口O内时,优选为以光标所指向像素区域内的像素点作为位置恒定的点,计算出视频窗口O显示的部分视频图像对应的像素区域R在原始视频图像对应的像素区域A内的映射坐标,由于光标的位置可以由用户人为来控制,所以用户可以通过控制光标的位置来控制视频窗口O所显示的需要放大的视频图像对应的像素区域R内的映射坐标,进而可以更为自由的放大或缩小视频窗口O所显示的部分视频图像的位置,有利于改善用户体验。In this embodiment, when the cursor is located in the video window O, it is preferable to use the pixel point in the pixel area pointed by the cursor as a point with constant position, and calculate the pixel area R corresponding to the part of the video image displayed in the video window O in the original video image. The mapping coordinates in the corresponding pixel area A, since the position of the cursor can be manually controlled by the user, so the user can control the mapping in the pixel area R corresponding to the video image displayed in the video window O that needs to be enlarged by controlling the position of the cursor Coordinates, so that the position of part of the video image displayed in the video window O can be more freely enlarged or reduced, which is conducive to improving user experience.

本实施例中无论光标是否位于视频窗口O内,优选为以视频窗口O的几何中心作为位置恒定的点,计算出根据缩小倍数缩小后的视频图像在视频窗口O显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域A内的映射坐标,由于视频窗口O的几何中心为位置比较容易确定的点,所以以视频窗口O的几何中心处所指向像素区域内的像素点作为位置恒定的点,计算缩小后的视频图像在视频窗口O内显示的部分视频图像在原始视频图像上对应的像素区域在原始视频图像对应的像素区域A内的映射坐标时,计算操作会更为容易,计算效率会更高。In this embodiment, regardless of whether the cursor is located in the video window O, it is preferable to use the geometric center of the video window O as a point with a constant position, and calculate the pixels corresponding to the part of the video image displayed in the video window O according to the video image reduced by the zoom factor The mapping coordinates of the region in the pixel region A corresponding to the original video image, since the geometric center of the video window O is a point that is relatively easy to determine, the pixel point in the pixel region pointed to by the geometric center of the video window O is used as a constant position point, when calculating the mapping coordinates of the corresponding pixel area on the original video image in the corresponding pixel area of the original video image in the video window O of the reduced video image, the calculation operation will be easier, and the calculation Efficiency will be higher.

下面举例更为详细说明本发明中具体如何操作以实现对视频窗口内播放的视频图像的放大、缩小以及平移:The following examples illustrate in more detail how to specifically operate in the present invention to realize zooming in, zooming out and translation of video images played in the video window:

放大的过程:The process of zooming in:

视频播放时,按住Ctrl键,当鼠标指针(光标)位于画面(视频窗口所显示的视频图像)上时,指针变成放大镜形状。松开Ctrl键时,鼠标指针恢复默认即还原为放大镜形状之前的形状。When the video is playing, hold down the Ctrl key, and when the mouse pointer (cursor) is positioned on the screen (the video image displayed in the video window), the pointer becomes a magnifying glass. When the Ctrl key is released, the mouse pointer returns to the default shape, which is the shape before the magnifying glass shape.

当鼠标指针位于画面上时,按住Ctrl键,往前转动鼠标中键滚轮,鼠标变成带加号的放大镜形状,画面按当前设置的长宽比等比放大,放大的过程中,鼠标指针所在的点维持其在整个视频窗口中的相对位置不变。鼠标每发出一个信号,画面长宽各乘以1.1(该放大倍数可以人为设定)。当画面在原始大小的基础上放大60次(该次数可以人为设定)之后,即使再往前转动鼠标滚轮,图像也不再放大,而且鼠标指针显示为放大镜(不带加号)形状。When the mouse pointer is on the screen, press and hold the Ctrl key, and turn the mouse wheel forward, the mouse becomes a magnifying glass with a plus sign, and the screen is zoomed in proportion to the currently set aspect ratio. During zooming, the mouse pointer The located point maintains its relative position in the entire video window. Each time the mouse sends out a signal, the length and width of the screen are multiplied by 1.1 (the magnification can be set manually). When the screen is enlarged 60 times on the basis of the original size (the number of times can be set artificially), even if the mouse wheel is turned forward, the image will no longer be enlarged, and the mouse pointer will be displayed as a magnifying glass (without a plus sign).

缩小的过程:The shrinking process:

当鼠标指针位于画面上时,按住Ctrl键,往后转动鼠标中键滚轮,鼠标变成带减号的放大镜形状,画面按当前的长宽比等比缩小,缩小的过程中,如果画面还比窗口大,则鼠标指针所在的点维持其在整个视频窗口中的相对位置不变;如果画面缩小到比窗口小,则画面居中。鼠标每发出一个信号,画面长宽各除以1.1(或各乘以1/1.1)。当画面在原始大小的基础上缩小24次(该次数可以人为设定)之后,即使再往后转动鼠标滚轮,图像也不再缩小,而且鼠标指针显示为放大镜(不带减号)形状。When the mouse pointer is on the screen, press and hold the Ctrl key, and turn the middle mouse wheel backward, the mouse becomes a magnifying glass with a minus sign, and the screen is scaled down according to the current aspect ratio. If it is larger than the window, the point where the mouse pointer is located will maintain its relative position in the entire video window; if the screen is reduced to be smaller than the window, the screen will be centered. Each time the mouse sends out a signal, the length and width of the screen are divided by 1.1 (or multiplied by 1/1.1). When the screen is reduced 24 times from the original size (the number of times can be set manually), even if the mouse wheel is turned backward, the image will no longer shrink, and the mouse pointer will appear as a magnifying glass (without a minus sign).

如果画面已经旋转、翻转,则在旋转、翻转后的画面上做画面缩放操作。If the screen has been rotated or flipped, perform screen zooming operations on the rotated, flipped screen.

画面被放大或者缩小时,在画面右上角信息显示区显示:“按住Ctrl键,双击画面还原”。此处,还原指使视频窗口返回至显示原始视频图像的状态;When the screen is zoomed in or out, the information display area at the upper right corner of the screen will display: "Press and hold the Ctrl key, double-click to restore the screen". Here, restoration refers to returning the video window to the state of displaying the original video image;

画面缩放只对当次播放有效。Screen zoom is only valid for the current playback.

平移的过程:The process of translation:

视频播放时,按住Ctrl键,当鼠标指针位于画面上时,指针变成放大镜形状。松开Ctrl键时,鼠标指针恢复默认。When the video is playing, hold down the Ctrl key, and when the mouse pointer is on the screen, the pointer becomes a magnifying glass. When you release the Ctrl key, the mouse pointer returns to the default.

按住Ctrl键,当鼠标指针位于画面上时,按住鼠标左键,指针变成手形,拖动鼠标,画面随之平移。鼠标平移一个像素,则画面也平移一个像素。松开鼠标左键,指针恢复放大镜形状。Hold down the Ctrl key, when the mouse pointer is on the screen, press and hold the left mouse button, the pointer becomes a hand shape, drag the mouse, and the screen pans accordingly. When the mouse moves one pixel, the screen also moves one pixel. Release the left mouse button, and the pointer returns to the shape of a magnifying glass.

如果画面已经旋转、翻转、放大或缩小,则在旋转、翻转、放大或缩小后的画面上做画面平移操作。If the screen has been rotated, flipped, zoomed in or zoomed out, perform the screen translation operation on the rotated, flipped, zoomed in or zoomed out screen.

画面被平移时,在画面右上角信息显示区显示:“按住Ctrl键,双击画面还原”。When the screen is panned, the information display area at the upper right corner of the screen will display: "Press and hold the Ctrl key, double-click to restore the screen".

画面平移只对当次播放有效。Screen panning is only valid for the current playback.

以下更为详细的阐述实现本发明上述功能所使用的算法,下述算法仅仅本发明所提供的部分优选实施方式,本发明还可以使用以下算法之外的其他算法来实现:The algorithm used to realize the above-mentioned functions of the present invention is described in more detail below. The following algorithms are only some preferred embodiments provided by the present invention. The present invention can also be realized using other algorithms than the following algorithms:

本实施例中,视频窗口O以及原始视频图像对应的像素区域A均呈矩形,两者优选为相似形;In this embodiment, the pixel area A corresponding to the video window O and the original video image is rectangular, and both are preferably similar in shape;

计算根据放大倍数放大后的视频图像在视频窗口O内显示的部分视频图像对应的像素区域R在原始视频图像上对应的像素区域A内的映射坐标的方法,包括以下步骤:The method for calculating the mapping coordinates of the pixel region R corresponding to the part of the video image displayed in the video window O in the video window O corresponding to the enlarged video image according to the magnification factor in the corresponding pixel region A on the original video image comprises the following steps:

S021、以视频窗口O的其中一个顶点作为窗口原点,确定光标相对于窗口原点的坐标值;S021. Using one of the vertices of the video window O as the window origin, determine the coordinate value of the cursor relative to the window origin;

S022、以放大之前的视频图像对应的像素区域的其中一个顶点作为像素暂时原点,根据视频窗口O的边框的高度、宽度分别与放大之前的视频图像对应的像素区域的高度、宽度之间的比例关系,确定光标所指向的像素区域内的像素点的位置相对于像素暂时原点的坐标值;S022, using one of the vertices of the pixel area corresponding to the video image before zooming in as the temporary origin of the pixel, according to the height and width of the frame of the video window O and the ratio between the height and width of the pixel area corresponding to the video image before zooming in respectively relationship, determine the coordinate value of the position of the pixel point in the pixel area pointed by the cursor relative to the temporary origin of the pixel;

S023、以原始视频图像的其中的一个顶点作为像素基准原点,确定像素暂时原点相对于像素基准原点的坐标值,并根据像素暂时原点相对于像素基准原点的坐标值、放大倍数、视频窗口O的高度、宽度以及光标所指向的像素区域内的像素点的位置相对于像素暂时原点的坐标值、放大之前的在视频窗口O显示的视频图像对应的像素区域的高度、宽度,计算出根据放大倍数放大后的视频图像在视频窗口O显示的部分视频图像对应的像素区域R的至少两个不相邻顶点相对于像素基准原点的坐标值。S023, using one of the vertices of the original video image as the pixel reference origin, determine the coordinate value of the pixel temporary origin relative to the pixel reference origin, and according to the coordinate value, magnification, and video window O of the pixel temporary origin relative to the pixel reference origin Height, width, and the coordinate value of the pixel point in the pixel area pointed by the cursor relative to the temporary origin of the pixel, and the height and width of the pixel area corresponding to the video image displayed in the video window O before zooming in are calculated according to the magnification factor Coordinate values of at least two non-adjacent vertices of the pixel region R corresponding to the part of the video image displayed in the video window O relative to the pixel reference origin.

视频窗口O以及原始视频图像对应的像素区域A为相似形,且两者均呈矩形时,原始视频图像可以在视频窗口O上完整显示出视频图像。当然,视频窗口O以及原始视频图像也可以不为相似形,这样,视频窗口O可以播放出原始视频图像上的部分视频图像,或者,视频窗口O播放原始视频图像时,视频窗口O不显示图像的部分可以填充黑色。When the video window O and the pixel area A corresponding to the original video image are similar in shape and both are rectangular, the original video image can completely display the video image on the video window O. Certainly, video window O and original video image also can not be similar shapes, like this, video window O can play out the part video image on original video image, perhaps, when video window O plays original video image, video window O does not display image The parts can be filled with black.

视频窗口O的任意一个顶点均可以作为窗口原点,原始视频图像对应的像素区域A的任意一个顶点作为像素暂时原点,任意两个不相邻顶点的坐标值均可以确定一个矩形的位置以及大小,本实施例中,优选为使用视频窗口O左上角的点作为窗口原点,使用原始视频图像对应的像素区域A的左上角的点作为像素暂时原点,使用根据放大倍数放大后的视频图像在视频窗口O内显示的部分对应的像素区域R的左上角点以及右下角点的坐标来确定已经过放大的视频图像对应的像素区域R在原始视频图像对应的像素区域A内的位置。由于左上角的点、右下角点均为比较容易确定、识别的点,所以有助于减小计算的工作量。Any vertex of the video window O can be used as the window origin, any vertex of the pixel area A corresponding to the original video image can be used as the temporary pixel origin, and the coordinate values of any two non-adjacent vertices can determine the position and size of a rectangle. In this embodiment, it is preferable to use the point at the upper left corner of the video window O as the window origin, use the point at the upper left corner of the pixel area A corresponding to the original video image as the temporary pixel origin, and use the enlarged video image according to the magnification factor in the video window The coordinates of the upper left corner point and the lower right corner point of the pixel region R corresponding to the part displayed in O determine the position of the pixel region R corresponding to the enlarged video image in the pixel region A corresponding to the original video image. Since the upper left corner point and the lower right corner point are points that are relatively easy to determine and identify, it is helpful to reduce the workload of calculation.

下面结合图2更为详细阐述本发明如何放大视频窗口O内的视频图像。How to enlarge the video image in the video window O in the present invention will be explained in more detail below in conjunction with FIG. 2 .

如图2所示,A所示区域与图1中的含义相同,B所示区域表示放大之前,视频窗口O内显示的部分视频图像对应的像素区域;C所示区域表示将视频图像根据放大倍数放大之后,在视频窗口O内显示的部分视频图像对应的像素区域,也就放大操作之后,最终由视频窗口O播放、显示的像素区域;As shown in Figure 2, the area shown in A has the same meaning as that in Figure 1, and the area shown in B represents the pixel area corresponding to the part of the video image displayed in the video window O before zooming in; the area shown in C represents the video image according to the enlarged After the multiplier is enlarged, the pixel area corresponding to the part of the video image displayed in the video window O is the pixel area that is finally played and displayed by the video window O after the zoom operation;

基准原点的坐标为(0,0),像素暂时原点的坐标为(Xbo、Ybo)。The coordinates of the reference origin are (0, 0), and the coordinates of the pixel temporary origin are (Xbo, Ybo).

本实施例中,确定光标所指向的像素区域内的像素点的位置相对于像素暂时原点的坐标值的方法,具体为:In this embodiment, the method for determining the position of the pixel point in the pixel area pointed by the cursor relative to the coordinate value of the temporary origin of the pixel is specifically:

根据公式Px=W1*X/W,Py=H1*Y/H计算出光标所指向的像素区域内的像素点的位置相对于像素暂时原点的坐标值,其中:According to the formula Px=W1*X/W, Py=H1*Y/H calculates the coordinate value of the position of the pixel point in the pixel region pointed by the cursor relative to the temporary origin of the pixel, wherein:

Px、Py依次分别为光标所指向的像素区域内的像素点的位置相对于像素暂时原点的横坐标、纵坐标的坐标值;Px and Py are respectively the coordinate values of the abscissa and ordinate of the position of the pixel point in the pixel area pointed by the cursor relative to the temporary origin of the pixel;

W1、H1依次分别为放大之前的视频图像对应的像素区域的宽度、高度;W1 and H1 respectively respectively represent the width and height of the pixel area corresponding to the video image before zooming in;

X、Y依次分别为光标相对于窗口原点的横坐标、纵坐标的坐标值;X and Y are respectively the coordinate values of the abscissa and ordinate of the cursor relative to the origin of the window;

W、H依次分别为视频窗口O的边框的宽度、高度;W, H are the width, the height of the frame of video window O respectively successively;

计算出根据放大倍数放大后的视频图像在视频窗口O内显示的部分视频图像对应的像素区域C的至少两个不相邻顶点相对于像素基准原点的坐标值的方法,具体为:The method for calculating the coordinate values of at least two non-adjacent vertices relative to the pixel reference origin of the pixel area C corresponding to the partial video image displayed in the video window O according to the enlarged video image of the magnification factor is specifically:

根据公式Xo=(n-1)*Px/n+Xbo,Yo=(n-1)*Py/n+Ybo,According to the formula Xo=(n-1)*Px/n+Xbo, Yo=(n-1)*Py/n+Ybo,

X1=W1/n+Xo,Y1=H1/n+Yo分别计算出根据放大倍数放大后的视频图像在视频窗口O内显示的部分视频图像对应的像素区域R的左上角的顶点以及右下角的顶点相对于像素基准原点的坐标值;其中:X1=W1/n+Xo, Y1=H1/n+Yo respectively calculate the vertex of the upper left corner and the lower right corner of the pixel area R corresponding to the part of the video image displayed in the video window O according to the enlarged video image of the magnification factor The coordinate value of the vertex relative to the origin of the pixel datum; where:

n为放大倍数,n>1;n is the magnification, n>1;

Xo、Yo依次分别为根据放大倍数放大后的视频图像在视频窗口O内显示的部分视频图像对应的像素区域R的左上角的顶点相对于像素基准原点的横坐标、纵坐标的坐标值;Xo, Yo are successively according to the abscissa and the coordinate value of the abscissa and the ordinate of the abscissa and the ordinate of the abscissa of the pixel reference origin respectively according to the vertex in the upper left corner of the pixel region R corresponding to the part of the video image displayed in the video window O according to the enlarged video image of the magnification factor;

X1、Y1依次分别为根据放大倍数放大后的视频图像在视频窗口O内显示的部分视频图像对应的像素区域R的右下角的顶点相对于像素基准原点的横坐标、纵坐标的坐标值;X1, Y1 are respectively according to the abscissa and the ordinate of the abscissa and the ordinate of the abscissa and the ordinate of the pixel reference origin corresponding to the apex in the lower right corner of the pixel region R corresponding to the video image displayed in the video window O according to the enlarged video image of the magnification;

Xbo、Ybo依次分别为像素暂时原点相对于像素基准原点的横坐标、纵坐标的坐标值。Xbo and Ybo are respectively the coordinate values of the abscissa and ordinate of the temporary origin of the pixel relative to the reference origin of the pixel.

通过以上计算所得出的坐标值可以准确的实现在光标所指向的像素区域内的像素点的位置不变时,对视频窗口O内视频图像的放大。The coordinate values obtained through the above calculation can accurately realize the enlargement of the video image in the video window O when the position of the pixel point in the pixel area pointed by the cursor remains unchanged.

使视频窗口O显示的部分视频图像对应的像素区域R在原始视频图像对应的像素区域A上的映射坐标跟随光标平移的轨迹而平移的方法,具体为:The method that the mapping coordinates of the pixel area R corresponding to the partial video image displayed by the video window O on the pixel area A corresponding to the original video image is translated along the track of the cursor translation, specifically:

实时将视频窗口O内显示的视频图像对应的像素区域R的左上角的顶点相对于像素基准原点的横坐标的坐标值调整为Xo+ΔX*(n-1)/(n*W),纵坐标的坐标值调整为Yo+ΔY*(n-1)/(n*W);In real time, the coordinate value of the abscissa coordinate value of the vertex in the upper left corner of the corresponding pixel region R corresponding to the video image displayed in the video window O is adjusted to Xo+ΔX*(n-1)/(n*W), vertical The coordinate value of the coordinate is adjusted to Yo+ΔY*(n-1)/(n*W);

实时将视频窗口O内显示的视频图像对应的像素区域R的右下角的顶点相对于像素基准原点的横坐标的坐标值调整为X1+ΔX*(n-1)/(n*W)、纵坐标的坐标值调整为Y1+ΔY*(n-1)/(n*W),其中:In real time, the coordinate value of the abscissa of the abscissa of the abscissa of the pixel region R corresponding to the video image displayed in the video window O is adjusted to X1+ΔX*(n-1)/(n*W), vertical The coordinate value of the coordinate is adjusted to Y1+ΔY*(n-1)/(n*W), where:

ΔX、ΔY依次分别为光标在视频窗口O上平移过程中,光标的横坐标、纵坐标相对于窗口原点平移的距离。ΔX and ΔY respectively represent the translation distances of the abscissa and ordinate of the cursor relative to the origin of the window during the translation process of the cursor on the video window O.

通过以上计算所得出的坐标值可以准确的实现通过平移光标实现对视频窗口O内显示的部分视频图像进行平移。The coordinate values obtained through the above calculation can accurately realize the translation of part of the video images displayed in the video window O by moving the cursor.

缩小视频窗口O显示的由原始视频图像已经过放大的视频图像:Zoom out the video image that has been enlarged by the original video image displayed in the video window O:

下面结合图1中1c与1e部分以及图3更为详细阐述本发明如何缩小视频窗口O内已经经过放大的视频图像。The following describes in more detail how the present invention reduces the zoomed-in video image in the video window O in combination withparts 1c and 1e in FIG. 1 and FIG. 3 .

如图3所示,图中A、E所示区域表示的含义与图1中相同,D所示区域表示将视频窗口内显示的部分视频图像缩小显示时,缩小之前,视频窗口内显示的部分视频图像对应的像素区域;基准原点的坐标为(0,0)。As shown in Figure 3, the meanings indicated by the areas shown in A and E are the same as in Figure 1, and the area shown in D indicates the part displayed in the video window before shrinking when the part of the video image displayed in the video window is reduced. The pixel area corresponding to the video image; the coordinates of the reference origin are (0, 0).

本实施例中,在视频窗口O显示的部分视频图像对应的像素区域R小于原始视频图像对应的像素区域A时,计算出在视频窗口O内显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域A内的映射坐标的方法,具体为:In this embodiment, when the pixel region R corresponding to the part of the video image displayed in the video window O is smaller than the pixel region A corresponding to the original video image, it is calculated that the pixel region corresponding to the part of the video image displayed in the video window O is smaller than the pixel region A corresponding to the original video image. The method of mapping coordinates in the corresponding pixel area A, specifically:

根据公式XBo=Xo-(1-m)*(X1-Xo)*Xo/[Wo-(X1-Xo)],According to the formula XBo=Xo-(1-m)*(X1-Xo)*Xo/[Wo-(X1-Xo)],

YBo=Yo-(1-m)*(Y1-Yo)*Yo/[Ho-(Y1-Yo)],YBo=Yo-(1-m)*(Y1-Yo)*Yo/[Ho-(Y1-Yo)],

XB1=X1+(1-m)*(X1-Xo)-X1*Xo/[Wo-(X1-Xo)],XB1=X1+(1-m)*(X1-Xo)-X1*Xo/[Wo-(X1-Xo)],

YB1=Y1+(1-m)*(Y1-Yo)-Y1*Yo/[Ho-(Y1-Yo)]分别计算出原始视频图像对应的像素区域A内,在视频窗口O内显示的部分视频图像对应的像素区域左上角的顶点以及右下角的顶点相对于像素基准原点的坐标值;其中:YB1=Y1+(1-m)*(Y1-Yo)-Y1*Yo/[Ho-(Y1-Yo)] respectively calculate the part of the video displayed in the video window O in the pixel area A corresponding to the original video image The coordinate values of the vertex in the upper left corner and the vertex in the lower right corner of the pixel area corresponding to the image relative to the pixel reference origin; where:

m为缩小倍数,1>m>0,且(1/m)≤n;m is the reduction factor, 1>m>0, and (1/m)≤n;

XBo、YBo依次分别为在原始视频图像对应的像素区域A内,根据缩小倍数缩小后的视频图像在视频窗口O内显示的部分视频图像对应的像素区域左上角的顶点相对于像素基准原点的横坐标、纵坐标的坐标值;XBo, YBo respectively in the pixel area A corresponding to the original video image, according to the video image reduced by the zoom factor in the video window O corresponding to the part of the video image displayed in the upper left corner of the vertex in the pixel area relative to the horizontal axis of the pixel reference origin Coordinate values of coordinates and ordinates;

XB1、YB1依次分别为在原始视频图像对应的像素区域A内,根据缩小倍数缩小后的视频图像在视频窗口O内显示的部分视频图像对应的像素区域右下角的顶点相对于像素基准原点的横坐标、纵坐标的坐标值;XB1 and YB1 respectively respectively in the pixel area A corresponding to the original video image, according to the video image reduced by the zoom factor and displayed in the video window O corresponding to the vertex in the lower right corner of the pixel area in the lower right corner relative to the pixel reference origin Coordinate values of coordinates and ordinates;

Wo、Ho依次分别为原始视频图像对应的像素区域A的宽度、高度。Wo and Ho respectively represent the width and height of the pixel area A corresponding to the original video image in turn.

如图3所示,由于缩小后在X轴方向上要多显示的像素为:x1=(1-m)*(X1-Xo);As shown in Figure 3, since the pixels to be displayed in the X-axis direction after zooming out are: x1=(1-m)*(X1-Xo);

缩小后在Y轴方向上要多显示的像素为:y1=(1-m)*(Y1-Yo);After zooming out, the pixels to be displayed in the direction of the Y axis are: y1=(1-m)*(Y1-Yo);

故缩小后点(Xo,Yo)应在x轴负方向上平移,平移的距离为:Therefore, after shrinking, the point (Xo, Yo) should be translated in the negative direction of the x-axis, and the translation distance is:

FBx=x1*Xo/[Wo-(X1-Xo)];FBx=x1*Xo/[Wo-(X1-Xo)];

所以,XBo=Xo-x1*Xo/[Wo-(X1-Xo)]So, XBo=Xo-x1*Xo/[Wo-(X1-Xo)]

=Xo-(1-m)*(X1-Xo)*Xo/[Wo-(X1-Xo)];=Xo-(1-m)*(X1-Xo)*Xo/[Wo-(X1-Xo)];

同理:缩小后点(Xo,Yo)应在Y轴负方向上平移,平移的距离为:In the same way: after zooming out, the point (Xo, Yo) should be translated in the negative direction of the Y axis, and the translation distance is:

FBy=y1*Yo/[Ho-(Y1-Yo)];FBy=y1*Yo/[Ho-(Y1-Yo)];

所以,YBo=Yo-y1*Yo[Ho-(Y1-Yo)];Therefore, YBo=Yo-y1*Yo[Ho-(Y1-Yo)];

=Yo-(1-m)*(Y1-Yo)*Yo/[Ho-(Y1-Yo)];=Yo-(1-m)*(Y1-Yo)*Yo/[Ho-(Y1-Yo)];

缩小后点(X1,Y1)应在x轴正方向上平移x1-FBx;After zooming out, the point (X1, Y1) should translate x1-FBx in the positive direction of the x-axis;

故缩小后右下角的点(XB1,YB1)为Therefore, the point (XB1, YB1) in the lower right corner after zooming out is

XB1=X1+x1-FBx;XB1=X1+x1-FBx;

=X1+(1-m)*(X1-Xo)-x1*Xo/[Wo-(X1-Xo)];=X1+(1-m)*(X1-Xo)-x1*Xo/[Wo-(X1-Xo)];

缩小后点(X1,Y1)应在Y轴正方向上平移y1-FBy;After zooming out, the point (X1, Y1) should translate y1-FBy in the positive direction of the Y axis;

YB1=Y1+y1-FBy;YB1=Y1+y1-FBy;

=Y1+(1-m)*(Y1-Yo)-y1*Yo/[Ho-(Y1-Yo)];=Y1+(1-m)*(Y1-Yo)-y1*Yo/[Ho-(Y1-Yo)];

将视频窗口O内所显示的部分视频图像缩小显示时,缩小倍数m大于0,小于1,并且(1/m)≤n,此时,由于是将已经过放大的视频图像缩小,所以虽然视频图像缩小了,但是,相对于未放大的视频图像而言视频窗口O内所显示的视频图像带给用户的效果仍旧是视频图像处于放大的状态,例如将放大6倍的视频图像,缩小为放大2倍的视频图像,此时,虽然,视频图像缩小了3倍,但是,放大2倍的视频图像,对于未放大的视频图像而言仍旧处于放大2倍的状态,所以视频窗口O内所显示的部分视频图像仍旧仅仅是在原始视频图像上的部分视频图像。When the displayed part of the video image in the video window O is reduced and displayed, the reduction factor m is greater than 0 and less than 1, and (1/m)≤n. At this time, because the enlarged video image is reduced, although the video The image has shrunk, but, compared to the unenlarged video image, the video image displayed in thevideo window 0 gives the user the effect that the video image is still in an enlarged state, for example, the video image that is enlarged by 6 times is reduced to enlarge 2 times of video image, at this moment, although the video image has been reduced by 3 times, the video image ofmagnification 2 times is still in the state of 2 times of magnification for the unenlarged video image, so displayed in thevideo window 0 The partial video image is still just a partial video image on top of the original video image.

通过以上计算所得出的坐标值可以准确的实现在光标所指向的像素区域内的像素点的位置不变时,对视频窗口O内显示的部分视频图像缩小显示。The coordinate values obtained through the above calculation can accurately realize the reduced display of the part of the video image displayed in the video window O when the position of the pixel point in the pixel area pointed by the cursor remains unchanged.

由于用户的肉眼的感官通常不会太过准确,所以以上坐标值是可以允许适当误差,甚至可以以上坐标值进行适当的更改。当然,也可以使用以上方法之外的其他方法来确定上述坐标值,例如:可以根据使用经验设定其他比较适宜坐标值。Since the senses of the user's naked eyes are usually not too accurate, appropriate errors can be allowed for the above coordinate values, and even appropriate changes can be made to the above coordinate values. Of course, other methods other than the above methods can also be used to determine the above coordinate values, for example, other suitable coordinate values can be set according to experience.

本实施例中,外设为鼠标和按键,按键包括平移功能键以及缩放功能键;接收通过外设输入的触发信号,并根据触发信号确定放大倍数或缩小倍数的方法,包括以下步骤:In this embodiment, the peripherals are a mouse and buttons, and the buttons include translation function keys and zoom function keys; the method of receiving a trigger signal input through the peripheral and determining the magnification or reduction according to the trigger signal includes the following steps:

S040、判断预先定义的缩放功能键是否被激活;S040, judging whether the predefined zoom function key is activated;

S041、若缩放功能键已经被激活,则检测滚轮滚动过程中滚轮内的感应器发出触发信号的次数以及滚动方向;S041. If the zoom function key has been activated, detect the number of trigger signals sent by the sensor in the scroll wheel and the scroll direction during the scrolling process of the scroll wheel;

S042、根据感应器发出的触发信号的次数、滚动方向以及预先设定的次数、滚动方向与放大倍数或缩小倍数之间的对应规则确定放大倍数或缩小倍数的具体数值。S042. Determine the specific value of the magnification or reduction factor according to the number of trigger signals sent by the sensor, the scrolling direction and the preset times, and the corresponding rule between the scrolling direction and the magnification or reduction factor.

缩放功能键可以人为设定,缩放功能键与平移功能键也可以为同一个按键。例如,缩放功能键与平移功能键均可以设定为Ctrl键。The zoom function key can be set artificially, and the zoom function key and the translation function key can also be the same key. For example, both the zoom function key and the translation function key can be set as the Ctrl key.

当缩放功能键被按下时,通过滚动滚轮的方式便可以输入放大倍数或缩小倍数,例如:当要放大视频窗口内所显示的部分视频图像时,可以设定为向前(或向上)滚动一次滚轮时,感应器产生一个触发信号,放大倍数增加0.1,例如放大倍数由1增加为1.1,视频图像被放大1.1倍,也就是说放大倍数以及缩小倍数的初始值可以默认为1,可以设定为在预定时间内向前(或向上)滚动滚轮时,感应器产生一个触发信号,放大倍数n由n(例如1)变为n+0.1或者放大倍数n由n(例如1.1)变为n的平方(例如1.21),向后(或向下)滚动滚轮时,感应器产生一个触发信号,放大倍数n由n(例如1.21)变为n的平方根(例如1.1)或者放大倍数n由n变为n-0.1,直至n为1时,此时若在预定时间内继续向后(或向下)滚动滚轮时,感应器产生一个触发信号,缩小倍数由缩小倍数的初始值1变为1-0.1即0.9或者缩小倍数由1/k变为1/(k+1)或为1/(k+0.1),k为1,若继续向后(或向下)滚动滚轮时,感应器产生一个触发信号,缩小倍数继续减小0.1或k继续增加0.1。感应器发出的触发信号的次数、滚动方向与放大倍数或缩小倍数之间的对应规则可以人为任意设定。When the zoom function key is pressed, the magnification or reduction factor can be input by rolling the wheel, for example: when a part of the video image displayed in the video window is to be enlarged, it can be set to scroll forward (or upward) When the wheel is rolled once, the sensor generates a trigger signal, and the magnification increases by 0.1. For example, the magnification increases from 1 to 1.1, and the video image is magnified by 1.1 times. That is to say, the initial value of the magnification and reduction can be 1 by default, and can be set It is determined that when the scroll wheel is rolled forward (or upward) within a predetermined time, the sensor generates a trigger signal, and the magnification n changes from n (for example 1) to n+0.1 or the magnification n changes from n (for example 1.1) to n Square (such as 1.21), when scrolling backward (or down), the sensor generates a trigger signal, and the magnification n changes from n (such as 1.21) to the square root of n (such as 1.1) or the magnification n changes from n to n-0.1, until n is 1, at this time, if you continue to scroll backwards (or down) within the predetermined time, the sensor will generate a trigger signal, and the reduction factor will change from the initial value of 1 to 1-0.1 That is, 0.9 or the reduction factor changes from 1/k to 1/(k+1) or 1/(k+0.1), and k is 1. If you continue to scroll backwards (or down), the sensor will generate a trigger signal, the reduction factor continues to decrease by 0.1 or k continues to increase by 0.1. The number of trigger signals sent by the sensor, the corresponding rules between the scrolling direction and the magnification or reduction can be set arbitrarily.

当然,本实施例中按压按键可以使用按压+或-号(例如:按一次+放大倍数加1或0.1)或者直接输入具体数值的方式输入放大倍数或缩小倍数。Certainly, in this embodiment, pressing a key may input the magnification or reduction by pressing the + or - sign (for example: pressing once + magnification plus 1 or 0.1) or directly inputting a specific value.

如图4所示,本发明所提供的使用上述本发明所提供的视频图像处理方法的视频图像处理装置,包括用户交互界面1、播放器2、外设(例如可以包括按键5以及设置有滚轮的鼠标6),播放器2,包括播放窗口20以及播放控制模块25其中:As shown in Figure 4, the video image processing device provided by the present invention using the above-mentioned video image processing method provided by the present invention includes a user interface 1, aplayer 2, peripherals (such as can includebuttons 5 and be provided with a scroll wheel mouse 6),player 2, includingplay window 20 and playcontrol module 25 wherein:

用户交互界面1,用于在光标位于播放器的播放窗口20内且平移功能键被激活时,追踪光标在播放窗口20内的轨迹;The user interface 1 is used to track the trajectory of the cursor in theplayback window 20 when the cursor is located in theplayback window 20 of the player and the translation function key is activated;

播放控制模块25,用于在播放窗口20与播放窗口20内的视频窗口200重合时,且播放窗口20内的视频窗口200显示截取自原始视频图像的部分视频图像时,使视频窗口200显示的部分视频图像跟随光标的轨迹而平移。Theplay control module 25 is used for when thevideo window 200 in theplay window 20 overlaps with theplay window 20, and when thevideo window 200 in theplay window 20 displays a partial video image intercepted from the original video image, thevideo window 200 is displayed Part of the video image is panned following the trajectory of the cursor.

本发明所提供的视频图像处理装置与上述本发明所提供的视频图像处理方法具有相同的技术特征,故而也能实现相同的技术效果,解决相同的技术问题,所以此处不再重复阐述。The video image processing device provided by the present invention has the same technical features as the above video image processing method provided by the present invention, so it can also achieve the same technical effect and solve the same technical problem, so it will not be repeated here.

本实施例中用户交互界面1,还用于显示原始视频图像的视频窗口200小于或等于播放窗口20时,使视频窗口200以及其内显示的视频图像均跟随光标的轨迹在播放窗口20的约束下平移。In the present embodiment, the user interaction interface 1 is also used to display thevideo window 200 of the original video image when it is less than or equal to theplay window 20, so that thevideo window 200 and the video images displayed in it all follow the track of the cursor within the constraints of theplay window 20. Pan down.

用户交互界面1可以在视频窗口200显示原始视频图像时,实现对视频窗口200以及其内显示的视频图像的平移,从而使得本发明所提供的视频处理装置的功能更为丰富。The user interface 1 can realize the translation of thevideo window 200 and the video images displayed therein when thevideo window 200 displays the original video image, so that the functions of the video processing device provided by the present invention are more abundant.

本实施例中视频窗口200以及其内显示的视频图像均跟随光标的轨迹在播放窗口20的约束下平移包括视频窗口200的长边和宽边不超过播放窗口20的长边和宽边或者视频窗口200的几何中心坐标限制在播放窗口20内或者光标的轨迹限制在播放窗口20内。In the present embodiment, thevideo window 200 and the video images displayed therein all follow the track of the cursor and translate under the constraints of theplayback window 20, including that the long side and the wide side of thevideo window 200 do not exceed the long side and the wide side of theplayback window 20 or thevideo window 200. The coordinates of the geometric center of thewindow 200 are limited within theplayback window 20 or the trajectory of the cursor is limited within theplayback window 20 .

这种设计使得用户在平移视频窗口200时,不会因为误操作而将视频窗口200彻底移出播放窗口20,从而影响视频图像的正常观看。This design makes it impossible for the user to completely move thevideo window 200 out of theplayback window 20 due to a misoperation when the user pans thevideo window 200, thereby affecting the normal viewing of the video image.

如图4所示,本实施例中,播放器2,还包括文件读取模块21、分离模块22以及视频解码模块23以及视频渲染模块24,其中:As shown in Figure 4, in this embodiment, theplayer 2 also includes afile reading module 21, aseparation module 22, avideo decoding module 23 and avideo rendering module 24, wherein:

播放控制模块25,还用于在显示原始视频图像的视频窗口200小于播放窗口20时,根据平移前视频窗口200在播放窗口20内的坐标、光标的轨迹以及预先设定的轨迹与视频窗口200的坐标之间的对应关系,计算出平移后视频窗口200在播放窗口20内的坐标,并将视频窗口200的位置平移至计算出的坐标指示的位置;Theplayback control module 25 is also used to display thevideo window 200 of the original video image less than theplayback window 20, according to the coordinates of thevideo window 200 in theplayback window 20 before the translation, the track of the cursor and the preset track and thevideo window 200 The corresponding relationship between the coordinates, calculate the coordinates of thevideo window 200 in theplayback window 20 after translation, and translate the position of thevideo window 200 to the position indicated by the calculated coordinates;

视频渲染模块24,还用于在显示原始视频图像的视频窗口200小于播放窗口20时,实时提取原始视频图像对应的像素数据,并根据像素数据在视频窗口200内播放出相应的视频图像;Thevideo rendering module 24 is also used to extract the corresponding pixel data of the original video image in real time when thevideo window 200 displaying the original video image is smaller than theplayback window 20, and play out the corresponding video image in thevideo window 200 according to the pixel data;

播放控制模块25,还用于在播放窗口20与播放窗口20内的视频窗口200重合时,且播放窗口20内的视频窗口200显示截取自原始视频图像的部分视频图像时,使视频窗口200显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域上的映射坐标跟随光标的轨迹而变化;Theplayback control module 25 is also used to make thevideo window 200 display when thevideo window 200 in theplayback window 20 overlaps with thevideo window 200 in theplayback window 20, and when thevideo window 200 in theplayback window 20 displays a partial video image intercepted from the original video image. The mapping coordinates of the pixel area corresponding to the part of the video image on the pixel area corresponding to the original video image follow the trajectory of the cursor and change;

视频渲染模块24,还用于实时提取由变化后的映射坐标限定的像素区域对应的像素数据,并根据像素数据在视频窗口200内播放出与映射坐标相应的追踪视频图像;Thevideo rendering module 24 is also used to extract pixel data corresponding to the pixel area defined by the changed mapping coordinates in real time, and play out a tracking video image corresponding to the mapping coordinates in thevideo window 200 according to the pixel data;

文件读取模块21,用于读取传输控制端7以P2P的方式从P2P网络8内具有视频资源的节点所获取的视频文件,并将视频文件发送至分离模块22;Thefile reading module 21 is used to read the video file obtained by thetransmission control terminal 7 from a node with a video resource in theP2P network 8 in a P2P manner, and sends the video file to theseparation module 22;

分离模块22,用于将视频文件分离为视频编码数据以及音频数据,并将视频编码数据发送至视频解码模块23;Theseparation module 22 is used to separate the video file into video encoding data and audio data, and sends the video encoding data to thevideo decoding module 23;

视频解码模块23,用于将视频编码数据解码为与视频图像的像素区域相对应的像素数据后输入视频渲染模块24;Thevideo decoding module 23 is used to decode the video encoding data into pixel data corresponding to the pixel area of the video image and then input thevideo rendering module 24;

播放控制模块25,还用于启动或关闭视频渲染模块24、文件读取模块21、分离模块22以及视频解码模块23。Theplayback control module 25 is also used to enable or disable thevideo rendering module 24 , thefile reading module 21 , the separatingmodule 22 and thevideo decoding module 23 .

传输控制端7以P2P(Peer-to-Peer,中文可译为“对等”或“点对点”)的方式从P2P网络8内具有视频资源的节点获取视频文件,有利于视频文件的快速传输,进而有助于视频图像的快速播放。当然,传输控制端7也可以使用P2P之外的其他方式获取视频文件。Thetransmission control terminal 7 acquires video files from nodes with video resources in theP2P network 8 in a P2P (Peer-to-Peer, Chinese can be translated as "peer" or "point-to-point") mode, which is conducive to the rapid transmission of video files. This in turn contributes to the fast playback of video images. Of course, thetransmission control terminal 7 can also use other methods than P2P to obtain video files.

本实施例中用户交互界面1,还用于接收通过外设输入的触发信号,并根据触发信号确定缩小倍数或放大倍数,放大倍数为将视频窗口以及视频窗口内显示的视频图像均以同一比例放大显示的倍数;In this embodiment, the user interaction interface 1 is also used to receive the trigger signal input by the peripheral device, and determine the reduction factor or the magnification factor according to the trigger signal. The multiple of the magnified display;

用户交互界面1,还用于在视频窗口200显示的部分视频图像对应的像素区域为原始视频图像对应的像素区域时,根据缩小倍数缩小视频窗口200,确定视频窗口200缩小位置坐标,缩小位置坐标的步骤为:将视频窗口200边框的高度缩小为缩小倍数与当前视频窗口200的高度之积,将视频窗口200的宽度缩小为缩小倍数与当前视频窗口200的宽度之积;The user interaction interface 1 is also used to reduce thevideo window 200 according to the reduction factor when the pixel area corresponding to the part of the video image displayed in thevideo window 200 is the corresponding pixel area of the original video image, determine the reduced position coordinates of thevideo window 200, and reduce the position coordinates The steps are: the height of thevideo window 200 frame is reduced to the product of the reduction multiple and the height of thecurrent video window 200, and the width of thevideo window 200 is reduced to the product of the reduction multiple and the width of thecurrent video window 200;

用户交互界面,还用于在视频窗口200显示的视频图像对应的像素区域为原始视频图像对应的像素区域且视频窗口200小于播放窗口20时,根据放大倍数放大视频窗口200,确定视频窗口200放大位置坐标;放大位置坐标的步骤为:将视频窗口200边框的高度放大为放大倍数与当前视频窗口200的高度之积,将视频窗口200的宽度放大为放大倍数与当前视频窗口200的宽度之积。The user interaction interface is also used to enlarge thevideo window 200 according to the magnification when the corresponding pixel area of the video image displayed in thevideo window 200 is the corresponding pixel area of the original video image and thevideo window 200 is smaller than theplayback window 20, and determines that thevideo window 200 is enlarged Position coordinates; the step of enlarging the position coordinates is: amplifying the height of the frame of thevideo window 200 as the product of the magnification factor and the height of thecurrent video window 200, and enlarging the width of thevideo window 200 as the product of the magnification factor and the width of thecurrent video window 200 .

通过上述方法用户交互界面可以实现对播放窗口20内的视频窗口200缩小和放大。Thevideo window 200 in theplayback window 20 can be reduced and enlarged by the user interaction interface through the above method.

本实施例中用户交互界面,还用于在缩小后的视频窗口的边框与播放窗口的边框之间填充颜色,填充的颜色优选为黑色。In this embodiment, the user interaction interface is further used to fill in a color between the border of the reduced video window and the border of the playback window, and the filled color is preferably black.

本实施例中播放控制模块25对视频窗口200内显示的部分视频图像进行处理的算法的优选实施方式与上述本发明所提供的视频图像处理方法中所提供的优选实施方式相同,所以此处不再重复阐述。In this embodiment, the preferred implementation of the algorithm for theplayback control module 25 to process the partial video images displayed in thevideo window 200 is the same as the preferred implementation provided in the above-mentioned video image processing method provided by the present invention, so it will not be described here. Repeat the explanation again.

本发明可以通过滚动鼠标6的滚轮和/或按压按键5的方式,优选为采用按住Ctrl键,并滚动鼠标6的滚轮的方式输入放大倍数以及缩小倍数,从而实现在视频窗口200的边框尺寸不变的情况下,将视频窗口200内显示的原始视频图像放大显示或缩小,无需采用现有技术的方法在视频窗口200内拉出一个矩形区域,不仅可以实现放大,输入放大倍数可以更为精确,而且还可以实现缩小,同时,操作也更为方便。The present invention can be by rolling the scroll wheel ofmouse 6 and/or the mode ofpressing button 5, preferably adopt and hold down Ctrl key, and the mode of rollingmouse 6 scroll wheel inputs magnification factor and reduction factor, thereby realizes in the frame size ofvideo window 200 Under the same situation, the original video image displayed in thevideo window 200 is magnified and displayed or reduced, without using the method of the prior art to draw a rectangular area in thevideo window 200, not only can zoom in, but the input magnification can be more Accurate, and it can also be reduced, and at the same time, the operation is more convenient.

以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone skilled in the art can easily think of changes or substitutions within the technical scope disclosed in the present invention. Should be covered within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (10)

CN201110203884.7A2011-07-202011-07-20Video image processing method and video image processing deviceActiveCN102890603B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201110203884.7ACN102890603B (en)2011-07-202011-07-20Video image processing method and video image processing device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201110203884.7ACN102890603B (en)2011-07-202011-07-20Video image processing method and video image processing device

Publications (2)

Publication NumberPublication Date
CN102890603Atrue CN102890603A (en)2013-01-23
CN102890603B CN102890603B (en)2015-05-27

Family

ID=47534119

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201110203884.7AActiveCN102890603B (en)2011-07-202011-07-20Video image processing method and video image processing device

Country Status (1)

CountryLink
CN (1)CN102890603B (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105635522A (en)*2015-12-302016-06-01广州华多网络科技有限公司Video displaying method and device based on user requirements
CN105657564A (en)*2015-12-302016-06-08广东欧珀移动通信有限公司Video processing method and video processing system for browser
CN107765964A (en)*2017-09-072018-03-06深圳岚锋创视网络科技有限公司A kind of method, apparatus and portable terminal of the regional area for browsing full-view image file
CN107918584A (en)*2016-10-062018-04-17株式会社东芝 Information generating system, device, method, and computer-readable recording medium
CN108804539A (en)*2018-05-082018-11-13山西大学A kind of track method for detecting abnormality under time and space double-visual angle
CN109298818A (en)*2018-09-142019-02-01Oppo广东移动通信有限公司 A window adjustment method, mobile terminal and computer-readable storage medium
CN109978968A (en)*2019-04-102019-07-05广州虎牙信息科技有限公司Video rendering method, apparatus, equipment and the storage medium of Moving Objects
CN111935544A (en)*2020-07-312020-11-13北京字节跳动网络技术有限公司Interaction method and device and electronic equipment
CN113596564A (en)*2021-09-292021-11-02卡莱特云科技股份有限公司Picture playing method and device
CN114529691A (en)*2020-11-042022-05-24华为技术有限公司Window control method, electronic device and computer readable storage medium
JP2023082996A (en)*2021-12-032023-06-15凸版印刷株式会社Operation apparatus, viewing aid, viewing apparatus, and driving method
CN116263936A (en)*2021-12-142023-06-16深圳开立生物医疗科技股份有限公司 Image enlargement method, device, electronic equipment and readable storage medium
JP2025080351A (en)*2023-11-142025-05-26Necパーソナルコンピュータ株式会社 Information processing device, window display control method, and program

Citations (4)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
US6323878B1 (en)*1999-03-032001-11-27Sony CorporationSystem and method for providing zooming video capture
CN101576996A (en)*2009-06-052009-11-11腾讯科技(深圳)有限公司Processing method and device for realizing image zooming
CN101874402A (en)*2007-09-242010-10-27全球设备管理有限责任公司 target acquisition system
CN101951493A (en)*2010-09-252011-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 numberPriority datePublication dateAssigneeTitle
US6323878B1 (en)*1999-03-032001-11-27Sony CorporationSystem and method for providing zooming video capture
CN101874402A (en)*2007-09-242010-10-27全球设备管理有限责任公司 target acquisition system
CN101576996A (en)*2009-06-052009-11-11腾讯科技(深圳)有限公司Processing method and device for realizing image zooming
CN101951493A (en)*2010-09-252011-01-19中兴通讯股份有限公司Mobile terminal and method for partially amplifying far-end images in video call thereof

Cited By (18)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN105657564A (en)*2015-12-302016-06-08广东欧珀移动通信有限公司Video processing method and video processing system for browser
CN105635522A (en)*2015-12-302016-06-01广州华多网络科技有限公司Video displaying method and device based on user requirements
CN107918584A (en)*2016-10-062018-04-17株式会社东芝 Information generating system, device, method, and computer-readable recording medium
CN107765964A (en)*2017-09-072018-03-06深圳岚锋创视网络科技有限公司A kind of method, apparatus and portable terminal of the regional area for browsing full-view image file
CN108804539B (en)*2018-05-082022-03-18山西大学Track anomaly detection method under time and space double view angles
CN108804539A (en)*2018-05-082018-11-13山西大学A kind of track method for detecting abnormality under time and space double-visual angle
CN109298818A (en)*2018-09-142019-02-01Oppo广东移动通信有限公司 A window adjustment method, mobile terminal and computer-readable storage medium
CN109298818B (en)*2018-09-142020-07-31Oppo广东移动通信有限公司 A window adjustment method, mobile terminal and computer-readable storage medium
CN109978968A (en)*2019-04-102019-07-05广州虎牙信息科技有限公司Video rendering method, apparatus, equipment and the storage medium of Moving Objects
CN111935544A (en)*2020-07-312020-11-13北京字节跳动网络技术有限公司Interaction method and device and electronic equipment
CN111935544B (en)*2020-07-312022-03-08北京字节跳动网络技术有限公司Interaction method and device and electronic equipment
US11863835B2 (en)2020-07-312024-01-02Douyin Vision Co., Ltd.Interaction method and apparatus, and electronic device
US12316922B2 (en)2020-07-312025-05-27Beijing Bytedance Network Technology Co., Ltd.Interaction method and apparatus, and electronic device
CN114529691A (en)*2020-11-042022-05-24华为技术有限公司Window control method, electronic device and computer readable storage medium
CN113596564A (en)*2021-09-292021-11-02卡莱特云科技股份有限公司Picture playing method and device
JP2023082996A (en)*2021-12-032023-06-15凸版印刷株式会社Operation apparatus, viewing aid, viewing apparatus, and driving method
CN116263936A (en)*2021-12-142023-06-16深圳开立生物医疗科技股份有限公司 Image enlargement method, device, electronic equipment and readable storage medium
JP2025080351A (en)*2023-11-142025-05-26Necパーソナルコンピュータ株式会社 Information processing device, window display control method, and program

Also Published As

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

Similar Documents

PublicationPublication DateTitle
CN102890603B (en)Video image processing method and video image processing device
CN102890816B (en)Video image zooming disposal route and video image zooming treating apparatus
US12321575B2 (en)Remotely configuring windows displayed on a display device
CN101930337B (en)Method for processing on-screen display and associated embedded system
KR102132390B1 (en)User terminal device and method for displaying thereof
CN112954193B (en) Shooting method, device, electronic device and medium
KR101885132B1 (en)Apparatus and method for input by touch in user equipment
CN103853482B (en)A kind of method and device of video scaling
CN102595242A (en)Dynamic video regulation system, terminal and method
CN106406651B (en)Method and device for dynamically amplifying and displaying video
TWI488487B (en)Method for adjusting video compression using gesture
CN107211103A (en) Display device and display method
US7659913B2 (en)Method and apparatus for video editing with a minimal input device
CN103164142B (en)The method of adjustment of a kind of screen touch point position of picture-in-picture interface and electronic equipment
CN105677268A (en)Mirror display system with low data transmission quantity and method thereof
CN103096045B (en) Method of Adjusting Video Image Compression Using Gestures
CN106131628B (en)A kind of method of video image processing and device
WO2022193475A1 (en)Display device, method for receiving screen projection content, and screen projection method
CN106919376A (en)Dynamic picture transmission method, server device and user device
CN115061650A (en)Display apparatus and image display method
CN105635522A (en)Video displaying method and device based on user requirements
CN105975165B (en)Display control method of fisheye menu
CN113655921B (en) Screen display method, device, electronic device and storage medium
CN109976623A (en)Display device and display methods
JP5261335B2 (en) Display device, image display system, display device control method, control program, and recording medium

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
C14Grant of patent or utility model
GR01Patent grant
TR01Transfer 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.

TR01Transfer of patent right
TR01Transfer of patent right
TR01Transfer 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.

TR01Transfer of patent right
TR01Transfer 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.

TR01Transfer of patent right
TR01Transfer of patent right

Effective date of registration:20250113

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

Patentee after:Nantong Construction Engineering Co.,Ltd.

Country or region after:China

Address before: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 before:Nantong haisai future digital technology Co.,Ltd.

Country or region before:China


[8]ページ先頭

©2009-2025 Movatter.jp