CN113274728B - Dynamic resolution adjusting method, device, equipment and storage medium - Google Patents
Dynamic resolution adjusting method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN113274728B CN113274728B CN202110833863.7A CN202110833863A CN113274728B CN 113274728 B CN113274728 B CN 113274728B CN 202110833863 A CN202110833863 A CN 202110833863A CN 113274728 B CN113274728 B CN 113274728B
- Authority
- CN
- China
- Prior art keywords
- resolution
- current
- aspect ratio
- game
- resolution adjustment
- 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.)
- Active
Links
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/50—Controlling the output signals based on the game progress
- A63F13/52—Controlling the output signals based on the game progress involving aspects of the displayed game scene
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/30—Interconnection arrangements between game servers and game devices; Interconnection arrangements between game devices; Interconnection arrangements between game servers
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/40—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment
- A63F13/42—Processing input control signals of video game devices, e.g. signals generated by the player or derived from the environment by mapping the input signals into game commands, e.g. mapping the displacement of a stylus on a touch screen to the steering angle of a virtual vehicle
Abstract
The invention discloses a dynamic resolution adjustment method, a device, equipment and a storage medium, wherein the method obtains a resolution adjustment parameter of a synchronous current screen when receiving resolution change information or aspect ratio change information fed back by a client; adjusting the resolution of the game picture according to the resolution adjusting parameter to obtain a complete picture frame of the adjusted game picture; extracting the current aspect ratio and the current resolution of the complete picture frame, and finishing picture switching according to the current aspect ratio and the current resolution; can switch the recreation resolution ratio in real time, avoid the recreation picture to appear stretching and black border, ensure the continuity of recreation normal operation, can be applicable to the application or the equipment of multiresolution customer ends such as different folding screens and browsers, improve the smoothness degree of recreation operation, promote user experience.
Description
Technical Field
The present invention relates to the field of screen display technologies, and in particular, to a method, an apparatus, a device, and a storage medium for adjusting dynamic resolution.
Background
The cloud game is a game mode based on cloud computing, and in the running mode of the cloud game, all games run at a server, and a rendered game picture is compressed and then transmitted to a user through a network; at the client, the user's gaming device does not require any high-end processor and graphics card, but only basic video decompression capability.
At present, the cloud game cannot support dynamic resolution adjustment in the starting and running processes, so that in the process of folding a web page end or a folding screen of a mobile phone, due to the change of the resolution and the aspect ratio of a terminal, the original cloud game picture can be stretched or blackened.
Disclosure of Invention
The invention mainly aims to provide a method, a device, equipment and a storage medium for adjusting dynamic resolution, and aims to solve the technical problem that when the resolution and the aspect ratio of a webpage end or a mobile phone screen terminal are changed in the prior art, an original cloud game picture is stretched or black.
In a first aspect, the present invention provides a dynamic resolution adjustment method, including the steps of:
when resolution change information or aspect ratio change information fed back by a client is received, acquiring a resolution adjustment parameter of a synchronous current screen;
adjusting the resolution of the game picture according to the resolution adjusting parameter to obtain a complete picture frame of the adjusted game picture;
and extracting the current aspect ratio and the current resolution of the complete picture frame, and finishing picture switching according to the current aspect ratio and the current resolution.
Optionally, when receiving resolution change information or aspect ratio change information fed back by the client, obtaining a resolution adjustment parameter of a synchronous current screen includes:
and when the resolution change information or the aspect ratio change information fed back by the client is received, carrying out encoder resolution change and video resolution change to obtain a resolution adjustment parameter of the synchronous current screen.
Optionally, when receiving resolution change information or aspect ratio change information fed back by the client, performing encoder resolution change and video resolution change to obtain a resolution adjustment parameter for synchronizing the current screen, where the method includes:
when resolution change information or aspect ratio change information fed back by a client is received, controlling an encoder to perform encoder resolution change operation to obtain an encoder resolution adjustment parameter;
controlling a video capture and control flow transmission module to perform video resolution change operation to obtain video resolution adjustment parameters;
controlling a game running module to perform game running picture resolution change operation to obtain a game running resolution adjustment parameter;
and taking the encoder resolution adjustment parameter, the video resolution adjustment parameter and the game running resolution adjustment parameter as resolution adjustment parameters of a synchronous current screen.
Optionally, the adjusting the resolution of the game picture according to the resolution adjustment parameter to obtain a complete picture frame of the adjusted game picture includes:
determining the coordinate system offset input by a touch screen and/or a mouse according to the resolution adjustment parameter;
and adjusting the game picture according to the resolution adjustment parameter and the coordinate system offset to obtain a complete picture frame of the adjusted game picture.
Optionally, the determining, according to the resolution adjustment parameter, a coordinate system offset input by a touch screen and/or a mouse includes:
acquiring an original coordinate system input by a touch screen and/or a mouse of an original screen, and adjusting the position of each position coordinate in the original coordinate system according to the resolution adjustment parameter to obtain the position offset of each position coordinate;
and determining the coordinate system offset input by the touch screen and/or the mouse according to the position offset of each position coordinate.
Optionally, the adjusting the game frame according to the resolution adjustment parameter and the coordinate system offset to obtain a complete frame of the adjusted game frame includes:
and adjusting the resolution of the game picture according to the resolution adjustment parameter, and adjusting the game operation coordinate according to the coordinate system offset to obtain a complete picture frame of the adjusted game picture.
Optionally, the extracting a current aspect ratio and a current resolution of the full picture frame, and completing picture switching according to the current aspect ratio and the current resolution includes:
acquiring a decoding resolution adjustment parameter of a decoder;
extracting a corresponding current aspect ratio and a current resolution from the complete picture frame according to the decoding resolution adjustment parameter;
and finishing the picture switching of the game picture according to the current aspect ratio and the current resolution.
In a second aspect, to achieve the above object, the present invention further provides a dynamic resolution adjusting apparatus, including:
the synchronization module is used for obtaining the resolution adjustment parameter of the current synchronization screen when receiving the resolution change information or the aspect ratio change information fed back by the client;
the adjusting module is used for adjusting the resolution of the game picture according to the resolution adjusting parameter to obtain a complete picture frame of the adjusted game picture;
and the switching module is used for extracting the current aspect ratio and the current resolution of the complete picture frame and finishing picture switching according to the current aspect ratio and the current resolution.
In a third aspect, to achieve the above object, the present invention further provides a dynamic resolution adjusting apparatus, including: a memory, a processor and a dynamic resolution adjustment program stored on the memory and executable on the processor, the dynamic resolution adjustment program configured to implement the steps of the dynamic resolution adjustment method as described above.
In a fourth aspect, to achieve the above object, the present invention further provides a storage medium, on which a dynamic resolution adjustment program is stored, and the dynamic resolution adjustment program, when executed by a processor, implements the steps of the dynamic resolution adjustment method as described above.
According to the dynamic resolution adjusting method provided by the invention, the resolution adjusting parameters of the synchronous current screen are obtained when the resolution changing information or the aspect ratio changing information fed back by the client is received; adjusting the resolution of the game picture according to the resolution adjusting parameter to obtain a complete picture frame of the adjusted game picture; extracting the current aspect ratio and the current resolution of the complete picture frame, and finishing picture switching according to the current aspect ratio and the current resolution; can switch the recreation resolution ratio in real time, avoid the recreation picture to appear stretching and black border, ensure the continuity of recreation normal operation, can be applicable to the application or the equipment of multiresolution customer ends such as different folding screens and browsers, improve the smoothness degree of recreation operation, promote user experience.
Drawings
FIG. 1 is a schematic diagram of an apparatus architecture of a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating a dynamic resolution adjustment method according to a first embodiment of the present invention;
FIG. 3 is a flowchart illustrating a dynamic resolution adjustment method according to a second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a dynamic resolution adjustment method according to a third embodiment of the present invention;
FIG. 5 is a flowchart illustrating a dynamic resolution adjustment method according to a fourth embodiment of the present invention;
FIG. 6 is a flowchart illustrating a fifth embodiment of a dynamic resolution adjustment method according to the present invention;
FIG. 7 is a flowchart illustrating a method for adjusting dynamic resolution according to a sixth embodiment of the present invention;
FIG. 8 is a flowchart illustrating a seventh embodiment of a dynamic resolution adjustment method according to the present invention;
FIG. 9 is a functional block diagram of a dynamic resolution adjustment apparatus according to a first embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
The solution of the embodiment of the invention is mainly as follows: obtaining a resolution adjustment parameter of a synchronous current screen when receiving resolution change information or aspect ratio change information fed back by a client; adjusting the resolution of the game picture according to the resolution adjusting parameter to obtain a complete picture frame of the adjusted game picture; extracting the current aspect ratio and the current resolution of the complete picture frame, and finishing picture switching according to the current aspect ratio and the current resolution; can switch the recreation resolution ratio in real time, avoided the recreation picture to appear drawing and stretch and black limit, ensured the continuity of recreation normal operation, can be applicable to the application or the equipment of multiresolution customer ends such as different folding screens and browsers, improved the smoothness degree of recreation operation, promoted user experience, solved among the prior art when webpage end or cell-phone screen terminal resolution ratio and aspect ratio change, original cloud recreation picture can appear drawing and stretch or the technical problem on black limit.
Referring to fig. 1, fig. 1 is a schematic device structure diagram of a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the apparatus may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., a Wi-Fi interface). The Memory 1005 may be a high-speed RAM Memory or a Non-Volatile Memory (Non-Volatile Memory), such as a disk Memory. The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the configuration of the apparatus shown in fig. 1 is not intended to be limiting of the apparatus and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a storage medium, may include therein an operating system, a network communication module, a user interface module, and a dynamic resolution adjustment program.
The apparatus of the present invention calls the dynamic resolution adjustment program stored in the memory 1005 by the processor 1001, and performs the following operations:
when resolution change information or aspect ratio change information fed back by a client is received, acquiring a resolution adjustment parameter of a synchronous current screen;
adjusting the resolution of the game picture according to the resolution adjusting parameter to obtain a complete picture frame of the adjusted game picture;
and extracting the current aspect ratio and the current resolution of the complete picture frame, and finishing picture switching according to the current aspect ratio and the current resolution.
The apparatus of the present invention calls the dynamic resolution adjustment program stored in the memory 1005 through the processor 1001, and also performs the following operations:
and when the resolution change information or the aspect ratio change information fed back by the client is received, carrying out encoder resolution change and video resolution change to obtain a resolution adjustment parameter of the synchronous current screen.
The apparatus of the present invention calls the dynamic resolution adjustment program stored in the memory 1005 through the processor 1001, and also performs the following operations:
when resolution change information or aspect ratio change information fed back by a client is received, controlling an encoder to perform encoder resolution change operation to obtain an encoder resolution adjustment parameter;
controlling a video capture and control flow transmission module to perform video resolution change operation to obtain video resolution adjustment parameters;
controlling a game running module to perform game running picture resolution change operation to obtain a game running resolution adjustment parameter;
and taking the encoder resolution adjustment parameter, the video resolution adjustment parameter and the game running resolution adjustment parameter as resolution adjustment parameters of a synchronous current screen.
The apparatus of the present invention calls the dynamic resolution adjustment program stored in the memory 1005 through the processor 1001, and also performs the following operations:
determining the coordinate system offset input by a touch screen and/or a mouse according to the resolution adjustment parameter;
and adjusting the game picture according to the resolution adjustment parameter and the coordinate system offset to obtain a complete picture frame of the adjusted game picture.
The apparatus of the present invention calls the dynamic resolution adjustment program stored in the memory 1005 through the processor 1001, and also performs the following operations:
acquiring an original coordinate system input by a touch screen and/or a mouse of an original screen, and adjusting the position of each position coordinate in the original coordinate system according to the resolution adjustment parameter to obtain the position offset of each position coordinate;
and determining the coordinate system offset input by the touch screen and/or the mouse according to the position offset of each position coordinate.
The apparatus of the present invention calls the dynamic resolution adjustment program stored in the memory 1005 through the processor 1001, and also performs the following operations:
and adjusting the resolution of the game picture according to the resolution adjustment parameter, and adjusting the game operation coordinate according to the coordinate system offset to obtain a complete picture frame of the adjusted game picture.
The apparatus of the present invention calls the dynamic resolution adjustment program stored in the memory 1005 through the processor 1001, and also performs the following operations:
acquiring a decoding resolution adjustment parameter of a decoder;
extracting a corresponding current aspect ratio and a current resolution from the complete picture frame according to the decoding resolution adjustment parameter;
and finishing the picture switching of the game picture according to the current aspect ratio and the current resolution.
According to the scheme, the resolution adjusting parameters of the synchronous current screen are obtained when the resolution changing information or the aspect ratio changing information fed back by the client is received; adjusting the resolution of the game picture according to the resolution adjusting parameter to obtain a complete picture frame of the adjusted game picture; extracting the current aspect ratio and the current resolution of the complete picture frame, and finishing picture switching according to the current aspect ratio and the current resolution; can switch the recreation resolution ratio in real time, avoid the recreation picture to appear stretching and black border, ensure the continuity of recreation normal operation, can be applicable to the application or the equipment of multiresolution customer ends such as different folding screens and browsers, improve the smoothness degree of recreation operation, promote user experience.
Based on the hardware structure, the embodiment of the dynamic resolution adjusting method is provided.
Based on the hardware structure, the embodiment of the dynamic resolution adjusting method is provided.
Referring to fig. 2, fig. 2 is a flowchart illustrating a dynamic resolution adjustment method according to a first embodiment of the present invention.
In a first embodiment, the dynamic resolution adjustment method includes the steps of:
and step S10, obtaining the resolution adjustment parameter of the synchronous current screen when receiving the resolution change information or the aspect ratio change information fed back by the client.
It should be noted that the resolution change information is resolution change related information generated when the device application of the client detects a resolution change, the aspect ratio change information is aspect ratio change information generated when the device application of the client detects a change in an aspect ratio of a picture of a current game, and when the resolution change information or the aspect ratio change information is received, a resolution adjustment parameter for synchronizing a current screen may be obtained, where the resolution adjustment parameter is a parameter for performing resolution value adjustment on the current screen.
And step S20, adjusting the resolution of the game picture according to the resolution adjusting parameters to obtain the complete picture frame of the adjusted game picture.
It can be understood that the resolution of the game image of the current display device may be adjusted according to the resolution adjustment parameter, where the current display device may be a mobile phone, a tablet computer, a desktop computer, or other mobile terminals, and this embodiment is not limited thereto; after the resolution of the game picture is adjusted, a complete picture frame of the adjusted game picture can be obtained, wherein the complete picture frame is the complete picture frame in the video transmission after the resolution of the game picture is adjusted.
And step S30, extracting the current aspect ratio and the current resolution of the complete picture frame, and finishing picture switching according to the current aspect ratio and the current resolution.
It should be understood that the full-screen frame corresponds to a corresponding aspect ratio and resolution, and by extracting the corresponding values of the aspect ratio and the resolution, the screen switching of the whole game screen can be performed based on the full-screen frame.
According to the scheme, the resolution adjusting parameters of the synchronous current screen are obtained when the resolution changing information or the aspect ratio changing information fed back by the client is received; adjusting the resolution of the game picture according to the resolution adjusting parameter to obtain a complete picture frame of the adjusted game picture; extracting the current aspect ratio and the current resolution of the complete picture frame, and finishing picture switching according to the current aspect ratio and the current resolution; can switch the recreation resolution ratio in real time, avoid the recreation picture to appear stretching and black border, ensure the continuity of recreation normal operation, can be applicable to the application or the equipment of multiresolution customer ends such as different folding screens and browsers, improve the smoothness degree of recreation operation, promote user experience.
Further, fig. 3 is a flowchart illustrating a second embodiment of the dynamic resolution adjusting method according to the present invention, and as shown in fig. 3, the second embodiment of the dynamic resolution adjusting method according to the present invention is proposed based on the first embodiment, in this embodiment, the step S10 specifically includes the following steps:
and step S11, when the resolution change information or the aspect ratio change information fed back by the client is received, carrying out encoder resolution change and video resolution change to obtain the resolution adjustment parameter of the synchronous current screen.
It should be noted that, when receiving the resolution change information or the aspect ratio change information fed back by the client, the encoder of the server may change the resolution of the encoder, and change the resolution of the corresponding video, so as to obtain the resolution adjustment parameter for synchronizing the current screen.
According to the scheme, when resolution change information or aspect ratio change information fed back by a client is received, encoder resolution change and video resolution change are carried out, and a resolution adjustment parameter of a synchronous current screen is obtained; the resolution parameter can be accurately adjusted, so that the resolution of the current screen is accurately matched with the game picture, the real-time switching of the game resolution is realized, and the game picture is prevented from being stretched and blackened.
Further, fig. 4 is a flowchart illustrating a third embodiment of the dynamic resolution adjusting method according to the present invention, and as shown in fig. 4, the third embodiment of the dynamic resolution adjusting method according to the present invention is proposed based on the second embodiment, in this embodiment, the step S11 specifically includes the following steps:
and step S111, when the resolution change information or the aspect ratio change information fed back by the client is received, controlling the encoder to perform encoder resolution change operation to obtain an encoder resolution adjustment parameter.
It should be noted that, when the resolution change information or the aspect ratio change information is received, since the resolution or the aspect ratio changes, the encoding method of the corresponding data needs to be changed, that is, the encoder may be controlled to change the resolution of the encoder, so as to obtain the resolution adjustment parameter of the encoder.
And step S112, controlling the video capture and control flow transmission module to perform video resolution change operation to obtain video resolution adjustment parameters.
It can be understood that when the resolution or the aspect ratio is changed, the video resolution needs to be adjusted synchronously, that is, the video capture and control flow transmission module is controlled to perform video resolution change operation, so as to obtain the video resolution adjustment parameter.
And step S113, controlling the game running module to perform game running picture resolution change operation to obtain game running resolution adjustment parameters.
It should be understood that, when the resolution or the aspect ratio is changed, the resolution of the game running picture needs to be adjusted synchronously, that is, the game running module is controlled to perform the game running picture resolution changing operation to obtain the game running resolution adjusting parameter.
And step S114, taking the encoder resolution adjustment parameter, the video resolution adjustment parameter and the game running resolution adjustment parameter as resolution adjustment parameters of a synchronous current screen.
It can be understood that, resolution adjustment can be performed on various aspects of a game picture through the encoder resolution adjustment parameter, the video resolution adjustment parameter, and the game running resolution adjustment parameter, so that a current screen is synchronized with the game picture, and the encoder resolution adjustment parameter, the video resolution adjustment parameter, and the game running resolution adjustment parameter can be used as the resolution adjustment parameters.
According to the scheme, when resolution change information or aspect ratio change information fed back by a client is received, the encoder is controlled to perform encoder resolution change operation, and an encoder resolution adjustment parameter is obtained; controlling a video capture and control flow transmission module to perform video resolution change operation to obtain video resolution adjustment parameters; controlling a game running module to perform game running picture resolution change operation to obtain a game running resolution adjustment parameter; the resolution parameter can be accurately adjusted in a targeted and comprehensive manner according to the resolution adjustment parameter of the encoder, the video resolution adjustment parameter and the game running resolution adjustment parameter which are used as the resolution adjustment parameter of the synchronous current screen, so that the resolution of the current screen is accurately adapted to the game picture, the real-time game resolution switching is realized, and the phenomenon that the game picture is stretched and black is caused is avoided.
Further, fig. 5 is a schematic flowchart of a fourth embodiment of the dynamic resolution adjustment method of the present invention, and as shown in fig. 5, the fourth embodiment of the dynamic resolution adjustment method of the present invention is proposed based on the first embodiment, in this embodiment, the step S20 specifically includes the following steps:
and step S21, determining the coordinate system offset input by the touch screen and/or the mouse according to the resolution adjustment parameter.
It should be noted that the coordinate system offset input by the touch screen and/or the mouse in the game image display area of the current display screen can be determined by the resolution adjustment parameter, and the coordinate system offset is the relative distance that the screen coordinate system supported by the relevant coordinates released by the game skill needs to be offset relative to the original coordinate system.
And step S22, adjusting the game picture according to the resolution adjustment parameter and the coordinate system offset to obtain a complete picture frame of the adjusted game picture.
It can be understood that the game picture can be adjusted according to the resolution adjustment parameter and the coordinate system offset, the game picture is adapted to the game picture display area of the current display screen, and the coordinates on which the related operation of the game depends are correspondingly matched, so that a complete picture frame of the adjusted game picture is obtained.
According to the scheme, the coordinate system offset input by the touch screen and/or the mouse is determined according to the resolution adjusting parameter; and adjusting the game picture according to the resolution adjustment parameter and the coordinate system offset to obtain a complete picture frame of the adjusted game picture, so that the continuity of normal operation of the game can be guaranteed through adjustment of the game picture, the smoothness of game operation is improved, and the user experience is improved.
Further, fig. 6 is a flowchart illustrating a fifth embodiment of the dynamic resolution adjusting method according to the present invention, and as shown in fig. 6, the fifth embodiment of the dynamic resolution adjusting method according to the present invention is proposed based on the fourth embodiment, in this embodiment, the step S21 specifically includes the following steps:
and S211, acquiring an original coordinate system input by a touch screen and/or a mouse of an original screen, and adjusting the position of each position coordinate in the original coordinate system according to the resolution adjustment parameter to obtain the position offset of each position coordinate.
It should be noted that the original coordinate system is a positioning coordinate system corresponding to the game operation in the original game screen display area of the original screen, which may be a touch screen operation or a mouse control operation, and the position of each position coordinate of the game operation in the original coordinate system may be adjusted by the resolution adjustment parameter, that is, by adjusting the position of each position coordinate, each position coordinate used for the game operation is adapted to the game screen display area of the current display screen, so that the position offset of each position coordinate with respect to the position of the original coordinate system from the existing position may be obtained.
And S212, determining coordinate system offset input by the touch screen and/or the mouse according to the position offset of each position coordinate.
It should be appreciated that after the positional offsets for the respective positional coordinates are obtained, the coordinate system offset of the touch screen and/or mouse input coordinate system relative to the original coordinate system may be determined.
According to the scheme, the position offset of each position coordinate is obtained by obtaining an original coordinate system input by a touch screen and/or a mouse of an original screen and adjusting the position of each position coordinate in the original coordinate system according to the resolution adjustment parameter; the coordinate system offset input by the touch screen and/or the mouse is determined according to the position offset of each position coordinate, so that the synchronization of game operation and the game display area of the current screen can be ensured, the continuity of normal operation of the game is ensured, the smoothness of game operation is improved, and the user experience is improved.
Further, fig. 7 is a flowchart illustrating a sixth embodiment of the dynamic resolution adjusting method according to the present invention, and as shown in fig. 7, the sixth embodiment of the dynamic resolution adjusting method according to the present invention is proposed based on the fourth embodiment, in this embodiment, the step S22 specifically includes the following steps:
and step S221, adjusting the resolution of the game picture according to the resolution adjustment parameter, and adjusting the game operation coordinate according to the coordinate system offset to obtain a complete picture frame of the adjusted game picture.
It can be understood that the resolution of the game image can be adjusted by the resolution adjustment parameter, and the relevant coordinates of the game operation, such as a function menu of the game and relevant coordinates released by skill, can be adjusted by the coordinate system offset, so that the game image after resolution and coordinate adjustment can be obtained, and further, a complete image frame can be extracted from the game image.
According to the scheme, the resolution of the game picture is adjusted according to the resolution adjusting parameter, the game operation coordinate is adjusted according to the coordinate system offset, the complete picture frame of the adjusted game picture is obtained, the resolution parameter can be adjusted accurately on the whole, the resolution of the current screen is enabled to be matched with the game picture accurately, real-time game resolution switching is achieved, and the game picture is prevented from being stretched and black.
Further, fig. 8 is a flowchart illustrating a seventh embodiment of the dynamic resolution adjusting method according to the present invention, and as shown in fig. 8, the seventh embodiment of the dynamic resolution adjusting method according to the present invention is proposed based on the first embodiment, in this embodiment, the step S30 specifically includes the following steps:
step S31, the decoding resolution adjustment parameter of the decoder is acquired.
It should be noted that, after a complete picture frame is obtained, the relevant data corresponding to the game picture may be decoded, and at this time, since the game picture is changed before the resolution is changed, the previous decoding adjustment parameter is not applicable, and a new decoding resolution adjustment parameter adapted to the current game picture needs to be applied.
Step S32, extracting the corresponding current aspect ratio and current resolution from the full picture frame according to the decoding resolution adjustment parameter.
It is understood that the current aspect ratio and the current resolution corresponding to the full picture frame can be extracted from the full picture frame by the decoding resolution adjustment parameter.
And step S33, finishing the picture switching of the game picture according to the current aspect ratio and the current resolution.
It should be understood that, by completing the screen switching of the game screen according to the current aspect ratio and the current resolution, it is ensured that the client does not feel the stretching and deformation of the screen, and the dynamic adjustment can be realized without shutdown and restart of the server-side game.
According to the scheme, the decoding resolution adjustment parameter of the decoder is obtained; extracting a corresponding current aspect ratio and a current resolution from the complete picture frame according to the decoding resolution adjustment parameter; finishing the picture switching of the game picture according to the current aspect ratio and the current resolution; the method and the system can ensure that the client can not feel the stretching and deformation of the picture, can realize dynamic adjustment under the condition that the game of the server is not closed and restarted, improve the smoothness of game operation and improve the user experience.
Accordingly, the invention further provides a dynamic resolution adjusting device.
Referring to fig. 9, fig. 9 is a functional block diagram of a dynamic resolution adjustment apparatus according to a first embodiment of the present invention.
In a first embodiment of the dynamic resolution adjusting apparatus according to the present invention, the dynamic resolution adjusting apparatus includes:
and the synchronization module 10 is configured to obtain a resolution adjustment parameter of a current synchronization screen when receiving resolution change information or aspect ratio change information fed back by the client.
And the adjusting module 20 is configured to adjust the resolution of the game picture according to the resolution adjusting parameter, and obtain a complete picture frame of the adjusted game picture.
And the switching module 30 is configured to extract a current aspect ratio and a current resolution of the complete picture frame, and complete picture switching according to the current aspect ratio and the current resolution.
The synchronization module 10 is further configured to perform encoder resolution change and video resolution change when receiving resolution change information or aspect ratio change information fed back by the client, so as to obtain a resolution adjustment parameter for synchronizing the current screen.
The synchronization module 10 is further configured to control the encoder to perform encoder resolution change operation when receiving resolution change information or aspect ratio change information fed back by the client, so as to obtain an encoder resolution adjustment parameter; controlling a video capture and control flow transmission module to perform video resolution change operation to obtain video resolution adjustment parameters; controlling a game running module to perform game running picture resolution change operation to obtain a game running resolution adjustment parameter; and taking the encoder resolution adjustment parameter, the video resolution adjustment parameter and the game running resolution adjustment parameter as resolution adjustment parameters of a synchronous current screen.
The adjusting module 20 is further configured to determine a coordinate system offset input by the touch screen and/or the mouse according to the resolution adjusting parameter; and adjusting the game picture according to the resolution adjustment parameter and the coordinate system offset to obtain a complete picture frame of the adjusted game picture.
The adjusting module 20 is further configured to obtain an original coordinate system input by a touch screen and/or a mouse of an original screen, adjust the position of each position coordinate in the original coordinate system according to the resolution adjusting parameter, and obtain a position offset of each position coordinate; and determining the coordinate system offset input by the touch screen and/or the mouse according to the position offset of each position coordinate.
The adjusting module 20 is further configured to adjust the resolution of the game screen according to the resolution adjusting parameter, and adjust the game operation coordinate according to the coordinate system offset to obtain a complete frame of the adjusted game screen.
The switching module 30 is further configured to obtain a decoding resolution adjustment parameter of the decoder; extracting a corresponding current aspect ratio and a current resolution from the complete picture frame according to the decoding resolution adjustment parameter; and finishing the picture switching of the game picture according to the current aspect ratio and the current resolution.
The steps implemented by the functional modules of the dynamic resolution adjustment apparatus may refer to the embodiments of the dynamic resolution adjustment method of the present invention, and are not described herein again.
In addition, an embodiment of the present invention further provides a storage medium, where a dynamic resolution adjustment program is stored on the storage medium, and when executed by a processor, the dynamic resolution adjustment program implements the following operations:
when resolution change information or aspect ratio change information fed back by a client is received, acquiring a resolution adjustment parameter of a synchronous current screen;
adjusting the resolution of the game picture according to the resolution adjusting parameter to obtain a complete picture frame of the adjusted game picture;
and extracting the current aspect ratio and the current resolution of the complete picture frame, and finishing picture switching according to the current aspect ratio and the current resolution.
Further, the dynamic resolution adjustment program when executed by the processor further performs the following operations:
and when the resolution change information or the aspect ratio change information fed back by the client is received, carrying out encoder resolution change and video resolution change to obtain a resolution adjustment parameter of the synchronous current screen.
Further, the dynamic resolution adjustment program when executed by the processor further performs the following operations:
when resolution change information or aspect ratio change information fed back by a client is received, controlling an encoder to perform encoder resolution change operation to obtain an encoder resolution adjustment parameter;
controlling a video capture and control flow transmission module to perform video resolution change operation to obtain video resolution adjustment parameters;
controlling a game running module to perform game running picture resolution change operation to obtain a game running resolution adjustment parameter;
and taking the encoder resolution adjustment parameter, the video resolution adjustment parameter and the game running resolution adjustment parameter as resolution adjustment parameters of a synchronous current screen.
Further, the dynamic resolution adjustment program when executed by the processor further performs the following operations:
determining the coordinate system offset input by a touch screen and/or a mouse according to the resolution adjustment parameter;
and adjusting the game picture according to the resolution adjustment parameter and the coordinate system offset to obtain a complete picture frame of the adjusted game picture.
Further, the dynamic resolution adjustment program when executed by the processor further performs the following operations:
acquiring an original coordinate system input by a touch screen and/or a mouse of an original screen, and adjusting the position of each position coordinate in the original coordinate system according to the resolution adjustment parameter to obtain the position offset of each position coordinate;
and determining the coordinate system offset input by the touch screen and/or the mouse according to the position offset of each position coordinate.
Further, the dynamic resolution adjustment program when executed by the processor further performs the following operations:
and adjusting the resolution of the game picture according to the resolution adjustment parameter, and adjusting the game operation coordinate according to the coordinate system offset to obtain a complete picture frame of the adjusted game picture.
Further, the dynamic resolution adjustment program when executed by the processor further performs the following operations:
acquiring a decoding resolution adjustment parameter of a decoder;
extracting a corresponding current aspect ratio and a current resolution from the complete picture frame according to the decoding resolution adjustment parameter;
and finishing the picture switching of the game picture according to the current aspect ratio and the current resolution.
According to the scheme, the resolution adjusting parameters of the synchronous current screen are obtained when the resolution changing information or the aspect ratio changing information fed back by the client is received; adjusting the resolution of the game picture according to the resolution adjusting parameter to obtain a complete picture frame of the adjusted game picture; extracting the current aspect ratio and the current resolution of the complete picture frame, and finishing picture switching according to the current aspect ratio and the current resolution; can switch the recreation resolution ratio in real time, avoid the recreation picture to appear stretching and black border, ensure the continuity of recreation normal operation, can be applicable to the application or the equipment of multiresolution customer ends such as different folding screens and browsers, improve the smoothness degree of recreation operation, promote user experience.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (6)
1. A dynamic resolution adjustment method, characterized in that the dynamic resolution adjustment method comprises:
when a folding screen performs a folding action, when resolution change information and aspect ratio change information fed back by a client are received, encoder resolution change and video resolution change are performed to obtain a resolution adjustment parameter of a synchronous current screen, wherein the resolution change information is resolution change related information generated when a device application of the client detects a resolution change, and the aspect ratio change information is aspect ratio change information generated when the device application of the client detects a change of an aspect ratio of a picture of a current game; the resolution adjustment parameters specifically comprise an encoder resolution adjustment parameter, a video resolution adjustment parameter and a game running resolution adjustment parameter;
acquiring an original coordinate system input by a touch screen and/or a mouse of an original screen, adjusting the position of each position coordinate in the original coordinate system according to the resolution adjustment parameter to obtain the position offset of each position coordinate, and determining the coordinate system offset input by the touch screen and/or the mouse according to the position offset of each position coordinate; adjusting the resolution of the game picture according to the resolution adjustment parameter, and adjusting the game operation coordinate according to the coordinate system offset to obtain a complete picture frame of the adjusted game picture;
and extracting the current aspect ratio and the current resolution of the complete picture frame, and finishing picture switching according to the current aspect ratio and the current resolution.
2. The dynamic resolution adjustment method of claim 1, wherein the performing the encoder resolution change and the video resolution change to obtain the resolution adjustment parameter of the current screen when receiving the resolution change information and the aspect ratio change information fed back by the client comprises:
when resolution change information and aspect ratio change information fed back by a client are received, controlling an encoder to perform encoder resolution change operation to obtain an encoder resolution adjustment parameter;
controlling a video capture and control flow transmission module to perform video resolution change operation to obtain the video resolution adjustment parameter;
and controlling a game running module to perform game running picture resolution change operation to obtain the game running resolution adjustment parameter.
3. The dynamic resolution adjustment method according to any one of claims 1-2, wherein said extracting a current aspect ratio and a current resolution of the full picture frame, and performing picture switching according to the current aspect ratio and the current resolution comprises:
acquiring a decoding resolution adjustment parameter of a decoder;
extracting a corresponding current aspect ratio and a current resolution from the complete picture frame according to the decoding resolution adjustment parameter;
and finishing the picture switching of the game picture according to the current aspect ratio and the current resolution.
4. A dynamic resolution adjustment apparatus, characterized in that the dynamic resolution adjustment apparatus comprises:
the system comprises a synchronization module, a video resolution adjustment module and a video resolution adjustment module, wherein the synchronization module is used for carrying out encoder resolution change and video resolution change when receiving resolution change information and aspect ratio change information fed back by a client in the process of folding a folding screen to obtain resolution adjustment parameters of a current synchronous screen, the resolution change information is resolution change related information generated when the resolution change is detected by equipment application of the client, and the aspect ratio change information is aspect ratio change information generated when the aspect ratio of a picture of a current game is detected by the equipment application of the client; the resolution adjustment parameters specifically comprise an encoder resolution adjustment parameter, a video resolution adjustment parameter and a game running resolution adjustment parameter;
the adjusting module is used for acquiring an original coordinate system input by a touch screen and/or a mouse of an original screen, adjusting the position of each position coordinate in the original coordinate system according to the resolution adjusting parameter, acquiring the position offset of each position coordinate, and determining the coordinate system offset input by the touch screen and/or the mouse according to the position offset of each position coordinate; adjusting the resolution of the game picture according to the resolution adjustment parameter, and adjusting the game operation coordinate according to the coordinate system offset to obtain a complete picture frame of the adjusted game picture;
and the switching module is used for extracting the current aspect ratio and the current resolution of the complete picture frame and finishing picture switching according to the current aspect ratio and the current resolution.
5. A dynamic resolution adjusting apparatus, characterized in that the dynamic resolution adjusting apparatus comprises: a memory, a processor and a dynamic resolution adjustment program stored on the memory and executable on the processor, the dynamic resolution adjustment program being configured to implement the steps of the dynamic resolution adjustment method of any of claims 1 to 3.
6. A storage medium having stored thereon a dynamic resolution adjustment program which, when executed by a processor, implements the steps of the dynamic resolution adjustment method according to any one of claims 1 to 3.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110833863.7A CN113274728B (en) | 2021-07-23 | 2021-07-23 | Dynamic resolution adjusting method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110833863.7A CN113274728B (en) | 2021-07-23 | 2021-07-23 | Dynamic resolution adjusting method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN113274728A CN113274728A (en) | 2021-08-20 |
CN113274728B true CN113274728B (en) | 2021-11-16 |
Family
ID=77287037
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110833863.7A Active CN113274728B (en) | 2021-07-23 | 2021-07-23 | Dynamic resolution adjusting method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113274728B (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104281427A (en) * | 2014-03-10 | 2015-01-14 | 深圳深讯和科技有限公司 | Video data processing method and system in interactive application |
CN110427150A (en) * | 2019-08-08 | 2019-11-08 | 北京字节跳动网络技术有限公司 | Display methods, device, electronic equipment and the computer-readable medium of application program |
CN111544886A (en) * | 2020-04-30 | 2020-08-18 | 腾讯科技(深圳)有限公司 | Picture display method and related device |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102984494B (en) * | 2012-12-06 | 2015-11-25 | 小米科技有限责任公司 | A kind of video communication method and device |
-
2021
- 2021-07-23 CN CN202110833863.7A patent/CN113274728B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104281427A (en) * | 2014-03-10 | 2015-01-14 | 深圳深讯和科技有限公司 | Video data processing method and system in interactive application |
CN110427150A (en) * | 2019-08-08 | 2019-11-08 | 北京字节跳动网络技术有限公司 | Display methods, device, electronic equipment and the computer-readable medium of application program |
CN111544886A (en) * | 2020-04-30 | 2020-08-18 | 腾讯科技(深圳)有限公司 | Picture display method and related device |
Also Published As
Publication number | Publication date |
---|---|
CN113274728A (en) | 2021-08-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5451397B2 (en) | An architecture for delivering video content in response to remote interaction | |
CN111433743B (en) | APP remote control method and related equipment | |
EP4296851A1 (en) | Method and apparatus for displaying application picture, and terminal, screen projection system and medium | |
US8001213B2 (en) | Method, apparatus and computer program product for providing unrestricted content on a user terminal | |
CN111552530A (en) | Terminal screen adapting method, device and equipment for user interface | |
CN112114928B (en) | Processing method and device for display page | |
CN108989869B (en) | Video picture playing method, device, equipment and computer readable storage medium | |
CN106896899A (en) | A kind of control method of mobile terminal Image Rendering, device and mobile terminal | |
CN112351093A (en) | Screenshot image sharing method, device and equipment and computer readable storage medium | |
CN111381749A (en) | Image display and processing method, device, equipment and storage medium | |
JP2003316490A (en) | Remote control system and method thereof | |
CN113274728B (en) | Dynamic resolution adjusting method, device, equipment and storage medium | |
CN112383812A (en) | Television-side screen capture sharing method, television side, mobile terminal and system | |
CN112328193A (en) | Multi-terminal screen combination method, device, equipment and computer storage medium | |
JP2012079188A (en) | Style information processor and method | |
JP6146230B2 (en) | Relay device, thin client system, relay method, and relay program | |
CN106383705B (en) | Method and device for setting mouse display state in application thin client | |
CN110704764B (en) | Method and system for processing page switching of IPTV browser | |
CN112988310A (en) | Online experiment method based on multi-split-screen browser | |
CN113805987A (en) | Application initialization display method and device, intelligent terminal and readable storage medium | |
Taivalsaari et al. | Cloud browser: enhancing the web browser with cloud sessions and downloadable user interface | |
CN113051010B (en) | Application picture adjustment method and related device in wearable equipment | |
CN113126942B (en) | Method and device for displaying cover picture, electronic equipment and storage medium | |
CN111163138B (en) | Method, device and server for reducing network load during game | |
CN113271502B (en) | Video barrage-based data display method and device and computer equipment |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |