CN115733937A - Video amplification method, device, equipment and storage medium - Google Patents

Video amplification method, device, equipment and storage medium Download PDF

Info

Publication number
CN115733937A
CN115733937A CN202111005528.4A CN202111005528A CN115733937A CN 115733937 A CN115733937 A CN 115733937A CN 202111005528 A CN202111005528 A CN 202111005528A CN 115733937 A CN115733937 A CN 115733937A
Authority
CN
China
Prior art keywords
window
amplification
magnification
video
ultra
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.)
Pending
Application number
CN202111005528.4A
Other languages
Chinese (zh)
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN202111005528.4A priority Critical patent/CN115733937A/en
Publication of CN115733937A publication Critical patent/CN115733937A/en
Pending legal-status Critical Current

Links

Images

Landscapes

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

Abstract

The embodiment of the application discloses a video amplification method, a device, equipment and a storage medium, wherein the method comprises the following steps: responding to an amplification window awakening operation triggered by the ultra-high-definition video, and displaying an amplification window on a display interface of the ultra-high-definition video; displaying an enlarged image corresponding to an image in a target enlarged region in a video picture of the ultra high definition video in the enlarged window based on the resolution of the ultra high definition video; the target amplification area is determined according to the display position of the amplification window in the display interface and the corresponding amplification factor of the amplification window; the magnified image is obtained by magnifying the image in the target magnified region based on the magnification corresponding to the magnification window. The method can more intuitively embody the advantages of the ultra-high-definition video on the equipment with the limited display screen size, so that a user can obtain better watching experience for the ultra-high-definition video.

Description

Video amplification method, device, equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method, an apparatus, a device, and a storage medium for video amplification.
Background
Ultra-high definition video (4K/8K) is used as a product of a digitization technology and a high-definition technology, and has the advantages of high resolution, high frame rate, high color depth, high color gamut and the like; the ultrahigh-definition video has richer picture levels and more exquisite picture details due to high resolution, the ultrahigh-definition video has higher fineness and smoothness due to high frame rate, and the picture color display effect of the ultrahigh-definition video is better due to high color depth and high color gamut.
Under the background of the overall mobile era, the development of ultra-high definition videos to the mobile end is also trending. However, for mobile devices (such as mobile phones and tablet computers) with limited display screen sizes, the advantages of multiple details and high definition of ultra-high definition videos are difficult to be intuitively embodied on such devices; that is, for a user watching an ultra-high-definition video through a mobile device, the user cannot intuitively feel the advantages of the ultra-high-definition video, and the watching experience of the ultra-high-definition video cannot achieve the expected effect.
Disclosure of Invention
The embodiment of the application provides a video amplification method, a video amplification device, equipment and a storage medium, which can more intuitively embody the advantages of ultra-high definition videos on equipment with a limited display screen size, so that a user can obtain better watching experience on the ultra-high definition videos.
In view of the above, a first aspect of the present application provides a video amplification method, including:
responding to an amplification window awakening operation triggered by the ultra-high-definition video, and displaying an amplification window on a display interface of the ultra-high-definition video;
displaying an enlarged image corresponding to an image in a target enlarged area in a video picture of the ultra high definition video in the enlarged window based on the resolution of the ultra high definition video; the target amplification area is determined according to the display position of the amplification window in the display interface and the amplification factor corresponding to the amplification window; and the magnified image is obtained by magnifying the image in the target magnification area based on the magnification corresponding to the magnification window.
A second aspect of the present application provides a video amplification apparatus, the apparatus comprising:
the device comprises an amplification window awakening module, a display interface and a display interface, wherein the amplification window awakening module is used for responding to amplification window awakening operation triggered by the ultra-high-definition video and displaying an amplification window on the display interface of the ultra-high-definition video;
the amplified content display module is used for displaying an amplified image corresponding to an image in a target amplification area in a video picture of the ultra-high-definition video in the amplification window based on the resolution of the ultra-high-definition video; the target amplification area is determined according to the display position of the amplification window in the display interface and the amplification factor corresponding to the amplification window; and the magnified image is obtained by magnifying the image in the target magnification area based on the magnification corresponding to the magnification window.
A third aspect of the application provides an apparatus comprising a processor and a memory:
the memory is used for storing a computer program;
the processor is configured to perform the steps of the video amplification method according to the first aspect, according to the computer program.
A fourth aspect of the present application provides a computer-readable storage medium for storing a computer program for executing the steps of the video up-scaling method according to the first aspect.
A fifth aspect of the present application provides a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to make the computer device execute the steps of the video amplification method according to the first aspect.
According to the technical scheme, the embodiment of the application has the following advantages:
the embodiment of the application provides a video amplification method, which creatively provides an amplification function for an ultra-high-definition video, and when a user watches the ultra-high-definition video through a device with a limited display screen size, the amplification function can be used for amplifying a local area in a video picture of the ultra-high-definition video so as to watch picture details which can be clearly embodied by the ultra-high-definition video. Specifically, in the video amplification method provided in the embodiment of the present application, the terminal device may respond to an amplification window wakeup operation triggered by a user for an ultra high definition video, and display an amplification window on a display interface of the ultra high definition video; displaying an enlarged image corresponding to an image in a target enlarged area in a video picture of the ultra high definition video in the enlarged window based on the resolution of the ultra high definition video; the target enlargement area is determined according to the display position of the enlargement window on the display interface and the enlargement ratio corresponding to the enlargement window, and the enlarged image is obtained by enlarging the image in the target enlargement area based on the enlargement ratio corresponding to the enlargement window. Therefore, when a user watches the ultra-high-definition video through the device with the limited display screen size, the user can trigger the display of the amplification window on the display interface of the ultra-high-definition video by executing the above-mentioned amplification window awakening operation, and the user can better watch details in the video picture of the ultra-high-definition video through the amplification window, so that the user can more intuitively feel the advantages of the ultra-high-definition video, such as multiple details, high definition and the like, and better ultra-high-definition video watching experience is obtained.
Drawings
Fig. 1 is a schematic view of an application scenario of a video amplification method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a video amplification method according to an embodiment of the present application;
fig. 3 is a schematic diagram of a representation of a magnified rendering wake control provided in an embodiment of the present application;
fig. 4 is a schematic diagram of an implementation process of adjusting a display position of an enlarged window based on a window position adjustment control according to an embodiment of the present application;
fig. 5 is a schematic view of an implementation process of adjusting the magnification based on a magnification adjustment control according to an embodiment of the present application;
fig. 6 is a schematic diagram of an implementation process of triggering a full-screen display operation for a magnified window according to an embodiment of the present application;
FIG. 7 is a schematic diagram illustrating a layout of interactive elements in a display interface according to an embodiment of the present application;
FIG. 8 is a schematic diagram of the underlying processing logic for the amplification function provided by an embodiment of the present application;
fig. 9 is a schematic structural diagram of a video amplifying device according to an embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings, if any, are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application described herein are capable of operation in sequences other than those illustrated or described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In order to enable equipment with a limited display screen size to better embody the advantages of ultra-high-definition videos and enable users to obtain better video watching experience when watching the ultra-high-definition videos through the equipment, the embodiment of the application provides a video amplification method.
In the video amplification method, a terminal device responds to an amplification window awakening operation triggered by a user aiming at an ultra-high-definition video, and displays an amplification window on a display interface of the ultra-high-definition video; displaying an enlarged image corresponding to an image in a target enlarged area in a video picture of the ultra high definition video in the enlarged window based on the resolution of the ultra high definition video; the target enlargement area is determined according to the display position of the enlargement window on the display interface and the enlargement ratio corresponding to the enlargement window, and the enlarged image is obtained by enlarging the image in the target enlargement area based on the enlargement ratio corresponding to the enlargement window.
The video amplification method creatively provides an amplification function for the ultra-high-definition video, the amplification function supports a user to trigger an amplification window awakening operation in the process of watching the ultra-high-definition video, correspondingly displays an amplification window in a display interface of the ultra-high-definition video, and further displays an amplified image corresponding to an image in a target amplification area in a video picture based on the resolution of the ultra-high-definition video through the amplification window; therefore, the user can better watch the details in the video picture of the ultra-high definition video through the amplifying window, so that the user can more intuitively feel the advantages of the ultra-high definition video, such as multiple details, high definition and the like, and better viewing experience of the ultra-high definition video is obtained.
It should be understood that the video amplification method provided in the embodiment of the present application may be applied to a terminal device with an ultra-high-definition video playing capability, where the terminal device may specifically be a smart phone, a tablet computer, a Personal Digital Assistant (PDA), a vehicle-mounted terminal, and the like, and the terminal device to which the video amplification method is applied is not specifically limited in the present application.
In order to facilitate understanding of the video amplification method provided in the embodiment of the present application, an exemplary application scenario to which the video amplification method provided in the embodiment of the present application is applied is described below.
Referring to fig. 1, fig. 1 is a schematic view of an application scenario of a video amplification method according to an embodiment of the present application. As shown in fig. 1, the Application scene includes a terminal device 110, a video playing Application (APP) is run on the terminal device 110, and the video playing APP can provide ultra high definition video resources for a user.
In practical application, when a user watches an ultra-high-definition video through a video playing APP running on the terminal device 110, a zoom-in window wakeup operation may be triggered for the ultra-high-definition video, and the terminal device 110 may correspondingly display a zoom-in window on a display interface of the ultra-high-definition video in response to the zoom-in window wakeup operation. Fig. 1 shows a schematic diagram of an implementation process of an exemplary awake operation of a zoom window, as shown in (a) in fig. 1, a display interface of an ultra high definition video is displayed with a wake-up control 111 of the zoom window, a user can trigger the wake-up operation of the zoom window by clicking the wake-up control 111 of the zoom window, and after detecting that the user clicks the wake-up control 111 of the zoom window, a terminal device correspondingly displays a zoom window 112 on the display interface of the ultra high definition video, as shown in (b) in fig. 1.
For an enlarged window displayed on a display interface of an ultra high definition video, the terminal device 110 may display, based on a resolution of the ultra high definition video itself, an enlarged image corresponding to an image in a target enlarged region in a currently played video image in the enlarged window; as shown in fig. 1 (b), the terminal device 110 displays an enlarged image corresponding to an image within its corresponding target enlarged region in the enlargement window 112. When the terminal device 110 determines the display content in the zoom-in window, it needs to determine a target zoom-in area in the currently played video picture, specifically, the terminal device 110 may determine the target zoom-in area in the currently played video picture according to the display position of the zoom-in window in the display interface and the corresponding magnification of the zoom-in window; then, the terminal device 110 may perform amplification processing on the image in the target amplification area based on the amplification factor corresponding to the amplification window to obtain an amplified image corresponding to the image in the target amplification area; further, in the enlargement window, an enlarged image corresponding to an image in the target enlargement area is displayed based on the resolution of the ultra high definition video.
Optionally, the display position of the zoom-in window in the display interface of the ultra-high definition video may be adjustable, so that a user can select an area to be zoomed in and watched in the video picture according to the actual requirement of the user. For example, the terminal device may set a window position adjustment control in a display interface of the ultra-high-definition video, so that a user can adjust the position of the zoom-in window in the display interface through the window position adjustment control; for another example, the terminal device may support the user to adjust the display position of the magnified window by dragging the magnified window; and so on.
Optionally, the magnification corresponding to the magnifying window may also be adjustable, so that the user can adjust the magnification of the image content that the user wants to magnify and view according to the actual requirement of the user. For example, the terminal device may set a magnification adjustment control in a display interface of the ultra high definition video, so that a user may adjust a magnification corresponding to the magnification window through the magnification adjustment control; for another example, the terminal device may support the user to adopt a specific gesture operation, so as to adjust the magnification; and so on.
It should be understood that the application scenario shown in fig. 1 is only an example, and in practical applications, the video amplification method provided in the embodiment of the present application may also be applied to other application scenarios, for example, the video amplification method provided in the embodiment of the present application may be applied to a device that can support ultra high definition video playing, such as a tablet computer and a desktop computer, besides the smart phone shown in fig. 1; the application scenario of the video amplification method provided in the embodiment of the present application is not limited at all.
The following describes in detail a video amplification method provided by the present application by way of an embodiment of the method.
Referring to fig. 2, fig. 2 is a schematic flowchart of a video amplification method according to an embodiment of the present application. As shown in fig. 2, the video amplification method includes the steps of:
step 201: responding to a magnified window awakening operation triggered by the ultra-high-definition video, and displaying a magnified window on a display interface of the ultra-high-definition video.
In practical application, when a user watches an ultra-high-definition video through a video playing APP running on a terminal device, a zoom-in window awakening operation can be triggered for the watched ultra-high-definition video, and the terminal device responds to the zoom-in window awakening operation and correspondingly displays a zoom-in window on a display interface of the ultra-high-definition video. The display interface refers to an interface for displaying ultra high definition video, and a picture displayed on the display interface is a picture that can be seen by a user; in practical application, a complete video picture can be displayed through the display interface, and a partial area in the video picture can also be displayed.
Optionally, in this embodiment of the application, the terminal device may support displaying the zoom window only for the ultra-high-definition video, that is, support triggering the zoom window wakeup operation only for the ultra-high-definition video. In this case, the terminal device may determine, for the video currently played by the terminal device, whether the resolution of the video reaches a preset resolution, for example, whether the resolution of the video exceeds 4K (i.e., 4096 × 2160), and for example, whether the resolution of the video exceeds 4K and does not exceed 8K yet (i.e., 7680 × 4320); if the resolution of the currently played video is determined to reach the preset resolution, the currently played video can be determined to belong to the ultra-high-definition video, and at this time, a user can be supported to trigger an amplification window awakening operation aiming at the ultra-high-definition video, and a control for triggering the amplification window awakening operation is provided. Certainly, in practical application, the terminal device may also support triggering of the magnified window wakeup operation for videos of various resolutions, and the application does not limit any type of video to which the magnified window wakeup operation is applicable.
In a possible implementation manner, the terminal device may support a user to trigger the magnified window awakening operation through the magnified window awakening control.
Two exemplary enlarged window wake control representations are shown in fig. 3. As shown in fig. 3 (a), a display scale control 301 in the display interface may be used as a zoom-in window wake-up control, where the display scale control 301 is used to reflect a scaling ratio of a currently displayed video frame of the display interface with respect to an original video frame (i.e., a video frame adapted to a size of the display interface), for example, when the display scale control 301 displays a scaling ratio of 1 × to indicate that the currently displayed video frame is a video frame that matches the size of the display interface, and when the display scale control 301 displays a scaling ratio of 0.5 × to indicate that the size of the currently displayed video frame is half of the size of the display interface; the user can trigger the enlarged window wakeup operation for the currently played ultra high definition video by clicking the display scale control 301. As shown in fig. 3 (b), an enlargement window wake-up control 303 may be additionally arranged in an operation control column 302 corresponding to the display interface, where the operation control column 302 is used to carry operation controls that can perform relevant settings on the video, such as a pop-up screen switch, a play speed adjustment control, a definition adjustment control, a video sharing control, and the like; the user may trigger the awake operation of the enlargement window for the currently played ultra high definition video by clicking the awake control 303 of the enlargement window provided in the operation control column 302.
It should be understood that the representation form of the magnified window wake-up control shown in fig. 3 is only an example, and in practical applications, the magnified window wake-up control may also be set to other representation forms.
In another possible implementation manner, the terminal device may support a user to trigger the above-mentioned magnified window wakeup operation by using a specific gesture. For example, the user may draw an "O" shape on the display interface as a gesture for triggering the zoom-in window wakeup operation, and accordingly, after the terminal device detects that the user draws the "O" shape on the display interface of the ultra high definition video, it may be determined that the user currently triggers the zoom-in window wakeup operation. Of course, in practical applications, any gesture may be set as the gesture for triggering the magnified window wakeup operation, and the gesture for triggering the magnified window wakeup operation is not limited in this application.
It should be understood that the specific implementation manner of the enlarged window wake-up operation described above is only an example, and in practical applications, the specific implementation manner of the enlarged window wake-up operation may be set according to actual requirements.
After detecting that a user triggers an amplification window awakening operation aiming at the currently played ultrahigh-definition video, the terminal equipment correspondingly activates a state of a magnifier aiming at the ultrahigh-definition video, and displays an amplification window at a specific position on a display interface of the ultrahigh-definition video; for example, the terminal device may display a circular zoom-in window at a middle position of a display interface of the ultra high definition video, i.e., such that a center of the zoom-in window coincides with a center of the display interface. Of course, in practical applications, the terminal device may also display the magnified window at another position on the display interface, and the displayed magnified window may also be represented by another shape, such as a rectangle, a triangle, an irregular polygon, and so on.
Step 202: displaying an enlarged image corresponding to an image in a target enlarged area in a video picture of the ultra high definition video in the enlarged window based on the resolution of the ultra high definition video; the target amplification area is determined according to the display position of the amplification window in the display interface and the amplification factor corresponding to the amplification window; the magnified image is obtained by magnifying the image in the target magnified region based on the magnification corresponding to the magnification window.
In a zoom-in window displayed on a display interface of the ultra-high-definition video, the terminal device may display, based on the resolution of the ultra-high-definition video, a zoom-in image corresponding to an image in a target zoom-in region in a video picture currently played by the ultra-high-definition video.
Specifically, after detecting that a user triggers an amplification window awakening operation for a currently played ultra high definition video, the terminal device determines a target amplification area in a video picture currently played by the ultra high definition video according to a display position of the amplification window in a display interface of the ultra high definition video and an amplification factor corresponding to the amplification window; it should be understood that, after detecting that the user triggers the magnified window wake-up operation, a default magnification ratio, such as 10 ×, 20 × and the like, may be configured for the magnified window, and the user may subsequently adjust the magnification ratio according to the actual needs of the user. Then, based on the magnification corresponding to the magnification window, carrying out magnification processing on the image in the target magnification area to obtain a magnified image corresponding to the image in the target magnification area; further, in the enlargement window on the display interface, an enlarged image corresponding to the image in the target enlargement area is displayed based on the resolution of the ultra high definition video itself. In order to facilitate understanding of the above implementation process, the implementation process of displaying the magnified image corresponding to the image in the target magnified region in the magnified window is described below as an example, where the shape of the magnified window is a circle and the magnification corresponding to the magnified window is 10 times.
Assuming that the display position of the magnified window is the center position of the display interface, that is, the center of the magnified window coincides with the center of the display interface, the terminal device may first determine a pixel point at the center position in the currently played video picture as a reference pixel point; in addition, the terminal device can also amplify the size of the pixel point in the currently played video picture by 10 times, and determine the display size of the pixel point displayed in the video picture in the amplification window as the size of the amplified pixel point. Then, the terminal device can determine an area needing to be amplified in the video picture as a target amplification area on the basis of the position of the reference pixel point in the video picture by combining the position of the reference pixel point in the video picture, the size of the amplification window and the size of the amplification pixel point; illustratively, the terminal device may determine, based on a radius corresponding to the enlargement window and a size of the enlargement pixel, a number of enlargement pixels that should be displayed in a direction of the radius of the enlargement window, and further determine, with a position of the reference pixel in the video picture as a center, pixels satisfying the number along each radial direction in the enlargement window, where an area covered by the pixels and the reference pixel in the video picture is a target enlargement area. And further, amplifying the image in the target amplification area in the video picture to obtain an amplified image corresponding to the image, and displaying the amplified image in the amplification window.
It should be noted that, the image in the target enlargement area is enlarged, and essentially, each pixel point in the target enlargement area is enlarged based on the enlargement magnification corresponding to the enlargement window, and enlarging the pixel point means enlarging the display area of the pixel point in the display interface. For example, if a pixel point which is not amplified in a video image needs to be displayed through one display unit on a display screen, after the pixel point is amplified by 10 times, the obtained amplified pixel point needs to be displayed through ten display units on the display screen; the display unit is the smallest hardware display component on the display screen, and the higher the resolution of the picture is, the smaller the display area of the pixel point in the picture on the display screen is, and the fewer display units are needed for supporting the display of one pixel point in the picture. It should be noted that, because the video picture of the ultra-high-definition video has a higher resolution, when a local region (i.e., the target enlargement region) in the video picture of the ultra-high-definition video is enlarged, only the pixel points in the local region are enlarged without specially adjusting the resolution of the local region, so that the picture content displayed in the enlargement window is clear and natural, and the picture details in the local region can be clearly reflected without excessively and rigidly representing the pixel points. It should be understood that during the playing process of the ultra-high-definition video, the video picture may change, but the display position of the zoom-in window in the display interface may remain unchanged, that is, the position of the target zoom-in region in the video picture may remain unchanged, in which case, the zoom-in image displayed in the zoom-in window may change correspondingly following the change of the video picture.
In practical application, in order to further improve the viewing experience of the user on the ultra-high-definition video and enable the user to view details of each picture in a video picture, the method provided by the embodiment of the application can also support the user to adjust the picture area enlarged by the enlargement window.
In a possible implementation manner, the embodiment of the application supports a user to adjust the display position of the magnified window in the display interface through the window position adjustment control, so as to adjust the magnified picture area of the magnified window. In other words, in response to an enlarged window awakening operation triggered by the ultra-high-definition video, displaying a window position adjusting control on a display interface of the ultra-high-definition video; and adjusting the display position of the magnified window in the display interface in response to the window position adjustment operation triggered by the window position adjustment control.
Specifically, after detecting that a user triggers an amplifying window awakening operation for a currently played ultra high definition video, the terminal device may display, in addition to the amplifying window in a display interface of the ultra high definition video, a window position adjusting control for adjusting a display position of the amplifying window in the display interface; for example, the terminal device may display the window position adjustment control at a lower left corner of the display interface, and for example, the terminal device may display the window position adjustment control in an operation control bar of the display interface; the application does not limit the specific display position of the window position adjusting control in the display interface at all. After detecting that the user triggers the window position adjusting operation through the window position adjusting control, the terminal equipment correspondingly adjusts the display position of the amplifying window in the display interface according to the window position adjusting operation triggered by the user, so that the target amplifying area in the amplified video picture is adjusted.
As an example, the window position adjustment control may include a virtual joystick and a virtual joystick control area, and when a user triggers a window position adjustment operation through the window position adjustment control, the position of the virtual joystick may be adjusted in the virtual joystick control area, and accordingly, the zoom-in window in the display interface may move along with the change of the position of the virtual joystick, so as to change the target zoom-in area in the video frame. Fig. 4 is a schematic diagram illustrating an implementation process of adjusting a display position of an enlarged window based on a window position adjustment control, as shown in (a) and (b) of fig. 4, a display interface of a video frame includes a window position adjustment control 410, which includes a virtual joystick 411 and a virtual joystick manipulation area 412, and a user can move the virtual joystick 411 within the virtual joystick manipulation area 412; as shown in fig. 4 (b), after the user adjusts the position of the virtual joystick 411 in the virtual joystick manipulation area 412, the display position of the zoom-in window in the display interface is also adjusted accordingly, so as to zoom in other areas in the video frame.
In the process that a user executes window position adjusting operation through the window position adjusting control, the terminal equipment determines the displacement parameter of the virtual rocker according to the position adjusting operation triggered by the user aiming at the virtual rocker in the virtual rocker control area; then, determining a position adjustment parameter corresponding to the amplification window according to the displacement parameter of the virtual rocker; and further, adjusting the display position of the magnified window in the display interface according to the position adjustment parameter corresponding to the magnified window.
Taking a terminal device playing an ultra-high-definition video as an example of a smart phone, a User Interface (UI) layer of the terminal device can detect movement of a User finger on a display screen, and when the terminal device detects that the User finger moves a virtual rocker in a virtual rocker control area, the terminal device can determine a displacement parameter of the virtual rocker according to the collected movement data of the User finger; then, according to a preset conversion mode, converting the displacement parameters of the virtual rocker into position adjustment parameters corresponding to the amplification window; and then, controlling the amplification window to move on the display interface according to the position adjustment parameter corresponding to the amplification window, so that the amplification window moves to a position corresponding to the position of the virtual rocker in the virtual rocker control area on the display interface.
During specific implementation, the terminal equipment can determine the position offset angle and the position offset of the virtual rocker and determine the moving speed of the virtual rocker according to the position adjustment operation triggered by a user in the virtual rocker control area for the virtual rocker; further, according to the position offset angle and the position offset of the virtual rocker, the position adjustment direction and the position adjustment amount corresponding to the amplification window are determined, and according to the moving speed of the virtual rocker, the position adjustment speed corresponding to the amplification window is determined; accordingly, the terminal device can adjust the display position of the magnified window in the display interface based on the position adjustment direction, the position adjustment amount and the position adjustment speed corresponding to the magnified window.
Still taking a terminal device playing an ultra-high-definition video as an example of a smart phone, a UI layer of the terminal device may determine a position offset angle and a position offset of the virtual joystick relative to a previous position of the virtual joystick according to a position adjustment operation triggered by a finger of a user in a virtual joystick control region, and determine a moving speed of the virtual joystick when the finger of the user controls the virtual joystick. Then, the terminal device can respectively perform conversion processing on the position offset angle, the position offset and the moving speed of the virtual rocker according to a preset conversion mode to obtain a position adjustment direction, a position offset and a position adjustment speed corresponding to the amplification window; for example, the terminal device may directly use the position offset angle of the virtual rocker as the position adjustment direction corresponding to the zoom-in window, perform zoom-in processing on the position offset of the virtual rocker according to a first ratio to obtain a position adjustment amount corresponding to the zoom-in window, and perform zoom-in processing on the movement speed of the virtual rocker according to a second ratio to obtain a position adjustment speed corresponding to the zoom-in window.
It should be understood that the implementation form of the window position adjustment control is only an example, in an actual application, other forms of window position adjustment controls may also be set according to actual requirements, for example, a window position adjustment control including four position adjustment sub-controls respectively corresponding to four moving directions, that is, an upper direction, a lower direction, a left direction, and a right direction, may be set, and the enlarged window may be moved to the corresponding direction by touching the position adjustment sub-controls. The form of the window position adjustment control is not limited in any way in the present application.
In another possible implementation manner, the embodiment of the application enables a user to adjust the picture area enlarged by the enlargement window by performing a drag operation on the enlargement window or a non-target enlargement area in the video picture.
As an example, the terminal device may adjust a display position of the magnified window in the display interface in response to a drag operation triggered by a user on the display interface for the magnified window, thereby adjusting a target magnified area of the magnified window magnified in a video screen of the ultra high definition video. Taking the device for playing the ultra-high-definition video as an example of a smart phone, the UI layer of the terminal device may detect a dragging operation triggered by a user finger for an enlarged window on the display interface, and correspondingly adjust a display position of the enlarged window on the display interface along with the movement of the user finger, so as to adjust a target enlarged area of the enlarged window enlarged in the video picture.
As another example, the terminal device may adjust a display position of a video screen of an ultra high definition video in the display interface and adjust a target zoom-in region in the video screen of the ultra high definition video in response to a drag operation triggered by a user for a non-target zoom-in region in the video screen of the ultra high definition video.
Specifically, in practical applications, the video frames displayed in the display interface may be video frames with a frame size smaller than the size of the display interface, for example, the video frames may be displayed in a partial area (e.g., a middle area) in the display interface, where there is a blank area where no video frame is displayed in the display interface; or, the video picture displayed in the display interface may also be a local area of the video picture, that is, the complete video picture is not completely displayed through the display interface; in the above case, the terminal device detects that the user triggers a drag operation with respect to the video picture, and may change the display position of the video picture in the display interface or change the picture area displayed by the video picture in the display interface accordingly. Under the condition that an amplification window is displayed in a display interface, the terminal equipment detects that a user triggers a dragging operation aiming at a non-target amplification area in a video picture, and can correspondingly adjust the position of the video picture in the display interface or correspondingly adjust a picture area displayed in the display interface; under the condition that the display position of the magnifying window in the display interface is kept unchanged, the position of the video picture in the display interface is adjusted, and the picture area displayed in the display interface is adjusted, so that the target magnifying area magnified by the magnifying window in the video picture can be changed.
It should be understood that the above-described manner for adjusting the target enlargement area enlarged by the enlargement window in the video picture is only an example, and in practical applications, other manners may be set according to actual requirements to implement the adjustment of the target enlargement area enlarged by the enlargement window.
In practical application, in order to further improve the viewing experience of the user on the ultra-high-definition video, so that the user can adjust the amplification degree of the picture region displayed in the amplification window according to actual requirements, the method provided by the embodiment of the application can also support the user to adjust the amplification factor corresponding to the amplification window.
In a possible implementation manner, the embodiment of the application supports that a user adjusts the magnification corresponding to the magnification window through the magnification adjustment control. In other words, in response to a magnification window awakening operation triggered by the ultra-high-definition video, a magnification adjustment control is displayed on a display interface of the ultra-high-definition video; and adjusting the magnification corresponding to the magnification window in response to the magnification adjusting operation triggered by the magnification adjusting control.
Specifically, after detecting that a user triggers an amplification window awakening operation for a currently played ultra high definition video, the terminal device may display an amplification window in a display interface of the ultra high definition video, and may also display an amplification factor adjustment control for adjusting the amplification factor of the amplification window in the display interface; for example, the terminal device may display the magnification adjustment control at the right boundary of the display interface, and for example, the terminal device may display the magnification adjustment control in the operation control bar of the display interface; the specific display position of the magnification adjustment control in the display interface is not limited at all. After detecting that the user triggers the magnification adjustment operation through the magnification adjustment control, the terminal device correspondingly adjusts the magnification corresponding to the magnification window according to the magnification adjustment operation triggered by the user, so that the target magnification area of the magnification window amplified in the video image is changed, and the size of the magnification pixel point displayed in the magnification window is changed.
As an example, the magnification adjustment control may be represented as a magnification adjustment wheel, and when the user triggers the magnification adjustment operation through the magnification adjustment control, the magnification adjustment wheel may be slid to rotate to a magnification desired by the user, that is, to display the magnification desired by the user at a magnification display result on the magnification adjustment wheel; correspondingly, when the terminal equipment detects that the sliding operation triggered by the user aiming at the magnification adjustment wheel disc stops, the magnification displayed at the magnification adjustment result on the magnification adjustment wheel disc is used as the magnification corresponding to the amplification window, the target amplification area is adjusted according to the magnification displayed at the magnification adjustment result, and the size of the amplification pixel point displayed in the amplification window is adjusted.
Fig. 5 is a schematic diagram illustrating an exemplary implementation process of adjusting the magnification based on a magnification adjustment control, as shown in (a) and (b) of fig. 5, a display interface of a video image includes a magnification adjustment wheel 510, a position 511 on the magnification adjustment wheel 510 is a position for displaying a magnification adjustment result, and a user can adjust the magnification adjustment result displayed at the position 511 by sliding the magnification adjustment wheel 510, so as to adjust the magnification corresponding to the magnification window; fig. 5 (a) is a schematic view showing a display interface at a magnification of 16 × and fig. 5 (b) is a schematic view showing a display interface at a magnification of 8 × respectively. Through comparison, the larger the magnification ratio is, the smaller the target amplification area amplified by the amplification window is, and the larger the amplification pixel point displayed in the amplification window is.
It should be understood that the implementation form of the magnification adjustment control is only an example, and in practical applications, other forms of magnification adjustment controls may also be set according to practical requirements, for example, a magnification selection bar may be set, through which several selectable magnifications are provided, and a user may select a desired magnification through the magnification selection bar. The present application does not limit the form of the magnification adjustment control.
In another possible implementation manner, the embodiment of the application supports that a user adjusts the magnification corresponding to the magnification window through a specific gesture.
As an example, the terminal device may adjust a magnification corresponding to the magnified window in response to a first magnification adjustment gesture triggered by a user within the magnified window. For example, a two-finger zoom gesture (i.e., a two-finger outward swipe and a two-finger inward swipe) may be preset as the first magnification adjustment gesture; when the terminal device detects that the user triggers the operation of sliding the two fingers outwards in the amplification window, the terminal device can determine that the user triggers the operation of increasing the amplification factor corresponding to the amplification window, correspondingly increase the step length according to the preset amplification factor and increase the current corresponding amplification factor of the amplification window; when the terminal device detects that the user triggers the operation of sliding the two fingers inwards in the amplifying window, the terminal device can determine that the user triggers the operation of reducing the amplifying magnification corresponding to the amplifying window, correspondingly reduce the step length according to the preset magnification, and reduce the current corresponding amplifying magnification of the amplifying window. It should be understood that the first magnification adjustment gesture described above is only an example, and in practical applications, other first magnification adjustment gestures may also be set, and the first magnification adjustment gesture is not limited in any way herein.
As another example, the terminal device may adjust the magnification corresponding to the magnification window in response to a second magnification adjustment gesture triggered by the user within a non-target magnification region in a video screen of the ultra high definition video. For example, a second magnification adjustment gesture may be preset such that the user draws an "L" shape and a "J" shape in a non-target magnification area of the video screen, the "L" shape representing an increasing magnification, the "J" shape representing a decreasing magnification; when the terminal equipment detects that a user draws an L shape in a non-target amplification area in a video picture, the terminal equipment can determine that the user triggers the operation of increasing the amplification factor corresponding to the amplification window, correspondingly increases the step length according to the preset amplification factor and increases the current corresponding amplification factor of the amplification window; when the terminal device detects that the user draws a J shape in a non-target amplification area in a video picture, the terminal device can determine that the user triggers the operation of reducing the amplification factor corresponding to the amplification window, correspondingly reduce the step length according to the preset amplification factor, and reduce the current corresponding amplification factor of the amplification window. It should be understood that the second magnification adjustment gesture described above is only an example, and in practical applications, other second magnification adjustment gestures may also be provided, and the second magnification adjustment gesture is not limited in any way herein.
It should be understood that the manner for adjusting the magnification corresponding to the enlargement window described above is merely an example, and in practical applications, other manners may be set according to actual requirements to display the adjustment of the magnification corresponding to the enlargement window.
It should be understood that when the target amplification area corresponding to the amplification window changes and/or the amplification factor corresponding to the amplification window changes, the terminal device needs to determine the target amplification area again according to the manner described above, and perform amplification processing on the pixel points in the target amplification area according to the changed amplification factor to adjust the amplification content displayed in the amplification window.
Optionally, in order to further facilitate the user to view the picture area displayed in the zoom-in window, in the embodiment of the present application, the magnified image corresponding to the image in the target zoom-in area may be displayed on the display interface in full screen in response to the full screen display operation triggered by the user for the zoom-in window.
Fig. 6 is a schematic diagram illustrating an implementation process of triggering a full-screen display operation for a magnified window according to an embodiment of the present application. As shown in fig. 6 (a), a user may trigger a full-screen display operation for an enlargement window by clicking the enlargement window; after detecting that the user triggers a full-screen display operation for the enlargement window, the terminal device displays an enlarged image corresponding to the image in the target enlargement area on the display interface in full screen at the resolution of the ultra-high-definition video, as shown in fig. 6 (b). Of course, in practical applications, the method for triggering the full-screen display operation for the magnified window may also be specifically adopted as other methods, for example, a specific control for triggering the full-screen display for the magnified window is set.
It should be noted that, in practical applications, the size of the magnification window and the size of the display interface may not be completely matched, for example, when the magnification window is circular, the magnification window and the display interface are not matched in shape, and for example, the aspect ratio of the magnification window and the aspect ratio of the display interface are not consistent, and the like; in this case, the terminal device needs to newly determine the target enlargement area that needs to be displayed full screen based on the target enlargement area currently enlarged by the enlargement window. For example, the terminal device may select a basic magnified pixel point in a target magnified area currently magnified by the magnified window, for example, select a pixel point located on a longitudinal central axis of the magnified window as the basic magnified pixel point, then select a pixel point covered by the target magnified area displayed in full screen on the display interface in the video picture based on the basic magnified pixel points in combination with the size of the display interface, and further display the magnified pixel point corresponding to each pixel point in the target magnified area in full screen on the display interface.
It should be understood that, because the display interface is larger than the enlargement window, when the enlarged image corresponding to the image in the target enlargement area is displayed in full screen on the display interface, the pixel points in the enlarged image displayed in full screen are larger than the pixel points displayed in the enlargement window; that is, the terminal device needs to further amplify the pixel points displayed in the magnified window according to the relationship between the size of the magnified window and the size of the display interface, and then displays the pixel points after further amplification in a full screen.
Optionally, the method provided by the embodiment of the present application may further support that the user triggers a zoom operation with respect to the video picture displayed on the display interface, that is, the video picture displayed on the display interface is zoomed in or zoomed out. Specifically, the terminal device enters a video zoom mode in response to a zoom operation triggered by a user for a video frame of the ultra-high-definition video, and displays a zoom image corresponding to an image in a target area in the video frame on a display interface, where the zoom image is obtained by performing zoom processing on the image in the target area according to a zoom ratio corresponding to the triggered zoom operation. Accordingly, in this case, if a zoom-in window is displayed on the display interface, the target zoom-in region zoomed in by the zoom-in window is determined according to the display position of the zoom-in window in the target region, the zoom ratio corresponding to the zoom operation, and the zoom magnification corresponding to the zoom-in window, and the zoom-in image displayed in the zoom-in window is obtained by performing the zoom-in processing on the zoom-in image in the target zoom-in region based on the zoom magnification corresponding to the zoom-in window.
For example, after detecting a zoom operation triggered by a user with respect to a video screen displayed on the display interface, for example, after detecting that the user performs a two-finger zoom gesture (including a two-finger outward slide and a two-finger inward slide) in a non-target zoom region in the video screen, the terminal device may enter a video zoom mode. In the video zooming mode, the terminal equipment can respond to zooming operation triggered by a user aiming at the video picture and adjust the video picture displayed in the display interface; for example, when it is detected that the user performs the operation of sliding outward in the dual-pointing direction in the non-target enlargement area in the video image, the terminal device may perform enlargement processing on the currently displayed video image according to a preset enlargement ratio, where the essence of the enlargement processing is to perform enlargement processing on the display area of a pixel point in the video image, and as the display area of the pixel point is enlarged, the frame size of the video image is also enlarged correspondingly, and the size of the enlarged video image may exceed the size of the display interface, and at this time, only the image in the local area in the video image, which is the target area in the foregoing text, can be displayed through the display interface; for another example, when it is detected that the user performs the operation of sliding in the dual directions in the non-target zoom-in region in the video image, the terminal device may perform zoom-out processing on the currently displayed video image according to a preset zoom-out ratio, where the essence of the zoom-out processing is to perform zoom-out processing on the display region of the pixel point in the video image, and as the pixel point is zoomed out, the frame size of the video image may also be correspondingly zoomed out, and the size of the zoomed-out video image may be smaller than that of the display interface, at this time, the zoomed-out video image may be displayed by using only a partial region of the display interface, and the entire zoomed-out video image is the target region in the foregoing text.
In the video zooming mode, the target zooming area zoomed by the zooming window is changed along with the zooming of the video picture, and the size of the zooming pixel displayed in the zooming window is changed correspondingly. Specifically, in the video zooming mode, the terminal device cooperatively determines a target zooming area to be zoomed in and displayed through the zooming window in the target area according to the display position of the zooming window in the target area, the zooming ratio corresponding to the zooming operation, and the zooming ratio corresponding to the zooming window; the implementation manner of determining the target zoom-in region in the target region is similar to the implementation manner of determining the target zoom-in region in the video picture described above, and the difference between the two implementations is that when the target zoom-in region is determined in the target region, the scaling corresponding to the zoom operation needs to be considered cooperatively; accordingly, the enlarged image displayed through the enlarged window is obtained by further enlarging the image after the zooming process.
In addition, the method and the device can also support the user to adjust the target area displayed on the display interface; namely, the terminal device may adjust the target area in the video picture displayed on the display interface in response to a drag operation triggered by the user with respect to the target area displayed on the display interface.
For example, in a case where the target area displayed in the display interface is a local area of the video screen, the terminal device may adjust the local area in the video screen displayed in the display interface in response to a drag operation triggered by the user for the target area, that is, change the area in the video screen displayed through the display interface. When the target area displayed in the display interface is the whole reduced video picture and a blank area which does not display the video picture exists in the display interface, the terminal device responds to a dragging operation triggered by a user aiming at the target area, and can adjust the display position of the video picture in the display interface, namely the display position of the video picture in the display interface is changed.
In addition, the embodiment of the application can also support a user to close the amplification window and keep a video image display mode in a video zooming mode; that is, the terminal device may cancel the zoom-in window displayed in the display interface in response to a zoom-in window closing operation triggered by the user, and retain the zoom image corresponding to the image in the display target area on the display interface.
For example, a user may trigger the closing operation of the enlarged window through the enlarged window closing control, or may trigger the closing operation of the enlarged window through a specific gesture operation, and the specific implementation form of the closing operation of the enlarged window is not limited in any way herein. After the terminal device detects that the user triggers the closing operation of the zoom-in window, the terminal device can cancel the display of the zoom-in window and the related window position adjusting control and magnification adjusting control, and keep the display mode in the video zooming mode on the display interface, namely, the terminal device still displays the video picture based on the target area in the video zooming mode and the size of the zoomed image.
The video amplification method provided by the embodiment of the application creatively provides an amplification function for the ultra high definition video, the amplification function supports a user to trigger an amplification window awakening operation in the process of watching the ultra high definition video, correspondingly displays an amplification window in a display interface of the ultra high definition video, and further displays an amplified image corresponding to an image in a target amplification area in a video picture through the amplification window based on the resolution of the ultra high definition video; therefore, the user can better watch the details in the video picture of the ultra-high definition video through the amplifying window, so that the user can more intuitively feel the advantages of the ultra-high definition video, such as multiple details, high definition and the like, and better viewing experience of the ultra-high definition video is obtained.
In order to further understand the video amplification method provided in the embodiments of the present application, the following provides an overall exemplary description of the video amplification method provided in the embodiments of the present application.
Interactive elements in the display interface of the ultra high definition video are described with reference to fig. 7. As shown in fig. 7, the display interface 701 is used for bearing a video picture of an ultra high definition video, and the video picture borne by the display interface 701 may be a complete video picture or a local area in the video picture. The magnified window 702 will appear in the display interface in response to a magnified window awakening operation triggered by the user for the ultra-high-definition video, the magnified window 702 is initially set in the middle area of the display interface by default, and the display position of the magnified window 702 in the display interface can be subsequently adjusted according to the user operation. The window position adjustment control 703 may be disposed at the lower left of the display interface, and includes a virtual joystick and a virtual joystick control area, which are used to adjust the display position of the magnified window 702 in the display interface. The magnification adjustment control 704 may be disposed on the right side of the display interface, and is embodied as a magnification adjustment wheel, and the user may adjust the magnification corresponding to the magnification window 702 by pressing and sliding the magnification adjustment wheel, so as to adjust the size of the view area displayed in the magnification window 702.
When a user watches an ultra-high-definition video, a zoom-in window awakening operation for the ultra-high-definition video may be triggered through a zoom-in window awakening control in a display interface, for example, the user may trigger the zoom-in window awakening operation by clicking a zoom-in window awakening control 301 in the display interface shown in fig. 3 (a), and an enlargement window is awakened in the display interface, and the enlargement window is displayed in the display interface in a centered manner by default.
After detecting that the user triggers the amplification window wakeup operation for the ultra-high-definition video, the terminal device may further display a window position adjustment control 703 and a magnification adjustment control 704 in the display interface accordingly. As shown in (a) and (b) of fig. 4, in the case that the window position adjustment control 703 includes a virtual joystick and a virtual joystick manipulation region, the user can synchronously adjust the position of the magnified window in the display interface by adjusting the position of the virtual joystick in the virtual joystick manipulation region. As shown in (a) and (b) of fig. 5, in the case that the magnification adjustment control 704 is a magnification adjustment wheel, the user can synchronously adjust the magnification corresponding to the magnification window by pressing and sliding the magnification adjustment wheel, so as to synchronously adjust the size of the view in the magnification window. Further, as shown in (a) and (b) in fig. 6, the user may also display the view within the enlargement window in full screen in the display interface by clicking on the enlargement window.
Next, the underlying processing logic of the terminal device for implementing the above-mentioned amplification function is described with reference to fig. 8. The terminal device may specifically relate to four parts, namely, a user, a video player UI, a video player Software Development Kit (SDK), and a server when implementing the above-mentioned amplification function.
In the starting stage, when a user calls the video player to play a video through the terminal device, the video player SDK reads media information of the played video, and accordingly determines whether the resolution of the video exceeds 4K (4096 × 2160) and does not exceed 8K (7680 × 4320); if the resolution of the video meets the requirement, the video player displays an operation entry related to the magnified window, such as a magnified window wakeup control, so as to support the user to use the magnified window function.
In the activation stage, after the terminal device detects that the user clicks the magnifying window awakening control, the magnifying glass state is activated correspondingly. In the magnifier state, the video player lays out and displays the magnifying window, the window position adjusting control and the magnification adjusting control in the display interface. The video player SDK may update player status data in real-time according to the current operating status of the user, which may include, for example, a visual video frame in the display interface, a zoom frame corresponding to the video frame, and a partially zoomed region view within the zoom window, which may be used for interface display at the UI layer of the video player. Under the condition that the magnification adjustment control is the magnification adjustment wheel disc, the magnification adjustment wheel disc can display the current corresponding magnification of the magnification window, the magnification = (the width of an amplified pixel point/the width of a pixel point in a source video picture) × 100%, the width of the amplified pixel point is the width of the amplified pixel point displayed in the magnification window, the width of the pixel point in the source video picture is the width of the pixel point which is displayed in the video picture and is not amplified, and the magnification data can also be used for interface display of a UI layer of a video player. And correspondingly playing the video content of a local rendering area in the ultra-high-definition video in the amplification window, wherein the local rendering area is determined in the video picture of the played ultra-high-definition video according to the position of the amplification window in the display interface and the corresponding amplification factor of the amplification window.
In the operation phase, the terminal device mainly supports two operations: and adjusting the display position of the amplification window through the window position adjusting control, and adjusting the corresponding amplification factor of the amplification window through the amplification factor adjusting control. Under the condition that the window position adjusting control comprises a virtual rocker and a virtual rocker control area, the UI layer of the video player can call a ScrollTo interface of the SDK of the video player according to the position adjusting operation of a user finger on the virtual rocker in the virtual rocker control area, and the amplification window is controlled to move in the display interface, so that the amplification window can move towards the moving direction of the virtual rocker at a preset speed. Under the condition that the magnification adjustment control is specifically a magnification adjustment wheel disc, the UI layer of the video player can call a Zoom interface of the SDK of the video player through the sliding operation of a user finger on the magnification adjustment wheel disc, and the Zoom IN and Zoom Out of the view IN the Zoom-IN window can be realized through Zoom IN and Zoom Out interfaces. In addition, the user can also be supported to execute the double-finger zooming operation, namely in the area of the non-magnified window in the display interface, the visual video picture is magnified by the double-finger outward expansion operation, and the visual video picture is reduced by the double-finger inward contraction operation. Optionally, in the above operation process, the UI layer of the video player may also report the relevant operation data to the server.
In the exit stage, the terminal device detects that the user triggers the magnifier state exit operation, correspondingly cancels the magnifying window displayed in the display interface, and cancels the display window position adjusting control and the magnification adjusting control. If the zooming operation is triggered for the video picture in the magnifier state, the ultrahigh-definition video can be continuously played by keeping the previous zooming ratio after the magnifier mode is exited.
Aiming at the video amplification method described above, the present application also provides a corresponding video amplification device, so that the video amplification method can be applied and implemented in practice.
Referring to fig. 9, fig. 9 is a schematic structural diagram of a video amplification apparatus 900 corresponding to the video amplification method shown in fig. 2. As shown in fig. 9, the video amplifying apparatus 900 includes:
the magnified window awakening module 901 is configured to respond to a magnified window awakening operation triggered for the ultra-high-definition video, and display a magnified window on a display interface of the ultra-high-definition video;
an enlarged content display module 902, configured to display, in the enlargement window, an enlarged image corresponding to an image in a target enlargement area in a video picture of the ultra high definition video based on the resolution of the ultra high definition video; the target amplification area is determined according to the display position of the amplification window in the display interface and the amplification factor corresponding to the amplification window; the magnified image is obtained by magnifying the image in the target magnified region based on the magnification corresponding to the magnification window.
Optionally, on the basis of the video amplifying apparatus shown in fig. 9, the enlarged window waking module 901 is further configured to: responding to the amplifying window awakening operation triggered by the ultra-high-definition video, and displaying a window position adjusting control on a display interface of the ultra-high-definition video;
the apparatus further comprises: a window position adjustment module; the window position adjusting module is used for responding to a window position adjusting operation triggered by the window position adjusting control and adjusting the display position of the amplifying window in the display interface.
Optionally, the window position adjustment control includes a virtual rocker and a virtual rocker control area; the window position adjustment module is specifically configured to:
determining a displacement parameter of the virtual rocker according to position adjustment operation triggered by the virtual rocker in the virtual rocker control area;
determining a position adjustment parameter corresponding to the amplification window according to the displacement parameter of the virtual rocker;
and adjusting the display position of the magnified window in the display interface according to the position adjustment parameter corresponding to the magnified window.
Optionally, the window position adjusting module is specifically configured to:
determining a position offset angle and a position offset of the virtual rocker according to position adjustment operation triggered by the virtual rocker in the virtual rocker control area, and determining the moving speed of the virtual rocker;
determining a position adjustment direction and a position adjustment amount corresponding to the amplification window according to the position offset angle and the position offset of the virtual rocker; and determining the position adjusting speed corresponding to the amplifying window according to the moving speed of the virtual rocker.
Optionally, on the basis of the video amplifying apparatus shown in fig. 9, the apparatus further includes: an amplification area adjustment module; the amplification area adjusting module is used for adjusting the target amplification area through at least one of the following modes:
responding to a dragging operation triggered aiming at the amplification window on the display interface, adjusting the display position of the amplification window in the display interface, and adjusting a target amplification area in a video picture of the ultra-high-definition video;
responding to a drag operation triggered by the non-target amplification area in the video picture of the ultra-high-definition video, adjusting the display position of the video picture of the ultra-high-definition video in the display interface, and adjusting the target amplification area in the video picture of the ultra-high-definition video.
Optionally, on the basis of the video amplifying apparatus shown in fig. 9, the enlarged window waking module 901 is further configured to: responding to the amplification window awakening operation triggered by the ultra-high-definition video, and displaying an amplification factor adjusting control on a display interface of the ultra-high-definition video;
the apparatus further comprises: a first magnification adjustment module; the first magnification adjustment module is used for responding to the magnification adjustment operation triggered by the magnification adjustment control and adjusting the magnification corresponding to the magnification window.
Optionally, the magnification adjustment control is a magnification adjustment wheel disc; the first magnification adjustment module is specifically configured to: and determining the magnification displayed at the magnification adjustment result on the magnification adjustment wheel disc when the sliding operation is stopped according to the sliding operation triggered by aiming at the magnification adjustment wheel disc, and taking the magnification as the magnification corresponding to the magnification window.
Optionally, on the basis of the video amplifying apparatus shown in fig. 9, the apparatus further includes: a second magnification adjustment module; the second magnification adjustment module is configured to adjust a magnification corresponding to the magnification window in at least one of the following manners:
responding to a first magnification adjusting gesture triggered in the magnifying window, and adjusting the corresponding magnification of the magnifying window;
and responding to a second magnification adjusting gesture triggered in a video picture of the ultra-high definition video, wherein the second magnification adjusting gesture is not in the target magnification area, and the magnification corresponding to the magnification window is adjusted.
Optionally, on the basis of the video amplifying apparatus shown in fig. 9, the apparatus further includes: an enlargement area full screen display module; and the magnified area full-screen display module is used for responding to full-screen display operation triggered by the magnified window and displaying a magnified image corresponding to the image in the target magnified area in a full-screen manner on the display interface.
Optionally, on the basis of the video amplifying apparatus shown in fig. 9, the apparatus further includes: the video picture scaling module is used for responding to scaling operation triggered by a video picture aiming at the ultra-high-definition video and displaying a scaled image corresponding to an image in a target area in the video picture on the display interface; the zooming image is obtained by zooming the image in the target area according to the zooming proportion corresponding to the zooming operation; the target enlargement area is determined according to the display position of the enlargement window in the target area, the scaling corresponding to the scaling operation and the enlargement ratio corresponding to the enlargement window; the magnified image is obtained by magnifying the zoomed image in the target magnified region based on the magnification corresponding to the magnified window.
Optionally, the video image zooming module is further configured to adjust a target area in the video image displayed on the display interface in response to a drag operation triggered with respect to the target area displayed on the display interface.
Optionally, the video frame scaling module is further configured to cancel displaying the magnified window in response to the triggered magnified window closing function, and keep displaying the scaled image corresponding to the image in the target area on the display interface.
The video amplification device provided by the embodiment of the application creatively provides an amplification function for ultra high definition videos, the amplification function supports that a user triggers an amplification window to wake up in the process of watching the ultra high definition videos, and correspondingly displays an amplification window in a display interface of the ultra high definition videos, and then, amplified images corresponding to images in a target amplification area in a video picture are displayed through the amplification window based on the resolution of the ultra high definition videos; therefore, the user can better watch the details in the video picture of the ultra-high definition video through the amplifying window, so that the user can more intuitively feel the advantages of the ultra-high definition video, such as multiple details, high definition and the like, and better viewing experience of the ultra-high definition video is obtained.
The embodiment of the present application further provides a device for supporting video amplification, where the device may specifically be a terminal device, and the terminal device and the server provided in the embodiment of the present application are described below from the perspective of hardware materialization.
Referring to fig. 10, fig. 10 is a schematic structural diagram of a terminal device provided in an embodiment of the present application. As shown in fig. 10, for convenience of explanation, only the parts related to the embodiments of the present application are shown, and details of the technology are not disclosed, please refer to the method part of the embodiments of the present application. The terminal may be any terminal device including a mobile phone, a tablet computer, a personal digital assistant, a Point of Sales (POS), a vehicle-mounted computer, and the like, taking the terminal as a computer as an example:
fig. 10 is a block diagram showing a partial structure of a computer related to a terminal provided in an embodiment of the present application. Referring to fig. 10, the computer includes: radio Frequency (RF) circuitry 1010, memory 1020, input unit 1030 (including touch panel 1031 and other input devices 1032), display unit 1040 (including display panel 1041), sensors 1050, audio circuitry 1060 (which may connect speaker 1061 and microphone 1062), wireless fidelity (WiFi) module 1070, processor 1080, and power source 1090. Those skilled in the art will appreciate that the computer architecture shown in FIG. 10 is not intended to be limiting of computers, and may include more or fewer components than those shown, or some components in combination, or a different arrangement of components.
The memory 1020 can be used for storing software programs and modules, and the processor 1080 executes various functional applications and data processing of the computer by operating the software programs and modules stored in the memory 1020. The memory 1020 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the computer, etc. Further, the memory 1020 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 1080 is a control center of the computer, connects various parts of the entire computer using various interfaces and lines, performs various functions of the computer and processes data by operating or executing software programs and/or modules stored in the memory 1020 and calling data stored in the memory 1020, thereby monitoring the entire computer. Optionally, processor 1080 may include one or more processing units; preferably, the processor 1080 may integrate an application processor, which primarily handles operating systems, user interfaces, application programs, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 1080.
In the embodiment of the present application, the processor 1080 included in the terminal further has the following functions:
responding to an amplification window awakening operation triggered by the ultra-high-definition video, and displaying an amplification window on a display interface of the ultra-high-definition video;
displaying an enlarged image corresponding to an image in a target enlarged area in a video picture of the ultra high definition video in the enlarged window based on the resolution of the ultra high definition video; the target amplification area is determined according to the display position of the amplification window in the display interface and the amplification factor corresponding to the amplification window; the magnified image is obtained by magnifying the image in the target magnified region based on the magnification corresponding to the magnification window.
Optionally, the processor 1080 is further configured to execute the steps of any implementation manner of the video amplification method provided in the embodiment of the present application.
The embodiments of the present application further provide a computer-readable storage medium for storing a computer program, where the computer program is configured to execute any one implementation of the video amplification method described in the foregoing embodiments.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer readable storage medium, and the processor executes the computer instructions to enable the computer device to execute any one implementation manner of the video amplification method in the foregoing embodiments.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing computer programs.
It should be understood that in the present application, "at least one" means one or more, "a plurality" means two or more. "and/or" for describing an association relationship of associated objects, indicating that there may be three relationships, e.g., "a and/or B" may indicate: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of single item(s) or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b and c may be single or plural.
The above embodiments are only used for illustrating the technical solutions of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (15)

1. A method of video amplification, the method comprising:
responding to an amplification window awakening operation triggered by the ultra-high-definition video, and displaying an amplification window on a display interface of the ultra-high-definition video;
displaying an enlarged image corresponding to an image in a target enlarged area in a video picture of the ultra high definition video in the enlarged window based on the resolution of the ultra high definition video; the target amplification area is determined according to the display position of the amplification window in the display interface and the amplification factor corresponding to the amplification window; and the magnified image is obtained by magnifying the image in the target magnification area based on the magnification corresponding to the magnification window.
2. The method of claim 1, further comprising:
responding to the magnified window awakening operation triggered by the ultra-high-definition video, and displaying a window position adjusting control on a display interface of the ultra-high-definition video;
and responding to the window position adjusting operation triggered by the window position adjusting control, and adjusting the display position of the magnified window in the display interface.
3. The method of claim 2, wherein the window position adjustment control comprises a virtual rocker and a virtual rocker manipulation zone; the adjusting the display position of the magnified window in the display interface in response to the window position adjustment operation triggered by the window position adjustment control comprises:
determining a displacement parameter of the virtual rocker according to position adjustment operation triggered by the virtual rocker in the virtual rocker control area;
determining a position adjustment parameter corresponding to the amplification window according to the displacement parameter of the virtual rocker;
and adjusting the display position of the magnified window in the display interface according to the position adjustment parameter corresponding to the magnified window.
4. The method of claim 3, wherein determining the displacement parameter of the virtual rocker based on a position adjustment operation triggered for the virtual rocker within the virtual rocker manipulation zone comprises:
determining a position offset angle and a position offset of the virtual rocker according to position adjustment operation triggered by the virtual rocker in the virtual rocker control area, and determining the moving speed of the virtual rocker;
the determining of the position adjustment parameter corresponding to the amplification window according to the displacement parameter of the virtual rocker comprises the following steps:
determining a position adjustment direction and a position adjustment amount corresponding to the amplification window according to the position offset angle and the position offset of the virtual rocker; and determining the position adjusting speed corresponding to the amplifying window according to the moving speed of the virtual rocker.
5. The method of claim 1, further comprising adjusting the target magnification area in at least one of:
responding to a dragging operation triggered aiming at the amplification window on the display interface, adjusting the display position of the amplification window in the display interface, and adjusting a target amplification area in a video picture of the ultra-high-definition video;
responding to a drag operation triggered by the non-target amplification area in the video picture of the ultra-high-definition video, adjusting the display position of the video picture of the ultra-high-definition video in the display interface, and adjusting the target amplification area in the video picture of the ultra-high-definition video.
6. The method of claim 1, further comprising:
responding to the amplification window awakening operation triggered by the ultra-high-definition video, and displaying an amplification factor adjusting control on a display interface of the ultra-high-definition video;
and adjusting the magnification corresponding to the amplification window in response to the amplification adjustment operation triggered by the amplification adjustment control.
7. The method of claim 6, wherein the magnification adjustment control is a magnification adjustment wheel; the adjusting the magnification corresponding to the magnification window in response to the magnification adjustment operation triggered by the magnification adjustment control comprises:
and determining the magnification displayed at the magnification adjustment result on the magnification adjustment wheel disc when the sliding operation is stopped according to the sliding operation triggered by aiming at the magnification adjustment wheel disc, and taking the magnification as the magnification corresponding to the magnification window.
8. The method of claim 1, further comprising at least one of adjusting a magnification corresponding to the magnification window:
responding to a first magnification adjustment gesture triggered in the amplification window, and adjusting the amplification magnification corresponding to the amplification window;
and responding to a second magnification adjusting gesture triggered in a video picture of the ultra-high definition video, wherein the second magnification adjusting gesture is not in the target magnification area, and the magnification corresponding to the magnification window is adjusted.
9. The method of claim 1, further comprising:
and responding to a full-screen display operation triggered by the magnifying window, and displaying a magnified image corresponding to the image in the target magnifying area on the display interface in a full-screen mode.
10. The method of claim 1, further comprising:
in response to a zooming operation triggered by a video picture of the ultra-high-definition video, displaying a zoomed image corresponding to an image in a target area in the video picture on the display interface; the zooming image is obtained by zooming the image in the target area according to the zooming proportion corresponding to the zooming operation;
the target enlargement area is determined according to the display position of the enlargement window in the target area, the scaling corresponding to the scaling operation and the enlargement ratio corresponding to the enlargement window; the magnified image is obtained by magnifying the zoomed image in the target magnified region based on the magnification corresponding to the magnified window.
11. The method of claim 10, further comprising:
and adjusting the target area in the video picture displayed on the display interface in response to the drag operation triggered by the target area displayed on the display interface.
12. The method according to claim 10 or 11, characterized in that the method further comprises:
and in response to the triggered closing function of the magnifying window, canceling the displaying of the magnifying window, and reserving and displaying the zooming image corresponding to the image in the target area on the display interface.
13. A video amplification apparatus, the apparatus comprising:
the device comprises an amplification window awakening module, a display interface and a display interface, wherein the amplification window awakening module is used for responding to amplification window awakening operation triggered by the ultra-high-definition video and displaying an amplification window on the display interface of the ultra-high-definition video;
the amplified content display module is used for displaying an amplified image corresponding to an image in a target amplification area in a video picture of the ultra-high-definition video in the amplification window based on the resolution of the ultra-high-definition video; the target amplification area is determined according to the display position of the amplification window in the display interface and the amplification factor corresponding to the amplification window; the magnified image is obtained by magnifying the image in the target magnified region based on the magnification corresponding to the magnification window.
14. An apparatus, comprising a processor and a memory;
the memory is used for storing a computer program;
the processor is configured to execute the video amplification method of any one of claims 1 to 12 in accordance with the computer program.
15. A computer-readable storage medium for storing a computer program for executing the video enlarging method according to any one of claims 1 to 12.
CN202111005528.4A 2021-08-30 2021-08-30 Video amplification method, device, equipment and storage medium Pending CN115733937A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111005528.4A CN115733937A (en) 2021-08-30 2021-08-30 Video amplification method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111005528.4A CN115733937A (en) 2021-08-30 2021-08-30 Video amplification method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115733937A true CN115733937A (en) 2023-03-03

Family

ID=85290853

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111005528.4A Pending CN115733937A (en) 2021-08-30 2021-08-30 Video amplification method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115733937A (en)

Similar Documents

Publication Publication Date Title
CN107369197B (en) Picture processing method, device and equipment
KR101676555B1 (en) Picture display processing method and device
US20120036428A1 (en) Advanced scrolling
US20120064946A1 (en) Resizable filmstrip view of images
JP2013519935A (en) Apparatus and method for performing multitasking
CN103914258A (en) Mobile terminal and method for operating same
CN112637507B (en) Shooting method, shooting device, electronic equipment and readable storage medium
US9449584B2 (en) Display control apparatus, method for controlling the same, and storage medium
CN112954193B (en) Shooting method, shooting device, electronic equipment and medium
CN111669507A (en) Photographing method and device and electronic equipment
CN112099707A (en) Display method and device and electronic equipment
CN112221128B (en) Map adjusting method and related device
CN114546212B (en) Method, device and equipment for adjusting interface display state and storage medium
JP7446441B2 (en) Image cropping method and electronic equipment
EP3521987A1 (en) Method and device for displaying page, graphical user interface, and mobile terminal
WO2023274067A1 (en) Icon generation method and apparatus, electronic device, and readable storage medium
CN112394806A (en) User interface display method and device, electronic equipment and storage medium
CN113259743A (en) Video playing method and device and electronic equipment
CN111258698A (en) Object display method and device
CN111679772B (en) Screen recording method and system, multi-screen device and readable storage medium
CN114612584B (en) Image processing method, device, equipment and storage medium
CN115733937A (en) Video amplification method, device, equipment and storage medium
WO2022194211A1 (en) Image processing method and apparatus, electronic device and readable storage medium
CN102609193B (en) Electronic device and operation method thereof
CN115268816A (en) Split screen control method and device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40083076

Country of ref document: HK