CN117666990A - Screen projection display method and device, electronic equipment and storage medium - Google Patents

Screen projection display method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN117666990A
CN117666990A CN202211094418.4A CN202211094418A CN117666990A CN 117666990 A CN117666990 A CN 117666990A CN 202211094418 A CN202211094418 A CN 202211094418A CN 117666990 A CN117666990 A CN 117666990A
Authority
CN
China
Prior art keywords
screen
picture
display
height
width
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
CN202211094418.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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Guangzhou Shizhen Information Technology Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Guangzhou Shizhen Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd, Guangzhou Shizhen Information Technology Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN202211094418.4A priority Critical patent/CN117666990A/en
Publication of CN117666990A publication Critical patent/CN117666990A/en
Pending legal-status Critical Current

Links

Landscapes

  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a screen projection display method and device of a picture, electronic equipment and a storage medium, and belongs to the technical field of computers. The method is executed by a first device, and the first device is used for projecting a target picture to a second device; the method comprises the following steps: determining a first display width and a first display height of the target picture in the first device in a full-screen mode according to picture parameters of the target picture and screen parameters of the first device; under the condition that a screen throwing trigger event occurs and the screen parameters of the first equipment meet the cutting conditions, carrying out transverse cutting or longitudinal cutting based on the screen parameters and the screen parameters of the first equipment; and generating transmission data of the target picture based on the cutting result, and projecting the target picture to the second equipment for display based on the transmission data. According to the technical scheme, black edges can not appear when the picture is played on the conference all-in-one machine in a full screen mode, and the watching effect is improved.

Description

Screen projection display method and device, electronic equipment and storage medium
Technical Field
The application belongs to the technical field of computers, and particularly relates to a screen projection display method and device of a picture, electronic equipment and a storage medium.
Background
The screen display of the pictures is popular in places such as teaching, offices and the like, and the requirements of people on the effect of the screen display are higher.
At present, aiming at the problem that the proportion of the screen of the notebook is inconsistent with that of the projected screen when the screen is displayed, the black edge is generated when the screen is displayed, and the black edge is usually avoided when the screen is displayed by stretching the projected screen. However, the method is easy to cause problems of blurred pictures, uncooled picture proportion, influence on the watching experience of viewers and the like.
Disclosure of Invention
The embodiment of the application aims to provide a screen projection display method and device, electronic equipment and storage medium of a screen, and the problem that black edges appear in the screen projection screen due to different proportions of a notebook screen and a projection screen can be solved.
In a first aspect, an embodiment of the present application provides a method for displaying a screen, where the method is performed by a first device, and the first device is configured to screen a target screen to a second device; the method comprises the following steps:
determining a first display width and a first display height of the target picture in the first device in a full-screen mode according to picture parameters of the target picture and screen parameters of the first device;
Under the condition that a screen throwing trigger event occurs and the screen parameters of the first equipment meet a cutting condition, carrying out transverse cutting or longitudinal cutting based on the screen parameters and the screen parameters of the first equipment;
generating transmission data of a target picture based on a cutting result, and projecting the target picture to the second equipment for display based on the transmission data; wherein, the screen parameter of the second device is adapted to the picture parameter.
Further, the picture parameter includes a picture aspect ratio, and the screen parameter of the first device includes the screen aspect ratio of the first device;
if the aspect ratio of the picture is the same as the aspect ratio of the first device, determining a first display width and a first display height of the target picture in the first device for full-screen playing according to the picture parameter of the target picture and the screen parameter of the first device, including:
determining the first display width as the screen width of the first device, and determining the first display height as the screen height of the first device;
if the aspect ratio of the picture is smaller than the aspect ratio of the first device, determining a first display width and a first display height of the target picture in the first device for full-screen playing according to the picture parameter of the target picture and the screen parameter of the first device, including:
Determining that the first display width is the product of the screen height of the first device and the picture aspect ratio, and determining that the first display height is the screen height of the first device;
if the aspect ratio of the picture is greater than the aspect ratio of the first device, determining a first display width and a first display height of the target picture in the first device for full-screen playing according to the picture parameter of the target picture and the screen parameter of the first device, including:
determining the first display width as the screen width of the first device; the first display height is determined to be a quotient of a screen width and a picture aspect ratio of the first device.
Further, performing horizontal clipping or vertical clipping based on the picture parameter and the screen parameter of the first device includes:
in the case that the first display width is determined to be the product of the screen height and the picture aspect ratio of the first device, performing longitudinal clipping according to the screen width of the first device and the first display width;
in case that the first display height is determined to be the quotient of the screen width and the picture aspect ratio of the first device, the lateral clipping is performed according to the screen height of the first device and the first display height.
Further, the following formula is adopted for longitudinal clipping:
W'=|W-W 1 |/2;
wherein W' is the clipping width of the left boundary and the right boundary, W is the first display width, W 1 A screen width for the first device;
the following formula is adopted for transverse clipping:
H'=|H-H 1 |/2;
wherein H' is the clipping height of the upper boundary and the lower boundary, H is the first display height, H 1 Is the screen height of the first device.
In a second aspect, an embodiment of the present application provides another screen projection display method, where the method is performed by a second device, where the second device is configured to display a target screen projected by a first device; the method comprises the following steps:
receiving transmission data of a first device; the transmission data are picture data of a target picture which is played in a full screen in first equipment, and the proportion information of the picture data is consistent with the aspect ratio of the first equipment;
under the condition that the screen parameters of the second equipment and the screen parameters of the first equipment meet the cutting conditions, the transmission data are transversely cut or longitudinally cut based on the screen parameters of the second equipment and the screen parameters of the first equipment;
a second display width and a second display height of the target screen are generated based on the clipping result and projected in a screen of the second device.
Further, the screen parameter of the second device includes an aspect ratio of the second device, and the screen parameter of the first device includes an aspect ratio of the first device;
correspondingly, the transverse clipping or the longitudinal clipping of the transmission data is performed based on the screen parameters of the second device and the screen parameters of the first device, and the method comprises the following steps:
if the aspect ratio of the second device is smaller than the aspect ratio of the first device, determining that the second display width is the product of the screen height of the second device and the aspect ratio of the second device, and determining that the second display height is the screen height of the second device; and performing longitudinal cutting;
if the aspect ratio of the second device is larger than that of the first device, determining that the second display width is the screen width of the second device, and determining that the second display height is the quotient of the screen width and the aspect ratio of the second device; and transverse cutting is performed.
Further, the following formula is adopted for longitudinal clipping:
W”=|W-W 2 |/2;
wherein W' is the clipping width of the left boundary and the right boundary, W is the second display width, W 2 A screen width for the second device;
The following formula is adopted for transverse clipping:
H”=|H-H 2 |/2;
wherein H' is the clipping height of the upper boundary and the lower boundary, H is the second display height, H 2 Is the screen height of the second device.
In a third aspect, an embodiment of the present application provides a screen display device of a screen, where the device is configured in a first device, and the first device is configured to screen a target screen to a second device; the device comprises:
and a parameter determining module: the method comprises the steps of determining a first display width and a first display height of a target picture in a first device in a full-screen mode according to picture parameters of the target picture and screen parameters of the first device;
the first clipping module: the screen parameter adjustment device is used for performing transverse cutting or longitudinal cutting based on the screen parameter and the screen parameter of the first device under the condition that a screen throwing trigger event occurs and the screen parameter of the first device meet cutting conditions;
a transmission data generation module: the method comprises the steps of generating transmission data of a target picture based on a cutting result, and projecting the target picture to the second equipment for display based on the transmission data; wherein, the screen parameter of the second device is adapted to the picture parameter.
In a fourth aspect, an embodiment of the present application provides a screen display device of a screen, where the device is configured in a second device, and the second device is configured to display a target screen of a screen projected by a first device; the device comprises:
a transmission data receiving module: for receiving transmission data of a first device; the transmission data are picture data of a target picture which is played in a full screen in first equipment, and the proportion information of the picture data is consistent with the aspect ratio of the first equipment;
the second clipping module: the method comprises the steps of performing transverse cutting or longitudinal cutting on transmission data based on screen parameters of the second equipment and the screen parameters of the first equipment under the condition that the screen parameters of the second equipment and the screen parameters of the first equipment meet cutting conditions;
and a projection module: a second display width and a second display height for generating a target screen based on the clipping result, and projected in a screen of the second device.
In a fifth aspect, embodiments of the present application provide an electronic device comprising a processor, a memory, and a program or instruction stored on the memory and executable on the processor, the program or instruction implementing the steps of the method according to the first aspect when executed by the processor.
In a sixth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor implement the steps of the method according to the first aspect.
In a seventh aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and where the processor is configured to execute a program or instructions to implement a method according to the first aspect.
In the embodiment of the application, according to the picture parameters of the target picture and the screen parameters of the first equipment, determining a first display width and a first display height of the target picture in the first equipment in a full-screen mode; under the condition that a screen throwing trigger event occurs and the screen parameters of the first equipment meet the cutting conditions, carrying out transverse cutting or longitudinal cutting based on the screen parameters and the screen parameters of the first equipment; and generating transmission data of the target picture based on the cutting result, and projecting the target picture to the second equipment for display based on the transmission data. According to the technical scheme, the black edge can not be displayed when the picture is played on the conference all-in-one machine in a full screen mode, and the watching effect is improved.
Drawings
Fig. 1 is a flowchart of a screen projection display method of a screen according to an embodiment of the present application;
fig. 2 is a flow chart of another screen projection display method according to the second embodiment of the present application;
fig. 3 is a flow chart of another screen projection display method according to the third embodiment of the present application;
fig. 4 is a flowchart of another screen projection display method according to the fourth embodiment of the present application;
fig. 5 is a flowchart of another screen projection display method according to the fifth embodiment of the present application;
fig. 6 is a schematic structural diagram of a screen display device for a screen according to a sixth embodiment of the present application;
fig. 7 is a schematic structural diagram of another screen display device according to the sixth embodiment of the present application;
fig. 8 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present application more apparent, the following detailed description of specific embodiments thereof is given with reference to the accompanying drawings. It is to be understood that the specific embodiments described herein are merely illustrative of the application and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the matters related to the present application are shown in the accompanying drawings. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although a flowchart depicts operations (or steps) as a sequential process, many of the operations can be performed in parallel, concurrently, or at the same time. Furthermore, the order of the operations may be rearranged. The process may be terminated when its operations are completed, but may have additional steps not included in the figures. The processes may correspond to methods, functions, procedures, subroutines, and the like.
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The method, the device, the electronic equipment and the storage medium for displaying the screen provided by the embodiment of the application are described in detail below through specific embodiments and application scenes thereof with reference to the accompanying drawings.
Example 1
Fig. 1 is a flowchart of a screen projection display method of a screen according to an embodiment of the present application. As shown in fig. 1, the method specifically comprises the following steps:
s101, determining a first display width and a first display height of a target picture in the first device in a full-screen mode according to picture parameters of the target picture and screen parameters of the first device.
The use scene of the scheme is that the first device throws the target picture to the second device, and black edges are not existed when the picture is displayed on the projection screen in a full screen mode. The realization process can involve the operations of calculating the picture size and the screen size, cutting the image, and the like. In this embodiment, the projection screen may be a conference integrated machine. When the conference integrated machine displays the full screen, black edges are generated due to different display proportions of the first equipment and the second equipment, and the effect of the screen throwing of the picture can be affected.
The target picture may be a picture that is desired to be presented on a screen, and may include an image picture, a video picture, PPT, and the like. The picture parameters may be height, width, resolution, etc. of the picture. The first device may be a notebook computer or a desktop computer. The screen parameters of the first device may include pixel height, pixel width, pixel dot spacing, resolution, and the like. Full-screen playing of the target picture in the first device may mean that the target picture is enlarged into the whole screen for playing. The first display width may be a width of a screen displayed on the notebook screen, and the first display height may be a height of a screen displayed on the notebook screen.
In this embodiment, the width, height, and ratio of height and width of the target screen and the notebook screen are acquired, respectively. And comparing and calculating according to the acquired picture parameters and screen parameters, so as to further determine a first display width and a first display height of the target picture in the first equipment in a full-screen mode. For example, if the width of the target screen is 16, the height is 9, and the ratio is 16:9. the first device had a width of 18, a height of 9, and a ratio of 18: and 9, at the moment, the picture parameter is smaller than the screen parameter of the first equipment, and corresponding calculation is carried out according to the comparison result, so that the first display width and the first display height are determined.
Optionally, the screen parameter includes a screen aspect ratio, and the screen parameter of the first device includes the screen aspect ratio of the first device; according to the method, the device and the system, the aspect ratio of the picture and the aspect ratio of the screen of the first device can be directly obtained, the comparison and calculation efficiency can be further improved, and the problem that the display proportion of the first device is different from that of the second device is directly solved.
S102, under the condition that a screen throwing trigger event occurs and the screen parameters of the first equipment meet the cutting conditions, transverse cutting or longitudinal cutting is conducted based on the screen parameters and the screen parameters of the first equipment.
The screen projection trigger event can be determined according to the connection condition of the notebook computer and the projector, and when the notebook computer is connected with the projection equipment, the screen projection event can be determined. The clipping condition may be when the picture parameter does not coincide with the screen parameter of the first device, the clipping condition being satisfied. Otherwise, if the conditions are consistent, the clipping conditions are not satisfied. The lateral cropping may be performed by generating black edges at the upper and lower edges of the projected picture due to the picture parameters being smaller than the screen parameters of the first device. The portrait clipping may be performed by making the left and right edges in the projected picture black due to the picture parameter being larger than the screen parameter of the first device.
In the scheme, after a screen throwing trigger event occurs, whether a cutting condition is met or not can be known according to comparison of the picture parameter and the first equipment screen parameter, and the transverse cutting or longitudinal cutting and the cutting size can be determined based on the calculation result.
S103, generating transmission data of a target picture based on a cutting result, and projecting the target picture to the second equipment for display based on the transmission data; wherein, the screen parameter of the second device is adapted to the picture parameter.
The clipping results may be used to represent the size, scale, etc. of the clipped picture. The transmission data of the target picture may include size data, resolution data, and the like of the target picture. The second device may be a screen device capable of projecting a screen, which in this embodiment may be referred to as a conference kiosk. In this solution, optionally, the screen parameter of the second device is adapted to the picture parameter. The screen parameter of the second device may be the width, height, and ratio of width and height of the conference kiosk screen, etc. The phenomenon of black edges of the target picture when the target picture is displayed on the screen of the conference all-in-one machine can be further avoided.
According to the method, the picture parameters of the processed target picture can be obtained according to the cutting result, transmission data are generated according to the parameters, screen projection is performed according to the proportion of the target picture in the transmission data, and the screen is displayed on the screen of the second device.
In this embodiment, according to a picture parameter of a target picture and a screen parameter of a first device, a first display width and a first display height of the target picture in the first device for full-screen playing are determined; under the condition that a screen throwing trigger event occurs and the screen parameters of the first equipment meet the cutting conditions, carrying out transverse cutting or longitudinal cutting based on the screen parameters and the screen parameters of the first equipment; and generating transmission data of the target picture based on the cutting result, and projecting the target picture to the second equipment for display based on the transmission data. Therefore, the situation that the target picture generates black edges during the projection of the second equipment is avoided due to different display proportions of the first equipment and the second equipment, and the screen projection effect is improved.
Example two
Fig. 2 is a flow chart of another screen projection display method according to the second embodiment of the present application; as shown in fig. 2, the method comprises the following steps:
s201, if the picture aspect ratio is the same as the screen aspect ratio of the first device, determining that the first display width is the screen width of the first device according to the picture parameter of the target picture and the screen parameter of the first device, and determining that the first display height is the screen height of the first device.
In this embodiment, when the aspect ratio of the picture is the same as the aspect ratio of the first device, the black edge phenomenon does not occur when the target picture is projected on the conference integrated machine screen. Therefore, the first display width can be directly determined as the screen width of the first device without cutting the picture horizontally or vertically. The first display height is determined as a screen height of the first device.
S202, if the picture aspect ratio is smaller than that of the first device, determining that the first display width is the product of the screen height of the first device and the picture aspect ratio according to the picture parameter of the target picture and the screen parameter of the first device, and determining that the first display height is the screen height of the first device.
Illustratively, the picture aspect ratio is 16:9, the first device has an aspect ratio of 18:9, it can be understood that at this time, the aspect ratio of the screen is smaller than the aspect ratio of the first device, so that the first display width can be calculated to be 9×16/9=16, and since the screen height is the same as the first display height, the first display height can be directly used as the screen height of the first device. Thus, the first display width can be determined to be 16 and the first display height to be 9.
S203, if the picture aspect ratio is larger than that of the first equipment, determining that the first display width is the screen width of the first equipment according to the picture parameter of the target picture and the screen parameter of the first equipment; the first display height is determined to be a quotient of a screen width and a picture aspect ratio of the first device.
Illustratively, the picture aspect ratio is 16:9, the first device has an aspect ratio of 16:10, it can be appreciated that at this time, the aspect ratio of the picture is larger than the aspect ratio of the first device, and since the picture width is the same as the first display width, the first display width can be directly used as the screen width of the first device. The first display height can then be calculated as 16/(16/9) =9. Thus, the first display width can be determined to be 16 and the first display height to be 9.
In this embodiment, the aspect ratio of the picture is the same as the aspect ratio of the first device, and the aspect ratio of the picture is smaller than the aspect ratio of the first device and the aspect ratio of the picture is larger than the aspect ratio of the first device are calculated respectively, so that the width and the height of the screen of the first device are determined, it can be further ensured that the target picture is not affected by the display proportion during full-screen playing, and the effect of projecting the screen is prevented from being affected by displaying black edges.
Example III
Fig. 3 is a flow chart of another screen projection display method according to the third embodiment of the present application; as shown in fig. 3, the method comprises the following steps:
s301, in the case that the first display width is determined to be the product of the screen height and the picture aspect ratio of the first device, performing longitudinal clipping according to the screen width of the first device and the first display width.
Illustratively, in the above example, the first display width is 16 and the first display height is 9 as determined from the calculation. While the width of the first device is 18 and the height of the first device is 9. The first display height is the same as the height of the first device, and the width of the first device is larger than the first display width, so that the image width needs to be cropped.
S302, in the case that the first display height is determined to be the quotient of the screen width and the picture width-to-height ratio of the first device, performing transverse cutting according to the screen height of the first device and the first display height.
Illustratively, in the above example, the first display width is 16 and the first display height is 9 as determined from the calculation. While the width of the first device is 16 and the height of the first device is 10. The first display height is the same as the width of the first device, and the height of the first device is greater than the first display height, so that the height of the image needs to be cropped.
In this embodiment, in a case where the first display width is determined to be a product of the screen height and the aspect ratio of the first device, the vertical clipping is performed according to the screen width of the first device and the first display width; and under the condition that the first display height is determined to be the quotient of the screen width and the picture width-height ratio of the first equipment, performing transverse cutting according to the screen height of the first equipment and the first display height, thereby being beneficial to improving cutting precision and avoiding incomplete image pictures or black edges still existing due to errors in position or cutting height and width.
In this embodiment, optionally, the following formula is used for longitudinal clipping:
W'=|W-W 1 |/2;
wherein the method comprises the steps ofW' is the clipping width of the left boundary and the right boundary, W is the first display width, W 1 A screen width for the first device;
the following formula is adopted for transverse clipping:
H'=|H-H 1 |/2;
wherein H' is the clipping height of the upper boundary and the lower boundary, H is the first display height, H 1 Is the screen height of the first device.
Illustratively, in the above example, the first display width is 16 and the first display height is 9 are determined from the calculation. While the width of the first device is 18 and the height of the first device is 9. Thus requiring cropping of the image width. In this embodiment, since the target picture is played on the screen of the first device in full screen, the picture is in the middle of the screen, and the black edges on the screen are uniformly distributed at the positions on the left and right sides of the screen, the value of W' can be calculated by using the above formula, and the widths of the black edges on the left and right sides can be calculated to be |16-18|/2=1. Further, 1 width value needs to be cut longitudinally on the left and right sides of the screen.
Illustratively, in the above example, the first display width is 16 and the first display height is 9 are determined from the calculation. While the width of the first device is 16 and the height of the first device is 10. Therefore, the image height needs to be cut. It can be understood that the black edges on the screen are uniformly distributed at the upper and lower sides of the screen, so that the H' value can be calculated by the above formula, and the widths of the black edges on the upper and lower sides can be calculated to be |9-10|/2=0.5. Further, it is necessary to cut 0.5 height values laterally on both upper and lower sides of the screen.
In this embodiment, the longitudinal or transverse clipping is performed by the above formula, which is beneficial to improving clipping precision. Avoiding incomplete image frame or still black edge due to position or clipping height and width errors.
Example IV
Fig. 4 is a flowchart of another screen projection display method according to the fourth embodiment of the present application; as shown in fig. 4, the method comprises the following steps:
s401, receiving transmission data of first equipment; wherein the transmission data is picture data of a target picture which is played in a first device in a full screen mode, and the proportion information of the picture data is consistent with the aspect ratio of the first device.
The usage scenario of the embodiment is executed by a second device, where the second device is configured to display a target screen projected by the first device.
In this embodiment, optionally, the transmission data is picture data of a target picture that is played in the first device in a full screen. Wherein the second device is enabled to receive the transmission data from the first device via a data line connection or a wireless network connection. According to the method, the proportion information of the picture data of the target picture which is played in the first device in a full screen mode is consistent with the aspect ratio of the first device, and the situation that black edges cannot appear when the target picture is displayed in the second device can be guaranteed.
S402, under the condition that the screen parameters of the second equipment and the screen parameters of the first equipment meet the cutting conditions, the transmission data are transversely cut or longitudinally cut based on the screen parameters of the second equipment and the screen parameters of the first equipment.
In this embodiment, if the second device receives the transmission data of the first device, the proportion information of the picture data is inconsistent with the aspect ratio of the first device, and the clipping condition is satisfied, so that the second device needs to clip the received transmission data. For judging the specific implementation process of continuing to cut horizontally or longitudinally, reference may be made to the steps of the foregoing embodiments, which are not repeated herein.
S403, generating a second display width and a second display height of the target picture based on the clipping result, and projecting the second display width and the second display height in a screen of the second device.
The second display width may be a width of a screen displayed on the conference integration screen, and the second display height may be a height of a screen displayed on the conference integration screen. For a specific implementation process of generating the second display width and the second display height of the target frame, reference may be made to the steps of the foregoing embodiments, which are not described herein.
In this embodiment, the second device receives the transmission data of the first device; the transmission data are picture data of a target picture which is played in a full screen in first equipment, and the proportion information of the picture data is consistent with the aspect ratio of the first equipment; under the condition that the screen parameters of the second equipment and the screen parameters of the first equipment meet the cutting conditions, the transmission data are transversely cut or longitudinally cut based on the screen parameters of the second equipment and the screen parameters of the first equipment; a second display width and a second display height of the target screen are generated based on the clipping result and projected in a screen of the second device. Therefore, the situation that the target picture generates black edges during the projection of the second equipment is avoided due to different display proportions of the first equipment and the second equipment, and the screen projection effect is improved.
In this embodiment, optionally, the screen parameter of the second device includes an aspect ratio of the second device, and the screen parameter of the first device includes an aspect ratio of the first device. In the scheme, whether the proportion of the first equipment to the second equipment is the same or not can be directly judged through the aspect ratio of the second equipment and the aspect ratio of the first equipment, and a corresponding calculation method is adopted to solve the problem that the display proportion of the first equipment is different from the display proportion of the second equipment.
Example five
Fig. 5 is a flowchart of another screen projection display method according to the fifth embodiment of the present application; as shown in fig. 5, the method comprises the following steps:
s501, if the aspect ratio of the second device is smaller than that of the first device, determining that the second display width is the product of the screen height of the second device and the aspect ratio of the second device, and determining that the second display height is the screen height of the second device; and performing longitudinal cutting;
in this embodiment, when the width of the second device is smaller than the aspect ratio of the first device, the longitudinal clipping is performed, and the specific implementation process may refer to the steps of the foregoing embodiments, which are not described herein again.
S502, if the screen width-to-height ratio of the second device is larger than that of the first device, determining that the second display width is the screen width of the second device, and determining that the second display height is the quotient of the screen width and the screen width-to-height ratio of the second device; and transverse cutting is performed.
In this embodiment, when the width of the second device is larger than the aspect ratio of the first device, the lateral clipping is performed, and the specific implementation process may refer to the steps of the foregoing embodiments, which are not described herein again.
In this embodiment, the landscape clipping or the portrait clipping is determined by comparing the aspect ratio of the second device with the aspect ratio of the first device by the above method. The clipping precision is improved, and incomplete image frames or black edges still exist due to errors in positions or clipping heights and widths are avoided.
In this embodiment, optionally, the following formula is used for longitudinal clipping:
W”=|W-W 2 |/2;
wherein W' is the clipping width of the left boundary and the right boundary, W is the second display width, W 2 A screen width for the second device;
the following formula is adopted for transverse clipping:
H”=|H-H 2 |/2;
wherein H' is the clipping height of the upper boundary and the lower boundary, H is the second display height, H 2 Is the screen height of the second device.
The specific implementation process may refer to the third embodiment, and will not be described herein.
In this embodiment, the longitudinal or transverse clipping is performed by the above formula, which is beneficial to improving clipping precision. Avoiding incomplete image frame or still black edge due to position or clipping height and width errors.
It will be appreciated that in another possible embodiment, the screen information displayed by the first device may be directly displayed on the conference integrated machine, regardless of whether the sizes of the screen proportions of the first device and the second device are one or different, so as to provide a user with a choice of stretching up, down, left and right, and the user may stretch the screen horizontally or vertically as required, so as to satisfy the screen display of any size of the user. Comprising 16:9 is full screen or partially enlarged.
In a specific scenario, the implementation manner may include the following steps:
(1) In a meeting room, a user uses a computer to participate in a meeting;
(2) When the user speaks, the user can open the PPT and play the full screen;
(3) Then, the screen of the computer picture is projected to the conference integrated machine through screen projection software or a screen projector;
(4) At this time, the PPT projection screen is displayed on a large screen in a full screen mode and has no black edge.
The scheme is designed in such a way, and the problem that black edges exist in the process of playing pictures such as PPT in a specific scene can be solved in a simple and convenient mode. The processing of picture stretching not only can meet the black edge processing of PPT scenes, but also can meet the scene requirement of any picture scaling of users, and can be dragged and amplified freely.
Example six
Fig. 6 is a schematic structural diagram of a screen display device for a screen according to a sixth embodiment of the present application; as shown in fig. 6, the apparatus includes:
parameter determination module 61: the method comprises the steps of determining a first display width and a first display height of a target picture in a first device in a full-screen mode according to picture parameters of the target picture and screen parameters of the first device;
the first clipping module 62: the screen parameter adjustment device is used for performing transverse cutting or longitudinal cutting based on the screen parameter and the screen parameter of the first device under the condition that a screen throwing trigger event occurs and the screen parameter of the first device meet cutting conditions;
The transmission data generation module 63: the method comprises the steps of generating transmission data of a target picture based on a cutting result, and projecting the target picture to the second equipment for display based on the transmission data; wherein, the screen parameter of the second device is adapted to the picture parameter.
Fig. 7 is a schematic structural diagram of another screen display device according to the sixth embodiment of the present application; as shown in fig. 7, the apparatus includes:
the transmission data receiving module 71: for receiving transmission data of a first device; the transmission data are picture data of a target picture which is played in a full screen in first equipment, and the proportion information of the picture data is consistent with the aspect ratio of the first equipment;
the second clipping module 72: the method comprises the steps of performing transverse cutting or longitudinal cutting on transmission data based on screen parameters of the second equipment and the screen parameters of the first equipment under the condition that the screen parameters of the second equipment and the screen parameters of the first equipment meet cutting conditions;
projection module 73: a second display width and a second display height for generating a target screen based on the clipping result, and projected in a screen of the second device.
In this embodiment, according to a picture parameter of a target picture and a screen parameter of a first device, a first display width and a first display height of the target picture in the first device for full-screen playing are determined; under the condition that a screen throwing trigger event occurs and the screen parameters of the first equipment meet the cutting conditions, carrying out transverse cutting or longitudinal cutting based on the screen parameters and the screen parameters of the first equipment; and generating transmission data of the target picture based on the cutting result, and projecting the target picture to the second equipment for display based on the transmission data. Therefore, the situation that the target picture generates black edges during the projection of the second equipment is avoided due to different display proportions of the first equipment and the second equipment, and the screen projection effect is improved.
The device provided in this embodiment may be configured in the first device and the second device, respectively, and has functional modules and beneficial effects corresponding to the foregoing method embodiments, which are not described herein again.
Example seven
The embodiment of the application also provides electronic equipment, which can integrate the screen display device of the picture provided by the embodiment of the application. Fig. 8 is a schematic structural diagram of an electronic device according to a seventh embodiment of the present application. Referring to fig. 8, the computer apparatus includes: an input device 83, an output device 84, a memory 82, and one or more processors 81; a memory 82 for storing one or more programs; when the one or more programs are executed by the one or more processors 81, the one or more processors 81 implement the screen projection display method of the embodiment screen as described above. Wherein the input device 83, the output device 84, the memory 82 and the processor 81 may be connected by a bus or otherwise, for example in fig. 8. The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Example eight
The embodiment of the application further provides a readable storage medium, on which a program or an instruction is stored, where the program or the instruction realizes each process of the above-mentioned screen display method embodiment of the screen when being executed by a processor, and the same technical effect can be achieved, so that repetition is avoided, and no detailed description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
Example nine
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, the processor is used for running a program or an instruction, implementing each process of the above-mentioned screen display method embodiment, and achieving the same technical effect, so as to avoid repetition, and no further description is provided here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
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 apparatus 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 apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.
The foregoing description is only of the preferred embodiments of the present application and the technical principles employed. The present application is not limited to the specific embodiments described herein, but is capable of numerous obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the present application. Therefore, while the present application has been described in connection with the above embodiments, the present application is not limited to the above embodiments, but may include many other equivalent embodiments without departing from the spirit of the present application, and the scope of the present application is determined by the scope of the claims.

Claims (11)

1. A screen projection display method of a screen, wherein the method is executed by a first device, and the first device is used for projecting a target screen to a second device; the method comprises the following steps:
determining a first display width and a first display height of the target picture in the first device in a full-screen mode according to picture parameters of the target picture and screen parameters of the first device;
under the condition that a screen throwing trigger event occurs and the screen parameters of the first equipment meet a cutting condition, carrying out transverse cutting or longitudinal cutting based on the screen parameters and the screen parameters of the first equipment;
Generating transmission data of a target picture based on a cutting result, and projecting the target picture to the second equipment for display based on the transmission data; wherein, the screen parameter of the second device is adapted to the picture parameter.
2. The method of claim 1, wherein the picture parameter comprises a picture aspect ratio and the screen parameter of the first device comprises the first device's aspect ratio;
if the aspect ratio of the picture is the same as the aspect ratio of the first device, determining a first display width and a first display height of the target picture in the first device for full-screen playing according to the picture parameter of the target picture and the screen parameter of the first device, including:
determining the first display width as the screen width of the first device, and determining the first display height as the screen height of the first device;
if the aspect ratio of the picture is smaller than the aspect ratio of the first device, determining a first display width and a first display height of the target picture in the first device for full-screen playing according to the picture parameter of the target picture and the screen parameter of the first device, including:
Determining that the first display width is the product of the screen height of the first device and the picture aspect ratio, and determining that the first display height is the screen height of the first device;
if the aspect ratio of the picture is greater than the aspect ratio of the first device, determining a first display width and a first display height of the target picture in the first device for full-screen playing according to the picture parameter of the target picture and the screen parameter of the first device, including:
determining the first display width as the screen width of the first device; the first display height is determined to be a quotient of a screen width and a picture aspect ratio of the first device.
3. The method of claim 2, wherein performing either a landscape crop or a portrait crop based on the picture parameters and the screen parameters of the first device comprises:
in the case that the first display width is determined to be the product of the screen height and the picture aspect ratio of the first device, performing longitudinal clipping according to the screen width of the first device and the first display width;
in case that the first display height is determined to be the quotient of the screen width and the picture aspect ratio of the first device, the lateral clipping is performed according to the screen height of the first device and the first display height.
4. A method according to claim 3, characterized in that the longitudinal cropping is performed using the formula:
W'=|W-W 1 |/2;
wherein W' is the clipping width of the left boundary and the right boundary, W is the first display width, W 1 A screen width for the first device;
the following formula is adopted for transverse clipping:
H'=|H-H 1 |/2;
wherein H' is the clipping height of the upper boundary and the lower boundary, H is the first display height, H 1 Is the screen height of the first device.
5. A screen projection display method of a screen, wherein the method is executed by a second device, and the second device is used for displaying a target screen projected by a first device; the method comprises the following steps:
receiving transmission data of a first device; the transmission data are picture data of a target picture which is played in a full screen in first equipment, and the proportion information of the picture data is consistent with the aspect ratio of the first equipment;
under the condition that the screen parameters of the second equipment and the screen parameters of the first equipment meet the cutting conditions, the transmission data are transversely cut or longitudinally cut based on the screen parameters of the second equipment and the screen parameters of the first equipment;
a second display width and a second display height of the target screen are generated based on the clipping result and projected in a screen of the second device.
6. The method of claim 5, wherein the screen parameter of the second device comprises an aspect ratio of the second device and the screen parameter of the first device comprises an aspect ratio of the first device;
correspondingly, the transverse clipping or the longitudinal clipping of the transmission data is performed based on the screen parameters of the second device and the screen parameters of the first device, and the method comprises the following steps:
if the aspect ratio of the second device is smaller than the aspect ratio of the first device, determining that the second display width is the product of the screen height of the second device and the aspect ratio of the second device, and determining that the second display height is the screen height of the second device; and performing longitudinal cutting;
if the aspect ratio of the second device is larger than that of the first device, determining that the second display width is the screen width of the second device, and determining that the second display height is the quotient of the screen width and the aspect ratio of the second device; and transverse cutting is performed.
7. The method of claim 6, wherein the longitudinal cropping is performed using the formula:
W”=|W-W 2 |/2;
wherein W' is the clipping width of the left boundary and the right boundary, W is the second display width, W 2 A screen width for the second device;
the following formula is adopted for transverse clipping:
H”=|H-H 2 |/2;
wherein H' is the clipping height of the upper boundary and the lower boundary, H is the second display height, H 2 Is the screen height of the second device.
8. A screen projection display device of a screen, characterized in that the device is configured on a first device, and the first device is used for projecting a target screen to a second device; the device comprises:
and a parameter determining module: the method comprises the steps of determining a first display width and a first display height of a target picture in a first device in a full-screen mode according to picture parameters of the target picture and screen parameters of the first device;
the first clipping module: the screen parameter adjustment device is used for performing transverse cutting or longitudinal cutting based on the screen parameter and the screen parameter of the first device under the condition that a screen throwing trigger event occurs and the screen parameter of the first device meet cutting conditions;
a transmission data generation module: the method comprises the steps of generating transmission data of a target picture based on a cutting result, and projecting the target picture to the second equipment for display based on the transmission data; wherein, the screen parameter of the second device is adapted to the picture parameter.
9. A screen projection display device of a screen, characterized in that the device is configured on a second device, and the second device is used for displaying a target screen projected by a first device; the device comprises:
a transmission data receiving module: for receiving transmission data of a first device; the transmission data are picture data of a target picture which is played in a full screen in first equipment, and the proportion information of the picture data is consistent with the aspect ratio of the first equipment;
the second clipping module: the method comprises the steps of performing transverse cutting or longitudinal cutting on transmission data based on screen parameters of the second equipment and the screen parameters of the first equipment under the condition that the screen parameters of the second equipment and the screen parameters of the first equipment meet cutting conditions;
and a projection module: a second display width and a second display height for generating a target screen based on the clipping result, and projected in a screen of the second device.
10. An electronic device comprising a processor, a memory and a program or instruction stored on the memory and executable on the processor, the program or instruction when executed by the processor implementing the steps of the method of on-screen display of a picture as claimed in any one of claims 1 to 4 or claims 5 to 7.
11. A readable storage medium, wherein a program or instructions is stored on the readable storage medium, which when executed by a processor, implements the steps of the method for on-screen display of a picture according to any one of claims 1-4 or claims 5-7.
CN202211094418.4A 2022-09-06 2022-09-06 Screen projection display method and device, electronic equipment and storage medium Pending CN117666990A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211094418.4A CN117666990A (en) 2022-09-06 2022-09-06 Screen projection display method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211094418.4A CN117666990A (en) 2022-09-06 2022-09-06 Screen projection display method and device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117666990A true CN117666990A (en) 2024-03-08

Family

ID=90067005

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211094418.4A Pending CN117666990A (en) 2022-09-06 2022-09-06 Screen projection display method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117666990A (en)

Similar Documents

Publication Publication Date Title
US8464165B2 (en) Multi-way video conferencing user interface
US9973829B2 (en) Method for video communications and terminal, server and system for video communications
CN110446110B (en) Video playing method, video playing device and storage medium
CN110582027B (en) Method and related device for displaying message on smart television
WO2012025042A1 (en) Video screen display method and device
CN109829964B (en) Web augmented reality rendering method and device
US20230362328A1 (en) Video frame insertion method and apparatus, and electronic device
EP2492907B1 (en) Image processing apparatus, storage medium storing image processing program, and image processing method
CN112616078A (en) Screen projection processing method and device, electronic equipment and storage medium
WO2023005050A1 (en) Fully automatic multi-screen splicing method, device, and storage medium
CN114428597A (en) Multi-channel terminal screen projection control method and device, screen projector and storage medium
CN111835972B (en) Shooting method and device and electronic equipment
CN110264543B (en) Frame drawing method and device of spliced picture and storage medium
CN117666990A (en) Screen projection display method and device, electronic equipment and storage medium
CN110858388B (en) Method and device for enhancing video image quality
CN113810755B (en) Panoramic video preview method and device, electronic equipment and storage medium
US20230075654A1 (en) Processing method and apparatus
CN110933493A (en) Video rendering system, method and computer-readable storage medium
WO2023142370A1 (en) Screen mirroring display method and apparatus, and electronic device and readable storage medium
US20140351715A1 (en) System for tracking an active region on a small screen during a share session
CN116208733A (en) Video conference interaction method and device
CN108132716A (en) Method of adjustment, equipment and the computer readable storage medium of browse page
CN114155151A (en) Image drawing method, device, equipment and storage medium
CN114222188A (en) Full-screen display method, device and equipment based on rotary screen and storage medium
CN113791857A (en) Application window background fuzzy processing method and device in Linux system

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