[go: up one dir, main page]

CN102890816B - Video image zooming disposal route and video image zooming treating apparatus - Google Patents

Video image zooming disposal route and video image zooming treating apparatus Download PDF

Info

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

Links

Landscapes

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

Abstract

本发明提供了一种视频图像缩放处理方法以及视频图像缩放处理装置,涉及电子技术领域。解决了现有技术存在功能单一、操作麻烦的技术问题。该视频图像缩放处理方法,在视频窗口和播放窗口重合,或者小于播放窗口时,采用不同的缩放处理,具体包括步骤:接收通过外设输入的触发信号,根据触发信号确定缩放倍数;当播放窗口与视频窗口重合时,在视频窗口上播放根据缩放倍数从原始视频图像上截取的部分视频图像;当视频窗口小于播放窗口时,根据缩放倍数将视频窗口按比例缩放,缩放的视频窗口内显示原始视频图像。该视频图像缩放处理装置,包括用户交互界面、播放器、外设,播放器包括播放窗口、视频窗口及播放控制模块。本发明用于缩放视频图像。

The invention provides a video image scaling processing method and a video image scaling 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 zoom processing method adopts different zoom processing when the video window and the playback window overlap, or is smaller than the playback window, and specifically includes the steps of: receiving a trigger signal input through the peripheral device, and determining the zoom factor according to the trigger signal; when the playback window When it coincides with the video window, the partial video image cut from the original video image is played on the video window according to the zoom factor; when the video window is smaller than the playback window, the video window is scaled proportionally according to the zoom factor, and the original image is displayed in the zoomed video window video image. The video image scaling processing device includes a user interface, a player, and peripherals, and the player includes a playback window, a video window, and a playback control module. The invention is used for scaling video images.

Description

视频图像缩放处理方法以及视频图像缩放处理装置Video image scaling processing method and video image scaling processing device

技术领域 technical field

本发明涉及电子技术领域,具体涉及一种视频图像缩放处理方法以及一种使用该视频图像缩放处理方法的视频图像缩放处理装置。The present invention relates to the field of electronic technology, in particular to a video image scaling processing method and a video image scaling processing device using the video image scaling 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 zoom in and display the video image in the playback window when the frame size of the playback window of the player remains unchanged, in the prior art, the video image can only be zoomed in and displayed roughly. Accurate magnification of the video image cannot be achieved, that is, it cannot be magnified with an accurate multiple, and before zooming in in the prior art, it is necessary to hold down the left button of the mouse to draw a rectangular area on the video image in the playback window of the player. Only then can enlargement be realized, and the step of pulling out a rectangular area is also relatively 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 scaling processing method and a video image scaling processing device using the video image scaling 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 scaling processing method provided by the present invention comprises the following steps:

在视频窗口和播放窗口重合,或者小于播放窗口时,采用不同的缩放处理,具体包括以下步骤:When the video window and the playback window overlap, or are smaller than the playback window, different zoom processing is used, specifically including the following steps:

接收通过外设输入的触发信号,并根据所述触发信号确定缩放倍数;receiving a trigger signal input through the peripheral, and determining the scaling factor according to the trigger signal;

当所述播放窗口与所述视频窗口重合时,在所述视频窗口上播放根据所述缩放倍数从原始视频图像上截取的部分视频图像;When the play window overlaps with the video window, play a part of the video image intercepted from the original video image according to the scaling factor on the video window;

当所述视频窗口小于所述播放窗口时,根据所述缩放倍数将视频窗口按比例缩放,所述缩放的视频窗口内显示原始视频图像。When the video window is smaller than the playback window, the video window is scaled proportionally according to the zoom factor, and the original video image is displayed in the zoomed video window.

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

所述用户交互界面,用于接收通过外设输入的触发信号;The user interaction interface is configured to receive a trigger signal input through a peripheral device;

所述播放控制模块,用于在所述播放窗口与所述视频窗口重合时,根据所述触发信号确定缩放倍数,在所述视频窗口上播放根据所述缩放倍数从原始视频图像上截取的部分视频图像;The playback control module is configured to determine the zoom factor according to the trigger signal when the playback window coincides with the video window, and play the part intercepted from the original video image according to the zoom factor on the video window video images;

所述用户交互界面,还用于当所述视频窗口小于所述播放窗口且所述缩放的视频窗口内显示原始视频图像时,根据所述触发信号确定缩放倍数,并根据所述缩放倍数将视频窗口按比例缩放。The user interaction interface is further configured to determine the zoom factor according to the trigger signal when the video window is smaller than the playback window and the original video image is displayed in the zoomed video window, and convert the video according to the zoom factor The window is scaled proportionally.

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

在播放窗口与播放窗口内的视频窗口重合,且视频窗口显示原始视频图像上的部分视频图像时,此时由于播放窗口与视频窗口的大小并没有改变,但视频窗口上显示的视频图像的面积相对之前变小了,故而视频窗口上显示出来的视频图像给用户带来的视觉效果是视频窗口显示的视频图像较原始图像而言被放大了,所以可以通过在视频窗口播放原始视频图像上的部分视频图像的办法实现对视频窗口播放的视频图像的放大,这样,可以使用本发明所提供的上述技术方案,在播放窗口内的视频窗口的边框尺寸不变的情况下,将播放窗口的视频窗口内显示的原始视频图像(原始视频图像指未经过放大也未经过缩小的视频图像)放大显示,由于本发明中可以通过外设(例如可以通过滚动鼠标滚轮、按压某一按键或按压鼠标左键、右键的方式输入)输入触发信号,并根据触发信号确定缩放倍数,故而能输入准确的缩放倍数进而实现对视频图像的精确放大,同时,通过外设输入触发信号与按住鼠标的左键在播放器的播放窗口内的视频图像上拉出一个矩形区域的方法相比操作更为简单、方便,进而解决了现有技术存在功能单一、操作麻烦的技术问题;When the playback window overlaps with the video window in the playback window, and the video window displays 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 area of the video image displayed on the video window It 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 video on the original video image The way of partial video image realizes the enlargement of the video image that video window plays, like this, can use 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, the video of the playback window The original video image displayed in the window (the original video image refers to the video image that has not been enlarged or reduced) is enlarged and displayed, because in the present invention, it can be displayed by peripheral equipment (for example, by rolling the mouse wheel, pressing a certain button or pressing the left mouse button). key, right key input) to input the trigger signal, and determine the zoom factor according to the trigger signal, so the accurate zoom factor can be input to realize the precise zooming of the video image. The method of pulling out a rectangular area on the video image in the playback window of the player is simpler and more convenient than the operation, thereby solving the technical problems of single function and cumbersome operation in the prior art;

除此之外,本发明还可以在视频窗口小于播放窗口时,实现对视频窗口以及其内显示的视频图像的按比例缩放(缩小和放大),所以功能更为丰富。Besides, when the video window is smaller than the playback window, the present invention can realize proportional scaling (reduction and enlargement) of the video window and the video image displayed in it, so the functions are more abundant.

附图说明 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 scaling processing method provided by the present invention;

图2为使用本发明所提供的视频图像缩放处理方法,在视频窗口内播放原始视频图像上的部分视频图像时,当前视频窗口内显示的部分视频图像、处理后视频窗口内显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域上的映射坐标的变化过程示意图;Fig. 2 is to use the video image scaling 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, the partial video image displayed in the processed video window A schematic diagram of the change process of the mapping coordinates of the corresponding pixel area on the corresponding pixel area of the original video image;

图3为使用本发明所提供的视频图像缩放处理方法,缩小视频窗口以及其内显示的部分的视频图像时,缩小之前以及缩小之后的视频图像对应的像素区域在原始视频图像对应的像素区域上的映射坐标的变化过程示意图;Fig. 3 is a video image scaling 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 changing process of the mapping coordinates of ;

图4为使用本发明视频图像缩放处理方法的视频图像缩放处理装置的优选实施方式的内部主要组成部分的连接关系的示意图。Fig. 4 is a schematic diagram of the connection relationship of the internal main components of the preferred embodiment of the video image scaling processing device using the video image scaling 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 scaling processing method with rich functions, simple operation and convenient use and a video image scaling processing device using the video image scaling processing method.

如图1所示,1a、1b、1c、1d、1e以及1f分别为图1所包括的六个部分的序号,其中:O所示区域表示播放窗口内的视频窗口;左斜线表示视频窗口显示的视频图像;A所示区域表示原始视频图像对应的像素区域;右斜线表示原始视频图像对应的像素区域即A内的像素;P所示区域表示播放器的播放窗口;R所示区域表示当缩放倍数大于1时,根据缩放倍数将原始视频图像放大之后,在视频窗口显示的部分视频图像对应的像素区域;S所示区域表示对播放窗口内的视频窗口放大显示,放大之前的视频窗口;E所示区域表示当缩放倍数小于1时,根据缩放倍数将已经过放大的视频图像缩小显示时,缩小之后,视频窗口内显示的部分视频图像对应的像素区域,也就缩小操作完成之后最终由视频窗口显示的像素区域;图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 that when the zoom factor is greater than 1, after the original video image is enlarged according to the zoom factor, the pixel area corresponding to the part of the video image displayed in the video window; the area indicated by S indicates that the video window in the playback window is enlarged and displayed, and the video before zooming in Window; the area shown in E indicates that when the zoom factor is less than 1, when the enlarged video image is zoomed out according to the zoom factor, after zooming out, the pixel area corresponding to the part of the video image displayed in the video window, that is, after the zoom out operation is completed Finally, the pixel area displayed by the video window; the cursor drawn by the solid line on the video window in the 1c and 1d parts of Fig. 1 indicates the position after the cursor translation operation, and the cursor drawn by the dotted line indicates the position of the cursor before the translation operation.

本发明实施例所提供的视频图像缩放处理方法,在视频窗口O和播放窗口P重合,或者视频窗口O小于播放窗口P时,采用不同的缩放处理,具体包括以下步骤:The video image scaling processing method provided by the embodiment of the present invention adopts different scaling processes when the video window O and the playback window P overlap, or the video window O is smaller than the playback window P, and specifically includes the following steps:

接收通过外设输入的触发信号,并根据触发信号确定缩放倍数;Receive the trigger signal input through the peripheral, and determine the zoom factor according to the trigger signal;

当播放窗口P与视频窗口O重合时,在视频窗口O上播放根据缩放倍数从原始视频图像上截取的部分视频图像;When the playback window P overlaps with the video window O, play the partial video images intercepted from the original video image according to the zoom factor on the video window O;

当视频窗口O小于播放窗口P时,根据缩放倍数将视频窗口O按比例缩放,缩放的视频窗口O内显示原始视频图像。When the video window O is smaller than the playback window P, the video window O is scaled proportionally according to the scaling factor, and the original video image is displayed in the zoomed video window O.

通过上述方法不仅可以当播放窗口P与视频窗口O重合时,实现对视频窗口O内显示的视频图像的精确放大,而且还可以当视频窗口O小于播放窗口P时,实现对视频窗口O以及其内显示的视频图像的精确缩放。Through the above method, not only can the video image displayed in the video window O be accurately enlarged when the playback window P overlaps with the video window O, but also when the video window O is smaller than the playback window P, the video window O and its Accurate scaling of the video image displayed within.

由于本发明中可以通过外设(例如可以通过滚动鼠标滚轮、按压某一按键或按压鼠标左键、右键的方式输入)输入触发信号,并根据触发信号确定缩放倍数,故而能输入准确的缩放倍数进而实现对视频图像的精确放大,同时,通过外设输入触发信号与现有技术中按住鼠标的左键在播放器的播放窗口内的视频图像上拉出一个矩形区域的方法相比操作更为简单、方便,进而解决了现有技术存在功能单一、操作麻烦的技术问题。In the present invention, the trigger signal can be input through peripherals (for example, by rolling the mouse wheel, pressing a certain button, or pressing the left and right keys of the mouse) to input the trigger signal, and the zoom factor can be determined according to the trigger signal, so an accurate zoom factor can be input And then realize the accurate enlargement of video image, at the same time, compared with the method of pulling out a rectangular area on the video image in the playback window of the player, the operation is easier by inputting the trigger signal through the peripheral hardware and pressing the left button of the mouse in the prior art. For the sake of simplicity and convenience, the technical problems of single function and cumbersome operation in the prior art are solved.

下面分多个部分更为详细的阐述本发明具体如何实现上述所说的放大以及缩小操作。The following will describe in more detail how the present invention implements the above-mentioned zoom-in and zoom-out operations in several parts.

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

如图1中1a与1c部分所示,本实施例中在播放窗口P与播放窗口P内的视频窗口O重合时,在视频窗口O上播放根据缩放倍数从原始视频图像上截取的部分视频图像的步骤,包括以下步骤:As shown in parts 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 partial video image intercepted from the original video image is played on the video window O according to the scaling factor steps, including the following steps:

在缩放倍数大于1时,根据缩放倍数计算出放大后的原始视频图像在视频窗口O内显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域内的映射坐标;When the scaling factor is greater than 1, calculate the mapping coordinates of the pixel area corresponding to the part of the video image displayed in the video window 0 of the enlarged original video image according to the scaling factor in the corresponding pixel area of the original video image;

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

原始视频图像对应的像素区域即为整个视频图像所对应的像素区域,将原始视频图像对应的像素区域在视频窗口O内播放时,此时,视频窗口O内显示的是原始视频图像,通过上述方法可以选取原始视频图像对应的像素区域上的部分像素区域(例如1/2)在视频窗口O内播放,此时,视频窗口O内便可以播放出放大(例如2倍)的视频图像。The pixel area corresponding to the original video image is the corresponding pixel area of the entire video image. When the pixel area corresponding to the original video image is played in the video window O, at this moment, what is displayed in the video window O is the original video image. Through the above The method can select a part of the pixel area (for example 1/2) on the pixel area corresponding to the original video image to play in the video window 0, at this time, the enlarged (for example 2 times) video image can be played in the video window 0.

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

如图1中1c与1e部分所示,本实施例中在播放窗口P与视频窗口O重合时,在视频窗口O上播放根据缩放倍数从原始视频图像上截取的部分视频图像的步骤,还包括以下步骤:As shown in parts 1c and 1e in Fig. 1, in this embodiment, when the playback window P overlaps with the video window O, the step of playing the part of the video image intercepted from the original video image according to the zoom factor on the video window O also includes The following steps:

在缩放倍数小于1,且在视频窗口O显示的是原始视频图像的部分视频图像时,计算出根据缩放倍数缩小后的原始视频图像在视频窗口O内显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域A内的映射坐标;When the zoom factor is less than 1, and when the video window 0 shows a part of the original video image, calculate the pixel area corresponding to the part of the video image displayed in the video window 0 according to the original video image reduced according to the zoom factor. The mapping coordinates in the pixel area A corresponding to the video image;

实时提取映射坐标限定的像素区域对应的像素数据,并根据像素数据在视频窗口O内播放出相应的部分视频图像。The pixel data corresponding to the pixel area defined by the mapping coordinates is extracted in real time, and a corresponding partial video image is played 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 0 shows the partial video image of the original video image, that is, when the pixel area R corresponding to the partial video image displayed by the video window 0 is less than the corresponding pixel area A of the original video image, it is illustrated that the video window O The displayed part of 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 enlarged state of 5 times, so the reduced The pixel area E corresponding to the part of the video image 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:

本实施例中视频窗口O小于播放窗口P的条件还包括视频窗口O、原始视频图像的大小与播放窗口P三者重合。In this embodiment, the condition that the video window O is smaller than the playback window P also includes that the size of the video window O, the original video image and the playback window P overlap.

也就是说视频窗口O、原始视频图像的大小与播放窗口P三者重合时,也可以根据缩放倍数将视频窗口O按比例缩放,此时若播放窗口P的大小尺寸不变时,则缩放仅指对视频窗口O以及原始视频图像的边框的缩小。That is to say, when the size of the video window O and the original video image coincide with the playback window P, the video window O can also be scaled proportionally according to the scaling factor. Refers to the reduction of the frame of the video window O and the original video image.

如图1中1a与1b部分所示,本实施例中在视频窗口O显示原始视频图像,且播放窗口P不小于视频窗口O时,该视频图像缩放处理方法,还包括以下步骤:As shown in parts 1a and 1b in Figure 1, in the present embodiment, the original video image is displayed in the video window O, and when the playback window P is not smaller than the video window O, the video image zoom processing method also includes the following steps:

在视频窗口O显示原始视频图像,且缩放倍数小于1时,根据缩放倍数缩小视频窗口O,确定视频窗口O缩小位置坐标;When the original video image is displayed in the video window O, and the zoom factor is less than 1, the video window O is reduced according to the zoom factor, and the reduced position coordinates of the video window O are determined;

缩小位置坐标的步骤为:将视频窗口O的高度缩小为缩放倍数与当前视频窗口O的高度之积,将视频窗口O的宽度缩小为缩放倍数与当前视频窗口O的宽度之积;The step of reducing the position coordinates is: the height of the video window O is reduced to the product of the zoom factor and the height of the current video window O, and the width of the video window O is reduced to the product of the zoom factor and the width of the 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.

播放窗口P不小于视频窗口O存在两种情形,一是视频窗口O等于播放窗口P即播放窗口P与视频窗口O相重叠,一是播放窗口P大于视频窗口O。There are two situations in which the playback window P is not smaller than the video window O. 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 larger than the video window O.

在视频窗口O显示的视频图像对应的像素区域R为原始视频图像对应的像素区域A时,视频窗口O所显示原始视频图像,此时,对原始视频图像缩小显示,也就是缩小视频窗口O显示的原始视频图像,此时,只需要缩小视频窗口O的边框尺寸,无需改变在视频窗口O显示的视频图像对应的像素区域,例如缩放倍数为1/2时,视频窗口O的边框尺寸为缩小之前的1/2。此时,缩放倍数可以设置为1/k,k大于1,设定为向后(或向下)滚动滚轮时,感应器产生一个触发信号,k增大1或0.1,即缩放倍数的值变小,此时可以认为是对缩小后的原始视频图像再次缩小显示,向前(或向上)滚动滚轮时,感应器产生一个触发信号,k减小1或0.1即缩放倍数的值增大,当k的值减小为1时,继续向前(或向上)滚动滚轮时,感应器产生一个触发信号,则视为缩放倍数从1增加为2或1.1,若继续向前(或向上)滚动滚轮时,感应器产生一个触发信号,则缩放倍数增大1或0.1。When the pixel area R corresponding to the video image displayed in the video window 0 is the corresponding pixel area A of the original video image, the original video image displayed in the video window 0, at this time, the original video image is reduced and displayed, that is, the video window 0 display is reduced At this time, only the frame 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 zoom factor is 1/2, the frame size of the video window O is reduced. 1/2 of the previous. At this time, the zoom factor can be set to 1/k, k is greater than 1, and when it is set to roll the scroll wheel backwards (or down), the sensor will generate a trigger signal, and k will increase by 1 or 0.1, that is, the value of the zoom factor will change. Small, at this time, it can be considered that the reduced original 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 zoom factor increases. When When the value of k is reduced to 1, when the scroll wheel continues to roll forward (or upward), the sensor generates a trigger signal, which is considered to increase the zoom factor from 1 to 2 or 1.1, and if the scroll wheel continues to scroll forward (or upward) When the sensor generates a trigger signal, the zoom factor increases by 1 or 0.1.

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

在视频窗口O显示原始视频图像,视频窗口O小于播放窗口P且缩放倍数大于1时,根据缩放倍数放大视频窗口O,确定视频窗口O放大位置坐标;放大位置坐标的步骤为:将视频窗口O边框的高度放大为缩放倍数与如图1中1f部分所示当前视频窗口S的高度之积,将视频窗口O的宽度放大为缩放倍数与当前视频窗口S的宽度之积;Display original video image in video window O, when video window O is smaller than playback window P and zoom factor is greater than 1, enlarge video window O according to zoom factor, determine video window O zoom-in position coordinate; The step of zoom-in position coordinate is: the video window O The height enlargement of frame is the product of zoom factor and the height of current video window S shown in 1f part among Fig. 1, and the width of video window O is enlarged as the product of zoom factor and the width of current video window S;

实时提取原始视频图像对应的像素数据,并根据像素数据在放大的视频窗口内播放出相应的视频图像。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 scaling processing method also includes the following steps:

当视频窗口O小于播放窗口P时,在视频窗口O与播放窗口P之间填充颜色;和/或,当视频图像O的边界移入视频窗口P时,在视频窗口O与视频图像的边界之间填充颜色。When the video window O is smaller than the playback window P, fill the color between the video window O and the playback window P; and/or, when the boundary of the video image O moves into the video window P, between the boundary of the video window O and the video image Fill color.

填充的颜色优选为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所示,本实施例中,该视频图像缩放处理方法中,根据缩放倍数计算出放大后或缩小后的原始视频图像在视频窗口O内显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域内的映射坐标的步骤,包括以下步骤:As shown in Figure 1, in the present embodiment, in this video image scaling processing method, according to the zoom factor, the pixel area corresponding to the part of the video image displayed in the video window O of the enlarged or reduced original video image is calculated in the original video The step of mapping the coordinates in the pixel area corresponding to the image includes the following steps:

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

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

本实施例中当光标位于视频窗口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 corresponding part of the video image displayed in the video window O according to the original video image reduced by the zoom factor. The mapping coordinates of the pixel area in the pixel area A corresponding to the original video image, because the geometric center of the video window O is a point that is relatively easy to determine, so the pixel point in the pixel area pointed to by the geometric center of the video window O is used as the position constant When calculating the mapping coordinates of the corresponding pixel area on the original video image of the part of the video image displayed in the video window O of the reduced original video image in the pixel area A corresponding to the original video image, the calculation operation will be easier , the calculation efficiency will be higher.

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

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

当光标位于播放器的播放窗口P内且平移功能键被激活时,追踪光标在播放窗口P内的轨迹;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;

在播放窗口P与播放窗口P内的视频窗口O重合,且视频窗口O显示原始视频图像上的部分视频图像时,使视频窗口O显示的视频图像随光标的轨迹而平移。When the play window P overlaps with the video window O in the play window P, and the video window O displays a part of the video image on the original video image, the video image displayed in the video window O is translated along with the cursor track.

在播放窗口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 window O displays a part of the 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, but the video window O The area of the video image displayed on the screen is smaller than before, so the visual effect brought to the user by the video image displayed on the video window O is that the video image displayed on the video window O is enlarged compared with the original image, so it can be obtained by The method of playing the partial video image on the original video image in the video window O realizes the enlargement of the video image played in the video window O. When the frame size of the frame is 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 translate the video image displayed in the playback window P , 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 P by moving the cursor, so that the video window in the playback window P O undisplayed video image moves to video window O display, compares with prior art, when viewing the undisplayed video image in the video window O under the zoomed-in state in the present invention, needn't first restore the enlarged video, also need not again Pull out a rectangular area again, so it is more convenient to operate.

本实施例中平移功能键被激活时,其发出的触发信号可以作为平移指令,例如:可以在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 step of 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 original video image shrunk down from the original video image displayed in the panning video window:

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

在播放窗口P不小于播放窗口P内的视频窗口O,且视频窗口O显示原始视频图像时,使视频窗口O以及其内显示的视频图像均随光标的轨迹而平移。When the play window P is not smaller than the video window O in the play window P, and the video window O displays the original video image, make the video window O and the video image displayed in it move along with the track of the cursor.

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

本实施例中,光标的轨迹为光标在视频窗口O内移动的轨迹,该视频图像缩放处理方法中使视频窗口O以及其内显示的视频图像均随光标的轨迹而平移的步骤,包括以下步骤:In this embodiment, the track of the cursor is the track of the cursor moving in the video window O, and the step of making the video window O and the video images displayed therein translate along with the track of the cursor in the video image scaling processing method includes 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 move 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 moves in the video window O, or the track that the cursor moves in the area between the video window O and the playback window P, preferably the track that moves 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 zooming and processing method of the present embodiment, the step of making the video image displayed in the video window O shift along with the track of the cursor comprises the following steps:

使视频窗口O显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域上的映射坐标跟随光标的轨迹而变化;Make the mapping coordinates of the pixel area corresponding to the part video image displayed by the video 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, because the video window O and the play window P overlap each other and are relatively static, the part of the video image displayed in the play window P can be moved by moving the cursor. Thus, the video images not displayed in the video window O in the playback window P are moved to the video window O for display.

本实施例中,该视频图像缩放处理方法,还包括以下步骤:In this embodiment, the video image scaling 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.

填充的颜色优选为ColorKey色(透明色)或者黑色,也可以填充蓝色、绿色等黑色之外的其他颜色。The color to be filled is preferably ColorKey color (transparent color) or black, and other colors other than black such as blue and green can also be filled.

下面举例更为详细说明本发明中具体如何操作以实现对视频窗口内播放的视频图像的放大、缩小以及平移: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 zoom factor 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 scaling 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 except 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内的映射坐标的步骤,包括以下步骤:Calculating the step of mapping the coordinates of the corresponding pixel area R in the corresponding pixel area A on the original video image of the partial video image displayed in the video window O according to the original video image enlarged by the zoom factor, comprising the following steps:

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

以放大之前的视频图像对应的像素区域的其中一个顶点作为像素暂时原点,根据视频窗口O的边框的高度、宽度分别与放大之前的视频图像对应的像素区域的高度、宽度之间的比例关系,确定光标所指向的像素区域内的像素点的位置相对于像素暂时原点的坐标值;Taking 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 border of the video window O and the proportional relationship between the height and width of the pixel area corresponding to the video image before zooming in, 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;

以原始视频图像的其中的一个顶点作为像素基准原点,确定像素暂时原点相对于像素基准原点的坐标值,并根据像素暂时原点相对于像素基准原点的坐标值、缩放倍数、视频窗口O的高度、宽度以及光标所指向的像素区域内的像素点的位置相对于像素暂时原点的坐标值、放大之前的在视频窗口O显示的视频图像对应的像素区域的高度、宽度,计算出根据缩放倍数放大后的原始视频图像在视频窗口O显示的部分视频图像对应的像素区域R的至少两个不相邻顶点相对于像素基准原点的坐标值。With 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, zoom factor, video window O height, The 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 zoom factor after zooming in Coordinate values of at least two non-adjacent vertices of the pixel region R corresponding to the partial video image displayed in the video window O of the original video image 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 origin of the pixel, and use the original video image enlarged according to the scaling factor in the video 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 the window 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 zoom 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 step of 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 step of 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 of the original video image enlarged according to the zoom 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 calculate respectively according to 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 of the original video image enlarged by the zoom factor The coordinate value of the vertex relative to the pixel datum origin; where:

n为缩放倍数,n>1;n is the scaling factor, n>1;

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

X1、Y1依次分别为根据缩放倍数放大后的原始视频图像在视频窗口O内显示的部分视频图像对应的像素区域R的右下角的顶点相对于像素基准原点的横坐标、纵坐标的坐标值;X1, Y1 are respectively according to the abscissa and the coordinate value of the ordinate of the abscissa and the ordinate of the vertex in 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 original video image enlarged by the zoom factor, respectively;

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上的映射坐标跟随光标平移的轨迹而平移的步骤,具体为:Make the mapping coordinates of the pixel area R corresponding to the part of the video image displayed by the video window O on the pixel area A corresponding to the original video image follow the track of the cursor translation and translate the steps, 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 with parts 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 step of mapping coordinates in the corresponding pixel area A is specifically:

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

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

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

YB1=Y1+(1-n)*(Y1-Yo)-Y1*Yo/[Ho-(Y1-Yo)]分别计算出原始视频图像对应的像素区域A内,在视频窗口O内显示的部分视频图像对应的像素区域左上角的顶点以及右下角的顶点相对于像素基准原点的坐标值;其中:YB1=Y1+(1-n)*(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:

n为缩放倍数,1>n>0;n is the scaling factor, 1>n>0;

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

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

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-n)*(X1-Xo);As shown in Figure 3, since the pixels to be displayed in the X-axis direction after zooming out are: x1=(1-n)*(X1-Xo);

缩小后在Y轴方向上要多显示的像素为:y1=(1-n)*(Y1-Yo);After zooming out, the pixels to be displayed in the direction of the Y axis are: y1=(1-n)*(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-n)*(X1-Xo)*Xo/[Wo-(X1-Xo)];=Xo-(1-n)*(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-n)*(Y1-Yo)*Yo/[Ho-(Y1-Yo)];=Yo-(1-n)*(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-n)*(X1-Xo)-x1*Xo/[Wo-(X1-Xo)];=X1+(1-n)*(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-n)*(Y1-Yo)-y1*Yo/[Ho-(Y1-Yo)];=Y1+(1-n)*(Y1-Yo)-y1*Yo/[Ho-(Y1-Yo)];

将视频窗口O内所显示的部分视频图像缩小显示时,缩放倍数n大于0,小于1,此时,由于是将已经过放大的视频图像缩小,当缩小的倍数小于之前对原始视频图像放大的倍数时,虽然视频图像缩小了,但是,相对于从未放大的原始视频图像而言视频窗口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 zoom factor n is greater than 0 and less than 1. At this time, since the zoomed video image is reduced, when the zoom factor is smaller than that of the original video image before When multiplied, although the video image is reduced, compared to the original video image that has never been enlarged, the effect that the video image displayed in the video window O brings to the user is that the video image is still in an enlarged state, for example, it will be enlarged by 6 times The video image is reduced to a video image that is enlarged by 2 times. At this time, although the video image has been reduced by 3 times, the video image that has been enlarged by 2 times is still in the state of 2 times for the unenlarged video image. Therefore, the partial video image displayed in the video window O is still only a partial video image on 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 zoom factor according to the trigger signal includes the following steps:

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

若缩放功能键已经被激活,则检测滚轮滚动过程中滚轮内的感应器发出触发信号的次数以及滚动方向;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;

根据感应器发出的触发信号的次数、滚动方向以及预先设定的次数、滚动方向与缩放倍数之间的对应规则确定缩放倍数的具体数值。The specific value of the zoom factor is determined according to the number of trigger signals sent by the sensor, the scrolling direction, and the corresponding rules between the preset times, the scrolling direction and the zoom 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,也可以默认为1.1,此时可以设定为在预定时间内向前(或向上)滚动滚轮时,感应器产生一个触发信号,缩放倍数n由n(例如1.1)变为n的平方(例如1.21)或者缩放倍数n由n(例如1)变为n+0.1,向后(或向下)滚动滚轮时,感应器产生一个触发信号,缩放倍数n由n(例如1.21)变为n的平方根(例如1.1)或者缩放倍数n由n(例如1)变为n-0.1,直至n为1时,此时若在预定时间内继续向后(或向下)滚动滚轮时,感应器产生一个触发信号,缩放倍数n由n(例如1)变为1-0.1即0.9或者由1/k变为1/(k+1)或为1/(k+0.1),,n为1时,k为1,若继续向后(或向下)滚动滚轮时,感应器产生一个触发信号,k增加1。When the zoom function key is pressed, the zoom factor can be input by rolling the wheel, for example: when the video image displayed in the video window is to be enlarged, it can be set to roll the wheel forward (or upward) once, The sensor generates a trigger signal, and the zoom factor increases by 0.1, that is, when the scroll wheel is rolled forward (or upward) for the first time, the zoom factor changes from 1 to 1.1, and the video image is enlarged by 1.1 times, which means that the initial value of the zoom factor can be defaulted It is 1, or it can be 1.1 by default. At this time, it can be set that when the scroll wheel is rolled forward (or upward) within a predetermined time, the sensor generates a trigger signal, and the zoom factor n changes from n (for example, 1.1) to the square of n ( For example, 1.21) or the zoom factor n changes from n (such as 1) to n+0.1. When the scroll wheel is scrolled backward (or down), the sensor generates a trigger signal, and the zoom factor n changes from n (such as 1.21) to n. The square root (such as 1.1) or the zoom factor n changes from n (such as 1) 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, scaling factor n changes from n (for example 1) to 1-0.1 or 0.9 or from 1/k to 1/(k+1) or 1/(k+0.1), when n is 1, k If it is 1, if you continue to scroll the scroll wheel backwards (or down), the sensor will generate a trigger signal, and k will increase by 1.

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

如图4所示,本发明所提供的使用上述本发明所提供的视频图像缩放处理方法的视频图像缩放处理装置,包括用户交互界面1、播放器2、外设,播放器2包括播放窗口20、视频窗口200以及播放控制模块25,视频窗口200位于播放窗口20之内,其中:As shown in Figure 4, the video image scaling processing device provided by the present invention using the above-mentioned video image scaling processing method provided by the present invention includes a user interface 1, a player 2, and peripherals, and the player 2 includes a playback window 20 , video window 200 and play control module 25, video window 200 is positioned within the play window 20, wherein:

用户交互界面1,用于接收通过外设输入的触发信号;User interaction interface 1, configured to receive trigger signals input through peripherals;

播放控制模块25,用于在播放窗口20与视频窗口200重合时,根据触发信号确定缩放倍数,在视频窗口200上播放根据缩放倍数从原始视频图像上截取的部分视频图像;Play control module 25, for when play window 20 overlaps with video window 200, determine zoom factor according to trigger signal, play on video window 200 according to the partial video image that zoom factor intercepts from original video image;

用户交互界面1,还用于当视频窗口200小于播放窗口20且缩放的视频窗口200内显示原始视频图像时,根据触发信号确定缩放倍数,并根据缩放倍数将视频窗口200按比例缩放。The user interface 1 is also used to determine the zoom factor according to the trigger signal when the video window 200 is smaller than the playback window 20 and the original video image is displayed in the zoomed video window 200, and scale the video window 200 proportionally according to the zoom factor.

本发明所提供的视频图像缩放处理装置与上述本发明所提供的视频图像缩放处理方法具有相同的技术特征,故而也能实现相同的技术效果,解决相同的技术问题,所以此处不再重复阐述。The video image scaling processing device provided by the present invention has the same technical characteristics as the above-mentioned video image scaling 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. .

本实施例中播放器2,还包括视频渲染模块24,其中:Player 2 in the present embodiment also includes video rendering module 24, wherein:

播放控制模块25,用于在播放窗口20与视频窗口200重合,且缩放倍数大于1时,根据缩放倍数计算出放大后的原始视频图像在视频窗口200内显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域内的映射坐标;The play control module 25 is used for when the play window 20 overlaps with the video window 200, and when the zoom factor is greater than 1, calculate the pixel area corresponding to the part of the video image displayed in the video window 200 according to the zoom factor of the enlarged original video image. The mapping coordinates in the pixel area corresponding to the original video image;

播放控制模块25,还用于在视频窗口200显示的是原始视频图像的部分视频图像且缩放倍数小于1时,计算出根据缩放倍数缩小后的原始视频图像在视频窗口200内显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域内的映射坐标;The playback control module 25 is also used to calculate the partial video image displayed in the video window 200 according to the reduced original video image according to the zoom factor when the video window 200 shows a partial video image of the original video image and the zoom factor is less than 1. The mapping coordinates of the corresponding pixel area in the corresponding pixel area of the original video image;

视频渲染模块24,用于实时提取映射坐标限定的像素区域对应的像素数据,并根据像素数据在视频窗口200内播放出相应的部分视频图像。The video rendering module 24 is configured to extract pixel data corresponding to the pixel area defined by the mapping coordinates in real time, and play corresponding partial video images in the video window 200 according to the pixel data.

以上方法可以实现在播放窗口20以及视频窗口200的尺寸不变的情况下,对视频窗口200内显示的视频图像的放大,还可以对放大后的视频图像进行缩小。The above method can realize the enlargement of the video image displayed in the video window 200 under the condition that the sizes of the playing window 20 and the video window 200 remain unchanged, and can also reduce the enlarged video image.

本实施例中外设为鼠标5和按键6,播放器2,还包括文件读取模块21、分离模块22以及视频解码模块23,其中:In the present embodiment, peripherals are mouse 5 and button 6, and player 2 also includes file reading module 21, separation module 22 and video decoding module 23, wherein:

视频窗口200小于播放窗口20的条件还包括视频窗口200、原始视频图像的大小与播放窗口20三者重合;The condition that the video window 200 is smaller than the playback window 20 also includes that the video window 200, the size of the original video image overlap with the playback window 20;

用户交互界面1,还用于在视频窗口200显示原始视频图像且缩放倍数小于1时,根据缩放倍数缩小视频窗口200,确定视频窗口200缩小位置坐标;The user interaction interface 1 is also used to reduce the video window 200 according to the zoom factor when the original video image is displayed in the video window 200 and the zoom factor is less than 1, and determine the reduced position coordinates of the video window 200;

用户交互界面1,还用于在视频窗口200显示原始视频图像,视频窗口200小于播放窗口20且缩放倍数大于1时,确定视频窗口200放大位置坐标;The user interaction interface 1 is also used to display the original video image in the video window 200. When the video window 200 is smaller than the playback window 20 and the zoom factor is greater than 1, determine the video window 200 enlarged position coordinates;

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

确定视频窗口200放大位置坐标的步骤为:将视频窗口200边框的高度放大为缩放倍数与当前视频窗口200的高度之积,将视频窗口200的宽度放大为缩放倍数与当前视频窗口200的宽度之积;The step of determining the enlarged position coordinates of the video window 200 is: amplifying the height of the frame of the video window 200 as the product of the zoom factor and the height of the current video window 200, and enlarging the width of the video window 200 as the product of the zoom factor and the width of the current video window 200 product;

视频渲染模块24,还用于实时提取原始视频图像对应的像素数据,并根据像素数据在视频窗口200内播放出相应的视频图像;The video rendering module 24 is also used to extract pixel data corresponding to the original video image in real time, and play a corresponding video image in the video window 200 according to the pixel data;

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

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

视频解码模块23,用于将视频编码数据解码为与视频图像的像素区域相对应的像素数据后输入视频渲染模块24;The video 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 the video rendering module 24;

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

通过上述方法用户交互界面可以实现对播放窗口20内的视频窗口200以及视频窗口200内显示的视频图像的等比例缩小,还可以在等比例缩小后实现等比例放大。Through the above-mentioned method, the user interface can realize proportional reduction of the video window 200 in the playback window 20 and the video image displayed in the video window 200, and can also realize proportional enlargement after the proportional reduction.

传输控制端7以P2P(Peer-to-Peer,中文可译为“对等”或“点对点”)的方式从P2P网络8内具有视频资源的节点获取视频文件,有利于视频文件的快速传输,进而有助于视频图像的快速播放。当然,传输控制端7也可以使用P2P之外的其他方式获取视频文件。The transmission control terminal 7 acquires video files from nodes with video resources in the P2P 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, the transmission control terminal 7 can also use other methods than P2P to obtain video files.

本实施例中用户交互界面,还用于在缩小后的视频窗口与播放窗口之间填充颜色,填充的颜色优选为ColorKey色(透明色)或者黑色,也可以填充蓝色、绿色等黑色之外的其他颜色。In the present embodiment, the user interaction interface is also used to fill the color between the reduced video window and the playback window. The color filled is preferably ColorKey color (transparent color) or black, and can also be filled outside black such as blue and green. other colors.

本实施例中播放控制模块25对视频窗口200内显示的视频图像进行处理的方法及其所应用的算法的优选实施方式与上述本发明所提供的视频图像缩放处理方法中所提供的优选实施方式相同,所以此处不再重复阐述。In this embodiment, the playback control module 25 processes the video image displayed in the video window 200 and the preferred implementation of the algorithm applied thereto is the same as the preferred implementation provided in the above-mentioned video image scaling processing method provided by the present invention. The same, so it will not be repeated here.

本发明可以通过滚动鼠标6的滚轮和/或按压按键5的方式,优选为采用按住Ctrl键,并滚动鼠标6的滚轮的方式输入缩放倍数,从而实现在视频窗口200的边框尺寸不变的情况下,将视频窗口200内显示的原始视频图像放大显示或缩小,无需采用现有技术的方法在视频窗口200内拉出一个矩形区域,不仅可以实现放大,输入缩放倍数可以更为精确,而且还可以实现缩小,同时,操作也更为方便。In the present invention, the mode of rolling the scroll wheel of the mouse 6 and/or pressing the button 5, preferably by holding down the Ctrl key, and scrolling the scroll wheel of the mouse 6 to input the zoom factor, thereby realizing that the frame size of the video window 200 is constant In this case, the original video image displayed in the video window 200 is zoomed in or zoomed out without drawing a rectangular area in the video window 200 by the method of the prior art, not only the zooming can be realized, but also the input zoom factor 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 (6)

1.一种视频图像缩放处理方法,其特征在于,在视频窗口和播放窗口重合,或者小于播放窗口时,采用不同的缩放处理,具体包括以下步骤:1. A video image scaling processing method is characterized in that, when the video window overlaps with the playback window, or when it is smaller than the playback window, different scaling processes are adopted, specifically comprising the following steps: 接收通过外设输入的触发信号,并根据所述触发信号确定缩放倍数;receiving a trigger signal input through the peripheral, and determining the scaling factor according to the trigger signal; 当所述播放窗口与所述视频窗口重合、且所述视频窗口、原始视频图像的大小与所述播放窗口三者不重合时,在所述视频窗口上播放根据所述缩放倍数从原始视频图像上截取的部分视频图像;When the playback window coincides with the video window, and the size of the video window and the original video image do not overlap with the playback window, play the original video image according to the scaling factor on the video window Part of the video image captured above; 当所述视频窗口小于所述播放窗口或者所述视频窗口、所述原始视频图像的大小与所述播放窗口三者重合时,根据所述缩放倍数将视频窗口按比例缩放,所述缩放的视频窗口内显示原始视频图像;When the video window is smaller than the playback window or the size of the video window and the original video image coincide with the playback window, the video window is scaled proportionally according to the scaling factor, and the zoomed video The original video image is displayed in the window; 其中,在所述视频窗口上播放根据所述缩放倍数从原始视频图像上截取的部分视频图像的步骤;包括以下步骤:Wherein, the step of playing the partial video image intercepted from the original video image according to the zoom factor on the video window; comprises the following steps: 在所述缩放倍数大于1时,根据所述缩放倍数计算出放大后的原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域在所述原始视频图像对应的像素区域内的映射坐标;或者,在所述缩放倍数小于1,且所述视频窗口显示的是原始视频图像的部分视频图像时,计算出根据所述缩放倍数缩小后的所述视频图像在所述视频窗口内显示的部分视频图像对应的像素区域在所述原始视频图像对应的像素区域内的映射坐标;When the scaling factor is greater than 1, the mapping of the pixel area corresponding to the part of the video image displayed in the video window of the enlarged original video image in the pixel area corresponding to the original video image is calculated according to the scaling factor coordinates; or, when the zoom factor is less than 1 and the video window displays a partial video image of the original video image, calculate the reduced video image according to the zoom factor and display it in the video window The mapping coordinates of the pixel area corresponding to the partial video image in the pixel area corresponding to the original video image; 实时提取所述映射坐标限定的像素区域对应的像素数据,并根据所述像素数据在所述视频窗口内播放出相应的部分视频图像;Extracting pixel data corresponding to the pixel area defined by the mapping coordinates in real time, and playing a corresponding partial video image in the video window according to the pixel data; 其中,所述播放窗口、所述视频窗口以及所述原始视频图像对应的像素区域均呈矩形;Wherein, the pixel areas corresponding to the playing window, the video window and the original video image are all rectangular; 该视频图像缩放处理方法中,根据所述缩放倍数计算出放大后的原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域在所述原始视频图像对应的像素区域内的映射坐标的步骤,包括以下步骤:In the video image scaling processing method, the mapping coordinates of the pixel area corresponding to the part of the video image displayed in the video window of the enlarged original video image in the pixel area corresponding to the original video image are calculated according to the zoom factor steps, including the following steps: 以所述视频窗口的左上角顶点作为窗口原点,确定光标相对于所述窗口原点的坐标值;Using the upper left corner vertex of the video window as the window origin, determine the coordinate value of the cursor relative to the window origin; 以放大之前所述视频窗口内显示的所述视频图像对应的像素区域的左上角顶点作为像素暂时原点,根据公式Px=W1*X/W,Py=H1*Y/H计算出所述光标所指向的像素区域内的像素点的位置相对于所述像素暂时原点的坐标值,其中:Taking the upper left vertex of the pixel area corresponding to the video image displayed in the video window before zooming in as the temporary origin of the pixel, calculate the position of the cursor according to the formula Px=W1*X/W, Py=H1*Y/H Points to the coordinates of the pixel's location within the pixel region relative to the temporal origin of the pixel, where: Px、Py依次分别为所述光标所指向的像素区域内的像素点的位置相对于所述像素暂时原点的横坐标、纵坐标的坐标值;Px and Py are respectively the coordinate values of the abscissa and ordinate of the position of the pixel in the pixel region 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 in turn; W、H依次分别为所述视频窗口的边框的宽度、高度;W and H are the width and height of the frame of the video window respectively in turn; 根据公式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分别计算出根据所述缩放倍数放大后的所述视频图像在所述视频窗口内显示的部分视频图像对应的像素区域的左上角的顶点以及右下角的顶点相对于所述像素基准原点的坐标值;其中:X1=W1/n+Xo, Y1=H1/n+Yo respectively calculate the vertex in the upper left corner of the pixel area corresponding to the part of the video image displayed in the video window after the video image is enlarged according to the zoom factor and the coordinate value of the vertex in the lower right corner relative to the pixel reference origin; where: n为缩放倍数,n>1;n is the scaling factor, n>1; Xo、Yo依次分别为根据所述缩放倍数放大后的所述原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域的左上角的顶点相对于所述像素基准原点的横坐标、纵坐标的坐标值;Xo and Yo are in turn the abscissas of the vertex in the upper left corner of the pixel area corresponding to the part of the video image displayed in the video window corresponding to the original video image enlarged according to the zoom factor relative to the pixel reference origin, The coordinate value of the ordinate; X1、Y1依次分别为根据所述缩放倍数放大后的所述原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域的右下角的顶点相对于所述像素基准原点的横坐标、纵坐标的坐标值;X1 and Y1 respectively represent the abscissas of the apex in the lower right corner of the pixel area corresponding to the part of the video image displayed in the video window corresponding to the original video image enlarged according to the zoom factor relative to the pixel reference origin, The coordinate value of the ordinate; 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 in turn; 在所述视频窗口显示的是部分视频图像时,计算根据所述缩放倍数缩小后的所述原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域在所述原始视频图像对应的像素区域内的映射坐标的步骤,具体为:When the video window displays a partial video image, calculate the pixel area corresponding to the partial video image displayed in the video window according to the original video image reduced according to the scaling factor The steps of mapping coordinates in the pixel area are as follows: 根据公式XBo=Xo-(1-n)*(X1-Xo)*Xo/[Wo-(X1-Xo)],According to the formula XBo=Xo-(1-n)*(X1-Xo)*Xo/[Wo-(X1-Xo)], YBo=Yo-(1-n)*(Y1-Yo)*Yo/[Ho-(Y1-Yo)],YBo=Yo-(1-n)*(Y1-Yo)*Yo/[Ho-(Y1-Yo)], XB1=X1+(1-n)*(X1-Xo)-X1*Xo/[Wo-(X1-Xo)],XB1=X1+(1-n)*(X1-Xo)-X1*Xo/[Wo-(X1-Xo)], YB1=Y1+(1-n)*(Y1-Yo)-Y1*Yo/[Ho-(Y1-Yo)]分别计算出原始视频图像对应的像素区域内,根据所述缩放倍数缩小后的所述原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域左上角的顶点以及右下角的顶点相对于所述像素基准原点的坐标值;其中:YB1=Y1+(1-n)*(Y1-Yo)-Y1*Yo/[Ho-(Y1-Yo)] respectively calculates the pixel area corresponding to the original video image, according to the zoom factor after the reduction The coordinate value of the vertex in the upper left corner of the pixel area corresponding to the part of the video image displayed in the video window of the original video image and the vertex in the lower right corner relative to the pixel reference origin; wherein: n为缩放倍数,1>n>0;n is the scaling factor, 1>n>0; XBo、YBo依次分别为在原始视频图像对应的像素区域内,根据所述缩放倍数缩小后的所述原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域左上角的顶点相对于所述像素基准原点的横坐标、纵坐标的坐标值;XBo, YBo respectively in the pixel area corresponding to the original video image, according to the vertex in the upper left corner of the pixel area corresponding to the part of the video image displayed in the video window of the original video image after the zoom factor is reduced relative to The coordinate values of the abscissa and ordinate of the pixel reference origin; XB1、YB1依次分别为在原始视频图像对应的像素区域内,根据所述缩放倍数缩小后的所述原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域右下角的顶点相对于所述像素基准原点的横坐标、纵坐标的坐标值;XB1, YB1 respectively in the pixel area corresponding to the original video image, the vertex in the lower right corner of the pixel area corresponding to the part of the video image displayed in the video window after the original video image is reduced according to the zoom factor is relative to The coordinate values of the abscissa and ordinate of the pixel reference origin; Wo、Ho依次分别为原始视频图像对应的像素区域的宽度、高度。Wo and Ho respectively represent the width and height of the pixel area corresponding to the original video image in turn. 2.根据权利要求1所述的视频图像缩放处理方法,其特征在于,当所述视频窗口小于所述播放窗口或者所述视频窗口、所述原始视频图像的大小与所述播放窗口三者重合时,根据所述缩放倍数将视频窗口按比例缩放的步骤,还包括:2. The video image scaling processing method according to claim 1, wherein when the video window is smaller than the playback window or the video window, the size of the original video image overlaps with the playback window , the step of scaling the video window proportionally according to the scaling factor also includes: A、在所述视频窗口显示原始视频图像时,且所述缩放倍数小于1时,根据所述缩放倍数缩小视频窗口,确定所述视频窗口缩小位置坐标,或者,在所述视频窗口显示原始视频图像且所述视频窗口小于所述播放窗口时,且所述缩放倍数大于1时,根据所述缩放倍数放大视频窗口,确定视频窗口放大位置坐标;A. When the original video image is displayed in the video window, and the zoom factor is less than 1, the video window is reduced according to the zoom factor, and the reduced position coordinates of the video window are determined, or the original video is displayed in the video window image and when the video window is smaller than the playback window, and when the zoom factor is greater than 1, the video window is enlarged according to the zoom factor, and the zoom position coordinates of the video window are determined; 所述确定视频窗口缩小位置坐标的步骤为:将所述视频窗口的高度缩小为所述缩放倍数与当前所述视频窗口的高度之积,将所述视频窗口的宽度缩小为所述缩放倍数与当前所述视频窗口的宽度之积;The step of determining the coordinates of the reduced position of the video window is: reducing the height of the video window to the product of the zoom factor and the height of the current video window, and reducing the width of the video window to the product of the zoom factor and the current height of the video window. the product of the widths of the currently described video windows; 所述确定视频窗口放大位置坐标的步骤为:将所述视频窗口边框的高度放大为所述缩放倍数与当前所述视频窗口的高度之积,将所述视频窗口的宽度放大为所述缩放倍数与当前所述视频窗口的宽度之积;The step of determining the zoom position coordinates of the video window is: enlarging the height of the frame of the video window to the product of the zoom factor and the height of the current video window, and enlarging the width of the video window to the zoom factor multiplied by the width of the currently described video window; B、实时提取原始视频图像对应的像素数据,并根据所述像素数据在缩小的所述视频窗口内播放出相应的视频图像。B. Extracting the pixel data corresponding to the original video image in real time, and playing the corresponding video image in the reduced video window according to the pixel data. 3.根据权利要求1所述的视频图像缩放处理方法,其特征在于,该视频图像缩放处理方法中,根据所述缩放倍数计算出放大后或缩小后的原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域在所述原始视频图像对应的像素区域内的映射坐标的步骤,包括以下步骤:3. The video image zooming processing method according to claim 1, characterized in that, in the video image zooming processing method, the zoomed or reduced original video image is calculated according to the zoom factor and displayed in the video window The step of mapping the coordinates of the pixel area corresponding to the partial video image in the pixel area corresponding to the original video image comprises the following steps: 判断光标是否位于所述视频窗口内;judging whether the cursor is located in the video window; 当所述光标位于所述视频窗口内时,以所述光标所指向或者以所述视频窗口的几何中心处所指向的像素区域内的像素点作为位置恒定的点,计算出根据所述缩放倍数放大后的原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域在所述原始视频图像对应的像素区域内的映射坐标,或者,When the cursor is located in the video window, the pixel point in the pixel area pointed by the cursor or pointed to by the geometric center of the video window is used as a point with a constant position, and the magnification according to the zoom factor is calculated. The mapping coordinates of the pixel area corresponding to the part of the video image displayed in the video window after the original video image is in the pixel area corresponding to the original video image, or, 以所述视频窗口的几何中心处所指向的像素区域内的像素点作为位置恒定的点,计算出根据所述缩放倍数缩小后的原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域在原始视频图像对应的像素区域内的映射坐标。Taking the pixel points in the pixel area pointed to by the geometric center of the video window as points with constant positions, calculate the pixels corresponding to the part of the video image displayed in the video window according to the original video image reduced by the zoom factor The mapping coordinates of the region in the corresponding pixel region of the original video image. 4.根据权利要求1所述的视频图像缩放处理方法,其特征在于,所述外设为鼠标和按键,所述按键包括缩放功能键;4. The video image scaling processing method according to claim 1, wherein the peripheral is a mouse and a button, and the button includes a zoom function key; 所述接收通过外设输入的触发信号,并根据所述触发信号确定所述缩放倍数的步骤,包括以下步骤:The step of receiving a trigger signal input by a peripheral and determining the scaling factor according to the trigger signal includes the following steps: 判断预先定义的所述缩放功能键是否被激活;judging whether the predefined zoom function key is activated; 若所述缩放功能键已经被激活,则检测滚轮滚动过程中滚轮内的感应器发出触发信号的次数以及滚动方向;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 scroll wheel scrolling process; 根据所述感应器发出的所述触发信号的次数、滚动方向以及预先设定的所述次数、所述滚动方向与所述缩放倍数之间的对应规则确定所述缩放倍数的具体数值。The specific value of the zoom factor is determined according to the number of times of the trigger signal sent by the sensor, the scrolling direction, and a preset corresponding rule between the number of times, the scrolling direction and the zoom factor. 5.一种使用权利要求1至4任一所述视频图像缩放处理方法的视频图像缩放处理装置,其特征在于,该视频图像缩放处理装置,包括用户交互界面、播放器、外设,所述播放器包括播放窗口、视频窗口以及播放控制模块,所述视频窗口位于所述播放窗口之内,其中:5. A video image scaling and processing device using any one of claims 1 to 4, wherein the video image scaling and processing method is characterized in that, the video image scaling and processing device includes a user interface, a player, and peripherals, and the The player includes a playback window, a video window and a playback control module, the video window is located within the playback window, wherein: 所述用户交互界面,用于接收通过外设输入的触发信号;The user interaction interface is configured to receive a trigger signal input through a peripheral device; 所述播放控制模块,用于在所述播放窗口与所述视频窗口重合、且所述视频窗口、所述原始视频图像的大小与所述播放窗口三者不重合时,根据所述触发信号确定缩放倍数,在所述视频窗口上播放根据所述缩放倍数从原始视频图像上截取的部分视频图像;The play control module is configured to determine according to the trigger signal when the play window coincides with the video window and the size of the video window and the original video image do not coincide with the play window. A zoom factor, playing a part of the video image intercepted from the original video image according to the zoom factor on the video window; 所述用户交互界面,还用于当所述视频窗口小于所述播放窗口且所述缩放的视频窗口内显示原始视频图像时,或者当所述视频窗口、所述原始视频图像的大小与所述播放窗口三者重合且所述缩放的视频窗口内显示原始视频图像时,根据所述触发信号确定缩放倍数,并根据所述缩放倍数将视频窗口按比例缩放;The user interaction interface is also used for when the video window is smaller than the playback window and the original video image is displayed in the zoomed video window, or when the size of the video window and the original video image are the same as the size of the When the three playback windows overlap and the original video image is displayed in the zoomed video window, the zoom factor is determined according to the trigger signal, and the video window is scaled proportionally according to the zoom factor; 其中,所述播放器,还包括视频渲染模块,其中:Wherein, the player also includes a video rendering module, wherein: 所述播放控制模块,用于在所述播放窗口与所述视频窗口重合,且所述缩放倍数大于1时,根据所述缩放倍数计算出放大后的原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域在所述原始视频图像对应的像素区域内的映射坐标;The playback control module is configured to calculate, according to the zoom factor, the number of times the enlarged original video image is displayed in the video window when the playback window coincides with the video window and the zoom factor is greater than 1. The mapping coordinates of the pixel area corresponding to the partial video image in the pixel area corresponding to the original video image; 所述播放控制模块,还用于在所述视频窗口显示的是原始视频图像的部分视频图像且所述缩放倍数小于1时,计算出根据所述缩放倍数缩小后的所述原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域在所述原始视频图像对应的像素区域内的映射坐标;The playback control module is also used to calculate the original video image reduced according to the zoom factor when the video window displays a partial video image of the original video image and the zoom factor is less than 1. The mapping coordinates of the pixel area corresponding to the partial video image displayed in the video window in the pixel area corresponding to the original video image; 所述视频渲染模块,用于实时提取所述映射坐标限定的像素区域对应的像素数据,并根据所述像素数据在所述视频窗口内播放出相应的部分视频图像;The video rendering module is configured to 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 according to the pixel data; 其中,所述播放窗口、所述视频窗口以及所述原始视频图像对应的像素区域均呈矩形;Wherein, the pixel areas corresponding to the playing window, the video window and the original video image are all rectangular; 该视频图像缩放处理方法中,根据所述缩放倍数计算出放大后的原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域在所述原始视频图像对应的像素区域内的映射坐标的步骤,包括以下步骤:In the video image scaling processing method, the mapping coordinates of the pixel area corresponding to the part of the video image displayed in the video window of the enlarged original video image in the pixel area corresponding to the original video image are calculated according to the zoom factor steps, including the following steps: 以所述视频窗口的左上角顶点作为窗口原点,确定所述光标相对于所述窗口原点的坐标值;Using the upper left corner vertex of the video window as the window origin, determine the coordinate value of the cursor relative to the window origin; 以放大之前所述视频窗口内显示的所述视频图像对应的像素区域的左上角顶点作为像素暂时原点,根据公式Px=W1*X/W,Py=H1*Y/H计算出所述光标所指向的像素区域内的像素点的位置相对于所述像素暂时原点的坐标值,其中:Taking the upper left vertex of the pixel area corresponding to the video image displayed in the video window before zooming in as the temporary origin of the pixel, calculate the position of the cursor according to the formula Px=W1*X/W, Py=H1*Y/H Points to the coordinates of the location of a pixel point within the pixel region relative to the temporary origin of the pixel, where: Px、Py依次分别为所述光标所指向的像素区域内的像素点的位置相对于所述像素暂时原点的横坐标、纵坐标的坐标值;Px and Py are respectively the coordinate values of the abscissa and ordinate of the position of the pixel in the pixel region 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 in turn; W、H依次分别为所述视频窗口的边框的宽度、高度;W and H are the width and height of the frame of the video window respectively in turn; 根据公式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分别计算出根据所述缩放倍数放大后的所述视频图像在所述视频窗口内显示的部分视频图像对应的像素区域的左上角的顶点以及右下角的顶点相对于所述像素基准原点的坐标值;其中:X1=W1/n+Xo, Y1=H1/n+Yo respectively calculate the vertex in the upper left corner of the pixel area corresponding to the part of the video image displayed in the video window after the video image is enlarged according to the zoom factor and the coordinate value of the vertex in the lower right corner relative to the pixel reference origin; where: n为缩放倍数,n>1;n is the scaling factor, n>1; Xo、Yo依次分别为根据所述缩放倍数放大后的所述原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域的左上角的顶点相对于所述像素基准原点的横坐标、纵坐标的坐标值;Xo and Yo are in turn the abscissas of the vertex in the upper left corner of the pixel area corresponding to the part of the video image displayed in the video window corresponding to the original video image enlarged according to the zoom factor relative to the pixel reference origin, The coordinate value of the ordinate; X1、Y1依次分别为根据所述缩放倍数放大后的所述原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域的右下角的顶点相对于所述像素基准原点的横坐标、纵坐标的坐标值;X1 and Y1 respectively represent the abscissas of the apex in the lower right corner of the pixel area corresponding to the part of the video image displayed in the video window corresponding to the original video image enlarged according to the zoom factor relative to the pixel reference origin, The coordinate value of the ordinate; 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 in turn; 在所述视频窗口显示的是部分视频图像时,计算根据所述缩放倍数缩小后的所述原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域在所述原始视频图像对应的像素区域内的映射坐标的步骤,具体为:When the video window displays a partial video image, calculate the pixel area corresponding to the partial video image displayed in the video window according to the original video image reduced according to the scaling factor The steps of mapping coordinates in the pixel area are as follows: 根据公式XBo=Xo-(1-n)*(X1-Xo)*Xo/[Wo-(X1-Xo)],According to the formula XBo=Xo-(1-n)*(X1-Xo)*Xo/[Wo-(X1-Xo)], YBo=Yo-(1-n)*(Y1-Yo)*Yo/[Ho-(Y1-Yo)],YBo=Yo-(1-n)*(Y1-Yo)*Yo/[Ho-(Y1-Yo)], XB1=X1+(1-n)*(X1-Xo)-X1*Xo/[Wo-(X1-Xo)],XB1=X1+(1-n)*(X1-Xo)-X1*Xo/[Wo-(X1-Xo)], YB1=Y1+(1-n)*(Y1-Yo)-Y1*Yo/[Ho-(Y1-Yo)]分别计算出原始视频图像对应的像素区域内,根据所述缩放倍数缩小后的所述原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域左上角的顶点以及右下角的顶点相对于所述像素基准原点的坐标值;其中:YB1=Y1+(1-n)*(Y1-Yo)-Y1*Yo/[Ho-(Y1-Yo)] respectively calculates the pixel area corresponding to the original video image, according to the zoom factor after the reduction The coordinate value of the vertex in the upper left corner of the pixel area corresponding to the part of the video image displayed in the video window of the original video image and the vertex in the lower right corner relative to the pixel reference origin; wherein: n为缩放倍数,1>n>0;n is the scaling factor, 1>n>0; XBo、YBo依次分别为在原始视频图像对应的像素区域内,根据所述缩放倍数缩小后的所述原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域左上角的顶点相对于所述像素基准原点的横坐标、纵坐标的坐标值;XBo, YBo respectively in the pixel area corresponding to the original video image, according to the vertex in the upper left corner of the pixel area corresponding to the part of the video image displayed in the video window of the original video image after the zoom factor is reduced relative to The coordinate values of the abscissa and ordinate of the pixel reference origin; XB1、YB1依次分别为在原始视频图像对应的像素区域内,根据所述缩放倍数缩小后的所述原始视频图像在所述视频窗口内显示的部分视频图像对应的像素区域右下角的顶点相对于所述像素基准原点的横坐标、纵坐标的坐标值;XB1, YB1 respectively in the pixel area corresponding to the original video image, the vertex in the lower right corner of the pixel area corresponding to the part of the video image displayed in the video window after the original video image is reduced according to the zoom factor is relative to The coordinate values of the abscissa and ordinate of the pixel reference origin; Wo、Ho依次分别为原始视频图像对应的像素区域的宽度、高度。Wo and Ho respectively represent the width and height of the pixel area corresponding to the original video image in sequence. 6.根据权利要求5所述的视频图像缩放处理装置,其特征在于,所述外设为鼠标和按键,所述播放器,还包括文件读取模块、分离模块以及视频解码模块,其中:6. The video image scaling processing device according to claim 5, wherein the peripherals are a mouse and a button, and the player also includes a file reading module, a separation module and a video decoding module, wherein: 所述用户交互界面,还用于在所述视频窗口显示原始视频图像且所述缩放倍数小于1时,根据所述缩放倍数缩小所述视频窗口,确定所述视频窗口缩小位置坐标;The user interaction interface is further configured to reduce the video window according to the zoom factor when the original video image is displayed in the video window and the zoom factor is less than 1, and determine the reduced position coordinates of the video window; 所述用户交互界面,还用于在所述视频窗口显示原始视频图像、所述视频窗口小于所述播放窗口且所述缩放倍数大于1时,或者在所述视频窗口显示原始视频图像,所述视频窗口、所述原始视频图像的大小与所述播放窗口三者重合且所述缩放倍数大于1时,确定所述视频窗口放大位置坐标;The user interaction interface is also used to display the original video image in the video window, when the video window is smaller than the playback window and the zoom factor is greater than 1, or to display the original video image in the video window, the When the size of the video window, the original video image and the playback window coincide and the zoom factor is greater than 1, determine the enlarged position coordinates of the video window; 所述确定视频窗口缩小位置坐标的步骤为:将所述视频窗口边框的高度缩小为所述缩放倍数与当前所述视频窗口的高度之积,将所述视频窗口的宽度缩小为所述缩放倍数与当前所述视频窗口的宽度之积;The step of determining the reduced position coordinates of the video window is: reducing the height of the frame of the video window to the product of the zoom factor and the height of the current video window, and reducing the width of the video window to the zoom factor multiplied by the width of the currently described video window; 所述确定视频窗口放大位置坐标的步骤为:将所述视频窗口边框的高度放大为所述缩放倍数与当前所述视频窗口的高度之积,将所述视频窗口的宽度放大为所述缩放倍数与当前所述视频窗口的宽度之积;The step of determining the zoom position coordinates of the video window is: enlarging the height of the frame of the video window to the product of the zoom factor and the height of the current video window, and enlarging the width of the video window to the zoom factor multiplied by the width of the currently described video window; 所述视频渲染模块,还用于实时提取原始视频图像对应的像素数据,并根据所述像素数据在所述视频窗口内播放出相应的视频图像;The video rendering module is further configured to extract pixel data corresponding to the original video image in real time, and play a corresponding video image in the video window according to the pixel data; 所述文件读取模块,用于读取传输控制端以P2P的方式从P2P网络内具有视频资源的节点所获取的视频文件,并将所述视频文件发送至所述分离模块;The file reading module is used to read the video file obtained by the transmission control terminal from a node with video resources in the P2P network in a P2P manner, and send the video file to the separation module; 所述分离模块,用于将所述视频文件分离为视频编码数据以及音频数据,并将所述视频编码数据发送至所述视频解码模块;The separation module is used to separate the video file into video encoding data and audio data, and send the video encoding data to the video decoding module; 所述视频解码模块,用于将所述视频编码数据解码为与视频图像的像素区域相对应的像素数据后输入所述视频渲染模块;The video decoding module is configured to decode the encoded video data into pixel data corresponding to the pixel area of the video image and then input it into the video rendering module; 所述播放控制模块,还用于启动或关闭所述视频渲染模块、所述文件读取模块、所述分离模块以及所述视频解码模块。The playback control module is also used to enable or disable the video rendering module, the file reading module, the separation module and the video decoding module.
CN201110203825.XA 2011-07-20 2011-07-20 Video image zooming disposal route and video image zooming treating apparatus Expired - Fee Related CN102890816B (en)

Priority Applications (1)

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

Applications Claiming Priority (1)

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

Publications (2)

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

Family

ID=47534310

Family Applications (1)

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

Country Status (1)

Country Link
CN (1) CN102890816B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104079978B (en) * 2014-06-27 2017-07-21 西安诺瓦电子科技有限公司 Window adaptive media playout method and device and media networking dissemination method
CN107623798A (en) * 2016-07-15 2018-01-23 中兴通讯股份有限公司 A kind of method and device of video local scale
CN107680028B (en) * 2016-08-01 2020-04-21 北京百度网讯科技有限公司 Processor and method for scaling images
CN107371062B (en) * 2017-08-25 2020-06-02 四川长虹电器股份有限公司 Method for automatically zooming video picture
CN110362250B (en) * 2018-04-09 2021-03-23 杭州海康威视数字技术股份有限公司 Image local amplification method and device and display equipment
CN109348276B (en) * 2018-11-08 2019-12-17 北京微播视界科技有限公司 video picture adjusting method and device, computer equipment and storage medium
CN109727257A (en) * 2018-12-28 2019-05-07 北京金山安全软件有限公司 Method, device and terminal for automatically cutting picture
CN111835957B (en) * 2019-04-16 2021-07-06 西安诺瓦星云科技股份有限公司 Video processing method, video processing device and video processing equipment
CN110595603B (en) * 2019-04-26 2022-04-19 深圳市豪视智能科技有限公司 Video-based vibration analysis method and related product
CN111935544B (en) * 2020-07-31 2022-03-08 北京字节跳动网络技术有限公司 Interaction method and device and electronic equipment
CN116996728A (en) * 2022-12-26 2023-11-03 北京仁光科技有限公司 Methods, devices and media for partial playback of video streams

Citations (5)

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

Patent Citations (5)

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

Also Published As

Publication number Publication date
CN102890816A (en) 2013-01-23

Similar Documents

Publication Publication Date Title
CN102890816B (en) Video image zooming disposal route and video image zooming treating apparatus
CN102890603B (en) Video image processing method and video image processing device
US11481096B2 (en) Gesture mapping for image filter input parameters
CN104822088B (en) Video image zooming method and apparatus
CN101930337B (en) Method for processing on-screen display and associated embedded system
CN110456907A (en) Virtual screen control method, device, terminal equipment and storage medium
US10241660B2 (en) Display control apparatus, method for controlling the same, and storage medium
CN101576996A (en) Processing method and device for realizing image zooming
CN112954193B (en) Shooting method, shooting device, electronic equipment and medium
CN103649908A (en) Asynchronous processing of user interface manipulation
CN106406651B (en) Method and device for dynamically amplifying and displaying video
CN105260103A (en) Picture scaling method and electronic device
WO2014036857A1 (en) Animation playing method, device and apparatus
WO2022088776A1 (en) Video displaying method and video displaying device
CN106445332A (en) Icon display method and system
CN111726666A (en) Video display control method and device
CN107211103A (en) Display device and display method
US10754534B1 (en) Vertical scrolling of album images
CN113810755B (en) Panoramic video preview method and device, electronic equipment and storage medium
CN112711459B (en) Multimedia data processing method, device, equipment and computer readable storage medium
CN106131628B (en) A kind of method of video image processing and device
TW201546655A (en) Control system in projection mapping and control method thereof
CN114356185B (en) Image display method and computer device
CN110121032A (en) A kind of method, apparatus, equipment and storage medium showing animation effect
CN115061650A (en) Display apparatus and image display method

Legal Events

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

Effective date of registration: 20200617

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

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

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

Patentee before: SHENZHEN QVOD TECHNOLOGY Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201105

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

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

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

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

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

Granted publication date: 20150729

Termination date: 20210720

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