CN117640907A - Screen projection method, device, equipment and storage medium - Google Patents

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

Info

Publication number
CN117640907A
CN117640907A CN202210998424.6A CN202210998424A CN117640907A CN 117640907 A CN117640907 A CN 117640907A CN 202210998424 A CN202210998424 A CN 202210998424A CN 117640907 A CN117640907 A CN 117640907A
Authority
CN
China
Prior art keywords
color space
target
color
space information
determining
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
CN202210998424.6A
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 Shizhen Information Technology Co Ltd
Guangzhou Shikun Electronic Technology Co Ltd
Original Assignee
Guangzhou Shizhen Information Technology Co Ltd
Guangzhou Shikun Electronic 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 Shizhen Information Technology Co Ltd, Guangzhou Shikun Electronic Technology Co Ltd filed Critical Guangzhou Shizhen Information Technology Co Ltd
Priority to CN202210998424.6A priority Critical patent/CN117640907A/en
Publication of CN117640907A publication Critical patent/CN117640907A/en
Pending legal-status Critical Current

Links

Landscapes

  • Color Image Communication Systems (AREA)

Abstract

The invention discloses a screen projection method, a screen projection device, screen projection equipment and a storage medium. The method is executed by a receiving end, and the screen projection method comprises the following steps: receiving screen throwing screen data sent by a sending end and color space information of the sending end; determining target color space information of a receiving end according to the color space information of the transmitting end; and determining target screen data according to the target color space information of the receiving end and the screen throwing screen data, and displaying the target screen data. By the technical scheme, the method and the device can ensure that the color space of the screen display of the sending end is consistent with that of the screen display of the receiving end when the sending end sends the screen throwing screen data to the receiving end, so that the beneficial effect of improving the user experience is achieved.

Description

Screen projection method, device, equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a screen projection method, device, equipment and storage medium.
Background
In the existing screen projection technology, the device responsible for screen acquisition and coding transmission is called a transmitting end, and the device responsible for receiving data and decoding rendering playing is called a receiving end. The transmitting end collects the screen throwing screen data, the screen throwing screen data are transmitted to the receiving end through data transmission, the receiving end receives the screen throwing screen data, and the screen throwing screen data are processed and then rendered on a screen of the receiving end.
However, at present, the transmitting end only intercepts the data of the screen-throwing screen from the system level and transmits the data to the receiving end, but cannot synchronize the difference of the hardware screen to the receiving end, for example, the color temperature of the transmitting end may be warmer, the color temperature of the receiving end may be colder, so that a relatively obvious difference exists when the two screens of the transmitting end and the receiving end are simultaneously seen.
Disclosure of Invention
The embodiment of the invention provides a screen projection method, a device, equipment and a storage medium, which can ensure that the color space of screen display of a sending end is consistent with that of the screen display of a receiving end while the sending end sends screen projection data to the receiving end, thereby achieving the beneficial effect of improving user experience.
According to an aspect of the present invention, there is provided a screen projection method, which is executed by a receiving end, the screen projection method including:
receiving screen throwing screen data sent by a sending end and color space information of the sending end;
determining target color space information of a receiving end according to the color space information of the transmitting end;
and determining target screen data according to the target color space information of the receiving end and the screen throwing screen data, and displaying the target screen data.
Optionally, determining target color space information of the receiving end according to the color space information of the transmitting end includes:
determining a first parameter according to the color space information of the transmitting end;
determining a tristimulus value corresponding to each color in the first target color set according to the first target color set and the first parameter;
determining a second parameter according to a second target color set and a tristimulus value when the screen color of the receiving end is the color in the second target color set, wherein the color in the first target color set is different from the color in the second target color set;
determining a brightness value of R, a brightness value of G and a brightness value of B corresponding to the colors in the first target color set according to the tristimulus values corresponding to the colors in the first target color set and the second parameters;
and determining target color space information of the receiving end according to the brightness value of R, the brightness value of G and the brightness value of B corresponding to the colors in the first target color set.
Optionally, determining the target color space information of the receiving end according to the luminance value of R, the luminance value of G, and the luminance value of B corresponding to the colors in the first target color set includes:
And interpolating the brightness value of R, the brightness value of G and the brightness value of B corresponding to the colors in the first target color set to obtain target color space information of a receiving end.
Optionally, determining the first parameter according to the color space information of the transmitting end includes:
determining the color space type of the transmitting end according to the color space information of the transmitting end;
and determining a first parameter according to the color space type of the transmitting end.
Optionally, receiving color space information of the transmitting end sent by the transmitting end includes:
receiving an identifier sent by a sending end;
determining the name of the color space configuration file according to the identifier;
and determining the color space information of the transmitting end according to the name of the color space configuration file.
Optionally, determining the color space information of the transmitting end according to the name of the color space configuration file includes:
inquiring according to the name of the color space configuration file to obtain the color space configuration file;
and determining the color space information of the transmitting end according to the color space configuration file.
Optionally, the receiving identifier sent by the sending end includes:
acquiring configuration information of a transmitting end;
determining a target interface protocol according to the configuration information of the transmitting end;
And receiving the identifier sent by the sending end based on the target interface protocol.
Optionally, the screen projection method further includes:
acquiring primary color space information of the receiving end;
and after the screen projection is finished, recovering the primary color space information.
Optionally, the second target color set includes: red, green, and blue.
According to another aspect of the present invention, there is provided a screen projection apparatus, comprising:
the receiving module is used for receiving the screen throwing screen data sent by the sending end and the color space information of the sending end;
the first determining module is used for determining target color space information of the receiving end according to the color space information of the transmitting end;
and the second determining module is used for determining target screen data according to the target color space information of the receiving end and the screen throwing screen data and displaying the target screen data.
Optionally, the first determining module includes:
a first determining unit, configured to determine a first parameter according to color space information of the transmitting end;
the second determining unit is used for determining a tristimulus value corresponding to each color in the first target color set according to the first target color set and the first parameter;
A third determining unit, configured to determine a second parameter according to a second target color set and a tristimulus value when a screen color of the receiving end is a color in the second target color set, where the color in the first target color set is different from the color in the second target color set;
a fourth determining unit, configured to determine, according to the tristimulus values corresponding to the colors in the first target color set and the second parameters, a luminance value of R, a luminance value of G, and a luminance value of B corresponding to the colors in the first target color set;
and a fifth determining unit, configured to determine target color space information of the receiving end according to the luminance value of R, the luminance value of G, and the luminance value of B corresponding to the colors in the first target color set.
Optionally, the fifth determining unit includes:
and the interpolation subunit is used for interpolating the brightness value of R, the brightness value of G and the brightness value of B corresponding to the colors in the first target color set to obtain target color space information of the receiving end.
Optionally, the first determining unit includes:
a first determining subunit, configured to determine a color space type of the transmitting end according to the color space information of the transmitting end;
And the second determining subunit is used for determining the first parameter according to the color space type of the transmitting end.
Optionally, the receiving module includes:
a receiving unit, configured to receive an identifier sent by a sending end;
a sixth determining unit configured to determine a name of a color space configuration file according to the identifier;
and a seventh determining unit, configured to determine color space information of the transmitting end according to the name of the color space configuration file.
Optionally, the seventh determining unit includes:
a query subunit, configured to query to obtain a color space configuration file according to the name of the color space configuration file;
and the third determination subunit is used for determining the color space information of the transmitting end according to the color space configuration file.
Optionally, the receiving unit includes:
an acquisition subunit, configured to acquire configuration information of a transmitting end;
a fourth determining subunit, configured to determine a target interface protocol according to the configuration information of the sending end;
and the receiving subunit is used for receiving the identifier sent by the sending end based on the target interface protocol.
Optionally, the screen projection device further includes:
the acquisition module is used for acquiring primary color space information of the receiving end;
And the recovery module is used for recovering the primary color space information after the screen projection is finished.
Optionally, the second target color set includes: red, green, and blue.
According to another aspect of the present invention, there is provided an electronic apparatus including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of screening according to any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to implement a screen projection method according to any embodiment of the present invention when executed.
According to the embodiment of the invention, the receiving end receives the screen throwing screen data and the color space information of the sending end, the receiving end determines the target color space information of the receiving end according to the color space information of the sending end, and the receiving end determines the target screen data and displays the target screen data according to the target color space information of the receiving end and the screen throwing screen data. By the technical scheme, the method and the device can ensure that the color space of the screen display of the sending end is consistent with that of the screen display of the receiving end when the sending end sends the screen throwing screen data to the receiving end, so that the beneficial effect of improving the user experience is achieved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of a screen projection method in an embodiment of the invention;
FIG. 2 is a schematic diagram of a screen projection device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device implementing a screen projection method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures 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 where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a screen projection method according to an embodiment of the present invention, where the present embodiment is applicable to a screen projection situation, and the method may be performed by a screen projection device according to an embodiment of the present invention, where the device may be implemented in software and/or hardware. As shown in fig. 1, the method is executed by a receiving end, and the screen projection method specifically includes the following steps:
S101, receiving screen projection screen data sent by a sending end and color space information of the sending end.
In this embodiment, the transmitting end may be a device responsible for acquiring and encoding and transmitting screen data, and the receiving end may be a device responsible for receiving screen data and decoding, rendering and playing.
The screen data may be a file, video, or audio data displayed on a screen of the transmitting end, where the transmitting end transmits the data to the receiving end.
It is known that a color space, also called color gamut, is defined by a plurality of color models in colorimetry, and a certain color is represented by one-dimensional, two-dimensional, three-dimensional or even four-dimensional space coordinates, and a color range or a color space can be defined by the coordinate system. In the present embodiment, the color space information may be information of a color profile, a color temperature, a color difference, a contrast, and other configuration parameters related to image quality in a color space RGB (Red-Green-Blue).
Specifically, a data connection is established between the transmitting end and the receiving end, the transmitting end collects screen projection screen data such as files, videos or audios displayed on a screen of the transmitting end and color space information of the transmitting end, the screen projection screen data and the color space information are transmitted to the receiving end through the data connection, and the receiving end receives the screen projection screen data transmitted by the transmitting end and the color space information of the transmitting end. In the actual operation process, the data transmission mode may include wireless transmission and wired transmission, the wireless transmission mode may include but is not limited to WIFI, network cable, bluetooth, etc., and the wired transmission mode may include but is not limited to USB (Universal Serial Bus ) transmission, HDMI (High Definition Multimedia Interface, high-definition multimedia interface) transmission, etc.
S102, determining target color space information of the receiving end according to the color space information of the transmitting end.
It should be noted that the target color space information may be information of the same color space as the transmitting side, which the receiving side is to modify.
Specifically, after receiving the screen projection screen data sent by the sending end and the color space information of the sending end through the data connection, the receiving end determines target color space information of the receiving end according to the color space information of the sending end, modifies the primary color space of the receiving end into the target color space information, and can feed back the successfully modified information to the sending end after modification is completed.
S103, determining target screen data according to target color space information of the receiving end and screen throwing screen data, and displaying the target screen data.
It should be explained that the target screen data may be screen projection screen data transmitted by the transmitting end to be displayed by the receiving end when the same color space information as the transmitting end is provided.
Specifically, after the receiving end modifies the primary color space information of the receiving end into the same target color space information as the transmitting end according to the color space information of the transmitting end transmitted by the receiving end, the receiving end determines target screen data to be displayed according to the received screen projection screen data transmitted by the transmitting end, and displays the target screen data. After the receiving end displays successfully, the information of successful display can be fed back to the sending end, and after the screen projection is finished, the primary color space information of the receiving end is recovered.
According to the embodiment of the invention, the receiving end receives the screen throwing screen data and the color space information of the sending end, the receiving end determines the target color space information of the receiving end according to the color space information of the sending end, and the receiving end determines the target screen data and displays the target screen data according to the target color space information of the receiving end and the screen throwing screen data. By the technical scheme, the method and the device can ensure that the color space of the screen display of the sending end is consistent with that of the screen display of the receiving end when the sending end sends the screen throwing screen data to the receiving end, so that the beneficial effect of improving the user experience is achieved.
Optionally, determining target color space information of the receiving end according to the color space information of the transmitting end includes:
and determining a first parameter according to the color space information of the transmitting end.
It should be explained that the first parameter may be an RGB color space matrix of the transmitting end. Preferably, the RGB color space matrix of the transmitting end may be a 3×3 matrix.
Specifically, the receiving end determines the color space type of the transmitting end according to the color space information of the transmitting end, which is transmitted by the receiving end, and determines the first parameter according to the color space type of the transmitting end. For example, if the receiving end determines that the color space type of the transmitting end is Display-P3 according to the received color space information of the transmitting end transmitted by the transmitting end, the first parameter determined according to the color space type Display-P3 of the transmitting end may be a 3×3 matrix
And determining the tristimulus value corresponding to each color in the first target color set according to the first target color set and the first parameter.
In this embodiment, the first target color set may be a color set formed by color cards that the receiving end participates in color difference calculation and verification. Preferably, the color cards participating in color difference calculation and verification are color cards of colors corresponding to points uniformly distributed in the color gamut as far as possible. The number of color cards may be 24 (that is, the number of the well-known 24 color cards is used for providing reference for truly restoring the image colors on any medium under any lighting condition, each color in the 24 color cards represents the true color of a natural object, and the reflectivity is the same as that of the true object), or 18 color cards, which is not limited in this embodiment. It is noted that red, green and blue are not included in the first set of target colors.
It is known that the tristimulus value is a representation of the amount of stimulation of the human retina to three primary colors of a certain color sensation, i.e., the amount of stimulation of three primary colors required to achieve color matching with the light to be measured in a three-color system, expressed by X (red primary color stimulation amount), Y (green primary color stimulation amount), and Z (blue primary color stimulation amount). In this embodiment, the red primary stimulus value in the RGB three primary colors may be represented by X, the green primary stimulus value in the RGB three primary colors may be represented by Y, and the blue primary stimulus value in the RGB three primary colors may be represented by Z.
Specifically, the relationship among the tristimulus value corresponding to each color in the first target color set, the first parameter, and the luminance value corresponding to each color in the first target color set may be expressed as:wherein,representing a matrix of tristimulus values corresponding to each color in the first set of target colors, wherein X represents a red primary tristimulus value corresponding to each color in the first set of target colors, Y represents a green primary tristimulus value corresponding to each color in the first set of target colors, Z represents a blue primary tristimulus value corresponding to each color in the first set of target colors, A represents a first parameter,/->Representing a matrix of luminance values corresponding to each color in the first set of target colors, Y in the matrix r Representing the brightness value of R (Red ) corresponding to each color in the first target color set, Y g Representing the luminance value of G (Green ) corresponding to each color in the first target color set, Y b Representing the luminance value of B (Blue) for each color in the first set of target colors. Performing matrix calculation according to the brightness value and the first parameter corresponding to each color in the first target color set, and determining that each color in the first target color set corresponds to Is a tristimulus value of (2).
And determining a second parameter according to the second target color set and the tristimulus value when the screen color of the receiving end is the color in the second target color set.
It should be explained that the second target color set may be a color set consisting of three colors of a red primary color, a green primary color and a blue primary color. Wherein, the brightness value matrix corresponding to the red primary color can be expressed asThe matrix of luminance values corresponding to the primary color green may be expressed as +.>The matrix of luminance values corresponding to the blue primary color can be expressed as +.>
It should be noted that, the screen color of the receiving end may be a color displayed on the screen when the receiving end performs factory measurement. The screen color of the receiving end can be red, green or blue, for example.
In this embodiment, the second parameter may be a matrix determined according to a luminance value matrix and a tristimulus value corresponding to each of three colors of a red primary color, a green primary color and a blue primary color in the second target color set, which are respectively obtained by the receiving end when the receiving end performs factory measurement. Preferably, the second parameter may be a 3×3 matrix.
Wherein the colors in the first set of target colors and the colors in the second set of target colors are different. The second target color set may be a color set composed of three colors of a red primary color, a green primary color, and a blue primary color, and the first target color set may be composed of colors other than red, green, and blue.
Specifically, the screen colors of the receiving end are respectively set to be the red primary color, the green primary color and the second target color set when the receiving end performs factory measurementAnd determining a group of matrixes B by respectively corresponding brightness value matrixes and respectively measured three groups of tristimulus values when the primary colors are three colors, and determining the matrixes B as a second parameter. For example, the tristimulus value matrix measured by the receiving end when the receiving end performs factory measurement can be expressed asThe calculation formula in matrix B can be expressed as:wherein (1)>The method comprises the steps of representing a tristimulus value matrix measured by a receiving end when the receiving end performs factory measurement, wherein X ' represents a red primary stimulus value in the tristimulus value matrix measured by the receiving end when the receiving end performs factory measurement, Y ' represents a green primary stimulus value in the tristimulus value matrix measured by the receiving end when the receiving end performs factory measurement, Z ' represents a blue primary stimulus value in the tristimulus value matrix measured by the receiving end when the receiving end performs factory measurement, and B represents a second parameter>Representing a matrix of luminance values when the screen color of the receiving end is set to the color in the second target color set, respectively, Y in the matrix r ' represents the brightness value of R corresponding to the screen color of the receiving end when the screen color of the receiving end is respectively set to the color in the second target color set, Y in the matrix g ' represents the brightness value of G corresponding to the screen color of the receiving end when the screen color of the receiving end is respectively set to the color in the second target color set, Y in the matrix b ' represents the luminance value of B corresponding to when the screen color of the receiving end is set to the color in the second target color set, respectively. And determining a second parameter according to the second target color set and the tristimulus value when the screen color of the receiving end is the color in the second target color set.
And determining the brightness value of R, the brightness value of G and the brightness value of B corresponding to the colors in the first target color set according to the tristimulus values corresponding to the colors in the first target color set and the second parameters.
Specifically, the luminance value matrix corresponding to the color in the first target color set is determined according to the tristimulus value corresponding to the color in the first target color set and the second parameter, and the specific calculation formula can be expressed as follows:wherein (1)>Representing a matrix of luminance values corresponding to colors in a first set of target colors, Y in the matrix r "represents the luminance value of R corresponding to the color in the first target color set, Y in the matrix g "represents the luminance value of G corresponding to the color in the first target color set, Y in the matrix b "represents the luminance value of B corresponding to the color in the first target color set, B -1 An inverse matrix representing the second parameter, +.>And representing a tristimulus value matrix corresponding to each color in the first target color set, wherein X in the matrix represents a red primary color stimulus value corresponding to each color in the first target color set, Y represents a green primary color stimulus value corresponding to each color in the first target color set, and Z represents a blue primary color stimulus value corresponding to each color in the first target color set.
And determining target color space information of the receiving end according to the brightness value of R, the brightness value of G and the brightness value of B corresponding to the colors in the first target color set.
Specifically, after the brightness value of R, the brightness value of G and the brightness value of B corresponding to the colors in the first target color set are determined, target color space information of the receiving end is determined according to the brightness value of R, the brightness value of G and the brightness value of B corresponding to the colors in the first target color set, the color space information of the receiving end is modified into target color space information, and after the receiving end is successfully modified, the information of the successful modification can be fed back to the transmitting end.
Optionally, determining the target color space information of the receiving end according to the luminance value of R, the luminance value of G, and the luminance value of B corresponding to the colors in the first target color set includes:
And interpolating the brightness value of R, the brightness value of G and the brightness value of B corresponding to the colors in the first target color set to obtain target color space information of the receiving end.
It is understood that interpolation refers to interpolating a continuous function on the basis of discrete data such that the continuous curve passes through all given discrete data points. In this embodiment, the interpolation operation may be to interpolate a continuous luminance value function based on the luminance value of R, the luminance value of G, and the luminance value of B corresponding to the colors in the first target color set, so that the target color space information of the receiving end screen is more complete and continuous, and the user experience is improved.
Specifically, after obtaining the brightness value of R, the brightness value of G and the brightness value of B corresponding to the colors in the first target color set, firstly judging which interval the above 3 brightness values fall in, because the red, green and blue single channels change according to 0, 32, 64, 96, 128, 160, 192, 224 and 255, and 8 intervals are total, each interval corresponds to a respective power function, the power function expression corresponding to the 8 intervals can be obtained by substituting the power function into the power function according to the two end values of each interval, the brightness value of R, the brightness value of G and the brightness value of B corresponding to the colors in the first target color set are fitted according to the power function expression corresponding to the 8 intervals, then interpolating the brightness value of R, the brightness value of G and the brightness value of B corresponding to the colors in the first target color set, obtaining the target color space information of the receiving end, and modifying the color space information of the receiving end into the target color space information, so that the target color space information of the receiving end screen is more complete, thereby enhancing the user experience.
Optionally, determining the first parameter according to the color space information of the transmitting end includes:
and determining the color space type of the transmitting end according to the color space information of the transmitting end.
In this embodiment, the color space types of different system computers may be different. By way of example, the color space type of the Windows system may be sRGB (standard Red Green Blue, general color standard, a color language protocol), while the color space type of the apple computer system may be Display-P3.
Specifically, the receiving end determines the color space type of the transmitting end according to the received color space information of the transmitting end transmitted by the transmitting end.
And determining a first parameter according to the color space type of the transmitting end.
Specifically, the first parameters corresponding to different color space types may be different, and the first parameters and the color space types may be in one-to-one correspondence. For example, if the receiving end determines that the color space type of the transmitting end can be sRGB according to the received color space information of the transmitting end transmitted by the transmitting end, the first parameter that the receiving end can determine according to the color space type sRGB of the transmitting end can be a 3×3 matrixIf the receiving end determines that the color space type of the transmitting end can be Display-P3 according to the color space information of the transmitting end transmitted by the receiving end, the first parameter that the receiving end can determine according to the color space type Display-P3 of the transmitting end can be a 3×3 matrix- >
Optionally, receiving color space information of the transmitting end sent by the transmitting end includes:
and receiving the identifier sent by the sending end.
In this embodiment, the transmitting end may transmit an identifier when transmitting the color space information to the receiving end, and the identifier may be, for example, a name of a color profile transmitted by the transmitting end.
Specifically, the identifier is allocated to a display adapter (for example, GPU) of the transmitting end, the transmitting end transmits the identifier when transmitting the color space information to the receiving end, and the receiving end receives the identifier transmitted by the transmitting end.
The name of the color space profile is determined from the identifier.
It should be noted that the color space configuration file may be a file including the transmitting-end color space configuration parameters. In addition, in the present embodiment, the color space configuration file may further include configuration parameters related to image quality, such as color temperature, color difference, and contrast.
Specifically, the receiving end may extract the name of the determined color space configuration file from the identifier sent by the sending end. For example, the identifier may be a name of a color profile sent by the sender, for example, the name of the color profile may be sRGB, DCI-P3, display-P3, adobeRGB or BT2020, etc., and the name of the color space profile may be determined directly according to the identifier, for example, the identifier may be sRGB, and the name of the color space profile may be sRGB.
And determining the color space information of the transmitting end according to the name of the color space configuration file.
Specifically, the transmitting end transmits the identifier to the receiving end, the receiving end determines the name of the color space configuration file according to the identifier, queries the color space configuration file according to the name of the color space configuration file to obtain the color space configuration file, and determines the color space information of the transmitting end according to the name of the color space configuration file.
Optionally, determining the color space information of the transmitting end according to the name of the color space configuration file includes:
and inquiring according to the name of the color space configuration file to obtain the color space configuration file.
Specifically, the receiving end queries the color space configuration file according to the name of the color space configuration file to obtain the color space configuration file, and the name of the color space configuration file can be sRGB, DCI-P3, display-P3, adobeRGB or BT2020, for example.
And determining the color space information of the transmitting end according to the color space configuration file.
Specifically, the receiving end determines the color space information of the transmitting end according to the color space configuration file.
Optionally, the receiving identifier sent by the sending end includes:
and acquiring configuration information of the transmitting end.
In this embodiment, the configuration information may be device system configuration information of the transmitting end. For example, the configuration information of the transmitting end may be an ISO (Open System Interconnection ) system (application computer display description file) or a WINDOWS system (Lenovo color management configuration file).
Specifically, the receiving end obtains configuration information of the transmitting end, and judges which system the transmitting end is specifically.
And determining a target interface protocol according to the configuration information of the transmitting end.
In this embodiment, the target interface protocol may be an API (Application Programming Interface ) interface protocol.
Specifically, the configuration information of the sending end is different, and the corresponding target interface protocols of the sending end may also be different. The receiving end determines a target interface protocol according to the configuration information of the sending end.
And receiving the identifier sent by the sending end based on the target interface protocol.
Specifically, the transmitting end transmits the identifier to the receiving end through the target interface protocol, and the receiving end receives the identifier transmitted by the transmitting end based on the target interface protocol. In the actual operation process, the transmitting end automatically adapts to the corresponding color space (such as sRGB, DCI-P3, display-P3, adobeRGB or BT 2020) according to the color space configuration file, and then the color space configuration file is transmitted to the receiving end in a data transmission mode based on a target interface protocol through the data connection established between the transmitting end and the receiving end, so that the receiving end and the transmitting end Display the same color space, and the color difference of screen Display is reduced.
Optionally, the screen projection method further includes:
and acquiring primary color space information of a receiving end.
It should be noted that, the primary color space information may be the original color space information displayed by the receiving end screen before the receiving end receives the screen projection screen data sent by the sending end and the color space information of the sending end.
Specifically, the receiving end acquires primary color space information displayed on a front screen of the target screen data before the receiving end receives the screen throwing screen data sent by the sending end and the color space information of the sending end.
And after the screen projection is finished, recovering the primary color space information.
Specifically, after the screen projection is finished, the transmitting end can transmit screen projection finishing information to the receiving end, and the receiving end recovers the primary color space information of the receiving end after receiving the screen projection finishing information, namely, the receiving end recovers the original configuration.
Optionally, the second set of target colors includes: red, green, and blue.
In particular, the second target set is arranged to comprise red, green and blue, i.e. RGB, primary colors. Because the tristimulus value matrix corresponding to the red primary color isThe matrix of tristimulus values corresponding to the primary colors of green is +.>The tristimulus value matrix corresponding to the blue primary color is +. >Setting the second target set to include red, green, and blue can reduce the amount of calculation when calculating the second parameter, improving the calculation efficiency.
According to the technical scheme, the transmitting end transmits the screen throwing screen data to the receiving end and simultaneously transmits the color space information to the receiving end, the receiving end determines the target color space information according to the color space information of the transmitting end, determines the target screen data according to the target color space information and the screen throwing screen data and displays the target screen data, so that the consistency of the color spaces of the screen display of the transmitting end and the screen display of the receiving end is ensured, the color difference is reduced, and the beneficial effect of improving the user experience is achieved. The receiving end can automatically modify the color space information according to the color space information of the transmitting end in the whole process, the color space information of the receiving end does not need to be manually switched, the color space information can be automatically adapted according to different types of transmitting ends, the practicability is strong, and the application range is wide.
Example two
Fig. 2 is a schematic structural diagram of a screen projection device according to an embodiment of the present invention. The embodiment may be applicable to the case of screen projection, and the device may be implemented in a software and/or hardware manner, and may be integrated in any device that provides a screen projection function, as shown in fig. 2, where the screen projection device specifically includes: a receiving module 201, a first determining module 202 and a second determining module 203.
The receiving module 201 is configured to receive the screen-casting screen data sent by the sending end and color space information of the sending end;
a first determining module 202, configured to determine target color space information of a receiving end according to color space information of the transmitting end;
and a second determining module 203, configured to determine target screen data according to the target color space information of the receiving end and the screen-casting screen data, and display the target screen data.
Optionally, the first determining module 202 includes:
a first determining unit, configured to determine a first parameter according to color space information of the transmitting end;
the second determining unit is used for determining a tristimulus value corresponding to each color in the first target color set according to the first target color set and the first parameter;
a third determining unit, configured to determine a second parameter according to a second target color set and a tristimulus value when a screen color of the receiving end is a color in the second target color set, where the color in the first target color set is different from the color in the second target color set;
a fourth determining unit, configured to determine, according to the tristimulus values corresponding to the colors in the first target color set and the second parameters, a luminance value of R, a luminance value of G, and a luminance value of B corresponding to the colors in the first target color set;
And a fifth determining unit, configured to determine target color space information of the receiving end according to the luminance value of R, the luminance value of G, and the luminance value of B corresponding to the colors in the first target color set.
Optionally, the fifth determining unit includes:
and the interpolation subunit is used for interpolating the brightness value of R, the brightness value of G and the brightness value of B corresponding to the colors in the first target color set to obtain target color space information of the receiving end.
Optionally, the first determining unit includes:
a first determining subunit, configured to determine a color space type of the transmitting end according to the color space information of the transmitting end;
and the second determining subunit is used for determining the first parameter according to the color space type of the transmitting end.
Optionally, the receiving module 201 includes:
a receiving unit, configured to receive an identifier sent by a sending end;
a sixth determining unit configured to determine a name of a color space configuration file according to the identifier;
and a seventh determining unit, configured to determine color space information of the transmitting end according to the name of the color space configuration file.
Optionally, the seventh determining unit includes:
a query subunit, configured to query to obtain a color space configuration file according to the name of the color space configuration file;
And the third determination subunit is used for determining the color space information of the transmitting end according to the color space configuration file.
Optionally, the receiving unit includes:
an acquisition subunit, configured to acquire configuration information of a transmitting end;
a fourth determining subunit, configured to determine a target interface protocol according to the configuration information of the sending end;
and the receiving subunit is used for receiving the identifier sent by the sending end based on the target interface protocol.
Optionally, the screen projection device further includes:
the acquisition module is used for acquiring primary color space information of the receiving end;
and the recovery module is used for recovering the primary color space information after the screen projection is finished.
Optionally, the second target color set includes: red, green, and blue.
The product can execute the screen projection method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example III
Fig. 3 shows a schematic diagram of an electronic device 30 that may be used to implement an embodiment of the invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 3, the electronic device 30 includes at least one processor 31, and a memory, such as a Read Only Memory (ROM) 32, a Random Access Memory (RAM) 33, etc., communicatively connected to the at least one processor 31, wherein the memory stores a computer program executable by the at least one processor, and the processor 31 can perform various suitable actions and processes according to the computer program stored in the Read Only Memory (ROM) 32 or the computer program loaded from the storage unit 38 into the Random Access Memory (RAM) 33. In the RAM 33, various programs and data required for the operation of the electronic device 30 may also be stored. The processor 31, the ROM 32 and the RAM 33 are connected to each other via a bus 34. An input/output (I/O) interface 35 is also connected to bus 34.
Various components in electronic device 30 are connected to I/O interface 35, including: an input unit 36 such as a keyboard, a mouse, etc.; an output unit 37 such as various types of displays, speakers, and the like; a storage unit 38 such as a magnetic disk, an optical disk, or the like; and a communication unit 39 such as a network card, modem, wireless communication transceiver, etc. The communication unit 39 allows the electronic device 30 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 31 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 31 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 31 performs the various methods and processes described above, such as the screen-casting method:
receiving screen throwing screen data sent by a sending end and color space information of the sending end;
determining target color space information of a receiving end according to the color space information of the transmitting end;
and determining target screen data according to the target color space information of the receiving end and the screen throwing screen data, and displaying the target screen data.
In some embodiments, the method of screening may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as storage unit 38. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 30 via the ROM 32 and/or the communication unit 39. When the computer program is loaded into RAM 33 and executed by processor 31, one or more steps of the screen projection method described above may be performed. Alternatively, in other embodiments, the processor 31 may be configured to perform the screen-casting method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (12)

1. A method of screening performed by a receiving end, the method comprising:
receiving screen throwing screen data sent by a sending end and color space information of the sending end;
determining target color space information of a receiving end according to the color space information of the transmitting end;
and determining target screen data according to the target color space information of the receiving end and the screen throwing screen data, and displaying the target screen data.
2. The method of claim 1, wherein determining target color space information for a receiving end from the color space information for the transmitting end comprises:
determining a first parameter according to the color space information of the transmitting end;
determining a tristimulus value corresponding to each color in the first target color set according to the first target color set and the first parameter;
determining a second parameter according to a second target color set and a tristimulus value when the screen color of the receiving end is the color in the second target color set, wherein the color in the first target color set is different from the color in the second target color set;
determining a brightness value of R, a brightness value of G and a brightness value of B corresponding to the colors in the first target color set according to the tristimulus values corresponding to the colors in the first target color set and the second parameters;
and determining target color space information of the receiving end according to the brightness value of R, the brightness value of G and the brightness value of B corresponding to the colors in the first target color set.
3. The method according to claim 2, wherein determining target color space information of the receiving end according to the luminance value of R, the luminance value of G, and the luminance value of B corresponding to the colors in the first target color set comprises:
And interpolating the brightness value of R, the brightness value of G and the brightness value of B corresponding to the colors in the first target color set to obtain target color space information of a receiving end.
4. The method of claim 2, wherein determining the first parameter based on the color space information of the transmitting end comprises:
determining the color space type of the transmitting end according to the color space information of the transmitting end;
and determining a first parameter according to the color space type of the transmitting end.
5. The method of claim 1, wherein receiving the color space information of the transmitting end transmitted by the transmitting end comprises:
receiving an identifier sent by a sending end;
determining the name of the color space configuration file according to the identifier;
and determining the color space information of the transmitting end according to the name of the color space configuration file.
6. The method of claim 5, wherein determining the color space information of the transmitting end based on the name of the color space profile comprises:
inquiring according to the name of the color space configuration file to obtain the color space configuration file;
and determining the color space information of the transmitting end according to the color space configuration file.
7. The method of claim 5, wherein receiving the identifier sent by the sender comprises:
acquiring configuration information of a transmitting end;
determining a target interface protocol according to the configuration information of the transmitting end;
and receiving the identifier sent by the sending end based on the target interface protocol.
8. The method as recited in claim 1, further comprising:
acquiring primary color space information of the receiving end;
and after the screen projection is finished, recovering the primary color space information.
9. The method of claim 2, wherein the second set of target colors comprises: red, green, and blue.
10. A screen projection device, comprising:
the receiving module is used for receiving the screen throwing screen data sent by the sending end and the color space information of the sending end;
the first determining module is used for determining target color space information of the receiving end according to the color space information of the transmitting end;
and the second determining module is used for determining target screen data according to the target color space information of the receiving end and the screen throwing screen data and displaying the target screen data.
11. An electronic device, the electronic device comprising:
At least one processor; and
a memory communicatively coupled to the at least one processor; wherein,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the method of screening according to any one of claims 1-9.
12. A computer readable storage medium storing computer instructions for causing a processor to implement the method of screening according to any one of claims 1-9 when executed.
CN202210998424.6A 2022-08-19 2022-08-19 Screen projection method, device, equipment and storage medium Pending CN117640907A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210998424.6A CN117640907A (en) 2022-08-19 2022-08-19 Screen projection method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210998424.6A CN117640907A (en) 2022-08-19 2022-08-19 Screen projection method, device, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN117640907A true CN117640907A (en) 2024-03-01

Family

ID=90036450

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210998424.6A Pending CN117640907A (en) 2022-08-19 2022-08-19 Screen projection method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN117640907A (en)

Similar Documents

Publication Publication Date Title
CN111429827B (en) Display screen color calibration method and device, electronic equipment and readable storage medium
CN112672132B (en) Data processing method and device, electronic equipment and storage medium
EP2905945A1 (en) Inter-terminal image sharing method, terminal device and communication system
CN110930917A (en) Display screen correction method and display screen correction system
WO2017107426A1 (en) Image processing method, apparatus and device, and non-volatile computer storage medium
CN113808231B (en) Information processing method and device, image rendering method and device, and electronic device
CN113378911B (en) Image classification model training method, image classification method and related device
CN109257609B (en) Data processing method and device, electronic equipment and storage medium
CN109274976B (en) Data processing method and device, electronic equipment and storage medium
CN113839998B (en) Image data transmission method, apparatus, device, storage medium, and program product
EP3240291A1 (en) Content providing apparatus, display apparatus and control method therefor
US9153017B1 (en) System and method for optimized chroma subsampling
CN111013131A (en) Delayed data acquisition method, electronic device, and storage medium
GB2528870A (en) Managing display data for display
CN113989174A (en) Image fusion method and training method and device of image fusion model
CN110930932A (en) Display screen correction method and system
US20150186095A1 (en) Inter-terminal image sharing method, terminal device, and communications system
CN117640907A (en) Screen projection method, device, equipment and storage medium
US20160309061A1 (en) Computer product, image processing method, display method, image processing apparatus, and information processing apparatus
CN103186248B (en) Remote management system and remote management method thereof
CN111383289A (en) Image processing method, image processing device, terminal equipment and computer readable storage medium
CN114092359A (en) Screen-splash processing method and device and electronic equipment
CN115880461A (en) Augmented reality image generation method, device, equipment and storage medium
CN113435515A (en) Picture identification method and device, storage medium and electronic equipment
CN109309839B (en) Data processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination