WO2021249504A1 - Distributed display method and related device - Google Patents

Distributed display method and related device Download PDF

Info

Publication number
WO2021249504A1
WO2021249504A1 PCT/CN2021/099491 CN2021099491W WO2021249504A1 WO 2021249504 A1 WO2021249504 A1 WO 2021249504A1 CN 2021099491 W CN2021099491 W CN 2021099491W WO 2021249504 A1 WO2021249504 A1 WO 2021249504A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixels
interface
value
color
information
Prior art date
Application number
PCT/CN2021/099491
Other languages
French (fr)
Chinese (zh)
Inventor
杨婉艺
张茹
居然
曹原
林尤辉
Original Assignee
华为技术有限公司
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 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2021249504A1 publication Critical patent/WO2021249504A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/12Synchronisation between the display unit and other units, e.g. other display units, video-disc players

Definitions

  • This application relates to the field of distributed display technology, and in particular to a distributed display method and related equipment.
  • LCD Liquid Crystal Display
  • light-emitting diodes Light-Emitting Diode, LED
  • organic light-emitting diodes Organic Light-Emitting Diode, OLED
  • liquid crystal displays Liquid Crystal Display, LCD
  • TFT Thin Film Transistor
  • the embodiments of the present application provide a distributed display method and related equipment, which can improve the problem of over-bright and over-exposed pictures when the source interface is distributed and displayed on other devices, optimize the display effect, and ensure that users watch the distributed display interfaces on different devices Comfort at the time.
  • an embodiment of the present application provides a distributed display method, including: acquiring first information of a first interface, where the first information includes first brightness values of P pixels in the first interface and A first saturation value; the first interface is an interface displayed in a first device; P is an integer greater than or equal to 1; determining N first pixels and M second pixels in the first interface; The first brightness value of each first pixel in the N first pixels is greater than a first threshold; the first brightness value of each second pixel in the M second pixels is less than or equal to The first threshold; N and M are integers greater than or equal to 1; if the sum of the first brightness values of the N first pixels is equal to the sum of the first brightness values of the P pixels If the ratio is greater than or equal to the second threshold, the second saturation value of the N first pixels is determined; the second saturation value is less than the first saturation value; second information is generated, the second information Including the first brightness value and the second saturation value of the N first pixels, and the first brightness value and the first saturation value of the M second pixels;
  • the interface displayed on the terminal device needs to be distributed to other devices for display
  • the interface can be preprocessed before the distributed display starts, such as reducing the pixels with larger brightness in the interface The saturation value and so on, and then distribute the display to other devices, thereby optimizing the display effect on other devices.
  • the interface can be preprocessed before the distributed display starts, such as reducing the pixels with larger brightness in the interface The saturation value and so on, and then distribute the display to other devices, thereby optimizing the display effect on other devices.
  • the differences in display devices between different devices there are differences in screen brightness and color saturation between different devices. This can easily lead to the normal display of the interface on the terminal device, which is distributed to other devices.
  • the display effect is poor when displayed on the device.
  • the screen size, picture clarity, brightness, and color brightness of the large-screen devices are often larger than that of the mobile phone, which is easy to cause
  • the pictures displayed on large-screen devices such as LCD TVs are overexposed and bright, and the colors are too bright, which greatly affects the user's viewing experience.
  • the brightness and saturation values of some or all of the pixels in the interface can be extracted.
  • the interface can be processed first, for example, the saturation value of pixels whose brightness value exceeds the threshold can be reduced, and then the interface distribution whose saturation value of some pixels has been reduced can be displayed on other devices. Therefore, compared with the prior art, directly distributing the interface on mobile terminal devices such as mobile phones and displaying them on large-screen devices such as LCD TVs can easily cause problems such as overexposure and bright colors and excessively bright colors displayed on large-screen devices. , And cause long-term discomfort and eye fatigue for users.
  • the pixels with larger brightness in the interface to be displayed can be distributed.
  • the saturation value of is replaced with a smaller saturation value, so that when other devices are performing distributed display, the color of the display interface is comfortable and will not be overexposed and bright, which greatly improves the viewing comfort of the user.
  • determining the second saturation value of the N first pixels including: if the sum of the first brightness values of the N first pixels and the first brightness values of the P pixels If the ratio of the sum is greater than or equal to the second threshold, it is determined that the first saturation value of the i-th first pixel among the N first pixels is located in the k-th interval; i is greater than or equal to 1, and An integer less than or equal to N; k is an integer greater than 1; the random value in the k-1th interval is determined as the second saturation value of the i-th first pixel; the k-1th interval It is adjacent to the kth interval, and the maximum value in the k-1th interval is smaller than the minimum value in the kth interval.
  • the interface displayed on the terminal device needs to be distributed to other devices for display, if there are a large number of pixels in the interface displayed on the terminal device whose brightness values exceed the threshold, or there are more than a certain proportion
  • the brightness value of the pixel is greater than the threshold value (that is, there is a brighter area in the interface. If this area is directly distributed and displayed on other devices such as LCD TVs without processing, it will easily cause the screen displayed on other devices to be overexposed and bright.
  • the terminal device can determine the interval where the saturation value of the pixel whose brightness value exceeds the threshold is the kth interval, and then In the second-level interval, that is, in the k-1th interval, a random value is selected as the new saturation value of the pixel.
  • the k-1th interval and the kth interval may be adjacent, and the maximum value in the k-1th interval may be smaller than the minimum value in the kth interval (for example, the k-1th interval
  • the interval can be (1,2), and the k-th interval can be (2, 3), etc.).
  • the new saturation value of the pixel whose brightness value exceeds the threshold can be quickly determined, that is, the saturation value of the pixel whose brightness value exceeds the threshold is reduced, so that when other devices are displayed in a distributed display, the picture color is appropriate and will not be too high. Excessive exposure will not cause discomfort to users and ensure user experience.
  • the obtaining the first information of the first interface includes: obtaining the first color value of each of the P pixels in the first interface; The first color value is calculated through color space transformation to obtain the first brightness value and the first saturation value of each of the P pixels.
  • the terminal device since the terminal device cannot directly obtain the brightness value and saturation value of the pixel, you can first obtain the respective color values of some or all of the pixels in the interface of the terminal device (for example, 00A5FF, 7FFFD4, and 8A2BE2). And so on), and then through color space transformation (for example, from RGB color space to HSL color space), the brightness and saturation values corresponding to the respective color values of the part or all of the pixels can be calculated. Optionally, you can also calculate the corresponding hue value, and so on. As a result, the respective brightness and saturation values of some or all of the pixels in the interface of the terminal device can be quickly and accurately obtained, so that the brightness value can be used to determine whether there is a brighter area in the interface. Whether to reduce the saturation value of the pixels with larger brightness, etc., to improve the display effect of the interface when it is distributed to other devices, and to ensure the user's viewing experience.
  • color space transformation for example, from RGB color space to HSL color space
  • the first interface includes one or more image regions; the acquiring the first color value of each of the P pixels in the first interface includes: extracting the first color value of the P pixels in the first interface. The pixel array of each image area in the one or more image areas in an interface; calculating the first color value of each pixel in the pixel array of each image area to obtain the first The first color value of each of the P pixels in the interface.
  • the first interface displayed on the first device may include one or more image areas, and the pixel array (for example, one w*h two-dimensional matrix); then, the first color value of each pixel in the pixel array of each image area is calculated, so that the first color value of each P pixel in the first interface can be obtained, In order to facilitate subsequent calculations to obtain the first brightness value and the first saturation value of each of the P pixels.
  • the pixel array for example, one w*h two-dimensional matrix
  • the first interface further includes one or more text areas; the obtaining the first information of the first interface further includes: obtaining the one or more of the first interface The first color value of each text in each text area in each text area; according to the first color value of each text in each text area, through color space transformation, the calculated value is obtained The first brightness value and the first saturation value of each character in each character area.
  • the first interface displayed on the first device may further include one or more text areas, and the first information of the first interface may also include each of the one or more text areas.
  • the first brightness value and the first saturation value of each text in the text area can be obtained; then, according to the first color value of each text in each text area, the color space is transformed (for example, from RGB The color space is converted to the HSL color space), and the first brightness value and the first saturation value of each text in each text area are calculated.
  • the first hue value of each text can also be calculated.
  • the text area in the first interface In order to facilitate the subsequent calculation of the second saturation value of the text in the text area in the first interface according to the first brightness value and the first saturation value, so as to obtain a lower saturation value, so that the effect of the distributed display better.
  • the text area can have a better display effect when the text area is distributed and displayed on the second device, and it will not be overexposed and bright, which affects the user's viewing experience.
  • the method further includes: calculating the second color values of the N first pixels and the first color values of the M second pixels according to the second information Generating third information, the third information including the second color values of the N first pixels and the first color values of the M second pixels; the third information is used for all
  • the second device displays the second interface according to the third information.
  • the first device can transmit the third information to the second device, and the second device can display the second interface based on the third information, thereby improving the distribution display time of the second device
  • the display effect makes the display screen not glare, and is comfortable to watch with the naked eye, ensuring the user's viewing experience.
  • the second device is a device whose screen light-emitting brightness and/or color saturation is greater than that of the first device.
  • the second device is generally a device with a screen whose brightness and/or color saturation are greater than that of the first device.
  • the second device may also be a device whose screen luminous brightness is less than or equal to that of the first device, but whose color display is more vivid than the first device, and so on.
  • the second device may be a large-screen device such as an LCD TV, a desktop computer, etc., or it may be another device with poor color reproduction effect and particularly brilliant display of certain colors.
  • the first device may be, for example, a smart phone, Mobile terminal devices such as tablets and laptops.
  • the interface displayed on the first device is directly distributed to the second device for display, it is easy to cause the screen displayed on the second device to be overexposed and bright, the color is too bright, etc. Etc., the user’s viewing comfort cannot be guaranteed.
  • the interface can be judged and preprocessed before the distributed display of the first device, so that the interface displayed on the first device has a better performance when the distributed display on the second device is performed.
  • Good display effect the display screen is not glaring, and it is comfortable to watch with the naked eye, that is, to achieve the purpose of optimizing the display effect after changing the display of the device, which can ensure the consistency of the user's viewing experience on different devices.
  • an embodiment of the present application provides a distributed display device, which includes:
  • the acquiring unit is configured to acquire first information of the first interface, where the first information includes the first brightness value and the first saturation value of each of the P pixels in the first interface; the first interface is The interface displayed in the first device; P is an integer greater than or equal to 1;
  • the first determining unit is configured to determine N first pixels and M second pixels in the first interface; the first brightness value of each first pixel in the N first pixels is greater than the first brightness value of the first pixel A threshold; the first brightness value of each second pixel of the M second pixels is less than or equal to the first threshold; N and M are integers greater than or equal to 1;
  • the second determining unit is configured to determine if the ratio of the sum of the first brightness values of the N first pixels to the sum of the first brightness values of the P pixels is greater than or equal to a second threshold value The second saturation value of the N first pixels; the second saturation value is less than the first saturation value;
  • the first generating unit is configured to generate second information, the second information including the first brightness value and the second saturation value of the N first pixels, and the information of the M second pixels The first brightness value and the first saturation value; the second information is used by the second device to display a second interface according to the second information.
  • the second determining unit is specifically configured to:
  • the first saturation value of the i-th first pixel in is located in the k-th interval; i is an integer greater than or equal to 1 and less than or equal to N; k is an integer greater than 1;
  • the random value in the k-1th interval is determined as the second saturation value of the i-th first pixel; the k-1th interval is adjacent to the kth interval, and the The maximum value in the k-1 interval is smaller than the minimum value in the k-th interval.
  • the acquiring unit is specifically configured to:
  • the first brightness value and the first saturation value of each of the P pixels are calculated through color space transformation.
  • the first interface includes one or more image areas; the acquiring unit is further specifically configured to:
  • the first color value of each pixel in the pixel array of each image area is calculated to obtain the first color value of each of the P pixels in the first interface.
  • the first interface further includes one or more text areas; the acquiring unit is further configured to:
  • the first brightness value and the first brightness value of each text in each text area are calculated through color space transformation. Saturation value.
  • the device further includes:
  • a calculation unit configured to calculate the second color values of the N first pixels and the first color values of the M second pixels according to the second information
  • the second generating unit is configured to generate third information, where the third information includes the second color values of the N first pixels and the first color values of the M second pixels;
  • the third information is used by the second device to display the second interface according to the third information.
  • the second device is a device whose screen light-emitting brightness and/or color saturation is greater than that of the first device.
  • an embodiment of the present application provides a terminal device, the terminal device is a first device, the terminal device includes a processor, and the processor is configured to support the terminal device to implement the distributed display provided in the first aspect The corresponding function in the method.
  • the terminal device may also include a memory, which is used for coupling with the processor, and stores the necessary program instructions and data of the terminal device.
  • the terminal device may also include a communication interface for the terminal device to communicate with other devices or a communication network.
  • an embodiment of the present application provides a computer-readable storage medium that stores a computer program that, when executed by a processor, implements the distribution described in any one of the above-mentioned first aspects Show method flow.
  • an embodiment of the present application provides a computer program, the computer program includes instructions, when the computer program is executed by a computer, the computer can execute the process of the distributed display method described in any one of the first aspect.
  • an embodiment of the present application provides a chip system, which includes the distributed display device according to any one of the above-mentioned first aspects, and is used to implement the distributed display according to any one of the above-mentioned first aspects.
  • the functions involved in the method flow.
  • the chip system further includes a memory for storing program instructions and data necessary for the distributed display method.
  • the chip system can be composed of chips, or include chips and other discrete devices.
  • Fig. 1 is a schematic diagram of a McAdam ellipse in the prior art.
  • Fig. 2 is a schematic diagram of a CMC (1:c) chromatic aberration ellipse in the prior art.
  • FIG. 3 is a schematic diagram of a system architecture of a distributed display method provided by an embodiment of the present application.
  • Fig. 4 is a functional block diagram of a terminal device provided by an embodiment of the present application.
  • Fig. 5 is a software structure block diagram of a terminal device provided by an embodiment of the present application.
  • Fig. 6a is a schematic diagram of an application scenario of a distributed display method provided by an embodiment of the present application.
  • Fig. 6b is a schematic diagram of an application scenario of another distributed display method provided by an embodiment of the present application.
  • Figures 7a-7b are schematic diagrams of a set of interfaces provided by an embodiment of the present application.
  • FIG. 8 is a schematic flowchart of a distributed display method provided by an embodiment of the present application.
  • FIG. 9 is a schematic flowchart of another distribution display method provided by an embodiment of the present application.
  • FIG. 10 is a schematic diagram of a set of distribution display effects comparison provided by an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of a distributed display device provided by an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • components used in this specification are used to denote computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution.
  • the component may be, but is not limited to, a process, a processor, an object, an executable file, a thread of execution, a program, and/or a computer running on a processor.
  • the application running on the terminal device and the terminal device can be components.
  • One or more components may reside in processes and/or threads of execution, and components may be located on one computer and/or distributed between two or more computers.
  • these components can be executed from various computer readable media having various data structures stored thereon.
  • a component may be based on a signal having one or more data packets (for example, data from two components that interact with another component in a local system, a distributed system, and/or a network, such as the Internet that interacts with other systems through a signal) Communicate through local and/or remote processes.
  • data packets for example, data from two components that interact with another component in a local system, a distributed system, and/or a network, such as the Internet that interacts with other systems through a signal
  • Hue Saturation Lightness Hue Saturation Lightness
  • HSL Hue Saturation Lightness
  • the HSL color mode is a color standard in the industry. It uses the three color channels of hue (H), saturation (S), and brightness (L). Variations and their mutual superposition to obtain a variety of colors, HSL represents the color of the three channels of hue, saturation, and brightness. This standard includes almost all colors that human vision can perceive. One of the most widely used color systems.
  • the H component of HSL represents the range of colors that the human eye can perceive. These colors are distributed on a flat hue circle, with a value range of 0° to 360° central angle, and each angle can represent a color. The significance of the hue value is that we can change the color by rotating the hue ring without changing the light perception.
  • the six main colors on the hue circle as a basic reference: 360°/0°red, 60°yellow, 120°green, 180°cyan, 240°blue, 300°magenta, They are arranged on the hue circle at intervals of 60° central angle.
  • the S component of HSL refers to the saturation of the color. It uses a value from 0% to 100% to describe the change of color purity under the same hue and brightness. The larger the value, the less gray in the color and the brighter the color, showing a change from rational (grayscale) to perceptual (pure color).
  • the L component of HSL refers to the brightness of the color, and its function is to control the brightness and darkness of the color. It also uses a value range of 0% to 100%. The smaller the value, the darker the color, and the closer to black; the larger the value, the brighter the color, and the closer to white.
  • RGB Red, Green, and Blue
  • Color difference that is, the difference between two colors.
  • the human eye can easily distinguish whether there is a difference between two color samples.
  • this difference needs to be quantified and expressed by mathematical formulas, that is, color difference formulas.
  • the calculation of color difference is an important subject of color science, and it has a history of more than 80 years. It is not a simple matter to establish a color difference calculation formula.
  • a model is needed to describe the color.
  • CIE1931-XYZ standard color system is the most widely used.
  • CIE1931-XYZ is a chromaticity system recommended by the Commission Internationale de L'Eclairage (CIE) in 1931. Most color measurement and calculations use this system.
  • Figure 1 is a schematic diagram of a MacAdam ellipse in the prior art. As shown in Figure 1, on the CIE1931xy chromaticity diagram, when the green area changes greatly, the human eye can distinguish two colors. The difference (the circle is large), but in the blue-purple area, a small change can cause a visual difference (the circle is small). As shown in Figure 1, the actual area with the same chromatic aberration perception is not a sphere, but an ellipsoid.
  • ⁇ E CMC [ ⁇ l * /lS L ⁇ 2 + ⁇ C ab * /(cS C ) ⁇ 2 +( ⁇ H ab * /S H ) 2 ] 1/2
  • Figure 2 is the prior art A schematic diagram of a CMC (l:c) color difference ellipse. As shown in Figure 2, the closer to the center of the circle, the lower the saturation, and the closer to the circle, the higher the saturation and the brighter the color.
  • the difference in this way, can easily lead to a display effect of a normal interface on the source device, and poor display effect when it is distributed to the peer device for display.
  • the interfaces on mobile terminal devices such as mobile phones are distributed and displayed on large-screen devices such as LCD TVs
  • Too gorgeous pictures are prone to fatigue, causing itchy eyes, swelling, tears, difficulty focusing, headaches, nausea, and other discomforts, which cannot satisfy the user's comfort when watching large-screen devices.
  • the distributed display solution in the prior art cannot satisfy the requirement of ensuring that the display effect on different devices is comfortable and not glaring when the distributed display is performed between different devices. Therefore, in order to solve the problem that the current distributed display technology does not meet the actual business needs, the technical problems to be solved in this application include the following aspects: Based on the existing terminal device, realize the distributed display of the interface displayed on the terminal device to other When on the device, ensure the display effect of other devices, improve the original display screen is easy to be overexposed, dazzling, and the color is too bright, and improve the user's comfort when watching the interface displayed on other devices.
  • FIG. 3 is a schematic diagram of a system architecture of a distributed display method provided by an embodiment of the present application.
  • the technical solution of the embodiment of the present application may be implemented in the system architecture illustrated in FIG. 3 or a similar system architecture.
  • the system architecture may include a first device 100a and multiple second devices, and specifically may include second devices 200a, 200b, and 200c.
  • the first device 100a can establish a communication connection with the second devices 200a, 200b, and 200c through a wired or wireless network (such as Wireless-Fidelity (WiFi), Bluetooth, and mobile network, etc.), and connect the first The interface displayed on the device is distributed and displayed on the second devices 200a, 200b, and 200c.
  • WiFi Wireless-Fidelity
  • Bluetooth Bluetooth
  • mobile network etc.
  • the first device 100a and the second device 200a will be taken as examples to describe in detail a distributed display method provided in an embodiment of the present application.
  • the user can first establish a connection with the second device 200a through WiFi or Bluetooth.
  • the device information of the second device 200a can be obtained after the connection is established (for example, it can include the machine model and display screen information of the second device 200a, such as the screen size, screen brightness, color saturation, and color gamut of the second device 200a) Etc.).
  • the first device 100a can acquire the first information of the first interface displayed on the first device 100a, and the first information can include the respective first brightness values of the multiple pixels in the first interface And the first saturation value.
  • the first device 100a calculates that the first brightness values of more pixels in the plurality of pixels exceed the preset value, it can be considered that when the second device 200a performs distributed display based on the first information, it is likely to cause The interface displayed on the second device is overexposed and bright, which causes discomfort when viewed by the user. Then the first device 100a can calculate the second saturation value of each pixel whose first brightness value exceeds the preset value, the second saturation value is less than the first saturation value, and generate second information, the second The information may include respective second saturation values and first brightness values of pixels whose first brightness value exceeds the preset value, and respective first saturation values and first brightness values of pixels whose first brightness value is less than or equal to the preset value value.
  • the second device 200a can perform distributed display based on the second information, and display a second interface (it is understandable that in general, the content of the second interface is the same as that of the first interface).
  • the first saturation value of the pixel with the larger first brightness value is reduced, so that the color of the display interface of the second device is suitable, and the screen will not be overexposed and bright, which optimizes the distributed display effect and ensures the user's viewing experience .
  • the first interface may be the content displayed on the entire screen of the first device 100a, or part of the content displayed on the screen, such as pictures, text, and videos.
  • the distribution display between the two devices 200a may be real-time, which is not specifically limited in the embodiment of the present application.
  • the first device 100a may also distribute and display the displayed interfaces on the second devices 200a, 200b, and 200c at the same time, etc., which is not specifically limited in the embodiment of the present application.
  • the first device 100a may be a terminal device such as a smart phone, a smart wearable device, a tablet computer, a notebook computer, and a desktop computer with the above-mentioned functions.
  • the second devices 200a, 200b, and 200c can be notebook computers, desktop computers, large-screen displays, LCD TVs, and other devices with the above-mentioned functions.
  • the second devices 200a, 200b, and 200c can also be devices with the above-mentioned functions. Smart phones, tablet computers, etc., which are not specifically limited in the embodiments of the present application.
  • the terminal device 100 may be the first device 100a in the system architecture described in FIG. 3 above.
  • the terminal device 100 may be configured to fully or partially automatically distribute the display mode.
  • the terminal device 100 may be in a timer and continuous automatic distribution display mode, or according to computer instructions when connected to a preset target device, perform automatic distribution display mode, or detect that the interface contains a preset target object (such as preset Video, documents, slides, etc.) are automatically distributed in the display mode, etc., which are not specifically limited in the embodiment of the present application.
  • a preset target object such as preset Video, documents, slides, etc.
  • the terminal device 100 can be set to operate without interacting with people.
  • the terminal device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations.
  • the various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
  • the terminal device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2.
  • Mobile communication module 150 wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display 194, And subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM subscriber identification module
  • the sensor module 180 can include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
  • the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100.
  • the terminal device 100 may include more or fewer components than those shown in FIG. 4, or combine certain components, or split certain components, or arrange different components, and so on.
  • the components shown in FIG. 4 may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units.
  • the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait.
  • AP application processor
  • modem processor modem processor
  • GPU graphics processing unit
  • image signal processor image signal processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the different processing units may be independent devices or integrated in one or more processors.
  • the controller may be the nerve center and command center of the terminal device 100.
  • the controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 to store instructions and data.
  • the memory in the processor 110 may be a cache memory.
  • the memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. The repeated access of instructions or data is avoided, and the waiting time of the processor 110 is reduced, thereby greatly improving the operating efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface can include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB Universal Serial Bus
  • the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the terminal device 100.
  • the terminal device 100 may also adopt a different interface connection manner from the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger can be a wireless charger or a wired charger.
  • the power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110.
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the wireless communication function of the terminal device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor.
  • the terminal device 100 may establish a connection with one or more other devices in a wireless manner, so as to distribute and display the interface displayed on the terminal device 100 to the other one or more devices connected to it.
  • the terminal device 100 implements a display function through a GPU, a display screen 194, and an application processor.
  • the GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations and is used for graphics rendering.
  • the processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
  • the terminal device 100 may preprocess the display information of the interface before distributing and displaying the displayed interface on other devices (for example, to change the saturation value of multiple pixels in the interface, and also That is to change the color values of multiple pixels in the interface, etc.).
  • the display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode).
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • active-matrix organic light-emitting diode active-matrix organic light-emitting diode
  • AMOLED flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc.
  • the terminal device 100 may include one or more display screens 194.
  • the terminal device 100 may distribute and display the interface displayed on the display screen 194 on other devices, for example, on an LCD TV, a desktop computer, or other large-screen devices.
  • the terminal device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
  • the ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye.
  • ISP can also optimize the image noise, brightness, contrast, and facial skin color.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193.
  • the camera 193 is used to capture still images or videos.
  • the object generates an optical image through the lens and is projected to the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal.
  • ISP outputs digital image signals to DSP for processing.
  • the DSP converts the digital image signal into a standard RGB or YUV format image signal.
  • the camera 193 may be located on the front of the terminal device 100, for example, above the touch screen, or may be located at other locations, such as on the back of the terminal device.
  • the RGB camera and infrared camera used for face recognition can generally be located on the front of the terminal device 100, such as on the top of the touch screen, or at other locations, such as the back of the terminal device 100.
  • the infrared lamp used for infrared photography is generally also located on the front of the terminal device 100, for example, located above the touch screen. It can be understood that the infrared lamp and the infrared camera are generally located on the same side of the terminal device 100 to perform infrared image viewing. collection.
  • the terminal device 100 may also include other cameras.
  • the terminal device 100 may further include a dot matrix transmitter (not shown in FIG. 4) for emitting light.
  • Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
  • Video codecs are used to compress or decompress digital video.
  • the terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
  • MPEG moving picture experts group
  • MPEG2 MPEG2, MPEG3, MPEG4, and so on.
  • NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of the terminal device 100 can be implemented, such as distributed display, image recognition, face recognition, voice recognition, text understanding, histogram equalization, and so on.
  • the external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100.
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, videos, photos and other files in an external memory card.
  • the internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions.
  • the processor 110 executes various functional applications and data processing of the terminal device 100 by running instructions stored in the internal memory 121.
  • the internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system and at least one application required for a function, such as a distributed display, a video recording function, a photographing function, an image processing function, and so on.
  • the data storage area can store data created during the use of the terminal device 100 and the like.
  • the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
  • UFS universal flash storage
  • the terminal device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
  • the audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
  • the speaker 170A also called “speaker” is used to convert audio electrical signals into sound signals.
  • the receiver 170B also called a “handset”, is used to convert audio electrical signals into sound signals.
  • the microphone 170C also called “microphone”, “microphone”, is used to convert sound signals into electrical signals.
  • the earphone interface 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association
  • the pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal.
  • the pressure sensor 180A may be provided on the display screen 194.
  • the gyro sensor 180B may be used to determine the movement posture of the terminal device 100.
  • the angular velocity of the terminal device 100 around three axes ie, x, y, and z axes
  • the gyroscope sensor 180B can be determined by the gyroscope sensor 180B.
  • the proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode.
  • the light emitting diode may be an infrared light emitting diode.
  • the ambient light sensor 180L is used to sense the brightness of the ambient light.
  • the terminal device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light.
  • the ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures, etc., which will not be repeated here.
  • the fingerprint sensor 180H is used to collect fingerprints.
  • the terminal device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on.
  • the fingerprint sensor 180H can be arranged under the touch screen, the terminal device 100 can receive a user's touch operation on the touch screen in the area corresponding to the fingerprint sensor, and the terminal device 100 can collect the fingerprint of the user's finger in response to the touch operation. Information to realize related functions.
  • the temperature sensor 180J is used to detect temperature.
  • the terminal device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy.
  • Touch sensor 180K also called “touch panel”.
  • the touch sensor 180K may be provided on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”.
  • the touch sensor 180K is used to detect touch operations acting on or near it.
  • the touch sensor can pass the detected touch operation to the application processor to determine the type of touch event.
  • the visual output related to the touch operation can be provided through the display screen 194.
  • the touch sensor 180K may also be disposed on the surface of the terminal device 100, which is different from the position of the display screen 194.
  • the button 190 includes a power-on button, a volume button, and so on.
  • the button 190 may be a mechanical button. It can also be a touch button.
  • the terminal device 100 may receive key input, and generate key signal input related to user settings and function control of the terminal device 100.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, etc., for example, it can indicate that the terminal device 100 is performing a distributed display, prompting the user that the terminal is currently displaying The interface displayed on the device 100 can be viewed on other devices.
  • the terminal device 100 may include one or more indicators 192.
  • the SIM card interface 195 is used to connect to the SIM card.
  • the SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the terminal device 100.
  • the terminal device 100 adopts an eSIM, that is, an embedded SIM card.
  • the eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
  • the terminal device 100 may be a smart phone, a smart wearable device, a tablet computer, a notebook computer, a desktop computer, a computer, etc., with the above-mentioned functions, which is not specifically limited in the embodiment of the present application.
  • the software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture.
  • the embodiment of the present application takes an Android system with a layered architecture as an example to illustrate the software structure of the terminal device 100 by way of example.
  • FIG. 5 is a software structure block diagram of a terminal device provided by an embodiment of the present application.
  • the layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface.
  • the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
  • the application layer can include a series of application packages.
  • the application package may include applications (also referred to as applications) such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc. It may also include the related distributed display application involved in this application.
  • applications also referred to as applications
  • the distributed display application a distributed display method in this application can be used to improve the terminal device 100 in distributing its displayed interface to other devices (such as LCD TVs).
  • the display screen on other devices is too bright and overexposed, so as to ensure the user's comfort when watching the interface displayed on different devices.
  • the application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer.
  • the application framework layer includes some predefined functions.
  • the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and so on.
  • the window manager is used to manage window programs.
  • the window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, and display the interface distribution.
  • the content provider is used to store and retrieve data and make these data accessible to applications.
  • the data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc.
  • the data may also include related information of the display interface on the terminal device 100, such as the color value (or brightness value, saturation value, and hue value) of multiple pixels in the image area in the interface. , And the color values (or brightness value, saturation value, and hue value) of multiple texts in the text area of the interface, etc.
  • These data can be used by the related application programs for distributed display related to the embodiments of this application access.
  • the view system includes visual controls, such as controls that display text, controls that display pictures, and so on.
  • the view system can be used to build applications.
  • the display interface can be composed of one or more views.
  • a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures.
  • a distributed display interface of related distributed display controls may be included. By clicking on the distributed display control, one of the distributed display methods in this application can be used, according to the information ( For example, it can include the respective brightness values and saturation values of multiple pixels in the interface, etc.) for related calculations and judgments.
  • the information is preprocessed, for example, the saturation value of the area where the brightness is larger is reduced, and new information of the interface is generated. Then, other devices connected to the terminal device 100 can perform distributed display based on the new information. When other devices are distributing the interface on the display terminal device 100, the display screen is too bright and overexposed, etc., so as to ensure the user's viewing comfort.
  • the phone manager is used to provide the communication function of the terminal device 100.
  • the management of the call status for example, including connecting, hanging up, etc.
  • the resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
  • the notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction.
  • the notification manager is used to notify download completion, message reminders, and so on.
  • the notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialogue interface.
  • prompt text messages in the status bar sound a prompt tone, terminal equipment vibration, flashing indicator lights, etc.
  • the user when performing the distributed display involved in the present application, the user may be prompted through text messages on the distributed display interface to prompt the user that the current terminal device is currently being distributed and displayed, as well as the number, name, and model of other devices that are being distributed.
  • the distributed display cannot be performed correctly, such as when the connection between the terminal device and other devices is disconnected (for example, the network condition is poor, or the Bluetooth connection is disconnected, etc.)
  • you can use text messages on the distributed display interface The user is prompted to check the network connection or the Bluetooth connection status to re-establish the connection, etc., which is not specifically limited in the embodiment of the present application.
  • Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
  • the core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
  • the application layer and the application framework layer run in a virtual machine.
  • the virtual machine executes the java files of the application layer and the application framework layer as binary files.
  • the virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
  • the system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
  • the surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
  • the media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files.
  • the media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
  • the video format involved in this application can be, for example, RM, RMVB, MOV, MTV, AVI, AMV, DMV, FLV, etc.
  • the 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
  • the 2D graphics engine is a drawing engine for 2D drawing.
  • the kernel layer is the layer between hardware and software.
  • the core layer includes at least display driver, camera driver (for example, infrared camera driver and RGB camera driver), audio driver, and sensor driver.
  • Scenario 1 Distribute the interface displayed on the mobile phone to a large-screen device for display.
  • FIG. 6a is a schematic diagram of an application scenario of a distributed display method provided by an embodiment of the present application.
  • the application scenario includes a first device (a smart phone is taken as an example in Fig. 6a) and a second device (a liquid crystal TV is taken as an example in Fig. 6a).
  • both the first device and the second device may include related displays and processors.
  • the display and the processor can transmit data through the system bus.
  • the display of the first device can display the interface of the first device to be distributed and displayed on the second device, or display the interface that is being distributed and displayed in the first device, etc.
  • the display of the second device can display The interface when the first device is distributed to the second device, etc.
  • the interface may include images, text, and video, and so on.
  • the screen brightness and/or color saturation of the second device may be greater than that of the first device, that is, a normal interface is displayed on the first device, and if it is directly distributed and displayed on the second device without processing,
  • the pictures distributed and displayed on the second device are often overexposed and bright, the colors are too bright, and are dazzling, which makes the user's eyes tired and uncomfortable when viewing the interface distributed and displayed on the second device for a long time.
  • the first device may display first information according to the first interface currently displayed on the first device (for example, it may include the first information).
  • the first brightness value and the first saturation value of the multiple pixels in the interface) the first information is preprocessed, for example, if there are more pixels in the first interface, the first brightness value exceeds the preset value . You can reduce the saturation value of the pixel whose first brightness value exceeds the preset value, calculate the second saturation value, and generate corresponding second information (for example, it may include that the first brightness value is less than or equal to the preset value The first brightness value and first saturation value of the pixel, and the first brightness value and second saturation value of the pixel whose first brightness value exceeds the preset value, etc.), and then through the second device, according to the The second information displays the second interface, thereby completing the distributed display from the first device to the second device. Please refer to FIG.
  • FIG. 6b which is a schematic diagram of an application scenario of another distributed display method provided by an embodiment of the present application.
  • the first interface ie, the source interface
  • the second device the LCD TV is taken as an example in Figure 6b
  • the content of the second interface that is, the distributed display interface, or the peer interface
  • the display effect of the second interface displayed on the second device is ensured, and there is no screen overexposure Bright, the color is too gorgeous, greatly improving the user’s viewing experience.
  • Figures 7a and 7b are schematic diagrams of a set of interfaces provided by the embodiments of the present application.
  • the first device displays a Bluetooth connection interface 701, where the Bluetooth connection interface 701 may include a setting control 702, a Bluetooth on/off control 703, and other controls (such as a return control, etc.).
  • the device name of the first device can be the first device A10.
  • the first device can detect nearby available devices (that is, you can Devices that have established a Bluetooth connection with the first device) and displayed, for example, include the second device B10, the second device B11, the second device B12, and the second device B13 shown in FIG. 7a.
  • the Bluetooth connection interface 701 may also include a second device B10 connection control 704a, a second device B11 connection control 704b, a second device B12 connection control 704c, and a second device B13 connection control 704d.
  • the user when the user wants to display the interface on the first device through the second device B13, he can establish the first device and the second device through an input operation 705 (for example, clicking the second device B13 connection control 704d).
  • the first device can display a distributed display interface 706, where the distributed display interface 706 can display the currently distributed display connected devices, for example, "Currently connected device: second device B13" shown in Figure 7b.
  • the distributed display interface 706 may include a normal mode control 707a, an optimized mode control 707b, a start distribution display control 709, and so on.
  • the user can select the optimization mode through the input operation 708 (for example, click), so that a distributed display method in this application can be used in the distributed display process to optimize the interface on the first device to be distributed to the second device B13 for display The display effect.
  • the optimization mode control 707b as shown in FIG. 7b, the user can click the start distribution display control 709 to start distributed display.
  • the first device obtains the first information of the first interface currently displayed (for example, it may include the first brightness value and the first saturation value of each of the multiple pixels in the first interface); Preprocessing, for example, if there are more pixels in the first interface whose first brightness value exceeds a preset value, the saturation value of the pixel whose first brightness value exceeds the preset value can be reduced, and the second saturation value can be calculated And generate corresponding second information (for example, it may include the first brightness value and first saturation value of pixels whose first brightness value is less than or equal to the preset value, and the pixels whose first brightness value exceeds the preset value The first brightness value and the second saturation value, etc.); then, the second interface is displayed according to the second information through the second device (for example, the second device B13) connected to it, so far, the first device to The distribution of the second device is displayed.
  • the second interface is displayed according to the second information through the second device (for example, the second device B13) connected to it, so far, the first device to The distribution of the
  • the user can also select the normal mode by clicking the normal mode control 707a. Therefore, according to the actual needs of the user, during the distributed display process, one of the distributed display methods in this application is not used, but directly The first interface displayed on the first device is distributed and displayed on the second device. In this way, the calculation amount of the first device can be reduced, the delay of distributed display can be reduced, the fluency of distributed display can be improved, and so on. There is no specific limitation.
  • the developer when a developer wants to perform a distributed display to test a distributed display method in this application, the developer can also refer to FIG. 7a and FIG. 7b for the operation process of the first device. I will not repeat them here.
  • the developer can continuously optimize the calculation method of the second saturation value in this application according to the obtained distribution display result, etc., so as to continuously improve the distribution display effect and effectively enhance the user's viewing experience.
  • the first device may be a smart phone, a smart wearable device, a tablet computer, a laptop computer, a desktop computer, and other devices with the above-mentioned functions, which are not specifically limited in the embodiment of the present application.
  • the second device may be a tablet computer, a laptop computer, a desktop computer, an LCD TV, a large-screen display, etc., with the above-mentioned functions, which is not specifically limited in the embodiment of the present application.
  • the distributed display method provided in this application can also be applied to other scenarios besides the above-mentioned application scenarios, for example, when the user wants to share an image or a slide show in the first device to connect with it.
  • the display effect of the second device when displaying the image or playing the slideshow can be improved, which will not be repeated here.
  • FIG. 8 is a schematic flowchart of a distributed display method provided by an embodiment of the present application.
  • the method can be applied to the system architecture described in FIG. 3 and the application scenario described in FIG. 6a or FIG. 6b. And it can be specifically applied to the terminal device 100 of FIG. 4 described above.
  • description will be made with reference to FIG. 8 taking the execution subject as the terminal device 100 in FIG. 4 as an example.
  • the method may include the following steps S801-S804:
  • Step S801 Acquire first information of the first interface, where the first information includes the first brightness value and the first saturation value of each of the P pixels in the first interface.
  • the first device obtains the first information of the first interface, and the first information may include the respective information of the P pixels in the first interface.
  • the first brightness value and the first saturation value optionally, the first information may also include the first hue value of each of the P pixels in the first interface, and so on.
  • P is an integer greater than or equal to 1
  • the first interface is an interface displayed on the first device.
  • the first interface may include text, images, and other interface elements, for example, the first interface may include one or more image areas, and may also include one or more text areas, then the first information is also It may include the respective first brightness value and first saturation value of multiple texts in one or more text areas in the first interface, etc., which are not specifically limited in the embodiment of the present application.
  • the first device may first obtain the first color value of each of the P pixels in the first interface, and then according to the first color value of each of the P pixels, through color space conversion (for example, from the RGB color space Transform to HSL color space), calculate the first brightness value and the first saturation value of each of the P pixels, and so on.
  • the first device may extract the pixel array of each image area in one or more image areas in the first interface, and calculate the first color value of each pixel in the pixel array of each image area , So that the first color value of each of the P pixels in the first interface can be obtained.
  • the first device may also obtain the first color value of each text in each text area of the one or more text areas in the first interface; and then according to each text area in each text area.
  • the first color value of a text is converted by color space (for example, from RGB color space to HSL color space), and the first brightness value and first saturation value of each text in each text area are calculated, etc. Wait.
  • FIG. 9 is a schematic flowchart of another distribution display method provided by an embodiment of the present application.
  • the first device may interact with the opposite device (that is, the second device, for example, the second devices 200a, 200b, and 200b) in the system architecture described in FIG. Any one of 200c) establishes a connection via WiFi, Bluetooth, etc., and then obtains the device information of the peer device (for example, it may include the model of the peer device, screen size, screen brightness and color saturation, etc.).
  • the first device can determine whether the opposite device meets the first color replacement condition according to the device information.
  • the first color replacement condition may be that the brightness and/or color saturation of the screen of the opposite device is greater than that of the first device, that is, the opposite device is a device with a brighter and more vivid color display.
  • the first color replacement condition may also include that the screen size of the peer device is much larger than the first device, or larger than a certain size threshold, etc., which is not specifically limited in the embodiment of the present application.
  • the subsequent step S13 can be performed to extract the color data of the first interface (for example, it can include the first color of each pixel in the first interface).
  • the first device can directly perform interface distribution , Without the need for subsequent steps. Thereby, the effect of distributed display is more reasonable, the color is comfortable, and it is not glare, ensuring the consistency of user viewing experience when displaying on different devices such as the first device and the second device, and it does not increase the extra calculation amount of the first device.
  • the first device may first obtain the color data of the first interface, and then use the color space transformation to obtain the first information of the first interface.
  • the color data of the first interface may include, for example, the first color value (that is, the original color value) of various elements in the first interface, such as the value of each pixel in each image area in the first interface.
  • the first color value, and the first color value of each text in each text area, etc. will not be repeated here.
  • the above-mentioned first color value is a color expression method in the RGB color space
  • the above-mentioned first brightness value and the first saturation value are color expression methods in the HSL color space, which will not be repeated here.
  • the method for the first device to obtain the color data of the first interface to be distributed and displayed may include, but is not limited to, the following solutions:
  • the text color can be extracted through getTextColor() provided by the androidtextView class to obtain the first color value of each text;
  • getPixels() method provided by the android bitmap class, such as getPixels(int[]pixels,int offset,int stride,int x,int y,int width, as shown in Figure 9 int height) method, extract the pixel array of the picture (where the pixel array is a two-dimensional matrix), and then calculate the first color value of each pixel in the pixel array to extract the first color value of each pixel in the picture And store it in the pixel array;
  • the resource file of the control can be obtained through the getDrawable() method provided by the android view class (the resource file generally refers to the Drawable resource of the view. Drawable is used for the background of the android control and can include pictures (png, etc.), Pure color background and other visual resources), the resource file is converted into a picture, and then read and calculated through the getPixels() method provided by the android bitmap class.
  • Step S802 Determine N first pixels and M second pixels in the first interface.
  • the first device determines the N first pixels and M second pixels in the first interface according to the first information of the first interface.
  • the first brightness value of each first pixel in the N first pixels is greater than a first threshold
  • the first brightness value of each second pixel in the M second pixels is less than or equal to the first threshold
  • N and M are integers greater than or equal to 1.
  • the sum of N and M is P.
  • the first device may also determine one or more characters in the first interface whose first brightness value is greater than the first threshold, and determine that the first brightness value in the first interface is less than or equal to the first threshold One or more of the text, and so on.
  • Step S803 If the ratio of the sum of the first brightness values of the N first pixels to the sum of the first brightness values of the P pixels is greater than or equal to the second threshold, the second saturation values of the N first pixels are determined.
  • the first device may respectively calculate the sum of the first brightness values of the N first pixels and the sum of the first brightness values of the P pixels, and calculate the first brightness values of the N first pixels.
  • the second saturation value is less than the first saturation value, which can reduce the saturation of pixels with larger brightness, so that when the second device performs distributed display, the picture color is comfortable, and the user will not be overexposed and over bright. Viewing experience.
  • the first brightness value of the j-th pixel in the P pixels can be denoted as L j
  • the first saturation value of the j-th pixel in the P pixels can be denoted as S j ; where j It is an integer greater than or equal to 1 and less than or equal to P.
  • the first brightness value of the i-th first pixel in the N first pixels can be denoted as Li ', Li ' is greater than the first threshold, and the i-th first pixel in the N first pixels
  • the first saturation value can be denoted as S i '; where i is an integer greater than or equal to 1 and less than or equal to N.
  • I is the basic stimulus amount
  • ⁇ I is the difference amount
  • I can be the sum of the first brightness values of the P pixels
  • ⁇ I can be the sum of the first brightness values of the N first pixels
  • Q can be the second threshold.
  • the ratio of the sum of the first brightness values of the N first pixels to the sum of the first brightness values of the P pixels can be calculated, and it is determined whether the ratio is greater than or equal to the second threshold. It is understandable that when the overall brightness of the first interface is very low, users can also notice the overexposure in a small area; when the overall brightness of the first interface is high, a large area or strong local overexposure is required. Let users notice.
  • the first device may calculate the sum of the first brightness values of the P pixels by using the following formula (2),
  • L j is the first brightness value of the j-th pixel in the P pixels
  • the first brightness values of the P pixels can be added and summed by formula (2).
  • P is 10
  • the value of j ranges from 1 to 10.
  • the first device may calculate the sum of the first brightness values of the N first pixels by using the following formula (2),
  • L i ′ is the first brightness value of the i-th first pixel in the N first pixels, that is, the first brightness value of the over-bright or over-exposed pixel in the P pixels.
  • the first brightness values of the N first pixels can be summed up by formula (3).
  • Trunc() in formula (3) is a cut-off function. In general, when the brightness value of a pixel exceeds a certain threshold, it is considered that the stimulus to the human eye is no longer increased. Therefore, the cut-off function The effect may be to keep the first brightness value exceeding a certain threshold at the threshold.
  • the first threshold is 50
  • the first interface includes 4 first interfaces whose first brightness value exceeds 50. Pixel (that is, N is 4). At this time, the value of i ranges from 1 to 4.
  • step S803 may refer to step S14 shown in FIG. 9 to determine whether the color data of the first interface meets the second color replacement condition, for example, calculate the color data according to the above formulas (1), (2) and (3).
  • the replacement condition is to perform step S15 of subsequent color replacement, that is, to calculate the second saturation value of each of the N first pixels. If the ratio is less than the second threshold, it can be determined that the color data of the first interface does not meet the second color replacement condition. As shown in FIG. 9, the first device can directly perform interface distribution without performing subsequent steps.
  • the first saturation value may be replaced with the value of the sub-level radial saturation in the CMC color ellipse.
  • the first device may determine that the first saturation value of the i-th first pixel among the N first pixels is located in the k-th interval of the CMC color ellipse, where the CMC color ellipse may include radially divided z intervals.
  • z is an integer greater than or equal to 1
  • k is an integer greater than or equal to 1, and less than or equal to z.
  • the random value in the k-1th interval is determined as the second saturation value of the i-th first pixel, so that the second saturation value of each of the N first pixels can be determined.
  • the k-1th interval is an interval next to the kth interval in the CMC color ellipse, the k-1th interval is adjacent to the kth interval, and in general, the kth interval The maximum value in an interval is smaller than the minimum value in the k-th interval.
  • the first device may calculate the interval in which the first saturation value of the i-th first pixel among the N pixels is located by the following formula (4),
  • S i is the saturation value obtained after normalizing the first saturation value S i 'of the i-th first pixel to [0,1], and ⁇ is the smallest quantized value that can be expressed in the computer (For example, 0.01, 0.02, or 0.1, etc.), z means that the CMC color ellipse is radially divided into z intervals, and k means that the first saturation value of the i-th pixel is located in the kth of the n intervals Intervals. Among them, For right Is rounded down.
  • the first device may calculate the value range of the k-1th interval by the following formula (5), and select a random value in the interval, thereby calculating the N pixels
  • S i * is the second saturation value of the i-th first pixel calculated according to the normalized first saturation value of the i-th first pixel (that is, S i * is normalized to The second saturation value of [0,1])
  • rand() is a random number generation function, through which a random number can be generated within a certain range
  • the saturation value range is the above-mentioned 0 to 255
  • the second saturation value of the i-th first pixel can be calculated to be 102.
  • the second saturation value 102 is smaller than the first saturation value 153.
  • the value range of the seventh interval can be Obviously, the maximum value in the 6th interval is smaller than the minimum value in the 7th interval, that is, the maximum value in the k-1th interval is smaller than the minimum value in the kth interval, so that it can be achieved.
  • the purpose of reducing the saturation value of the pixels with larger brightness to optimize the display effect will not be repeated here.
  • Step S804 generating second information, the second information including the first brightness value and the second saturation value of the N first pixels, and the first brightness value and the first saturation value of the M second pixels.
  • the first device may generate second information after calculating the second saturation value of each of the N first pixels, and the second information may include the first brightness value and the second saturation value of the N first pixels Value, and the first brightness value and first saturation value of the M second pixels.
  • the second information can be used by the second device to display the second interface according to the second information, so as to complete the interface distribution display from the first device to the second device, and make the second device be based on the first device.
  • the second interface is displayed on the first interface, the color of the screen is reasonable and comfortable, and it will not be overexposed and bright.
  • the first brightness value of the M second pixels is less than or equal to the first threshold value, and generally will not cause the picture to be over-bright and over-exposed when being distributed and displayed on the second device, so there is no need to change the first brightness value. Saturation value.
  • the computing device may also calculate the second color values of the N first pixels and the M second color values through color space conversion (for example, conversion from HSL color space to RGB color space) according to the second information.
  • the first color value of the pixel, and the third information is generated.
  • the computing device may calculate the second color value of the N first pixels according to the first brightness value and the second saturation value of the N first pixels, and may also obtain the second color value of the M second pixels according to the first brightness value and the second saturation value of the N first pixels.
  • a brightness value and a first saturation value are calculated to obtain the first color values of the M first pixels.
  • the third information may include the second color values of the N first pixels and the first color values of the M second pixels.
  • the computing device may specifically display the second interface according to the third information.
  • the first device updates the interface color
  • the method of generating the corresponding third information may include but is not limited to the following:
  • FIG. 10 is a schematic diagram of a set of distribution display effects comparison provided by an embodiment of the present application.
  • the source interface on the mobile phone is displayed on the LCD TV as an example.
  • the normal display interface on the source device such as the mobile phone is displayed in the distribution.
  • the opposite terminal interface 1 is the interface displayed after the source interface on the mobile phone is directly distributed on the LCD TV.
  • the opposite terminal interface 2 adopts a distributed display method in this application.
  • the relevant display information of the source interface on the mobile phone is processed accordingly (for example, to reduce the saturation value of multiple pixels in the source interface, thereby changing its color value, etc.), and then distributed to the LCD TV and then displayed interface.
  • the display effect of the opposite terminal interface 1 is poor, the screen color is too bright and the color is too bright, and the user’s long-term viewing will cause discomfort such as eye fatigue, eye swelling, and itching, while the opposite terminal interface 2
  • the display effect is better, the color of the picture is reasonable and comfortable, and it is not dazzling, which ensures the comfort of the user's viewing.
  • the display effect of the peer interface 2 is relatively consistent with the display effect of the source interface on the mobile phone, which ensures the consistency of the user viewing experience of the display interfaces on different devices in the distributed display scenario.
  • embodiments of the present application provide a distributed display method.
  • the display screen on a mobile terminal device such as a mobile phone needs to be distributed to other peer devices .
  • First judge the peer device If it is determined that the peer device is a large-screen device with poor color display, such as LCD TVs or other large-screen devices with poor color reproduction, you can extract the information of the interface to be displayed on mobile terminal devices such as mobile phones.
  • the brightness of the color When the brightness exceeds a certain threshold, that is, there is an area with greater brightness on the interface, which is likely to cause problems such as overexposure and brightness of the screen when it is displayed on the opposite device.
  • the color of the interface is processed, for example, the saturation value of pixels whose brightness exceeds the threshold can be reduced. For example, other approximate color ellipses with lower brightness and saturation close to the center of the CMC color difference ellipse can be extracted according to certain selection rules.
  • the color value of the center point (the range of color difference that can be distinguished by the naked eye) replaces the original color that may display poorly.
  • the distributed display is performed on the peer device, so that the display effect on the peer device can be optimized, and the final effect of the display content is not glaring, not too explosive, and comfortable to the naked eye after the display of the device is changed.
  • the embodiment of the present application also provides a method to solve the problem that individual devices tend to cast red and blue lights.
  • the screen type can be obtained and the database can be maintained, and then the color can be replaced by the screen color management database, to achieve the final effect that the naked eye looks closer to the original color after the device is changed.
  • FIG. 11 is a schematic structural diagram of a distributed display device provided by an embodiment of the present application.
  • the distributed display device may include a device 30, which may include an acquiring unit 301, a first determining unit 302, and a second determining unit.
  • the acquiring unit 301 is configured to acquire first information of a first interface, where the first information includes the first brightness value and the first saturation value of each of the P pixels in the first interface; the first interface is The interface displayed in the first device; P is an integer greater than or equal to 1;
  • the first determining unit 302 is configured to determine N first pixels and M second pixels in the first interface; the first brightness value of each first pixel in the N first pixels is greater than A first threshold; the first brightness value of each second pixel of the M second pixels is less than or equal to the first threshold; N and M are integers greater than or equal to 1;
  • the second determining unit 303 is configured to: if the ratio of the sum of the first brightness values of the N first pixels to the sum of the first brightness values of the P pixels is greater than or equal to a second threshold, Determine the second saturation value of the N first pixels; the second saturation value is less than the first saturation value;
  • the first generating unit 304 is configured to generate second information, the second information including the first brightness value and the second saturation value of the N first pixels, and the M second pixels The first brightness value and the first saturation value of, and the second information is used by the second device to display a second interface according to the second information.
  • the second determining unit 303 is specifically configured to:
  • the first saturation value of the i-th first pixel in is located in the k-th interval; i is an integer greater than or equal to 1 and less than or equal to N; k is an integer greater than 1;
  • the random value in the k-1th interval is determined as the second saturation value of the i-th first pixel; the k-1th interval is adjacent to the kth interval, and the The maximum value in the k-1 interval is smaller than the minimum value in the k-th interval.
  • the acquiring unit 301 is specifically configured to:
  • the first brightness value and the first saturation value of each of the P pixels are calculated through color space transformation.
  • the first interface includes one or more image areas; the acquiring unit 301 is also specifically configured to:
  • the first color value of each pixel in the pixel array of each image area is calculated to obtain the first color value of each of the P pixels in the first interface.
  • the first interface further includes one or more text areas; the obtaining unit 301 is further configured to:
  • the first brightness value and the first brightness value of each text in each text area are calculated through color space transformation. Saturation value.
  • the device 30 further includes:
  • a calculation unit 305 configured to calculate the second color values of the N first pixels and the first color values of the M second pixels according to the second information
  • the second generating unit 306 is configured to generate third information, the third information including the second color values of the N first pixels and the first color values of the M second pixels; The third information is used by the second device to display the second interface according to the third information.
  • the second device is a device whose screen light-emitting brightness and/or color saturation is greater than that of the first device.
  • each functional unit in the distributed display device described in the embodiment of the present application can refer to the related description of step S801 to step S804 in the method embodiment described in FIG. 8, and details are not repeated here. .
  • Each unit in FIG. 11 can be implemented by software, hardware, or a combination thereof.
  • the hardware-implemented units can include circuits and electric furnaces, arithmetic circuits or analog circuits, etc.
  • a unit implemented in software may include program instructions, which is regarded as a software product, is stored in a memory, and can be run by a processor to implement related functions. For details, refer to the previous introduction.
  • an embodiment of the present application also provides a terminal device.
  • FIG. 12 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
  • the terminal device 40 includes at least a processor 401, an input device 402, an output device 403, and a computer-readable storage medium 404.
  • the terminal device It can also include other common components, which will not be described in detail here.
  • the processor 401, the input device 402, the output device 403, and the computer-readable storage medium 404 in the terminal device may be connected by a bus or other means, which is not specifically limited in the embodiment of the present application.
  • the processor 401 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the above program programs.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • the memory 406 in the terminal device can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM), or can store Other types of dynamic storage devices for information and instructions can also be Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory, CD-ROM or Other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired commands or data structures Program code and any other medium that can be accessed by the computer, but not limited to this.
  • the memory 406 may exist independently, and is connected to the processor 401 through a bus.
  • the memory 406 may also be integrated with the processor 401.
  • the computer-readable storage medium 404 may be stored in the memory 406 of the terminal device.
  • the computer-readable storage medium 404 is used to store a computer program.
  • the computer program includes program instructions.
  • the processor 401 is used to execute the computer program. Read the program instructions stored in the storage medium 404.
  • the processor 401 (or CPU (Central Processing Unit, central processing unit)) is the computing core and control core of the terminal device.
  • the processor 401 described in the embodiment of the present application may be used to perform a series of processing of distributed display, including: acquiring first information of the first interface, the first information Including the first brightness value and the first saturation value of each of the P pixels in the first interface; the first interface is the interface displayed in the first device; P is an integer greater than or equal to 1; N first pixels and M second pixels in the first interface; the first brightness value of each first pixel in the N first pixels is greater than a first threshold; the M second pixels The first brightness value of each second pixel in the pixels is less than or equal to the first threshold; N and M are integers greater than or equal to 1; if the first brightness value of the N first pixels If the ratio of the sum of the first brightness values of the P pixels to the sum of the first brightness values is greater than or equal to a second threshold, the second saturation value of the N first pixels is determined; the second
  • the embodiment of the present application also provides a computer-readable storage medium (Memory).
  • the computer-readable storage medium is a memory device in a terminal device for storing programs and data. It can be understood that the computer-readable storage medium herein may include a built-in storage medium in the terminal device, and of course, may also include an extended storage medium supported by the terminal device.
  • the computer-readable storage medium provides storage space, and the storage space stores the operating system of the terminal device.
  • one or more instructions suitable for being loaded and executed by the processor 401 are stored in the storage space, and these instructions may be one or more computer programs (including program codes).
  • the computer-readable storage medium here may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory; optionally, it may also be at least one located far away from the foregoing
  • the processor is a computer-readable storage medium.
  • the embodiments of the present application also provide a computer program, which includes instructions, when the computer program is executed by a computer, the computer can execute part or all of the steps of any distributed display method.
  • the disclosed device may be implemented in other ways.
  • the device embodiments described above are merely illustrative, for example, the division of the above-mentioned units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored, or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
  • the units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
  • the functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit.
  • the above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
  • the aforementioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server or a network device, etc., specifically a processor in a computer device) execute all or part of the steps of the foregoing methods of the various embodiments of the present application.
  • the aforementioned storage medium may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (Read-Only Memory, abbreviation: ROM) or Random Access Memory (Random Access Memory, abbreviation: RAM), etc.
  • the medium of the program code may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (Read-Only Memory, abbreviation: ROM) or Random Access Memory (Random Access Memory, abbreviation: RAM), etc.
  • the medium of the program code may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (Read-Only Memory, abbreviation: ROM) or Random Access Memory (Random Access Memory, abbreviation: RAM), etc.
  • the medium of the program code may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (Read-Only Memory, abbreviation: ROM) or Random Access Memory (Random Access Memory, abbreviation: RAM), etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Computer Hardware Design (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Color Image Communication Systems (AREA)

Abstract

Disclosed in embodiments of the present application are a distributed display method and a related device, which can be specifically applied to the field of distributed display and the like. The method comprises: obtaining first information of a first interface, the first information comprising a first luminance value and a first saturation value of each of P pixels in the first interface, and the first interface being an interface displayed in a first device; determining N first pixels and M second pixels in the first interface; if the ratio of the sum of the first luminance values of the N first pixels to the sum of the first luminance values of the P pixels is greater than or equal to a second threshold, determining second saturation values of the N first pixels; and generating second information, the second information being used by the second device to display a second interface according to the second information. In this way, the problem of over-bright and over-exposed pictures when a local interface is displayed on other devices can be improved, and the user's comfort when watching the distributed display interfaces on different devices can be ensured.

Description

一种分布显示方法及相关设备A distributed display method and related equipment
本申请要求于2020年06月12日提交中国专利局、申请号为202010537460.3、申请名称为“一种分布显示方法及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on June 12, 2020, the application number is 202010537460.3, and the application name is "a distributed display method and related equipment", the entire content of which is incorporated into this application by reference middle.
技术领域Technical field
本申请涉及分布显示技术领域,尤其涉及一种分布显示方法及相关设备。This application relates to the field of distributed display technology, and in particular to a distributed display method and related equipment.
背景技术Background technique
随着智能移动硬件设备的发展,多设备之间的协作成为消费者的高频需求。目前多设备互相显示对端的界面内容已经存在有多种解决方案,但是针对不同硬件设备的显示优化方面却又有较大缺陷。With the development of smart mobile hardware devices, collaboration between multiple devices has become a high-frequency demand for consumers. At present, there have been many solutions for multiple devices to display the content of the opposite end of the interface, but there are major shortcomings in the display optimization for different hardware devices.
电视、电脑等液晶大屏设备由于使用了发光二极管(Light-Emitting Diode,LED)、有机发光二极管(Organic Light-Emitting Diode,OLED)或者液晶显示器(Liquid Crystal Display,LCD),并且其颜色表现会受到背光模组、偏光片、薄膜晶体管(Thin Film Transistor,TFT)结构、液晶、彩色滤光片结构、彩色滤光片基材等等多个环节的影响,造成不同厂家、不同设备的屏幕对蓝色、红色和黑色等颜色的还原显示差异较大。与此同时,电视机厂商会刻意让自己的显示屏色彩更“鲜艳”,造成原本在手机等移动设备上显示效果正常的界面,在分布到其他大屏设备上进行显示时,出现颜色过曝、过亮等情况。而研究表明,肉眼观看过亮的显示器画面更容易产生疲劳(例如眼睛发痒、发胀、流泪、对焦困难、头疼、恶心)等不适感,影响消费者体验。TVs, computers and other large LCD screens use light-emitting diodes (Light-Emitting Diode, LED), organic light-emitting diodes (Organic Light-Emitting Diode, OLED) or liquid crystal displays (Liquid Crystal Display, LCD), and their color performance will Affected by multiple links such as backlight module, polarizer, Thin Film Transistor (TFT) structure, liquid crystal, color filter structure, color filter substrate, etc., the screens of different manufacturers and different equipment are affected. The restoration of colors such as blue, red, and black is quite different. At the same time, TV manufacturers will deliberately make their display screens more "bright", causing the original display effect of mobile devices such as mobile phones to be normal, and when they are distributed to other large-screen devices for display, the colors appear overexposed. , Over-brightness, etc. Studies have shown that viewing a display screen that is too bright with the naked eye is more likely to cause fatigue (such as itchy eyes, swelling, tearing, difficulty focusing, headaches, nausea) and other discomforts, which affect the consumer experience.
因此,如何提升手机等移动终端的显示界面分布到液晶电视等其他大屏上显示时的显示效果,保证用户观看的舒适度是亟待解决的问题。Therefore, how to improve the display effect when the display interfaces of mobile terminals such as mobile phones are distributed to other large screens such as LCD TVs and ensure the comfort of users' viewing is an urgent problem to be solved.
发明内容Summary of the invention
本申请实施例提供一种分布显示方法及相关设备,可以改善源端界面在其他设备上分布显示时的画面过亮过曝等问题,优化显示效果,保证用户在观看不同设备上分布显示的界面时的舒适度。The embodiments of the present application provide a distributed display method and related equipment, which can improve the problem of over-bright and over-exposed pictures when the source interface is distributed and displayed on other devices, optimize the display effect, and ensure that users watch the distributed display interfaces on different devices Comfort at the time.
第一方面,本申请实施例提供了一种分布显示方法,包括:获取第一界面的第一信息,所述第一信息包括所述第一界面中的P个像素各自的第一亮度值和第一饱和度值;所述第一界面为在第一设备中显示的界面;P为大于或者等于1的整数;确定所述第一界面中的N个第一像素和M个第二像素;所述N个第一像素中的每一个第一像素的所述第一亮度值大于第一阈值;所述M个第二像素中的每一个第二像素的所述第一亮度值小于或者等于所述第一阈值;N、M为大于或者等于1的整数;若所述N个第一像素的所述第一亮度值的和与所述P个像素的所述第一亮度值的和的比值大于或者等于第二阈值,则确定所述N个第一像素的第二饱和度值;所述第二饱和度值小于所述第一饱和度值;生成第二信息,所述第二信息包括所述N个第一像素的所述第一亮度值和所述第二饱和度值,以及所述M个第二像素的所述第一亮度值和所述第一饱和度值;所述第二信息用于第二设备根据所述第二 信息显示第二界面。In a first aspect, an embodiment of the present application provides a distributed display method, including: acquiring first information of a first interface, where the first information includes first brightness values of P pixels in the first interface and A first saturation value; the first interface is an interface displayed in a first device; P is an integer greater than or equal to 1; determining N first pixels and M second pixels in the first interface; The first brightness value of each first pixel in the N first pixels is greater than a first threshold; the first brightness value of each second pixel in the M second pixels is less than or equal to The first threshold; N and M are integers greater than or equal to 1; if the sum of the first brightness values of the N first pixels is equal to the sum of the first brightness values of the P pixels If the ratio is greater than or equal to the second threshold, the second saturation value of the N first pixels is determined; the second saturation value is less than the first saturation value; second information is generated, the second information Including the first brightness value and the second saturation value of the N first pixels, and the first brightness value and the first saturation value of the M second pixels; The second information is used by the second device to display the second interface according to the second information.
通过第一方面提供的方法,当需要将终端设备上显示的界面分布到其他设备上进行显示时,可以在分布显示开始前,对该界面进行预处理,例如降低该界面中亮度较大的像素的饱和度值等等,然后再分布显示到其他设备上,从而优化其他设备上的显示效果。通常情况下,由于不同设备之间显示器件的差异,使得不同设备之间存在屏幕发光亮度和色彩饱和度等等方面的差异,如此,容易导致在终端设备上显示效果正常的界面,分布到其他设备上进行显示时的显示效果较差。例如,在将手机等移动终端设备上的界面分布显示到液晶电视等大屏设备上时,由于大屏设备的屏幕尺寸、画面清晰度、发光亮度以及色彩鲜艳程度等往往大于手机,因此容易导致在分布显示过程中,液晶电视等大屏设备上显示的画面过曝过亮,色彩过于艳丽,极大程度的影响了用户的观看体验。具体地,在将终端设备上的界面分布显示到其他设备上之前,可以提取该界面中的部分或者全部像素的亮度值和饱和度值,当该界面中存在大量像素的亮度超过一定阈值时,则可以先对该界面进行处理,例如可以降低其中亮度值超过阈值的像素的饱和度值,然后再将该降低了部分像素的饱和度值的界面分布显示到其他设备上。由此,对比现有技术中,直接将手机等移动终端设备上的界面分布显示到液晶电视等大屏设备上,容易造成大屏设备上显示的画面过曝过亮,色彩过于艳丽等等问题,并且导致用户长期观看的不舒适、眼睛疲劳的方案而言。本申请实施例可以在将手机等终端设备上的界面分布到其他设备(例如液晶电视或者其他色彩还原不佳的大屏设备)上进行显示前,将待分布显示的界面中亮度较大的像素的饱和度值替换为较小的饱和度值,使得其他设备在进行分布显示时,其显示界面色彩舒适,不会过曝过亮,大大提升了用户的观看舒适度。With the method provided in the first aspect, when the interface displayed on the terminal device needs to be distributed to other devices for display, the interface can be preprocessed before the distributed display starts, such as reducing the pixels with larger brightness in the interface The saturation value and so on, and then distribute the display to other devices, thereby optimizing the display effect on other devices. Under normal circumstances, due to the differences in display devices between different devices, there are differences in screen brightness and color saturation between different devices. This can easily lead to the normal display of the interface on the terminal device, which is distributed to other devices. The display effect is poor when displayed on the device. For example, when the interface on mobile terminal devices such as mobile phones is displayed on large-screen devices such as LCD TVs, the screen size, picture clarity, brightness, and color brightness of the large-screen devices are often larger than that of the mobile phone, which is easy to cause In the process of distributed display, the pictures displayed on large-screen devices such as LCD TVs are overexposed and bright, and the colors are too bright, which greatly affects the user's viewing experience. Specifically, before the interface on the terminal device is distributed and displayed on other devices, the brightness and saturation values of some or all of the pixels in the interface can be extracted. When the brightness of a large number of pixels in the interface exceeds a certain threshold, Then, the interface can be processed first, for example, the saturation value of pixels whose brightness value exceeds the threshold can be reduced, and then the interface distribution whose saturation value of some pixels has been reduced can be displayed on other devices. Therefore, compared with the prior art, directly distributing the interface on mobile terminal devices such as mobile phones and displaying them on large-screen devices such as LCD TVs can easily cause problems such as overexposure and bright colors and excessively bright colors displayed on large-screen devices. , And cause long-term discomfort and eye fatigue for users. In the embodiment of the present application, before distributing the interface on terminal devices such as mobile phones to other devices (such as LCD TVs or other large-screen devices with poor color reproduction) for display, the pixels with larger brightness in the interface to be displayed can be distributed. The saturation value of is replaced with a smaller saturation value, so that when other devices are performing distributed display, the color of the display interface is comfortable and will not be overexposed and bright, which greatly improves the viewing comfort of the user.
在一种可能的实现方式中,所述若所述N个第一像素的所述第一亮度值的和与所述P个像素的所述第一亮度值的和的比值大于或者等于第二阈值,则确定所述N个第一像素的第二饱和度值,包括:若所述N个第一像素的所述第一亮度值的和与所述P个像素的所述第一亮度值的和的比值大于或者等于第二阈值,则确定所述N个第一像素中的第i个第一像素的所述第一饱和度值位于第k个区间;i为大于或者等于1,且小于或者等于N的整数;k为大于1的整数;将第k-1个区间内的随机值确定为所述第i个第一像素的第二饱和度值;所述第k-1个区间与所述第k个区间相邻,且所述第k-1个区间内的最大值小于所述第k个区间内的最小值。In a possible implementation manner, if the ratio of the sum of the first brightness values of the N first pixels to the sum of the first brightness values of the P pixels is greater than or equal to the second Threshold, determining the second saturation value of the N first pixels, including: if the sum of the first brightness values of the N first pixels and the first brightness values of the P pixels If the ratio of the sum is greater than or equal to the second threshold, it is determined that the first saturation value of the i-th first pixel among the N first pixels is located in the k-th interval; i is greater than or equal to 1, and An integer less than or equal to N; k is an integer greater than 1; the random value in the k-1th interval is determined as the second saturation value of the i-th first pixel; the k-1th interval It is adjacent to the kth interval, and the maximum value in the k-1th interval is smaller than the minimum value in the kth interval.
在本申请实施例中,当需要将终端设备上显示的界面分布到其他设备上进行显示时,若该终端设备上显示的界面中的存在大量像素的亮度值超过阈值,或者存在超过一定比例的像素的亮度值大于阈值(也即该界面中存在亮度较大的区域,该区域若未经处理而直接分布显示到液晶电视等其他设备上,容易导致其他设备上显示的画面过曝过亮,引起用户长期观看的眼睛疲劳、眼睛发胀、发痒,甚至流泪等等),则该终端设备可以通过确定该亮度值超过阈值的像素的饱和度值所在的区间为第k个区间,然后再在次一级区间内,也即在第k-1个区间内选取随机值作为该像素的新饱和度值。其中,该第k-1个区间与该第k个区间可以相邻,且该第k-1个区间内的最大值可以小于该第k个区间内的最小值(例如该第k-1个区间可以为(1,2),该第k个区间可以为(2,3)等等)。由此,可以快速确定该亮度值超过阈值的像素的新饱和度值,也即降低了亮度值超过阈值的像素的饱和度值,从 而使得其他设备在分布显示时,画面色彩合适,不会过曝过亮,不会引起用户的不适,保证用户的体验。In the embodiments of the present application, when the interface displayed on the terminal device needs to be distributed to other devices for display, if there are a large number of pixels in the interface displayed on the terminal device whose brightness values exceed the threshold, or there are more than a certain proportion The brightness value of the pixel is greater than the threshold value (that is, there is a brighter area in the interface. If this area is directly distributed and displayed on other devices such as LCD TVs without processing, it will easily cause the screen displayed on other devices to be overexposed and bright. Causes long-term eyestrain, eye swelling, itching, or even tearing of the user's eyes, etc.), the terminal device can determine the interval where the saturation value of the pixel whose brightness value exceeds the threshold is the kth interval, and then In the second-level interval, that is, in the k-1th interval, a random value is selected as the new saturation value of the pixel. Wherein, the k-1th interval and the kth interval may be adjacent, and the maximum value in the k-1th interval may be smaller than the minimum value in the kth interval (for example, the k-1th interval The interval can be (1,2), and the k-th interval can be (2, 3), etc.). As a result, the new saturation value of the pixel whose brightness value exceeds the threshold can be quickly determined, that is, the saturation value of the pixel whose brightness value exceeds the threshold is reduced, so that when other devices are displayed in a distributed display, the picture color is appropriate and will not be too high. Excessive exposure will not cause discomfort to users and ensure user experience.
在一种可能的实现方式中,所述获取第一界面的第一信息,包括:获取所述第一界面中的所述P个像素各自的第一颜色值;根据所述P个像素各自的所述第一颜色值,通过色彩空间变换,计算得到所述P个像素各自的所述第一亮度值和所述第一饱和度值。In a possible implementation manner, the obtaining the first information of the first interface includes: obtaining the first color value of each of the P pixels in the first interface; The first color value is calculated through color space transformation to obtain the first brightness value and the first saturation value of each of the P pixels.
在本申请实施例中,由于终端设备无法直接获取像素的亮度值和饱和度值,则可以首先通过获取该终端设备的界面中的部分或者全部像素各自的颜色值(例如为00A5FF、7FFFD4和8A2BE2等等的RGB颜色值),然后再通过色彩空间变换(例如为从RGB颜色空间变换到HSL颜色空间),计算得到该部分或者全部像素各自的颜色值所对应的亮度值和饱和度值,可选地,还可以计算得到对应的色相值,等等。由此,可以快速、准确的获取到该终端设备的界面中的部分或者全部像素各自的亮度值和饱和度值,以便于后续通过该亮度值,判断该界面中是否存在亮度较大的区域,是否要降低其中亮度较大的像素的饱和度值,等等,以提升该界面分布到其他设备上时的显示效果,保证用户的观看体验。In the embodiment of the present application, since the terminal device cannot directly obtain the brightness value and saturation value of the pixel, you can first obtain the respective color values of some or all of the pixels in the interface of the terminal device (for example, 00A5FF, 7FFFD4, and 8A2BE2). And so on), and then through color space transformation (for example, from RGB color space to HSL color space), the brightness and saturation values corresponding to the respective color values of the part or all of the pixels can be calculated. Optionally, you can also calculate the corresponding hue value, and so on. As a result, the respective brightness and saturation values of some or all of the pixels in the interface of the terminal device can be quickly and accurately obtained, so that the brightness value can be used to determine whether there is a brighter area in the interface. Whether to reduce the saturation value of the pixels with larger brightness, etc., to improve the display effect of the interface when it is distributed to other devices, and to ensure the user's viewing experience.
在一种可能的实现方式中,所述第一界面包括一个或多个图像区域;所述获取所述第一界面中的所述P个像素各自的第一颜色值,包括:提取所述第一界面中的所述一个或多个图像区域中的每一个图像区域的像素数组;计算所述每一个图像区域的像素数组内的每一个像素的所述第一颜色值,得到所述第一界面中的所述P个像素各自的所述第一颜色值。In a possible implementation manner, the first interface includes one or more image regions; the acquiring the first color value of each of the P pixels in the first interface includes: extracting the first color value of the P pixels in the first interface. The pixel array of each image area in the one or more image areas in an interface; calculating the first color value of each pixel in the pixel array of each image area to obtain the first The first color value of each of the P pixels in the interface.
在本申请实施例中,该第一设备上显示的第一界面中可以包括一个或多个图像区域,可以通过提取该一个或多个图像区域中的每一个图像区域的像素数组(例如为一个w*h的二维矩阵);然后,计算该每一个图像区域的像素数组内的每一个像素的第一颜色值,从而可以得到该第一界面中的P个像素各自的第一颜色值,以便于后续计算得到该P个像素各自的第一亮度值和第一饱和度值。In the embodiment of the present application, the first interface displayed on the first device may include one or more image areas, and the pixel array (for example, one w*h two-dimensional matrix); then, the first color value of each pixel in the pixel array of each image area is calculated, so that the first color value of each P pixel in the first interface can be obtained, In order to facilitate subsequent calculations to obtain the first brightness value and the first saturation value of each of the P pixels.
在一种可能的实现方式中,所述第一界面还包括一个或多个文字区域;所述获取第一界面的第一信息,还包括:获取所述第一界面中的所述一个或多个文字区域中的每一个文字区域内的每一个文字的所述第一颜色值;根据所述每一个文字区域内的每一个文字的所述第一颜色值,通过色彩空间变换,计算得到所述每一个文字区域内的每一个文字的所述第一亮度值和所述第一饱和度值。In a possible implementation manner, the first interface further includes one or more text areas; the obtaining the first information of the first interface further includes: obtaining the one or more of the first interface The first color value of each text in each text area in each text area; according to the first color value of each text in each text area, through color space transformation, the calculated value is obtained The first brightness value and the first saturation value of each character in each character area.
在本申请实施例中,该第一设备上显示的第一界面中还可以包括一个或多个文字区域,该第一界面的第一信息还可以包括该一个或多个文字区域内的每一个文字区域中的每一个文字的第一亮度值和第一饱和度值。由此,可以通过获取每一个文字区域内的每一个文字的第一颜色值;然后,根据每一个文字区域内的每一个文字的所述第一颜色值,通过色彩空间变换(例如为从RGB颜色空间变换到HSL颜色空间),计算得到每一个文字区域内的每一个文字的第一亮度值和第一饱和度值,可选地,还可以计算得到每一个文字的第一色相值。以便于后续根据该第一亮度值和第一饱和度值对该第一界面中的文字区域内的文字的第二饱和度值进行计算,从而得到较低的饱和度值,使得分布显示的效果更好。如此,若该第一界面中存在文字区域,则可以使得该文字区域在分布显示到第二设备上时具备较好的显示效果,不会过曝过亮,影响用户的观看体验。In the embodiment of the present application, the first interface displayed on the first device may further include one or more text areas, and the first information of the first interface may also include each of the one or more text areas. The first brightness value and the first saturation value of each text in the text area. Thus, the first color value of each text in each text area can be obtained; then, according to the first color value of each text in each text area, the color space is transformed (for example, from RGB The color space is converted to the HSL color space), and the first brightness value and the first saturation value of each text in each text area are calculated. Optionally, the first hue value of each text can also be calculated. In order to facilitate the subsequent calculation of the second saturation value of the text in the text area in the first interface according to the first brightness value and the first saturation value, so as to obtain a lower saturation value, so that the effect of the distributed display better. In this way, if there is a text area in the first interface, the text area can have a better display effect when the text area is distributed and displayed on the second device, and it will not be overexposed and bright, which affects the user's viewing experience.
在一种可能的实现方式中,所述方法还包括:根据所述第二信息,计算所述N个第一 像素的第二颜色值和所述M个第二像素的所述第一颜色值;生成第三信息,所述第三信息包括所述N个第一像素的所述第二颜色值和所述M个第二像素的所述第一颜色值;所述第三信息用于所述第二设备根据所述第三信息显示所述第二界面。In a possible implementation, the method further includes: calculating the second color values of the N first pixels and the first color values of the M second pixels according to the second information Generating third information, the third information including the second color values of the N first pixels and the first color values of the M second pixels; the third information is used for all The second device displays the second interface according to the third information.
在本申请实施例中,可以根据第二信息(例如包括N个第一像素的第一亮度值和第二饱和度值,以及M个第二像素的第一亮度值和第一饱和度值),计算N个第一像素各自的第二颜色值和M个第二像素各自的第一颜色值,并生成第三信息(例如包括N个第一像素各自的第二颜色值和M个第二像素各自的第一颜色值);然后,第一设备可以将该第三信息传输给第二设备,该第二设备可以根据该第三信息显示第二界面,从而可以改善第二设备分布显示时的显示效果,使得显示画面不刺眼,且肉眼观看舒适,保证用户的观看体验。In the embodiment of the present application, it can be based on the second information (for example, including the first brightness value and the second saturation value of the N first pixels, and the first brightness value and the first saturation value of the M second pixels) , Calculate the respective second color values of the N first pixels and the respective first color values of the M second pixels, and generate third information (for example, including the respective second color values of the N first pixels and the M second The first color value of each pixel); then, the first device can transmit the third information to the second device, and the second device can display the second interface based on the third information, thereby improving the distribution display time of the second device The display effect makes the display screen not glare, and is comfortable to watch with the naked eye, ensuring the user's viewing experience.
在一种可能的实现方式中,所述第二设备为屏幕发光亮度和/或色彩饱和度大于所述第一设备的设备。In a possible implementation manner, the second device is a device whose screen light-emitting brightness and/or color saturation is greater than that of the first device.
在本申请实施例中,该第二设备一般为屏幕发光亮度和/或色彩饱和度大于所述第一设备的设备。可选地,该第二设备还可以是屏幕发光亮度小于或者等于该第一设备,但是色彩显示鲜艳程度大于该第一设备的设备,等等。例如,该第二设备例如可以为液晶电视、台式电脑等大屏设备,也可以为其他色彩还原效果不佳,对某些颜色的显示特别艳丽的设备,该第一设备例如可以为智能手机、平板电脑、笔记本电脑等等移动终端设备。由此,若直接将该第一设备上显示的界面分布到第二设备上进行显示,则容易因为两者的显示差距导致该第二设备上显示的画面过曝过亮,色彩过于艳丽,等等,无法保证用户观看的舒适度。而通过本申请提供的一种分布显示方法,可以在第一设备进行分布显示前,对界面进行判断和预处理,使得第一设备上显示的界面在第二设备上进行分布显示时,具备较好的显示效果,显示画面不刺眼,且肉眼观看舒适,也即达到换设备显示后,优化显示效果的目的,可以保证不同设备上用户观看体验的一致性。In the embodiment of the present application, the second device is generally a device with a screen whose brightness and/or color saturation are greater than that of the first device. Optionally, the second device may also be a device whose screen luminous brightness is less than or equal to that of the first device, but whose color display is more vivid than the first device, and so on. For example, the second device may be a large-screen device such as an LCD TV, a desktop computer, etc., or it may be another device with poor color reproduction effect and particularly brilliant display of certain colors. The first device may be, for example, a smart phone, Mobile terminal devices such as tablets and laptops. Therefore, if the interface displayed on the first device is directly distributed to the second device for display, it is easy to cause the screen displayed on the second device to be overexposed and bright, the color is too bright, etc. Etc., the user’s viewing comfort cannot be guaranteed. With the distributed display method provided by this application, the interface can be judged and preprocessed before the distributed display of the first device, so that the interface displayed on the first device has a better performance when the distributed display on the second device is performed. Good display effect, the display screen is not glaring, and it is comfortable to watch with the naked eye, that is, to achieve the purpose of optimizing the display effect after changing the display of the device, which can ensure the consistency of the user's viewing experience on different devices.
第二方面,本申请实施例提供的一种分布显示装置,所述装置包括:In the second aspect, an embodiment of the present application provides a distributed display device, which includes:
获取单元,用于获取第一界面的第一信息,所述第一信息包括所述第一界面中的P个像素各自的第一亮度值和第一饱和度值;所述第一界面为在第一设备中显示的界面;P为大于或者等于1的整数;The acquiring unit is configured to acquire first information of the first interface, where the first information includes the first brightness value and the first saturation value of each of the P pixels in the first interface; the first interface is The interface displayed in the first device; P is an integer greater than or equal to 1;
第一确定单元,用于确定所述第一界面中的N个第一像素和M个第二像素;所述N个第一像素中的每一个第一像素的所述第一亮度值大于第一阈值;所述M个第二像素中的每一个第二像素的所述第一亮度值小于或者等于所述第一阈值;N、M为大于或者等于1的整数;The first determining unit is configured to determine N first pixels and M second pixels in the first interface; the first brightness value of each first pixel in the N first pixels is greater than the first brightness value of the first pixel A threshold; the first brightness value of each second pixel of the M second pixels is less than or equal to the first threshold; N and M are integers greater than or equal to 1;
第二确定单元,用于若所述N个第一像素的所述第一亮度值的和与所述P个像素的所述第一亮度值的和的比值大于或者等于第二阈值,则确定所述N个第一像素的第二饱和度值;所述第二饱和度值小于所述第一饱和度值;The second determining unit is configured to determine if the ratio of the sum of the first brightness values of the N first pixels to the sum of the first brightness values of the P pixels is greater than or equal to a second threshold value The second saturation value of the N first pixels; the second saturation value is less than the first saturation value;
第一生成单元,用于生成第二信息,所述第二信息包括所述N个第一像素的所述第一亮度值和所述第二饱和度值,以及所述M个第二像素的所述第一亮度值和所述第一饱和度值;所述第二信息用于第二设备根据所述第二信息显示第二界面。The first generating unit is configured to generate second information, the second information including the first brightness value and the second saturation value of the N first pixels, and the information of the M second pixels The first brightness value and the first saturation value; the second information is used by the second device to display a second interface according to the second information.
在一种可能的实现方式中,所述第二确定单元,具体用于:In a possible implementation manner, the second determining unit is specifically configured to:
若所述N个第一像素的所述第一亮度值的和与所述P个像素的所述第一亮度值的和的比值大于或者等于第二阈值,则确定所述N个第一像素中的第i个第一像素的所述第一饱和度值位于第k个区间;i为大于或者等于1,且小于或者等于N的整数;k为大于1的整数;If the ratio of the sum of the first brightness values of the N first pixels to the sum of the first brightness values of the P pixels is greater than or equal to a second threshold, determine the N first pixels The first saturation value of the i-th first pixel in is located in the k-th interval; i is an integer greater than or equal to 1 and less than or equal to N; k is an integer greater than 1;
将第k-1个区间内的随机值确定为所述第i个第一像素的第二饱和度值;所述第k-1个区间与所述第k个区间相邻,且所述第k-1个区间内的最大值小于所述第k个区间内的最小值。The random value in the k-1th interval is determined as the second saturation value of the i-th first pixel; the k-1th interval is adjacent to the kth interval, and the The maximum value in the k-1 interval is smaller than the minimum value in the k-th interval.
在一种可能的实现方式中,所述获取单元,具体用于:In a possible implementation manner, the acquiring unit is specifically configured to:
获取所述第一界面中的所述P个像素各自的第一颜色值;Acquiring the first color value of each of the P pixels in the first interface;
根据所述P个像素各自的所述第一颜色值,通过色彩空间变换,计算得到所述P个像素各自的所述第一亮度值和所述第一饱和度值。According to the first color value of each of the P pixels, the first brightness value and the first saturation value of each of the P pixels are calculated through color space transformation.
在一种可能的实现方式中,所述第一界面包括一个或多个图像区域;所述获取单元,还具体用于:In a possible implementation manner, the first interface includes one or more image areas; the acquiring unit is further specifically configured to:
提取所述第一界面中的所述一个或多个图像区域中的每一个图像区域的像素数组;Extracting the pixel array of each of the one or more image areas in the first interface;
计算所述每一个图像区域的像素数组内的每一个像素的所述第一颜色值,得到所述第一界面中的所述P个像素各自的所述第一颜色值。The first color value of each pixel in the pixel array of each image area is calculated to obtain the first color value of each of the P pixels in the first interface.
在一种可能的实现方式中,所述第一界面还包括一个或多个文字区域;所述获取单元,还用于:In a possible implementation manner, the first interface further includes one or more text areas; the acquiring unit is further configured to:
获取所述第一界面中的所述一个或多个文字区域中的每一个文字区域内的每一个文字的所述第一颜色值;Acquiring the first color value of each text in each text area of the one or more text areas in the first interface;
根据所述每一个文字区域内的每一个文字的所述第一颜色值,通过色彩空间变换,计算得到所述每一个文字区域内的每一个文字的所述第一亮度值和所述第一饱和度值。According to the first color value of each text in each text area, the first brightness value and the first brightness value of each text in each text area are calculated through color space transformation. Saturation value.
在一种可能的实现方式中,所述装置还包括:In a possible implementation manner, the device further includes:
计算单元,用于根据所述第二信息,计算所述N个第一像素的第二颜色值和所述M个第二像素的所述第一颜色值;A calculation unit, configured to calculate the second color values of the N first pixels and the first color values of the M second pixels according to the second information;
第二生成单元,用于生成第三信息,所述第三信息包括所述N个第一像素的所述第二颜色值和所述M个第二像素的所述第一颜色值;所述第三信息用于所述第二设备根据所述第三信息显示所述第二界面。The second generating unit is configured to generate third information, where the third information includes the second color values of the N first pixels and the first color values of the M second pixels; The third information is used by the second device to display the second interface according to the third information.
在一种可能的实现方式中,所述第二设备为屏幕发光亮度和/或色彩饱和度大于所述第一设备的设备。In a possible implementation manner, the second device is a device whose screen light-emitting brightness and/or color saturation is greater than that of the first device.
第三方面,本申请实施例提供的一种终端设备,所述终端设备为第一设备,所述终端设备中包括处理器,处理器被配置为支持该终端设备实现第一方面提供的分布显示方法中相应的功能。该终端设备还可以包括存储器,存储器用于与处理器耦合,其保存该终端设备必要的程序指令和数据。该终端设备还可以包括通信接口,用于该终端设备与其他设备或通信网络通信。In a third aspect, an embodiment of the present application provides a terminal device, the terminal device is a first device, the terminal device includes a processor, and the processor is configured to support the terminal device to implement the distributed display provided in the first aspect The corresponding function in the method. The terminal device may also include a memory, which is used for coupling with the processor, and stores the necessary program instructions and data of the terminal device. The terminal device may also include a communication interface for the terminal device to communicate with other devices or a communication network.
第四方面,本申请实施例提供一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现上述第一方面中任意一项所述的分布 显示方法流程。In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium that stores a computer program that, when executed by a processor, implements the distribution described in any one of the above-mentioned first aspects Show method flow.
第五方面,本申请实施例提供了一种计算机程序,该计算机程序包括指令,当该计算机程序被计算机执行时,使得计算机可以执行上述第一方面中任意一项所述的分布显示方法流程。In a fifth aspect, an embodiment of the present application provides a computer program, the computer program includes instructions, when the computer program is executed by a computer, the computer can execute the process of the distributed display method described in any one of the first aspect.
第六方面,本本申请实施例提供了一种芯片系统,该芯片系统包括上述第一方面中任意一项所述的分布显示装置,用于实现上述第一方面中任意一项所述的分布显示方法流程所涉及的功能。在一种可能的设计中,所述芯片系统还包括存储器,所述存储器,用于保存分布显示方法必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包含芯片和其他分立器件。In a sixth aspect, an embodiment of the present application provides a chip system, which includes the distributed display device according to any one of the above-mentioned first aspects, and is used to implement the distributed display according to any one of the above-mentioned first aspects. The functions involved in the method flow. In a possible design, the chip system further includes a memory for storing program instructions and data necessary for the distributed display method. The chip system can be composed of chips, or include chips and other discrete devices.
附图说明Description of the drawings
为了更清楚地说明本申请实施例中的技术方案,下面将对本申请实施例或背景技术中所需要使用的附图进行说明。In order to more clearly describe the technical solutions in the embodiments of the present application, the following will describe the drawings that need to be used in the embodiments of the present application or the background art.
图1是现有技术中的一种麦克亚当椭圆的示意图。Fig. 1 is a schematic diagram of a McAdam ellipse in the prior art.
图2是现有技术中的一种CMC(l:c)色差椭圆的示意图。Fig. 2 is a schematic diagram of a CMC (1:c) chromatic aberration ellipse in the prior art.
图3是本申请实施例提供的一种分布显示方法的系统架构示意图。FIG. 3 is a schematic diagram of a system architecture of a distributed display method provided by an embodiment of the present application.
图4是本申请实施例提供的一种终端设备的功能框图。Fig. 4 is a functional block diagram of a terminal device provided by an embodiment of the present application.
图5是本申请实施例提供的一种终端设备的软件结构框图。Fig. 5 is a software structure block diagram of a terminal device provided by an embodiment of the present application.
图6a是本申请实施例提供的一种分布显示方法的应用场景示意图。Fig. 6a is a schematic diagram of an application scenario of a distributed display method provided by an embodiment of the present application.
图6b是本申请实施例提供的另一种分布显示方法的应用场景示意图。Fig. 6b is a schematic diagram of an application scenario of another distributed display method provided by an embodiment of the present application.
图7a-图7b是本申请实施例提供的一组界面示意图。Figures 7a-7b are schematic diagrams of a set of interfaces provided by an embodiment of the present application.
图8是本申请实施例提供的一种分布显示方法的流程示意图。FIG. 8 is a schematic flowchart of a distributed display method provided by an embodiment of the present application.
图9是本申请实施例提供的另一种分布显示方法的流程示意图。FIG. 9 is a schematic flowchart of another distribution display method provided by an embodiment of the present application.
图10是本申请实施例提供的一组分布显示效果对比示意图。FIG. 10 is a schematic diagram of a set of distribution display effects comparison provided by an embodiment of the present application.
图11是本申请实施例提供的一种分布显示装置的结构示意图。FIG. 11 is a schematic structural diagram of a distributed display device provided by an embodiment of the present application.
图12是本申请实施例提供的一种终端设备的结构示意图。FIG. 12 is a schematic structural diagram of a terminal device provided by an embodiment of the present application.
具体实施方式detailed description
下面将结合本申请实施例中的附图,对本申请实施例进行描述。The embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application.
本申请的说明书和权利要求书及所述附图中的术语“第一”、“第二”、“第三”和“第四”等是用于区别不同对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法、产品或设备固有的其它步骤或单元。The terms "first", "second", "third" and "fourth" in the specification and claims of this application and the drawings are used to distinguish different objects, not to describe a specific order . In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent in these processes, methods, products or equipment.
在本文中提及“实施例”意味着,结合实施例描述的特定特征、结构或特性可以包含在本申请的至少一个实施例中。在说明书中的各个位置出现该短语并不一定均是指相同的实施例,也不是与其它实施例互斥的独立的或备选的实施例。本领域技术人员显式地和隐式地理解的是,本文所描述的实施例可以与其它实施例相结合。Reference to "embodiments" herein means that a specific feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art clearly and implicitly understand that the embodiments described herein can be combined with other embodiments.
在本说明书中使用的术语“部件”、“模块”、“系统”等用于表示计算机相关的实体、硬件、固件、硬件和软件的组合、软件、或执行中的软件。例如,部件可以是但不限于,在处理器上运行的进程、处理器、对象、可执行文件、执行线程、程序和/或计算机。通过图示,在终端设备上运行的应用和终端设备都可以是部件。一个或多个部件可驻留在进程和/或执行线程中,部件可位于一个计算机上和/或分布在2个或更多个计算机之间。此外,这些部件可从在上面存储有各种数据结构的各种计算机可读介质执行。部件可例如根据具有一个或多个数据分组(例如来自与本地系统、分布式系统和/或网络间的另一部件交互的二个部件的数据,例如通过信号与其它系统交互的互联网)的信号通过本地和/或远程进程来通信。The terms "component", "module", "system", etc. used in this specification are used to denote computer-related entities, hardware, firmware, a combination of hardware and software, software, or software in execution. For example, the component may be, but is not limited to, a process, a processor, an object, an executable file, a thread of execution, a program, and/or a computer running on a processor. Through the illustration, both the application running on the terminal device and the terminal device can be components. One or more components may reside in processes and/or threads of execution, and components may be located on one computer and/or distributed between two or more computers. In addition, these components can be executed from various computer readable media having various data structures stored thereon. A component may be based on a signal having one or more data packets (for example, data from two components that interact with another component in a local system, a distributed system, and/or a network, such as the Internet that interacts with other systems through a signal) Communicate through local and/or remote processes.
首先,对本申请中的部分用语进行解释说明,以便于本领域技术人员理解。First, some terms in this application are explained to facilitate the understanding of those skilled in the art.
(1)色相饱和度亮度(Hue Saturation Lightness,HSL),HSL色彩模式是工业界的一种颜色标准,是通过对色相(H)、饱和度(S)、亮度(L)三个颜色通道的变化以及它们相互之间的叠加来得到各式各样的颜色的,HSL即是代表色相,饱和度,亮度三个通道的颜色,这个标准几乎包括了人类视力所能感知的所有颜色,是迄今运用最广的颜色系统之一。HSL的H分量,代表的是人眼所能感知的颜色范围,这些颜色分布在一个平面的色相环上,取值范围是0°到360°的圆心角,每个角度可以代表一种颜色。色相值的意义在于,我们可以在不改变光感的情况下,通过旋转色相环来改变颜色。在实际应用中,我们需要记住色相环上的六大主色,用作基本参照:360°/0°红、60°黄、120°绿、180°青、240°蓝、300°洋红,它们在色相环上按照60°圆心角的间隔排列。HSL的S分量,指的是色彩的饱和度,它用0%至100%的值描述了相同色相、亮度下色彩纯度的变化。数值越大,颜色中的灰色越少,颜色越鲜艳,呈现一种从理性(灰度)到感性(纯色)的变化。HSL的L分量,指的是色彩的亮度,作用是控制色彩的亮暗变化。它同样使用了0%至100%的取值范围。数值越小,色彩越暗,越接近于黑色;数值越大,色彩越亮,越接近于白色。(1) Hue Saturation Lightness (Hue Saturation Lightness, HSL). The HSL color mode is a color standard in the industry. It uses the three color channels of hue (H), saturation (S), and brightness (L). Variations and their mutual superposition to obtain a variety of colors, HSL represents the color of the three channels of hue, saturation, and brightness. This standard includes almost all colors that human vision can perceive. One of the most widely used color systems. The H component of HSL represents the range of colors that the human eye can perceive. These colors are distributed on a flat hue circle, with a value range of 0° to 360° central angle, and each angle can represent a color. The significance of the hue value is that we can change the color by rotating the hue ring without changing the light perception. In practical applications, we need to remember the six main colors on the hue circle as a basic reference: 360°/0°red, 60°yellow, 120°green, 180°cyan, 240°blue, 300°magenta, They are arranged on the hue circle at intervals of 60° central angle. The S component of HSL refers to the saturation of the color. It uses a value from 0% to 100% to describe the change of color purity under the same hue and brightness. The larger the value, the less gray in the color and the brighter the color, showing a change from rational (grayscale) to perceptual (pure color). The L component of HSL refers to the brightness of the color, and its function is to control the brightness and darkness of the color. It also uses a value range of 0% to 100%. The smaller the value, the darker the color, and the closer to black; the larger the value, the brighter the color, and the closer to white.
(2)红绿蓝(Red Green Blue,RGB)色彩模式是工业界的一种颜色标准,是通过对红(R)、绿(G)、蓝(B)三个颜色通道的变化以及它们相互之间的叠加来得到各式各样的颜色的,RGB即是代表红、绿、蓝三个通道的颜色,这个标准几乎包括了人类视力所能感知的所有颜色,是目前运用最广的颜色系统之一。(2) The Red, Green, and Blue (RGB) color mode is a color standard in the industry. It changes the three color channels of red (R), green (G), and blue (B) and their mutual A variety of colors can be obtained by superimposing between them. RGB represents the colors of the three channels of red, green and blue. This standard includes almost all the colors that human vision can perceive, and it is currently the most widely used color. One of the systems.
(3)色差,即两个颜色的差异。一般地,在特定的条件下,人眼可以比较容易的分辨两个颜色样品是否有差异。在实际应用中,尤其是工程计算中,需要将这种差异用数学公式来量化表示,即色差公式。色差的计算是颜色科学的一个重要课题,到现在已经有了80多年的发展历史。要建立色差计算公式,并不是一件简单的事情,首先就需要一个模型来描述颜色,目前应用最广泛的就是CIE1931-XYZ标准色度系统。CIE1931-XYZ是1931年由国际照明委员会(Commission Internationale de L'Eclairage,CIE)推荐的色度系统,大部分颜色测量、计算大都采用这一系统。但是这个系统模型采用的三刺激值或者色品坐标,都与颜色感觉没有直接的对应关系,并不均匀。请参阅图1,图1是现有技术中的一种麦克亚当椭圆的示意图,如图1所示,在CIE1931xy色品图上,绿色区域,变化较大时,人眼才能分辨出两个颜色的差异(圈儿大),但在蓝紫色区域,较小的变化,就能引起视觉差异(圈儿小)。如图1所示,相同色差感觉的实际区域,不是一个球形,而是一个椭球。因此, 后来色差公式的改进,大部分都是以CIELAB为基础,在这个椭球上做文章,比如英国染色家协会的颜色测量委员会(the Society’s Color Measurement Committee,CMC)推荐的CMC(l:c)色差公式。其中,CMC(l:c)色差公式如下:(3) Color difference, that is, the difference between two colors. Generally, under certain conditions, the human eye can easily distinguish whether there is a difference between two color samples. In practical applications, especially in engineering calculations, this difference needs to be quantified and expressed by mathematical formulas, that is, color difference formulas. The calculation of color difference is an important subject of color science, and it has a history of more than 80 years. It is not a simple matter to establish a color difference calculation formula. First, a model is needed to describe the color. Currently, the CIE1931-XYZ standard color system is the most widely used. CIE1931-XYZ is a chromaticity system recommended by the Commission Internationale de L'Eclairage (CIE) in 1931. Most color measurement and calculations use this system. However, the tristimulus values or chromaticity coordinates used in this system model have no direct correspondence with color perception and are not uniform. Please refer to Figure 1. Figure 1 is a schematic diagram of a MacAdam ellipse in the prior art. As shown in Figure 1, on the CIE1931xy chromaticity diagram, when the green area changes greatly, the human eye can distinguish two colors. The difference (the circle is large), but in the blue-purple area, a small change can cause a visual difference (the circle is small). As shown in Figure 1, the actual area with the same chromatic aberration perception is not a sphere, but an ellipsoid. Therefore, most of the subsequent improvements in the color difference formula were based on CIELAB, and made a fuss on this ellipsoid, such as the CMC (l:c) recommended by the Society's Color Measurement Committee (CMC). ) Color difference formula. Among them, the CMC(l:c) color difference formula is as follows:
ΔE CMC=[{Δl */lS L} 2+{ΔC ab */(cS C)} 2+(ΔH ab */S H) 2] 1/2 ΔE CMC =[{Δl * /lS L } 2 +{ΔC ab * /(cS C )} 2 +(ΔH ab * /S H ) 2 ] 1/2
其中,纺织行业一般将l和c的取值设定为l=2,c=1,S L,S C,S H分别是亮度、彩度和色调角的修正系数,具体取值如下: Among them, the textile industry generally sets the values of l and c as l=2, c=1, S L , S C , and S H are the correction coefficients of brightness, chroma and hue angle respectively, and the specific values are as follows:
S L=0.511 forL *≤16 S L =0.511 forL * ≤16
S L=0.040975L *(1+0.01765L*) forL *≤16 S L =0.040975L * (1+0.01765L*) forL * ≤16
SL={0.0638C ab */(1+0.0131C ab *)}+0.638 SL={0.0638C ab * /(1+0.0131C ab * )}+0.638
SL=(FT+1-F)S C SL=(FT+1-F)S C
F=[(C ab *) 4/{(C ab *) 4+1900}] 1/2 F=[(C ab * ) 4 /{(C ab * ) 4 +1900}] 1/2
T=0.56+|0.2cos(h ab+168°)|  for164°<h ab<358° T=0.56+|0.2cos(h ab +168°)| for164°<h ab <358°
T=0.36+|0.4cos(h ab+35°)|  forh ab≤164°orh ab≤345° T=0.36+|0.4cos(h ab +35°)| forh ab ≤164°orh ab ≤345°
经过修正,在CIELAB颜色空间一个个的圆球(二维平面就是圆形),就变成了一系列的椭球(二维平面就是椭圆),请参阅图2,图2是现有技术中的一种CMC(l:c)色差椭圆的示意图。如图2所示,越接近圆心,其饱和度越低,越接近圆周,其饱和度越高,色彩越鲜艳。After correction, the spheres in the CIELAB color space (the two-dimensional plane is a circle) have become a series of ellipsoids (the two-dimensional plane is an ellipse). Please refer to Figure 2. Figure 2 is the prior art A schematic diagram of a CMC (l:c) color difference ellipse. As shown in Figure 2, the closer to the center of the circle, the lower the saturation, and the closer to the circle, the higher the saturation and the brighter the color.
随着各类显示器件的快速发展,越来越多的显示设备具备了更广的显示色域,可以显示更加高清且色彩丰富、鲜艳的画面。现有的纺织、印染和设计等等产业中,往往都会选取色彩还原度较高的显示设备或者采取相应的色彩管理技术方案,使得不同色域的设备其色彩显示尽量一致,以减小甚至消除设备显示的颜色与最终输出的实物(例如为布料等产品)的颜色之间的色差。而在分布显示领域,在将源端设备上的界面分布显示到对端设备时,往往由于不同设备之间显示器件的差异,使得不同设备之间存在屏幕发光亮度和色彩饱和度等等方面的差异,如此,容易导致在源端设备上显示效果正常的界面,在分布到对端设备上进行显示时的显示效果较差。例如,将手机等移动终端设备上的界面分布显示到液晶电视等大屏设备上时,容易导致液晶电视等大屏设备上显示的画面过曝过亮,而用户肉眼观看过亮过曝或者颜色过于艳丽的画面时容易产生疲劳,引起眼睛发痒、发胀、流泪、对焦困难、头疼、恶心等不适感,无法满足用户在观看大屏设备时的舒适性。With the rapid development of various display devices, more and more display devices have a wider display color gamut, which can display more high-definition, colorful, and bright pictures. In the existing textile, printing and dyeing and design industries, display devices with high color reproduction are often selected or corresponding color management technical solutions are adopted to make the color display of devices of different color gamuts as consistent as possible to reduce or even eliminate The color difference between the color displayed by the device and the color of the final output object (for example, a product such as cloth). In the field of distributed display, when the interface on the source device is distributed and displayed to the peer device, often due to the difference in display devices between different devices, there are differences in screen brightness and color saturation between different devices. The difference, in this way, can easily lead to a display effect of a normal interface on the source device, and poor display effect when it is distributed to the peer device for display. For example, when the interfaces on mobile terminal devices such as mobile phones are distributed and displayed on large-screen devices such as LCD TVs, it is easy to cause the images displayed on large-screen devices such as LCD TVs to be overexposed and bright, while the user’s naked eyes are too bright, overexposed, or colors. Too gorgeous pictures are prone to fatigue, causing itchy eyes, swelling, tears, difficulty focusing, headaches, nausea, and other discomforts, which cannot satisfy the user's comfort when watching large-screen devices.
如上所述,现有技术中的分布显示方案无法满足在不同设备间进行分布显示时,保证不同设备上显示效果的舒适,不刺眼。因此,为了解决当前分布显示技术中不满足实际业务需求的问题,本申请实际要解决的技术问题包括如下方面:基于现有的终端设备,实现在将该终端设备上显示的界面分布显示到其他设备上时,保证其他设备的显示效果,改善原本显示画面容易过曝过亮,刺眼,色彩过于艳丽的问题,提升用户在观看其他设备上分布显示的界面时的舒适度。As described above, the distributed display solution in the prior art cannot satisfy the requirement of ensuring that the display effect on different devices is comfortable and not glaring when the distributed display is performed between different devices. Therefore, in order to solve the problem that the current distributed display technology does not meet the actual business needs, the technical problems to be solved in this application include the following aspects: Based on the existing terminal device, realize the distributed display of the interface displayed on the terminal device to other When on the device, ensure the display effect of other devices, improve the original display screen is easy to be overexposed, dazzling, and the color is too bright, and improve the user's comfort when watching the interface displayed on other devices.
请参阅图3,图3是本申请实施例提供的一种分布显示方法的系统架构示意图,本申 请实施例的技术方案可以在图3举例所示的系统架构或者类似的系统架构中具体实施。如图3所示,该系统架构可以包括第一设备100a和多个第二设备,具体可以包括第二设备200a、200b和200c。其中,第一设备100a可以通过有线或者无线网络(例如无线保真(Wireless-Fidelity,WiFi)、蓝牙和移动网络等)等方式与第二设备200a、200b和200c建立通信连接,并将第一设备上显示的界面分布显示到第二设备200a、200b和200c上。Please refer to FIG. 3. FIG. 3 is a schematic diagram of a system architecture of a distributed display method provided by an embodiment of the present application. The technical solution of the embodiment of the present application may be implemented in the system architecture illustrated in FIG. 3 or a similar system architecture. As shown in FIG. 3, the system architecture may include a first device 100a and multiple second devices, and specifically may include second devices 200a, 200b, and 200c. Wherein, the first device 100a can establish a communication connection with the second devices 200a, 200b, and 200c through a wired or wireless network (such as Wireless-Fidelity (WiFi), Bluetooth, and mobile network, etc.), and connect the first The interface displayed on the device is distributed and displayed on the second devices 200a, 200b, and 200c.
下面,将以第一设备100a和第二设备200a为例,对本申请实施例提供的一种分布显示方法进行详细阐述。如图3所示,当用户需要将第一设备100a上显示的界面分布到第二设备200a上进行显示时,可以先通过WiFi或者蓝牙等方式与第二设备200a建立连接,可选地,还可以在建立连接后获取该第二设备200a的设备信息(例如可以包括该第二设备200a的机器型号、显示屏信息,比如第二设备200a的屏幕尺寸、屏幕发光亮度、色彩饱和度和色域等等信息)。若该第二设备200a的屏幕发光亮度和/或色彩饱和度大于该第一设备100a(例如,该第一设备100a可以为智能手机,该第二设备200a可以为液晶电视等色彩显示艳丽的大屏设备),然后,该第一设备100a可以获取该第一设备100a上显示的第一界面的第一信息,该第一信息可以包括该第一界面中的多个像素各自的第一亮度值和第一饱和度值。若该第一设备100a计算得到该多个像素中存在较多像素的第一亮度值均超过预设值,也即可以认为该第二设备200a在根据该第一信息进行分布显示时,容易导致第二设备上显示的界面过曝过亮,从而引起用户观看的不适。则该第一设备100a可以计算得到上述第一亮度值超过预设值的像素各自的第二饱和度值,该第二饱和度值小于第一饱和度值,并生成第二信息,该第二信息可以包括第一亮度值超过预设值的像素各自的第二饱和度值和第一亮度值,以及第一亮度值小于或者等于预设值的像素各自的第一饱和度值和第一亮度值。最后,第二设备200a可以根据该第二信息进行分布显示,显示第二界面(可以理解的是,一般情况下该第二界面与该第一界面所包括的内容相同),如此,在进行分布显示时,降低了第一亮度值较大的像素的第一饱和度值,使得第二设备的显示界面色彩合适,画面不会过曝过亮,优化了分布显示效果,保证了用户的观看体验。需要说明的是,该第一界面可以是第一设备100a的整个屏幕上显示的内容,也可以是屏幕上显示的部分内容,比如可以为图片、文字和视频等等,第一设备100a与第二设备200a之间的分布显示可以是实时的,本申请实施例对此不作具体限定。可选地,第一设备100a也可以将其显示的界面同时分布显示到第二设备200a、200b和200c上,等等,本申请实施例对此不作具体限定。Hereinafter, the first device 100a and the second device 200a will be taken as examples to describe in detail a distributed display method provided in an embodiment of the present application. As shown in FIG. 3, when the user needs to distribute the interface displayed on the first device 100a to the second device 200a for display, the user can first establish a connection with the second device 200a through WiFi or Bluetooth. Optionally, also The device information of the second device 200a can be obtained after the connection is established (for example, it can include the machine model and display screen information of the second device 200a, such as the screen size, screen brightness, color saturation, and color gamut of the second device 200a) Etc.). If the brightness and/or color saturation of the screen of the second device 200a is greater than that of the first device 100a (for example, the first device 100a may be a smart phone, and the second device 200a may be an LCD TV or the like with bright colors. Screen device), and then, the first device 100a can acquire the first information of the first interface displayed on the first device 100a, and the first information can include the respective first brightness values of the multiple pixels in the first interface And the first saturation value. If the first device 100a calculates that the first brightness values of more pixels in the plurality of pixels exceed the preset value, it can be considered that when the second device 200a performs distributed display based on the first information, it is likely to cause The interface displayed on the second device is overexposed and bright, which causes discomfort when viewed by the user. Then the first device 100a can calculate the second saturation value of each pixel whose first brightness value exceeds the preset value, the second saturation value is less than the first saturation value, and generate second information, the second The information may include respective second saturation values and first brightness values of pixels whose first brightness value exceeds the preset value, and respective first saturation values and first brightness values of pixels whose first brightness value is less than or equal to the preset value value. Finally, the second device 200a can perform distributed display based on the second information, and display a second interface (it is understandable that in general, the content of the second interface is the same as that of the first interface). During display, the first saturation value of the pixel with the larger first brightness value is reduced, so that the color of the display interface of the second device is suitable, and the screen will not be overexposed and bright, which optimizes the distributed display effect and ensures the user's viewing experience . It should be noted that the first interface may be the content displayed on the entire screen of the first device 100a, or part of the content displayed on the screen, such as pictures, text, and videos. The distribution display between the two devices 200a may be real-time, which is not specifically limited in the embodiment of the present application. Optionally, the first device 100a may also distribute and display the displayed interfaces on the second devices 200a, 200b, and 200c at the same time, etc., which is not specifically limited in the embodiment of the present application.
综上所述,其中,第一设备100a可以为具备上述功能的智能手机、智能可穿戴设备、平板电脑、笔记本电脑和台式电脑等终端设备。第二设备200a、200b和200c可以为具备上述功能的笔记本电脑、台式电脑、大屏显示器和液晶电视机等等设备,可选地,第二设备200a、200b和200c也可以为具备上述功能的智能手机、平板电脑等等,本申请实施例对此不作具体限定。In summary, the first device 100a may be a terminal device such as a smart phone, a smart wearable device, a tablet computer, a notebook computer, and a desktop computer with the above-mentioned functions. The second devices 200a, 200b, and 200c can be notebook computers, desktop computers, large-screen displays, LCD TVs, and other devices with the above-mentioned functions. Optionally, the second devices 200a, 200b, and 200c can also be devices with the above-mentioned functions. Smart phones, tablet computers, etc., which are not specifically limited in the embodiments of the present application.
请参阅图4,图4是本申请实施例提供的一种终端设备的功能框图。可选地,该终端设备100可以为上述图3所述系统架构中的第一设备100a。可选地,在一个实施例中,可将终端设备100配置为完全或部分地自动分布显示模式。例如,终端设备100可以处于定时持续自动分布显示模式,或者根据计算机指令在连接到预先设置的目标设备时进行自动 分布显示模式,又或者在检测到界面中包含预先设置的目标对象(例如预设视频、文档和幻灯片等等)时进行自动分布显示模式等等,本申请实施例对此不作具体限定。在终端设备100处于自动分布显示模式中时,可以将终端设备100设置为在没有和人交互的情况下操作。Please refer to FIG. 4, which is a functional block diagram of a terminal device provided by an embodiment of the present application. Optionally, the terminal device 100 may be the first device 100a in the system architecture described in FIG. 3 above. Optionally, in one embodiment, the terminal device 100 may be configured to fully or partially automatically distribute the display mode. For example, the terminal device 100 may be in a timer and continuous automatic distribution display mode, or according to computer instructions when connected to a preset target device, perform automatic distribution display mode, or detect that the interface contains a preset target object (such as preset Video, documents, slides, etc.) are automatically distributed in the display mode, etc., which are not specifically limited in the embodiment of the present application. When the terminal device 100 is in the automatic distributed display mode, the terminal device 100 can be set to operate without interacting with people.
下面以终端设备100为例对实施例进行具体说明。应该理解的是,终端设备100可以具有比图中所示的更多的或者更少的部件,可以组合两个或多个的部件,或者可以具有不同的部件配置。图中所示出的各种部件可以在包括一个或多个信号处理和/或专用集成电路在内的硬件、软件、或硬件和软件的组合中实现。Hereinafter, the embodiment will be described in detail by taking the terminal device 100 as an example. It should be understood that the terminal device 100 may have more or fewer components than shown in the figure, may combine two or more components, or may have different component configurations. The various components shown in the figure may be implemented in hardware, software, or a combination of hardware and software including one or more signal processing and/or application specific integrated circuits.
终端设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。其中传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L,骨传导传感器180M等。The terminal device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2. Mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, earphone jack 170D, sensor module 180, buttons 190, motor 191, indicator 192, camera 193, display 194, And subscriber identification module (subscriber identification module, SIM) card interface 195 and so on. The sensor module 180 can include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, and ambient light Sensor 180L, bone conduction sensor 180M, etc.
可以理解的是,本申请实施例示意的结构并不构成对终端设备100的具体限定。在本申请另一些实施例中,终端设备100可以包括比图4所示更多或者更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置,等等。图4所示的部件可以以硬件、软件或者软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the terminal device 100. In other embodiments of the present application, the terminal device 100 may include more or fewer components than those shown in FIG. 4, or combine certain components, or split certain components, or arrange different components, and so on. The components shown in FIG. 4 may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Among them, the different processing units may be independent devices or integrated in one or more processors.
其中,控制器可以是终端设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller may be the nerve center and command center of the terminal device 100. The controller can generate operation control signals according to the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器可以为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可以从所述存储器中直接调用。避免了指令或数据的重复存取,减少了处理器110的等待时间,因而可以大大提高系统的运作效率。A memory may also be provided in the processor 110 to store instructions and data. In some embodiments, the memory in the processor 110 may be a cache memory. The memory can store instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to use the instruction or data again, it can be directly called from the memory. The repeated access of instructions or data is avoided, and the waiting time of the processor 110 is reduced, thereby greatly improving the operating efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry  processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, the processor 110 may include one or more interfaces. The interface can include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, and a universal asynchronous transmitter (universal asynchronous transmitter) interface. receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / Or Universal Serial Bus (USB) interface, etc.
可以理解的是,本申请实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对终端设备100的结构限定。在本申请另一些实施例中,终端设备100也可以采用与上述实施例中不同的接口连接方式,或多种接口连接方式的组合。It can be understood that the interface connection relationship between the modules illustrated in the embodiment of the present application is merely a schematic description, and does not constitute a structural limitation of the terminal device 100. In some other embodiments of the present application, the terminal device 100 may also adopt a different interface connection manner from the foregoing embodiments, or a combination of multiple interface connection manners.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
终端设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。在一些实施例中,终端设备100可以通过无线方式与其他一个或多个设备建立连接,以将该终端设备100上显示的界面分布显示到与其连接的其他一个或多个设备上。The wireless communication function of the terminal device 100 can be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor, and the baseband processor. In some embodiments, the terminal device 100 may establish a connection with one or more other devices in a wireless manner, so as to distribute and display the interface displayed on the terminal device 100 to the other one or more devices connected to it.
终端设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。在一些实施例中,终端设备100在将其显示的界面分布显示到其他设备上之前,可以对该界面的显示信息进行预处理(例如为改变该界面中的多个像素的饱和度值,也即改变该界面中的多个像素的颜色值,等等),例如,若计算得到该界面中存在亮度较大的区域,容易导致其他设备在进行分布显示时画面过曝过亮,则可以降低该界面中亮度较大区域的饱和度,生成新的显示信息,然后再通过其他设备根据该新的显示信息进行分布显示,由此,可以大大改善分布显示效果,保证用户的观看体验。The terminal device 100 implements a display function through a GPU, a display screen 194, and an application processor. The GPU is an image processing microprocessor, which is connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and is used for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information. In some embodiments, the terminal device 100 may preprocess the display information of the interface before distributing and displaying the displayed interface on other devices (for example, to change the saturation value of multiple pixels in the interface, and also That is to change the color values of multiple pixels in the interface, etc.). For example, if there is a brighter area in the interface, it is easy to cause other devices to overexpose and brighten the screen during distributed display, which can be reduced The saturation of the area with greater brightness in the interface generates new display information, and then other devices are used to perform distributed display according to the new display information, thereby greatly improving the distributed display effect and ensuring the user's viewing experience.
显示屏194用于显示图像,视频等。显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode的,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Miniled,MicroLed,Micro-oLed,量子点发光二极管(quantum dot light emitting diodes,QLED)等。在一些实施例中,终端设备100可以包括1个或多个显示屏194。在本申请实施例中,终端设备100可以将显示屏194上显示的界面分布显示到其他设备上,例如分布显示到液晶电视、台式电脑或者其他大屏设备上。The display screen 194 is used to display images, videos, and the like. The display screen 194 includes a display panel. The display panel can adopt liquid crystal display (LCD), organic light-emitting diode (OLED), active matrix organic light-emitting diode or active-matrix organic light-emitting diode (active-matrix organic light-emitting diode). AMOLED, flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, quantum dot light-emitting diode (QLED), etc. In some embodiments, the terminal device 100 may include one or more display screens 194. In the embodiment of the present application, the terminal device 100 may distribute and display the interface displayed on the display screen 194 on other devices, for example, on an LCD TV, a desktop computer, or other large-screen devices.
终端设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。The terminal device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,对比度和人脸肤色等等进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以 设置在摄像头193中。The ISP is used to process the data fed back from the camera 193. For example, when taking a picture, the shutter is opened, the light is transmitted to the photosensitive element of the camera through the lens, the light signal is converted into an electrical signal, and the photosensitive element of the camera transfers the electrical signal to the ISP for processing and is converted into an image visible to the naked eye. ISP can also optimize the image noise, brightness, contrast, and facial skin color. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP may be provided in the camera 193.
摄像头193用于捕获静态图像或者视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB或者YUV等格式的图像信号。The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and is projected to the photosensitive element. The photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transfers the electrical signal to the ISP to convert it into a digital image signal. ISP outputs digital image signals to DSP for processing. The DSP converts the digital image signal into a standard RGB or YUV format image signal.
其中,摄像头193可以位于终端设备100的正面,例如位于触控屏的上方,也可以位于其他位置,例如位于终端设备的背面。比如,用于人脸识别的RGB摄像头和红外摄像头一般可以位于终端设备100的正面,例如位于触控屏的上方,也可以位于其他位置,例如终端设备100的背面,本申请实施例对此不做具体限制。其中,用于红外摄像的红外灯一般也位于终端设备100的正面,例如位于触控屏的上方,可以理解的是,红外灯一般与红外摄像头位于终端设备100的同一侧,以便进行红外图像的采集。在一些实施例中,终端设备100还可以包括其他摄像头。在一些实施例中,终端设备100还可以包括点阵发射器(图4中未示出),用于发射光线。The camera 193 may be located on the front of the terminal device 100, for example, above the touch screen, or may be located at other locations, such as on the back of the terminal device. For example, the RGB camera and infrared camera used for face recognition can generally be located on the front of the terminal device 100, such as on the top of the touch screen, or at other locations, such as the back of the terminal device 100. This embodiment of the present application does not Make specific restrictions. Among them, the infrared lamp used for infrared photography is generally also located on the front of the terminal device 100, for example, located above the touch screen. It can be understood that the infrared lamp and the infrared camera are generally located on the same side of the terminal device 100 to perform infrared image viewing. collection. In some embodiments, the terminal device 100 may also include other cameras. In some embodiments, the terminal device 100 may further include a dot matrix transmitter (not shown in FIG. 4) for emitting light.
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当终端设备100在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。Digital signal processors are used to process digital signals. In addition to digital image signals, they can also process other digital signals. For example, when the terminal device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the energy of the frequency point.
视频编解码器用于对数字视频压缩或解压缩。终端设备100可以支持一种或多种视频编解码器。这样,终端设备100可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。Video codecs are used to compress or decompress digital video. The terminal device 100 may support one or more video codecs. In this way, the terminal device 100 can play or record videos in multiple encoding formats, such as: moving picture experts group (MPEG) 1, MPEG2, MPEG3, MPEG4, and so on.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现终端设备100的智能认知等应用,例如:分布显示,图像识别,人脸识别,语音识别,文本理解,直方图均衡化等等。NPU is a neural-network (NN) computing processor. By drawing on the structure of biological neural networks, for example, the transfer mode between human brain neurons, it can quickly process input information, and it can also continuously self-learn. Through the NPU, applications such as intelligent cognition of the terminal device 100 can be implemented, such as distributed display, image recognition, face recognition, voice recognition, text understanding, histogram equalization, and so on.
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展终端设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频,照片等文件保存在外部存储卡中。The external memory interface 120 may be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the terminal device 100. The external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example, save music, videos, photos and other files in an external memory card.
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行终端设备100的各种功能应用以及数据处理。内部存储器121可以包括存储程序区和存储数据区。其中,存储程序区可存储操作系统,至少一个功能所需的应用,例如分布显示,录像功能、拍照功能、图像处理功能,等等。存储数据区可以存储终端设备100使用过程中所创建的数据等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。The internal memory 121 may be used to store computer executable program code, where the executable program code includes instructions. The processor 110 executes various functional applications and data processing of the terminal device 100 by running instructions stored in the internal memory 121. The internal memory 121 may include a storage program area and a storage data area. Among them, the storage program area can store an operating system and at least one application required for a function, such as a distributed display, a video recording function, a photographing function, an image processing function, and so on. The data storage area can store data created during the use of the terminal device 100 and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash storage (UFS), and the like.
终端设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The terminal device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the earphone interface 170D, and the application processor. For example, music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。The audio module 170 is used to convert digital audio information into an analog audio signal for output, and is also used to convert an analog audio input into a digital audio signal.
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。The speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。The microphone 170C, also called "microphone", "microphone", is used to convert sound signals into electrical signals.
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动终端设备平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。The earphone interface 170D is used to connect wired earphones. The earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, or a cellular telecommunications industry association (cellular telecommunications industry association of the USA, CTIA) standard interface.
压力传感器180A用于感受压力信号,可以将压力信号转换成电信号。在一些实施例中,压力传感器180A可以设置于显示屏194。压力传感器180A的种类很多,如电阻式压力传感器,电感式压力传感器,电容式压力传感器等。The pressure sensor 180A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 180A may be provided on the display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors and so on.
陀螺仪传感器180B可以用于确定终端设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定终端设备100围绕三个轴(即,x,y和z轴)的角速度。The gyro sensor 180B may be used to determine the movement posture of the terminal device 100. In some embodiments, the angular velocity of the terminal device 100 around three axes (ie, x, y, and z axes) can be determined by the gyroscope sensor 180B.
接近光传感器180G可以包括例如发光二极管(LED)和光检测器,例如光电二极管。发光二极管可以是红外发光二极管。The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector such as a photodiode. The light emitting diode may be an infrared light emitting diode.
环境光传感器180L用于感知环境光亮度。终端设备100可以根据感知的环境光亮度自适应调节显示屏194亮度。环境光传感器180L也可用于拍照时自动调节白平衡,等等,此处不再进行赘述。The ambient light sensor 180L is used to sense the brightness of the ambient light. The terminal device 100 can adaptively adjust the brightness of the display screen 194 according to the perceived brightness of the ambient light. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures, etc., which will not be repeated here.
指纹传感器180H用于采集指纹。终端设备100可以利用采集的指纹特性实现指纹解锁,访问应用锁,指纹拍照,指纹接听来电等。其中,该指纹传感器180H可以设置在触控屏下方,终端设备100可以接收用户在触控屏上该指纹传感器对应的区域的触摸操作,终端设备100可以响应于该触摸操作,采集用户手指的指纹信息,实现相关功能。The fingerprint sensor 180H is used to collect fingerprints. The terminal device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photographs, fingerprint answering calls, and so on. Wherein, the fingerprint sensor 180H can be arranged under the touch screen, the terminal device 100 can receive a user's touch operation on the touch screen in the area corresponding to the fingerprint sensor, and the terminal device 100 can collect the fingerprint of the user's finger in response to the touch operation. Information to realize related functions.
温度传感器180J用于检测温度。在一些实施例中,终端设备100利用温度传感器180J检测的温度,执行温度处理策略。The temperature sensor 180J is used to detect temperature. In some embodiments, the terminal device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy.
触摸传感器180K,也称“触控面板”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于终端设备100的表面,与显示屏194所处的位置不同。Touch sensor 180K, also called "touch panel". The touch sensor 180K may be provided on the display screen 194, and the touch screen is composed of the touch sensor 180K and the display screen 194, which is also called a “touch screen”. The touch sensor 180K is used to detect touch operations acting on or near it. The touch sensor can pass the detected touch operation to the application processor to determine the type of touch event. The visual output related to the touch operation can be provided through the display screen 194. In other embodiments, the touch sensor 180K may also be disposed on the surface of the terminal device 100, which is different from the position of the display screen 194.
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。终端设备100可以接收按键输入,产生与终端设备100的用户设置以及功能控制有关的键信号输入。The button 190 includes a power-on button, a volume button, and so on. The button 190 may be a mechanical button. It can also be a touch button. The terminal device 100 may receive key input, and generate key signal input related to user settings and function control of the terminal device 100.
指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等,例如可以指示该终端设备100正在进行分布显示,提示用户此时该终端设备100上显示的界面可以在其他设备上观看到。在一些实施例中,终端设备100可以包括一个或多个指示器192。The indicator 192 can be an indicator light, which can be used to indicate the charging status, power change, and can also be used to indicate messages, missed calls, notifications, etc., for example, it can indicate that the terminal device 100 is performing a distributed display, prompting the user that the terminal is currently displaying The interface displayed on the device 100 can be viewed on other devices. In some embodiments, the terminal device 100 may include one or more indicators 192.
SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和终端设备100的接触和分离。在一些实施例中,终端设备100采用eSIM,即:嵌入式SIM卡。eSIM卡可以嵌在终端设备100中,不能和终端设备100分离。The SIM card interface 195 is used to connect to the SIM card. The SIM card can be inserted into the SIM card interface 195 or pulled out from the SIM card interface 195 to achieve contact and separation with the terminal device 100. In some embodiments, the terminal device 100 adopts an eSIM, that is, an embedded SIM card. The eSIM card can be embedded in the terminal device 100 and cannot be separated from the terminal device 100.
终端设备100可以是具备上述功能的智能手机、智能可穿戴设备、平板电脑、笔记本 电脑、台式电脑和计算机等等设备,本申请实施例对此不作具体限定。The terminal device 100 may be a smart phone, a smart wearable device, a tablet computer, a notebook computer, a desktop computer, a computer, etc., with the above-mentioned functions, which is not specifically limited in the embodiment of the present application.
终端设备100的软件系统可以采用分层架构,事件驱动架构,微核架构,微服务架构,或云架构。本申请实施例以分层架构的Android系统为例,示例性说明终端设备100的软件结构。The software system of the terminal device 100 may adopt a layered architecture, an event-driven architecture, a microkernel architecture, a microservice architecture, or a cloud architecture. The embodiment of the present application takes an Android system with a layered architecture as an example to illustrate the software structure of the terminal device 100 by way of example.
请参阅图5,图5是本申请实施例提供的一种终端设备的软件结构框图。分层架构将软件分成若干个层,每一层都有清晰的角色和分工。层与层之间通过软件接口通信。在一些实施例中,将Android系统分为四层,从上至下分别为应用程序层,应用程序框架层,安卓运行时(Android runtime)和系统库,以及内核层。Please refer to FIG. 5, which is a software structure block diagram of a terminal device provided by an embodiment of the present application. The layered architecture divides the software into several layers, and each layer has a clear role and division of labor. Communication between layers through software interface. In some embodiments, the Android system is divided into four layers, from top to bottom, the application layer, the application framework layer, the Android runtime and system library, and the kernel layer.
应用程序层可以包括一系列应用程序包。The application layer can include a series of application packages.
如图5所示,应用程序包可以包括相机,图库,日历,通话,地图,导航,WLAN,蓝牙,音乐,视频,短信息等应用程序(也可以称为应用)。还可以包括本申请涉及的相关分布显示应用,通过该分布显示应用可以运用本申请中的一种分布显示方法,改善终端设备100在将其显示的界面分布到其他设备(例如为液晶电视等大屏设备)上进行显示时,其他设备上显示画面过亮过曝等问题,保证用户在观看不同设备上分布显示的界面时的舒适度。As shown in Figure 5, the application package may include applications (also referred to as applications) such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message, etc. It may also include the related distributed display application involved in this application. Through the distributed display application, a distributed display method in this application can be used to improve the terminal device 100 in distributing its displayed interface to other devices (such as LCD TVs). When displaying on the screen device), the display screen on other devices is too bright and overexposed, so as to ensure the user's comfort when watching the interface displayed on different devices.
应用程序框架层为应用程序层的应用程序提供应用编程接口(application programming interface,API)和编程框架。应用程序框架层包括一些预先定义的函数。The application framework layer provides an application programming interface (application programming interface, API) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
如图5所示,应用程序框架层可以包括窗口管理器,内容提供器,视图系统,电话管理器,资源管理器,通知管理器等。As shown in Figure 5, the application framework layer can include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and so on.
窗口管理器用于管理窗口程序。窗口管理器可以获取显示屏大小,判断是否有状态栏,锁定屏幕,截取屏幕以及界面分布显示等。The window manager is used to manage window programs. The window manager can obtain the size of the display screen, determine whether there is a status bar, lock the screen, capture the screen, and display the interface distribution.
内容提供器用来存放和获取数据,并使这些数据可以被应用程序访问。所述数据可以包括视频,图像,音频,拨打和接听的电话,浏览历史和书签,电话簿等。在本申请实施例中,所述数据还可以包括终端设备100上显示界面的相关信息,比如该界面中的图像区域内的多个像素的颜色值(或者亮度值、饱和度值和色相值),以及该界面中的文字区域内的多个文字的颜色值(或者亮度值、饱和度值和色相值),等等,这些数据可以被本申请实施例涉及的相关用于分布显示的应用程序访问。The content provider is used to store and retrieve data and make these data accessible to applications. The data may include video, image, audio, phone calls made and received, browsing history and bookmarks, phone book, etc. In the embodiment of the present application, the data may also include related information of the display interface on the terminal device 100, such as the color value (or brightness value, saturation value, and hue value) of multiple pixels in the image area in the interface. , And the color values (or brightness value, saturation value, and hue value) of multiple texts in the text area of the interface, etc. These data can be used by the related application programs for distributed display related to the embodiments of this application access.
视图系统包括可视控件,例如显示文字的控件,显示图片的控件等。视图系统可用于构建应用程序。显示界面可以由一个或多个视图组成的。例如,包括短信通知图标的显示界面,可以包括显示文字的视图以及显示图片的视图。例如,在一些实施例中,可以包括相关分布显示控件的分布显示界面,通过点击该分布显示控件可以实现运用本申请中的一种分布显示方法,根据终端设备100当前待分布显示界面的信息(例如可以包括该界面中的多个像素各自的亮度值和饱和度值,等等)进行相关计算和判断,若该界面中存在容易影响其他设备显示效果的亮度较大的区域,则可以对该信息进行预处理,例如,降低其中亮度较大的区域的饱和度值,并生成该界面的新信息。然后,可以通过与该终端设备100连接的其他设备,根据该新信息进行分布显示。改善其他设备在分布显示终端设备100上的界面时,其显示画面过亮过曝等问题,保证用户观看的舒适度。The view system includes visual controls, such as controls that display text, controls that display pictures, and so on. The view system can be used to build applications. The display interface can be composed of one or more views. For example, a display interface that includes a short message notification icon may include a view that displays text and a view that displays pictures. For example, in some embodiments, a distributed display interface of related distributed display controls may be included. By clicking on the distributed display control, one of the distributed display methods in this application can be used, according to the information ( For example, it can include the respective brightness values and saturation values of multiple pixels in the interface, etc.) for related calculations and judgments. If there are areas with large brightness in the interface that easily affect the display effects of other devices, you can The information is preprocessed, for example, the saturation value of the area where the brightness is larger is reduced, and new information of the interface is generated. Then, other devices connected to the terminal device 100 can perform distributed display based on the new information. When other devices are distributing the interface on the display terminal device 100, the display screen is too bright and overexposed, etc., so as to ensure the user's viewing comfort.
电话管理器用于提供终端设备100的通信功能。例如通话状态的管理(例如包括接通,挂断等等)。The phone manager is used to provide the communication function of the terminal device 100. For example, the management of the call status (for example, including connecting, hanging up, etc.).
资源管理器为应用程序提供各种资源,比如本地化字符串,图标,图片,布局文件,视频文件等等。The resource manager provides various resources for the application, such as localized strings, icons, pictures, layout files, video files, and so on.
通知管理器使应用程序可以在状态栏中显示通知信息,可以用于传达告知类型的消息,可以短暂停留后自动消失,无需用户交互。比如通知管理器被用于告知下载完成,消息提醒等。通知管理器还可以是以图表或者滚动条文本形式出现在系统顶部状态栏的通知,例如后台运行的应用程序的通知,还可以是以对话界面形式出现在屏幕上的通知。例如在状态栏提示文本信息,发出提示音,终端设备振动,指示灯闪烁等。还例如,在进行本申请中涉及的分布显示时,可以在分布显示界面通过文本信息提示用户当前终端设备正在进行分布显示,以及正在分布显示的其他设备的数量和名称、型号,等等。还例如,在分布显示无法正确进行时,例如终端设备与其他设备之间的连接断开时(例如为网络状况不佳,或者蓝牙连接断开等等情况),可以在分布显示界面通过文本信息提示用户检查网络连接或者蓝牙连接状况,以重新建立连接,等等,本申请实施例对此不作具体限定。The notification manager enables the application to display notification information in the status bar, which can be used to convey notification-type messages, and it can automatically disappear after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, and so on. The notification manager can also be a notification that appears in the status bar at the top of the system in the form of a chart or a scroll bar text, such as a notification of an application running in the background, or a notification that appears on the screen in the form of a dialogue interface. For example, prompt text messages in the status bar, sound a prompt tone, terminal equipment vibration, flashing indicator lights, etc. For another example, when performing the distributed display involved in the present application, the user may be prompted through text messages on the distributed display interface to prompt the user that the current terminal device is currently being distributed and displayed, as well as the number, name, and model of other devices that are being distributed. For example, when the distributed display cannot be performed correctly, such as when the connection between the terminal device and other devices is disconnected (for example, the network condition is poor, or the Bluetooth connection is disconnected, etc.), you can use text messages on the distributed display interface The user is prompted to check the network connection or the Bluetooth connection status to re-establish the connection, etc., which is not specifically limited in the embodiment of the present application.
Android Runtime包括核心库和虚拟机。Android runtime负责安卓系统的调度和管理。Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the Android system.
核心库包含两部分:一部分是java语言需要调用的功能函数,另一部分是安卓的核心库。The core library consists of two parts: one part is the function function that the java language needs to call, and the other part is the core library of Android.
应用程序层和应用程序框架层运行在虚拟机中。虚拟机将应用程序层和应用程序框架层的java文件执行为二进制文件。虚拟机用于执行对象生命周期的管理,堆栈管理,线程管理,安全和异常的管理,以及垃圾回收等功能。The application layer and the application framework layer run in a virtual machine. The virtual machine executes the java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
系统库可以包括多个功能模块。例如:表面管理器(surface manager),媒体库(Media Libraries),三维图形处理库(例如:OpenGL ES),2D图形引擎(例如:SGL)等。The system library can include multiple functional modules. For example: surface manager (surface manager), media library (Media Libraries), three-dimensional graphics processing library (for example: OpenGL ES), 2D graphics engine (for example: SGL), etc.
表面管理器用于对显示子系统进行管理,并且为多个应用程序提供了2D和3D图层的融合。The surface manager is used to manage the display subsystem and provides a combination of 2D and 3D layers for multiple applications.
媒体库支持多种常用的音频,视频格式回放和录制,以及静态图像文件等。媒体库可以支持多种音视频编码格式,例如:MPEG4,H.264,MP3,AAC,AMR,JPG,PNG等。本申请中涉及的视频格式例如可以为RM,RMVB,MOV,MTV,AVI,AMV,DMV,FLV等。The media library supports playback and recording of a variety of commonly used audio and video formats, as well as still image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc. The video format involved in this application can be, for example, RM, RMVB, MOV, MTV, AVI, AMV, DMV, FLV, etc.
三维图形处理库用于实现三维图形绘图,图像渲染,合成,以及图层处理等。The 3D graphics processing library is used to realize 3D graphics drawing, image rendering, synthesis, and layer processing.
2D图形引擎是2D绘图的绘图引擎。The 2D graphics engine is a drawing engine for 2D drawing.
内核层是硬件和软件之间的层。内核层至少包含显示驱动,摄像头驱动(例如包括红外摄像头驱动和RGB摄像头驱动),音频驱动,传感器驱动。The kernel layer is the layer between hardware and software. The core layer includes at least display driver, camera driver (for example, infrared camera driver and RGB camera driver), audio driver, and sensor driver.
为了便于理解本申请实施例,以下示例性列举本申请中一种分布显示方法所适用的应用场景,可以包括如下场景。In order to facilitate the understanding of the embodiments of the present application, the following exemplarily enumerates the applicable application scenarios of a distributed display method in the present application, which may include the following scenarios.
场景一,将手机上显示的界面分布到大屏设备上进行显示。Scenario 1: Distribute the interface displayed on the mobile phone to a large-screen device for display.
请参阅图6a,图6a是本申请实施例提供的一种分布显示方法的应用场景示意图。如图6a所示,该应用场景包括第一设备(图6a中以智能手机为例)和第二设备(图6a中以液 晶电视为例)。并且该第一设备和该第二设备中均可以包括相关显示器和处理器等。其中,显示器和处理器可以通过系统总线进行数据传输。其中,该第一设备的显示器可以显示第一设备中待分布显示到第二设备上的界面,或者显示该第一设备中正在进行分布显示的界面,等等,该第二设备的显示器可以显示第一设备分布到第二设备上时的界面,等等,该界面可以包括图像、文字和视频,等等。可选地,该第二设备的屏幕发光亮度和/或色彩饱和度可以大于该第一设备,也即在第一设备上显示正常的界面,若不经处理直接分布显示到第二设备上,该第二设备上分布显示的画面往往会过曝过亮,色彩过于艳丽,刺眼,使得用户在长期观看第二设备上分布显示的界面时,容易眼睛疲劳,不舒适。如图6a所示,在本申请实施例中,在用户通过第一设备触发分布显示后,第一设备可以根据当前第一设备上显示的第一界面的第一信息(例如可以包括该第一界面中的多个像素各自的第一亮度值和第一饱和度值),对该第一信息进行预处理,例如,若该第一界面中存在较多像素的第一亮度值超过预设值,则可以降低该第一亮度值超过预设值的像素的饱和度值,计算得到其第二饱和度值,并生成对应的第二信息(例如可以包括第一亮度值小于或者等于预设值的像素的第一亮度值和第一饱和度值,以及第一亮度值超过预设值的像素的第一亮度值和第二饱和度值,等等),然后通过该第二设备,根据该第二信息显示第二界面,由此完成第一设备到第二设备的分布显示。请参阅图6b,图6b是本申请实施例提供的另一种分布显示方法的应用场景示意图。如图6b所示,该第一设备(图6b中以智能手机为例)上显示的第一界面(也即源端界面)与该第二设备(图6b中以液晶电视为例)上显示的第二界面(也即分布显示界面,或者称之为对端界面)内容相同,且在进行分布显示后,保证了第二设备上显示的第二界面的显示效果,不存在画面过曝过亮,色彩过于艳丽的情况,大大提高了用户的观看体验。Please refer to FIG. 6a, which is a schematic diagram of an application scenario of a distributed display method provided by an embodiment of the present application. As shown in Fig. 6a, the application scenario includes a first device (a smart phone is taken as an example in Fig. 6a) and a second device (a liquid crystal TV is taken as an example in Fig. 6a). And both the first device and the second device may include related displays and processors. Among them, the display and the processor can transmit data through the system bus. Wherein, the display of the first device can display the interface of the first device to be distributed and displayed on the second device, or display the interface that is being distributed and displayed in the first device, etc., the display of the second device can display The interface when the first device is distributed to the second device, etc. The interface may include images, text, and video, and so on. Optionally, the screen brightness and/or color saturation of the second device may be greater than that of the first device, that is, a normal interface is displayed on the first device, and if it is directly distributed and displayed on the second device without processing, The pictures distributed and displayed on the second device are often overexposed and bright, the colors are too bright, and are dazzling, which makes the user's eyes tired and uncomfortable when viewing the interface distributed and displayed on the second device for a long time. As shown in Figure 6a, in the embodiment of the present application, after the user triggers the distributed display through the first device, the first device may display first information according to the first interface currently displayed on the first device (for example, it may include the first information). The first brightness value and the first saturation value of the multiple pixels in the interface), the first information is preprocessed, for example, if there are more pixels in the first interface, the first brightness value exceeds the preset value , You can reduce the saturation value of the pixel whose first brightness value exceeds the preset value, calculate the second saturation value, and generate corresponding second information (for example, it may include that the first brightness value is less than or equal to the preset value The first brightness value and first saturation value of the pixel, and the first brightness value and second saturation value of the pixel whose first brightness value exceeds the preset value, etc.), and then through the second device, according to the The second information displays the second interface, thereby completing the distributed display from the first device to the second device. Please refer to FIG. 6b, which is a schematic diagram of an application scenario of another distributed display method provided by an embodiment of the present application. As shown in Figure 6b, the first interface (ie, the source interface) displayed on the first device (the smart phone is taken as an example in Figure 6b) is displayed on the second device (the LCD TV is taken as an example in Figure 6b) The content of the second interface (that is, the distributed display interface, or the peer interface) is the same, and after the distributed display, the display effect of the second interface displayed on the second device is ensured, and there is no screen overexposure Bright, the color is too gorgeous, greatly improving the user’s viewing experience.
在本申请实施例中,当用户想要进行分布显示时,用户对第一设备的操作过程可以参阅图7a和图7b,图7a-图7b是本申请实施例提供的一组界面示意图。如图7a所示,第一设备显示了蓝牙连接界面701,其中,该蓝牙连接界面701可以包括有设置控件702、蓝牙开启/关闭控件703和其他控件(例如返回控件等等)。如图7a所示,该第一设备的设备名称可以为第一设备A10,如图7a所示,在用户开启第一设备的蓝牙后,第一设备可以检测到附近的可用设备(也即可以与第一设备建立蓝牙连接的设备)并显示,例如包括图7a所示的第二设备B10、第二设备B11、第二设备B12和第二设备B13等。如图7a所示,该蓝牙连接界面701还可以包括第二设备B10连接控件704a、第二设备B11连接控件704b、第二设备B12连接控件704c和第二设备B13连接控件704d。例如,如图7a所示,当用户想要通过第二设备B13分布显示第一设备上的界面时,可以通过输入操作705(例如为点击第二设备B13连接控件704d)建立第一设备与第二设备B13之间的连接,以触发分布显示操作。此时,如图7b所示,在用户点击了第二设备B13连接控件704d后,第一设备可以显示分布显示界面706,其中,该分布显示界面706可以显示当前分布显示连接的设备,例如为图7b所示的“当前连接设备:第二设备B13”。其中,该分布显示界面706可以包括普通模式控件707a、优化模式控件707b和开始分布显示控件709等等。用户可以通过输入操作708(例如为点击)选择优化模式,从而可以在分布显示过程中运用本申请中的一种分布显示方法,以优化第一设备上的界面分布到第二设备B13上进行显示的显示效果。在 用户点击了优化模式控件707b后,如图7b所示,用户可以通过点击开始分布显示控件709,开始进行分布显示。首先,第一设备获取当前显示的第一界面的第一信息(例如可以包括该第一界面中的多个像素各自的第一亮度值和第一饱和度值);然后对该第一信息进行预处理,例如,若该第一界面中存在较多像素的第一亮度值超过预设值,则可以降低该第一亮度值超过预设值的像素的饱和度值,计算得到其第二饱和度值,并生成对应的第二信息(例如可以包括第一亮度值小于或者等于预设值的像素的第一亮度值和第一饱和度值,以及第一亮度值超过预设值的像素的第一亮度值和第二饱和度值,等等);然后,通过与其连接的第二设备(例如为第二设备B13)根据该第二信息显示第二界面,至此,完成了第一设备到第二设备的分布显示。并且使得第二设备上显示的界面具备较好的色彩舒适度,不会过于艳丽和刺眼,满足了用户的实际需求。可选地,用户还可以通过点击普通模式控件707a,选择普通模式,由此,可以根据用户的实际需求,在进行分布显示过程中,不使用本申请中的一种分布显示方法,而直接将第一设备上显示的第一界面分布显示到第二设备上,如此,可以减少第一设备的计算量,减少分布显示的延迟,提高分布显示的流畅度,等等,本申请实施例对此不作具体限定。In the embodiment of the present application, when the user wants to perform distributed display, the user's operation process on the first device can refer to Figures 7a and 7b. Figures 7a-7b are schematic diagrams of a set of interfaces provided by the embodiments of the present application. As shown in FIG. 7a, the first device displays a Bluetooth connection interface 701, where the Bluetooth connection interface 701 may include a setting control 702, a Bluetooth on/off control 703, and other controls (such as a return control, etc.). As shown in Figure 7a, the device name of the first device can be the first device A10. As shown in Figure 7a, after the user turns on the Bluetooth of the first device, the first device can detect nearby available devices (that is, you can Devices that have established a Bluetooth connection with the first device) and displayed, for example, include the second device B10, the second device B11, the second device B12, and the second device B13 shown in FIG. 7a. As shown in FIG. 7a, the Bluetooth connection interface 701 may also include a second device B10 connection control 704a, a second device B11 connection control 704b, a second device B12 connection control 704c, and a second device B13 connection control 704d. For example, as shown in Figure 7a, when the user wants to display the interface on the first device through the second device B13, he can establish the first device and the second device through an input operation 705 (for example, clicking the second device B13 connection control 704d). The connection between the two devices B13 to trigger the distributed display operation. At this time, as shown in FIG. 7b, after the user clicks the second device B13 connection control 704d, the first device can display a distributed display interface 706, where the distributed display interface 706 can display the currently distributed display connected devices, for example, "Currently connected device: second device B13" shown in Figure 7b. Wherein, the distributed display interface 706 may include a normal mode control 707a, an optimized mode control 707b, a start distribution display control 709, and so on. The user can select the optimization mode through the input operation 708 (for example, click), so that a distributed display method in this application can be used in the distributed display process to optimize the interface on the first device to be distributed to the second device B13 for display The display effect. After the user clicks the optimization mode control 707b, as shown in FIG. 7b, the user can click the start distribution display control 709 to start distributed display. First, the first device obtains the first information of the first interface currently displayed (for example, it may include the first brightness value and the first saturation value of each of the multiple pixels in the first interface); Preprocessing, for example, if there are more pixels in the first interface whose first brightness value exceeds a preset value, the saturation value of the pixel whose first brightness value exceeds the preset value can be reduced, and the second saturation value can be calculated And generate corresponding second information (for example, it may include the first brightness value and first saturation value of pixels whose first brightness value is less than or equal to the preset value, and the pixels whose first brightness value exceeds the preset value The first brightness value and the second saturation value, etc.); then, the second interface is displayed according to the second information through the second device (for example, the second device B13) connected to it, so far, the first device to The distribution of the second device is displayed. And it makes the interface displayed on the second device have better color comfort, and is not too bright and dazzling, which meets the actual needs of users. Optionally, the user can also select the normal mode by clicking the normal mode control 707a. Therefore, according to the actual needs of the user, during the distributed display process, one of the distributed display methods in this application is not used, but directly The first interface displayed on the first device is distributed and displayed on the second device. In this way, the calculation amount of the first device can be reduced, the delay of distributed display can be reduced, the fluency of distributed display can be improved, and so on. There is no specific limitation.
可选地,在本申请实施例中,当开发人员想要进行分布显示以测试本申请中的一种分布显示方法时,开发人员对第一设备的操作过程也可以参考图7a和图7b,此处不再进行赘述。开发人员可以根据得到的分布显示结果,不断优化本申请中的第二饱和度值的计算方法,等等,从而不断改善分布显示效果,有效提升用户的观看体验。Optionally, in this embodiment of the application, when a developer wants to perform a distributed display to test a distributed display method in this application, the developer can also refer to FIG. 7a and FIG. 7b for the operation process of the first device. I will not repeat them here. The developer can continuously optimize the calculation method of the second saturation value in this application according to the obtained distribution display result, etc., so as to continuously improve the distribution display effect and effectively enhance the user's viewing experience.
如上所述,该第一设备可以为具备上述功能的智能手机、智能可穿戴设备、平板电脑、膝上计算机和台式电脑等等设备,本申请实施例对此不作具体限定。该第二设备可以为具备上述功能的平板电脑、膝上计算机、台式电脑、液晶电视机和大屏显示器等等设备,本申请实施例对此不作具体限定。As described above, the first device may be a smart phone, a smart wearable device, a tablet computer, a laptop computer, a desktop computer, and other devices with the above-mentioned functions, which are not specifically limited in the embodiment of the present application. The second device may be a tablet computer, a laptop computer, a desktop computer, an LCD TV, a large-screen display, etc., with the above-mentioned functions, which is not specifically limited in the embodiment of the present application.
可以理解的是,本申请提供的一种分布显示方法还可以应用于除上述应用场景外的其他场景,例如为用户想要将第一设备内的一张图像或者一份幻灯片分享到与其连接的第二设备上,并通过该第二设备进行观看时,可以通过该第一设备对该图像或者幻灯片进行预处理,降低其中亮度过大区域的饱和度,然后再将处理后的图像和幻灯片分享至第二设备,等等,本申请实施例对此不作具体限定。由此,可以改善第二设备在显示该图像或者播放该幻灯片时的显示效果,此处不再进行赘述。It is understandable that the distributed display method provided in this application can also be applied to other scenarios besides the above-mentioned application scenarios, for example, when the user wants to share an image or a slide show in the first device to connect with it. When viewing through the second device on the second device, you can use the first device to preprocess the image or slideshow to reduce the saturation of the excessively bright area, and then combine the processed image with The slideshow is shared to the second device, etc., which is not specifically limited in the embodiment of the present application. As a result, the display effect of the second device when displaying the image or playing the slideshow can be improved, which will not be repeated here.
请参阅图8,图8是本申请实施例提供的一种分布显示方法的流程示意图,该方法可应用于上述图3所述的系统架构和上述图6a或图6b所述的应用场景中,以及具体可应用于上述图4的终端设备100中。下面结合附图8以执行主体为上述图4中的终端设备100为例进行描述。该方法可以包括以下步骤S801-步骤S804:Please refer to FIG. 8. FIG. 8 is a schematic flowchart of a distributed display method provided by an embodiment of the present application. The method can be applied to the system architecture described in FIG. 3 and the application scenario described in FIG. 6a or FIG. 6b. And it can be specifically applied to the terminal device 100 of FIG. 4 described above. In the following, description will be made with reference to FIG. 8 taking the execution subject as the terminal device 100 in FIG. 4 as an example. The method may include the following steps S801-S804:
步骤S801,获取第一界面的第一信息,第一信息包括第一界面中的P个像素各自的第一亮度值和第一饱和度值。Step S801: Acquire first information of the first interface, where the first information includes the first brightness value and the first saturation value of each of the P pixels in the first interface.
具体地,第一设备(也即源端设备,例如可以为上述图4中的终端设备100)获取第一界面的第一信息,该第一信息可以包括第一界面中的P个像素各自的第一亮度值和第一饱和度值,可选地,该第一信息还可以包括该第一界面中的P个像素各自的第一色相值, 等等。其中,P为大于或者等于1的整数,该第一界面为该第一设备上显示的界面。可选地,该第一界面可以包括文字、图像和其他等等界面元素,例如该第一界面可以包括一个或多个图像区域,还可以包括一个或多个文字区域,则该第一信息还可以包括该第一界面中的一个或多个文字区域内的多个文字各自的第一亮度值和第一饱和度值,等等,本申请实施例对此不作具体限定。Specifically, the first device (that is, the source device, for example, the terminal device 100 in FIG. 4) obtains the first information of the first interface, and the first information may include the respective information of the P pixels in the first interface. The first brightness value and the first saturation value, optionally, the first information may also include the first hue value of each of the P pixels in the first interface, and so on. Where P is an integer greater than or equal to 1, and the first interface is an interface displayed on the first device. Optionally, the first interface may include text, images, and other interface elements, for example, the first interface may include one or more image areas, and may also include one or more text areas, then the first information is also It may include the respective first brightness value and first saturation value of multiple texts in one or more text areas in the first interface, etc., which are not specifically limited in the embodiment of the present application.
可选地,第一设备可以首先获取该第一界面中的P个像素各自的第一颜色值,然后根据该P个像素各自的第一颜色值,通过色彩空间变换(例如为从RGB色彩空间变换到HSL色彩空间),计算得到该P个像素各自的第一亮度值和第一饱和度值,等等。可选地,第一设备可以提取该第一界面中的一个或多个图像区域中的每一个图像区域的像素数组,并计算每一个图像区域的像素数组内的每一个像素的第一颜色值,从而可以得到该第一界面中的P个像素各自的第一颜色值。可选地,该第一设备还可以获取该第一界面中的该一个或多个文字区域中的每一个文字区域内的每一个文字的第一颜色值;然后根据每一个文字区域内的每一个文字的第一颜色值,通过色彩空间变换(例如为从RGB色彩空间变换到HSL色彩空间),计算得到每一个文字区域内的每一个文字的第一亮度值和第一饱和度值,等等。Optionally, the first device may first obtain the first color value of each of the P pixels in the first interface, and then according to the first color value of each of the P pixels, through color space conversion (for example, from the RGB color space Transform to HSL color space), calculate the first brightness value and the first saturation value of each of the P pixels, and so on. Optionally, the first device may extract the pixel array of each image area in one or more image areas in the first interface, and calculate the first color value of each pixel in the pixel array of each image area , So that the first color value of each of the P pixels in the first interface can be obtained. Optionally, the first device may also obtain the first color value of each text in each text area of the one or more text areas in the first interface; and then according to each text area in each text area. The first color value of a text is converted by color space (for example, from RGB color space to HSL color space), and the first brightness value and first saturation value of each text in each text area are calculated, etc. Wait.
可选地,请参阅图9,图9是本申请实施例提供的另一种分布显示方法的流程示意图。如图9中的步骤S11所示,在分布显示开始之前,第一设备可以与对端设备(也即第二设备,例如可以为上述图3所述系统架构中的第二设备200a、200b和200c中的任意一个)通过WiFi、蓝牙等方式建立连接,然后获取该对端设备的设备信息(例如可以包括该对端设备的型号、屏幕尺寸、屏幕发光亮度和色彩饱和度等等)。如图9中的步骤S12所示,第一设备在获取到对端设备的设备信息后,第一设备可以根据该设备信息,判断该对端设备是否满足第一色彩替换条件,可选地,该第一色彩替换条件可以为该对端设备的屏幕发光亮度和/或色彩饱和度大于第一设备,也即该对端设备为色彩显示偏亮、偏鲜艳的设备。该第一色彩替换条件还可以包括该对端设备的屏幕尺寸远远大于第一设备,或者大于某一尺寸阈值,等等,本申请实施例对此不作具体限定。如图9所示,若该对端设备满足第一色彩替换条件,则可以进行后续的步骤S13,提取第一界面的颜色数据(例如可以包括该第一界面中的每个像素的第一颜色值,以及每个文字的第一颜色值,等等),从而获取该第一界面的第一信息;若该对端设备不满足第一色彩替换条件,则该第一设备可以直接进行界面分布,而无需进行后续步骤。从而使得分布显示的效果更加合理,色彩舒适,不刺眼,保证在第一设备和第二设备等不同设备上显示时用户观看体验的一致性,并且可以不额外增加第一设备多余的计算量,Optionally, please refer to FIG. 9, which is a schematic flowchart of another distribution display method provided by an embodiment of the present application. As shown in step S11 in FIG. 9, before the distributed display starts, the first device may interact with the opposite device (that is, the second device, for example, the second devices 200a, 200b, and 200b) in the system architecture described in FIG. Any one of 200c) establishes a connection via WiFi, Bluetooth, etc., and then obtains the device information of the peer device (for example, it may include the model of the peer device, screen size, screen brightness and color saturation, etc.). As shown in step S12 in Figure 9, after the first device obtains the device information of the opposite device, the first device can determine whether the opposite device meets the first color replacement condition according to the device information. Optionally, The first color replacement condition may be that the brightness and/or color saturation of the screen of the opposite device is greater than that of the first device, that is, the opposite device is a device with a brighter and more vivid color display. The first color replacement condition may also include that the screen size of the peer device is much larger than the first device, or larger than a certain size threshold, etc., which is not specifically limited in the embodiment of the present application. As shown in Figure 9, if the peer device meets the first color replacement condition, the subsequent step S13 can be performed to extract the color data of the first interface (for example, it can include the first color of each pixel in the first interface). Value, and the first color value of each text, etc.) to obtain the first information of the first interface; if the opposite device does not meet the first color replacement condition, the first device can directly perform interface distribution , Without the need for subsequent steps. Thereby, the effect of distributed display is more reasonable, the color is comfortable, and it is not glare, ensuring the consistency of user viewing experience when displaying on different devices such as the first device and the second device, and it does not increase the extra calculation amount of the first device.
如上所述,该第一设备可以首先获取该第一界面的颜色数据,再通过色彩空间变换,从而获取到该第一界面的第一信息。其中,该第一界面的颜色数据例如可以包括该第一界面中各类元素的第一颜色值(也即原始的颜色值),比如该第一界面中每个图像区域内的每个像素的第一颜色值,以及每个文字区域内的每个文字的第一颜色值,等等,此处不再进行赘述。显然,上述第一颜色值为RGB色彩空间下的色彩表示方法,而上述第一亮度值和第一饱和度值为HSL色彩空间下的色彩表示方法,此处不再进行赘述。As described above, the first device may first obtain the color data of the first interface, and then use the color space transformation to obtain the first information of the first interface. Wherein, the color data of the first interface may include, for example, the first color value (that is, the original color value) of various elements in the first interface, such as the value of each pixel in each image area in the first interface. The first color value, and the first color value of each text in each text area, etc., will not be repeated here. Obviously, the above-mentioned first color value is a color expression method in the RGB color space, and the above-mentioned first brightness value and the first saturation value are color expression methods in the HSL color space, which will not be repeated here.
可选地,第一设备获取该待分布显示的第一界面的颜色数据的方法可以包括但不限于以下几种方案:Optionally, the method for the first device to obtain the color data of the first interface to be distributed and displayed may include, but is not limited to, the following solutions:
a.通过安卓(android)系统提供的方法获取界面元素的第一颜色值,如图9所示,其中可以包括:a. Obtain the first color value of the interface element through the method provided by the Android system, as shown in Figure 9, which may include:
(1)对于界面中的文字信息,可以通过androidtextView类提供的getTextColor()提取文字颜色,获得每一个文字的第一颜色值;(1) For the text information in the interface, the text color can be extracted through getTextColor() provided by the androidtextView class to obtain the first color value of each text;
(2)对于界面中的图片信息,可以通过android bitmap类提供的getPixels()方法,例如图9所示的getPixels(int[]pixels,int offset,int stride,int x,int y,int width,int height)方法,提取图片的像素数组(其中,像素数组为一个二维矩阵),再计算像素数组中的每一个像素的第一颜色值,以将图片的每个像素的第一颜色值提取并存入像素数组中;(2) For the picture information in the interface, you can use the getPixels() method provided by the android bitmap class, such as getPixels(int[]pixels,int offset,int stride,int x,int y,int width, as shown in Figure 9 int height) method, extract the pixel array of the picture (where the pixel array is a two-dimensional matrix), and then calculate the first color value of each pixel in the pixel array to extract the first color value of each pixel in the picture And store it in the pixel array;
(3)对于其他界面元素,可以通过android view类提供的getDrawable()方法获取控件的资源文件(资源文件泛指view的Drawable资源,Drawable用于android控件的背景,可以包括图片(png等),纯色背景等可视资源),将资源文件转为图片,再通过上述android bitmap类提供的getPixels()方法进行读取、计算。(3) For other interface elements, the resource file of the control can be obtained through the getDrawable() method provided by the android view class (the resource file generally refers to the Drawable resource of the view. Drawable is used for the background of the android control and can include pictures (png, etc.), Pure color background and other visual resources), the resource file is converted into a picture, and then read and calculated through the getPixels() method provided by the android bitmap class.
b.通过android系统中的surfaceflinger获取应用的layer,从应用的layer中获取应用的绘制数据。b. Obtain the layer of the application through the surfaceflinger in the android system, and obtain the drawing data of the application from the layer of the application.
c.通过将应用进行截图,再对截图的bitmap进行处理、分析。c. By taking a screenshot of the application, the bitmap of the screenshot is processed and analyzed.
步骤S802,确定第一界面中的N个第一像素和M个第二像素。Step S802: Determine N first pixels and M second pixels in the first interface.
具体地,第一设备根据该第一界面的第一信息,确定该第一界面中的N个第一像素和M个第二像素。其中,该N个第一像素中的每一个第一像素的第一亮度值大于第一阈值;该M个第二像素中的每一个第二像素的第一亮度值小于或者等于该第一阈值;其中,N、M为大于或者等于1的整数,一般情况下,N与M的和为P。可选地,该第一设备还可以确定该第一界面中第一亮度值大于该第一阈值的一个或多个文字,以及确定该第一界面中第一亮度值小于或者等于该第一阈值的一个或多个文字,等等。Specifically, the first device determines the N first pixels and M second pixels in the first interface according to the first information of the first interface. Wherein, the first brightness value of each first pixel in the N first pixels is greater than a first threshold; the first brightness value of each second pixel in the M second pixels is less than or equal to the first threshold ; Among them, N and M are integers greater than or equal to 1. In general, the sum of N and M is P. Optionally, the first device may also determine one or more characters in the first interface whose first brightness value is greater than the first threshold, and determine that the first brightness value in the first interface is less than or equal to the first threshold One or more of the text, and so on.
步骤S803,若N个第一像素的第一亮度值的和与P个像素的第一亮度值的和的比值大于或者等于第二阈值,则确定N个第一像素的第二饱和度值。Step S803: If the ratio of the sum of the first brightness values of the N first pixels to the sum of the first brightness values of the P pixels is greater than or equal to the second threshold, the second saturation values of the N first pixels are determined.
具体地,第一设备可以分别计算该N个第一像素的第一亮度值的和,以及该P个像素的第一亮度值的和,并计算得到该N个第一像素的第一亮度值的和与该P个像素的第一亮度值的和的比值。然后将该比值与第二阈值进行比较,若该比值大于或者等于该第二阈值,则第一设备可以确定N个第一像素的第二饱和度值。其中,第二饱和度值小于第一饱和度值,由此可以降低亮度较大的像素的饱和度,使得第二设备在进行分布显示时,画面色彩舒适,不会过曝过亮,保证用户的观看体验。Specifically, the first device may respectively calculate the sum of the first brightness values of the N first pixels and the sum of the first brightness values of the P pixels, and calculate the first brightness values of the N first pixels. The ratio of the sum of and the sum of the first brightness values of the P pixels. Then the ratio is compared with the second threshold, and if the ratio is greater than or equal to the second threshold, the first device can determine the second saturation value of the N first pixels. Among them, the second saturation value is less than the first saturation value, which can reduce the saturation of pixels with larger brightness, so that when the second device performs distributed display, the picture color is comfortable, and the user will not be overexposed and over bright. Viewing experience.
可选地,该P个像素中的第j个像素的第一亮度值可以记为L j,该P个像素中的第j个像素的第一饱和度值可以记为S j;其中,j为大于或者等于1,并且小于或者等于P的整数。该N个第一像素中的第i个第一像素的第一亮度值可以记为L i’,L i’大于该第一阈值,该N个第一像素中的第i个第一像素的第一饱和度值可以记为S i’;其中,i为大于或者等于1,并且小于或者等于N的整数。 Optionally, the first brightness value of the j-th pixel in the P pixels can be denoted as L j , and the first saturation value of the j-th pixel in the P pixels can be denoted as S j ; where j It is an integer greater than or equal to 1 and less than or equal to P. The first brightness value of the i-th first pixel in the N first pixels can be denoted as Li ', Li ' is greater than the first threshold, and the i-th first pixel in the N first pixels The first saturation value can be denoted as S i '; where i is an integer greater than or equal to 1 and less than or equal to N.
根据韦伯费希纳定律,当差异量比上刺激量大于某个阈值时,心理上可以感觉到这种差异,称为最小可觉差,即满足如下公式(1):According to Weber Fechner's law, when the amount of difference is greater than a certain threshold than the stimulus amount, the difference can be felt psychologically, which is called the minimum noticeable difference, which satisfies the following formula (1):
Figure PCTCN2021099491-appb-000001
Figure PCTCN2021099491-appb-000001
其中,I为基础刺激量,ΔI为差异量,在本申请实施例中,I可以为该P个像素的第一亮度值的和,ΔI可以为该N个第一像素的第一亮度值的和,Q可以为该第二阈值。根据上述公式(1)可以计算得到该N个第一像素的第一亮度值的和与该P个像素的第一亮度值的和的比值,并判断该比值是否大于或者等于第二阈值。可以理解的是,当第一界面的总体亮度很低时,很小区域的过曝用户也可以察觉到;当第一界面的总体亮度较高时,需要大面积或者局部很强的过曝才能让用户察觉到。Among them, I is the basic stimulus amount, and ΔI is the difference amount. In the embodiment of the present application, I can be the sum of the first brightness values of the P pixels, and ΔI can be the sum of the first brightness values of the N first pixels. And, Q can be the second threshold. According to the above formula (1), the ratio of the sum of the first brightness values of the N first pixels to the sum of the first brightness values of the P pixels can be calculated, and it is determined whether the ratio is greater than or equal to the second threshold. It is understandable that when the overall brightness of the first interface is very low, users can also notice the overexposure in a small area; when the overall brightness of the first interface is high, a large area or strong local overexposure is required. Let users notice.
可选地,第一设备可以通过如下公式(2)计算该P个像素的第一亮度值的和,Optionally, the first device may calculate the sum of the first brightness values of the P pixels by using the following formula (2),
I=∑L j  (2) I=∑L j (2)
其中,如上所述,L j为P个像素中的第j个像素的第一亮度值,通过公式(2)可以将该P个像素的第一亮度值进行相加求和。例如,P为10,也即该第一界面包括10个像素,此时j的取值范围为1到10,例如该10个像素的第一亮度值分别为L 1=20、L 2=30、L 3=70、L 4=15、L 5=130、L 6=80、L 7=45、L 8=55、L 9=33、L 10=27,则可以计算得到该10个像素的第一亮度值的和为I=(L 1+L 2+L 3+L 4+L 5+L 6+L 7+L 8+L 9+L 10)=505。 Wherein, as described above, L j is the first brightness value of the j-th pixel in the P pixels, and the first brightness values of the P pixels can be added and summed by formula (2). For example, if P is 10, that is, the first interface includes 10 pixels. At this time, the value of j ranges from 1 to 10. For example, the first brightness values of the 10 pixels are L 1 =20 and L 2 =30, respectively. , L 3 =70, L 4 =15, L 5 =130, L 6 =80, L 7 =45, L 8 =55, L 9 =33, L 10 =27, then the 10 pixels can be calculated The sum of the first brightness values is I=(L 1 +L 2 +L 3 +L 4 +L 5 +L 6 +L 7 +L 8 +L 9 +L 10 )=505.
可选地,第一设备可以通过如下公式(2)计算该N个第一像素的第一亮度值的和,Optionally, the first device may calculate the sum of the first brightness values of the N first pixels by using the following formula (2),
ΔI=∑Trunc(L i')  (3) ΔI=∑Trunc(L i ') (3)
其中,如上所述,L i’为N个第一像素中的第i个第一像素的第一亮度值,也即为该P个像素中过亮或者过曝像素的第一亮度值。通过公式(3)可以将该N个第一像素的第一亮度值进行相加求和。此外,公式(3)中的Trunc()为截断函数,由于一般情况下,当像素的亮度值超过一定阈值后,就认为其对人眼产生的刺激不再增加了,因此,该截断函数的作用可以是使得超过一定阈值的第一亮度值维持在该阈值保持不变。以上述P为10,且该10个像素的第一亮度值分别为L 1=20、L 2=30、L 3=70、L 4=15、L 5=130、L 6=80、L 7=45、L 8=55、L 9=33、L 10=27的第一界面为例,若第一阈值为50,则此时该第一界面包括4个第一亮度值超过50的第一像素(也即N为4),此时i的取值范围为1到4,该4个第一像素的第一亮度值分别为L 1’=70、L 2’=130、L 3’=80、L 4’=55。例如,该截断函数的阈值为75,则ΔI=Trunc(L 1’)+Trunc(L 1’)+Trunc(L 1’)+Trunc(L 1’)=70+75+75+55=275。 Wherein, as described above, L i ′ is the first brightness value of the i-th first pixel in the N first pixels, that is, the first brightness value of the over-bright or over-exposed pixel in the P pixels. The first brightness values of the N first pixels can be summed up by formula (3). In addition, Trunc() in formula (3) is a cut-off function. In general, when the brightness value of a pixel exceeds a certain threshold, it is considered that the stimulus to the human eye is no longer increased. Therefore, the cut-off function The effect may be to keep the first brightness value exceeding a certain threshold at the threshold. Let the above P be 10, and the first brightness values of the 10 pixels are respectively L 1 =20, L 2 =30, L 3 =70, L 4 =15, L 5 =130, L 6 =80, L 7 =45, L 8 =55, L 9 =33, L 10 =27 as an example. If the first threshold is 50, then the first interface includes 4 first interfaces whose first brightness value exceeds 50. Pixel (that is, N is 4). At this time, the value of i ranges from 1 to 4. The first brightness values of the four first pixels are respectively L 1 '=70, L 2 '=130, L 3 '= 80. L 4 '=55. For example, the threshold of the truncation function is 75, then ΔI=Trunc(L 1 ')+Trunc(L 1 ')+Trunc(L 1 ')+Trunc(L 1 ')=70+75+75+55=275 .
可选地,步骤S803可以参考图9所示的步骤S14,判断该第一界面的颜色数据是否满足第二色彩替换条件,例如,根据上述公式(1)、(2)和(3)计算该N个第一像素的第一亮度值的和与P个像素的第一亮度值的和的比值,若该比值大于或者等于第二阈值,则可以确定该第一界面的颜色数据满足第二色彩替换条件,以进行后续色彩替换的步骤S15,也即计算该N个第一像素各自的第二饱和度值。若该比值小于第二阈值,则可以确定该第一界面的颜色数据不满足第二色彩替换条件,则如图9所示,该第一设备可以直接进行界面分布,而无需执行后续步骤。Optionally, step S803 may refer to step S14 shown in FIG. 9 to determine whether the color data of the first interface meets the second color replacement condition, for example, calculate the color data according to the above formulas (1), (2) and (3). The ratio of the sum of the first brightness values of the N first pixels to the sum of the first brightness values of the P pixels. If the ratio is greater than or equal to the second threshold, it can be determined that the color data of the first interface meets the second color The replacement condition is to perform step S15 of subsequent color replacement, that is, to calculate the second saturation value of each of the N first pixels. If the ratio is less than the second threshold, it can be determined that the color data of the first interface does not meet the second color replacement condition. As shown in FIG. 9, the first device can directly perform interface distribution without performing subsequent steps.
可选地,对于该N个第一像素,可以将其第一饱和度值替换为CMC色彩椭圆中径向饱和度次一级色阶的值。例如,该第一设备可以确定该N个第一像素中的第i个第一像素的第一饱和度值位于CMC色彩椭圆的第k个区间,其中,该CMC色彩椭圆可以包括径向划分的z个区间。其中,z为大于或者等于1的整数,k为大于或者等于1,并且小于或者等于z的整数。然后将第k-1个区间内的随机值确定为该第i个第一像素的第二饱和度值,由此可以确定该N个第一像素各自的第二饱和度值。该第k-1个区间为在CMC色彩椭圆 中较该第k个区间次一级的区间,该第k-1个区间与该第k个区间相邻,且一般情况下,该第k-1个区间内的最大值小于该第k个区间内的最小值。Optionally, for the N first pixels, the first saturation value may be replaced with the value of the sub-level radial saturation in the CMC color ellipse. For example, the first device may determine that the first saturation value of the i-th first pixel among the N first pixels is located in the k-th interval of the CMC color ellipse, where the CMC color ellipse may include radially divided z intervals. Among them, z is an integer greater than or equal to 1, and k is an integer greater than or equal to 1, and less than or equal to z. Then, the random value in the k-1th interval is determined as the second saturation value of the i-th first pixel, so that the second saturation value of each of the N first pixels can be determined. The k-1th interval is an interval next to the kth interval in the CMC color ellipse, the k-1th interval is adjacent to the kth interval, and in general, the kth interval The maximum value in an interval is smaller than the minimum value in the k-th interval.
可选地,第一设备可以通过如下公式(4)计算该N个像素中的第i个第一像素的第一饱和度值所在的区间,Optionally, the first device may calculate the interval in which the first saturation value of the i-th first pixel among the N pixels is located by the following formula (4),
Figure PCTCN2021099491-appb-000002
Figure PCTCN2021099491-appb-000002
其中,S i”为将第i个第一像素的第一饱和度值S i’进行归一化至[0,1]之后得到的饱和度值,ε为在计算机中可以表示的最小量化值(例如为0.01、0.02或者0.1等等),z表示将CMC色彩椭圆径向划分为z个区间,k表示该第i个第一像素的第一饱和度值位于该n个区间中的第k个区间。其中,
Figure PCTCN2021099491-appb-000003
为对
Figure PCTCN2021099491-appb-000004
的向下取整。例如,若饱和度的取值范围为0至255,S i’为153,则将S i’归一化至[0,1]后得到的S i”为0.6,同时,若ε为0.01,z为10,此时计算得到
Figure PCTCN2021099491-appb-000005
则下取整后为8,计算得到k=8-1=7,也即计算得到该第i个第一像素的第一饱和度值位于该n个区间中的第7个区间。根据上述公式(4),若计算得到
Figure PCTCN2021099491-appb-000006
也即k>0,则在第k-1个区间内选取一个随机值作为该第i个第一像素的第二饱和度值。可以理解的是,正常情况下,不会出现饱和度值极小甚至为0却过曝的现象,因此,若计算得到k等于0,则可以不再计算第二饱和度值,第一设备可以直接进行界面分布。
Among them, S i ”is the saturation value obtained after normalizing the first saturation value S i 'of the i-th first pixel to [0,1], and ε is the smallest quantized value that can be expressed in the computer (For example, 0.01, 0.02, or 0.1, etc.), z means that the CMC color ellipse is radially divided into z intervals, and k means that the first saturation value of the i-th pixel is located in the kth of the n intervals Intervals. Among them,
Figure PCTCN2021099491-appb-000003
For right
Figure PCTCN2021099491-appb-000004
Is rounded down. For example, if the saturation in the range of 0 to 255, S i 'of 153, then S i' normalized to [0, 1] is obtained S i "is 0.6, while, if ε is 0.01, z is 10, at this time the calculation is
Figure PCTCN2021099491-appb-000005
Then it is 8 after rounding down, and k=8-1=7 is calculated, that is, the first saturation value of the i-th first pixel is calculated to be located in the seventh interval of the n intervals. According to the above formula (4), if calculated
Figure PCTCN2021099491-appb-000006
That is, k>0, a random value is selected in the k-1th interval as the second saturation value of the i-th first pixel. It is understandable that under normal circumstances, there will be no overexposure when the saturation value is extremely small or even 0. Therefore, if k is equal to 0 by calculation, the second saturation value can no longer be calculated, and the first device can Direct interface distribution.
可选地,若计算得到k大于0,则第一设备可以通过如下公式(5)计算第k-1个区间的取值范围,并在该区间内选取随机值,从而计算得到该N个像素中的第i个第一像素的第二饱和度值,Optionally, if k is greater than 0 by calculation, the first device may calculate the value range of the k-1th interval by the following formula (5), and select a random value in the interval, thereby calculating the N pixels The second saturation value of the i-th first pixel in
Figure PCTCN2021099491-appb-000007
Figure PCTCN2021099491-appb-000007
其中,S i *为根据归一化后的第i个第一像素的第一饱和度值计算得到的第i个第一像素的第二饱和度值(也即S i *为归一化至[0,1]的第二饱和度值),rand()为随机数生成函数,通过该随机数生成函数可以在某一范围内生成一个随机数,S i *即为
Figure PCTCN2021099491-appb-000008
范围内的随机数。例如,若z=10,并且如上所述通过公式(4)计算得到k=7,则
Figure PCTCN2021099491-appb-000009
Figure PCTCN2021099491-appb-000010
也即第6个区间的取值范围可以为
Figure PCTCN2021099491-appb-000011
则该S i *可以为
Figure PCTCN2021099491-appb-000012
内的随 机值,比如为0.4、0.42、0.48和0.5等等。例如,当S i *为0.4(也即第i个第一像素的归一化至[0,1]的第二饱和度值为0.4),且饱和度的取值范围为上述的0至255时,则可以计算得到该第i个第一像素的第二饱和度值为102,显然,该第二饱和度值102小于该第一饱和度值153。并且,如上所述,若计算得到k=7,也即计算得到该第i个第一像素的第一饱和度值位于该n个区间中的第7个区间,则基于上述公式(5),可以计算得到第7个区间的取值范围可以为
Figure PCTCN2021099491-appb-000013
显然,第6个区间内的最大值小于该第7个区间内的最小值,也即该第k-1个区间内的最大值小于该第k个区间内的最小值,如此,便可以达到降低亮度较大的像素的饱和度值,从而优化显示效果的目的,此处不再进行赘述。
Among them, S i * is the second saturation value of the i-th first pixel calculated according to the normalized first saturation value of the i-th first pixel (that is, S i * is normalized to The second saturation value of [0,1]), rand() is a random number generation function, through which a random number can be generated within a certain range, S i * is
Figure PCTCN2021099491-appb-000008
A random number in the range. For example, if z=10, and k=7 calculated by formula (4) as described above, then
Figure PCTCN2021099491-appb-000009
Figure PCTCN2021099491-appb-000010
That is to say, the value range of the sixth interval can be
Figure PCTCN2021099491-appb-000011
Then the S i * can be
Figure PCTCN2021099491-appb-000012
The random value within, such as 0.4, 0.42, 0.48, 0.5 and so on. For example, when S i * is 0.4 (that is, the second saturation value of the i-th first pixel is normalized to [0,1], the second saturation value is 0.4), and the saturation value range is the above-mentioned 0 to 255 When, the second saturation value of the i-th first pixel can be calculated to be 102. Obviously, the second saturation value 102 is smaller than the first saturation value 153. And, as described above, if k=7 is calculated, that is, the first saturation value of the i-th first pixel is calculated to be located in the seventh interval of the n intervals, then based on the above formula (5), It can be calculated that the value range of the seventh interval can be
Figure PCTCN2021099491-appb-000013
Obviously, the maximum value in the 6th interval is smaller than the minimum value in the 7th interval, that is, the maximum value in the k-1th interval is smaller than the minimum value in the kth interval, so that it can be achieved The purpose of reducing the saturation value of the pixels with larger brightness to optimize the display effect will not be repeated here.
步骤S804,生成第二信息,第二信息包括N个第一像素的第一亮度值和第二饱和度值,以及M个第二像素的第一亮度值和第一饱和度值。Step S804, generating second information, the second information including the first brightness value and the second saturation value of the N first pixels, and the first brightness value and the first saturation value of the M second pixels.
具体地,第一设备在计算得到N个第一像素各自的第二饱和度值后,可以生成第二信息,该第二信息可以包括N个第一像素的第一亮度值和第二饱和度值,以及M个第二像素的第一亮度值和第一饱和度值。可选地,该第二信息可以用于第二设备根据该第二信息显示第二界面,以完成第一设备到第二设备的界面分布显示,并且使得该第二设备在基于该第一设备的第一界面显示第二界面时,画面色彩合理舒适,不会过曝过亮。可以理解的是,该M个第二像素的第一亮度值小于或者等于第一阈值,在分布显示到第二设备上时一般不会造成画面过亮过曝的现象,因此无需改变其第一饱和度值。Specifically, the first device may generate second information after calculating the second saturation value of each of the N first pixels, and the second information may include the first brightness value and the second saturation value of the N first pixels Value, and the first brightness value and first saturation value of the M second pixels. Optionally, the second information can be used by the second device to display the second interface according to the second information, so as to complete the interface distribution display from the first device to the second device, and make the second device be based on the first device. When the second interface is displayed on the first interface, the color of the screen is reasonable and comfortable, and it will not be overexposed and bright. It is understandable that the first brightness value of the M second pixels is less than or equal to the first threshold value, and generally will not cause the picture to be over-bright and over-exposed when being distributed and displayed on the second device, so there is no need to change the first brightness value. Saturation value.
可选地,计算设备还可以根据该第二信息,通过色彩空间变换(例如为从HSL色彩空间变换到RGB色彩空间),计算该N个第一像素的第二颜色值和该M个第二像素的第一颜色值,并生成第三信息。具体地,计算设备可以根据该N个第一像素的第一亮度值和第二饱和度值,计算得到该N个第一像素的第二颜色值,还可以根据该M个第二像素的第一亮度值和第一饱和度值,计算得到该M个第一像素的第一颜色值。其中,该第三信息可以包括该N个第一像素的第二颜色值,以及该M个第二像素的第一颜色值。计算设备可以具体根据该第三信息显示第二界面。Optionally, the computing device may also calculate the second color values of the N first pixels and the M second color values through color space conversion (for example, conversion from HSL color space to RGB color space) according to the second information. The first color value of the pixel, and the third information is generated. Specifically, the computing device may calculate the second color value of the N first pixels according to the first brightness value and the second saturation value of the N first pixels, and may also obtain the second color value of the M second pixels according to the first brightness value and the second saturation value of the N first pixels. A brightness value and a first saturation value are calculated to obtain the first color values of the M first pixels. The third information may include the second color values of the N first pixels and the first color values of the M second pixels. The computing device may specifically display the second interface according to the third information.
可选地,请参考图9中的步骤S16,第一设备更新界面颜色,生成对应的第三信息的方法可以包括但不限于以下几种:Optionally, referring to step S16 in FIG. 9, the first device updates the interface color, and the method of generating the corresponding third information may include but is not limited to the following:
a.通过android系统提供的方法进行颜色替换,如图9所示,其中可以包括:a. Perform color replacement through the method provided by the android system, as shown in Figure 9, which can include:
(1)对于界面中的文本信息,使用android textView类提供的setTextColor(int color)方法设置文本的第二颜色值;(1) For the text information in the interface, use the setTextColor(int color) method provided by the android textView class to set the second color value of the text;
(2)对于界面中的图片信息,首先遍历getPixels方法获取到的像素数组,用计算得到的第二颜色值替换出现过曝问题像素(也即N个第一像素)的第一颜色值,使用android bitmap类提供的setPixels()方法,将修改后的像素数组更新回图片;(2) For the picture information in the interface, first traverse the pixel array obtained by the getPixels method, and use the calculated second color value to replace the first color value of the overexposed pixels (ie N first pixels), use The setPixels() method provided by the android bitmap class updates the modified pixel array back to the picture;
(3)对于界面中其他界面元素,首先处理经过view.getDrawable()方法生成的图片,通过上述处理图片的方法处理完毕后,重新生成drawable并通过view.setDrawable(Drawable drawable)方法更新。(3) For other interface elements in the interface, first process the picture generated by the view.getDrawable() method. After the picture processing method is completed, regenerate the drawable and update it through the view.setDrawable(Drawable drawable) method.
b.通过修改应用在surfaceflinger中的layer信息完成界面更新。b. Complete the interface update by modifying the layer information applied in the surfaceflinger.
请参阅图10,图10是本申请实施例提供的一组分布显示效果对比示意图。如图10所 示,图10中以手机上的源端界面分布显示到液晶电视上为例,对于液晶电视等大屏设备来说,手机等源端设备上显示效果正常的界面在分布显示到大屏设备上时,往往会存在大屏显示画面过曝过亮,刺眼,色彩过于艳丽等问题。其中,如图10所示,对端界面1为手机上的源端界面直接分布到液晶电视上后显示的界面,其中,对端界面2为采用了本申请中的一种分布显示方法,将手机上的源端界面的相关显示信息进行相应处理(例如为降低源端界面中的多个像素的饱和度值,从而改变其颜色值,等等),然后再分布到液晶电视上后显示的界面。显然,如图10所示,对端界面1的显示效果较差,画面色彩过于艳丽且颜色过亮,用户长期观看会引起眼睛疲劳、眼睛发胀、发痒等不适感,而对端界面2的显示效果较好,画面色彩合理舒适,不刺眼,保证了用户观看的舒适度。与此同时,对端界面2的显示效果与手机上的源端界面的显示效果较为一致,保证了分布显示场景下,不同设备上显示界面的用户观看体验的一致性。Please refer to FIG. 10, which is a schematic diagram of a set of distribution display effects comparison provided by an embodiment of the present application. As shown in Figure 10, in Figure 10, the source interface on the mobile phone is displayed on the LCD TV as an example. For large-screen devices such as LCD TVs, the normal display interface on the source device such as the mobile phone is displayed in the distribution. On large-screen devices, there are often problems such as over-exposure, over-exposure, dazzling, and over-bright colors. Among them, as shown in Fig. 10, the opposite terminal interface 1 is the interface displayed after the source interface on the mobile phone is directly distributed on the LCD TV. Among them, the opposite terminal interface 2 adopts a distributed display method in this application. The relevant display information of the source interface on the mobile phone is processed accordingly (for example, to reduce the saturation value of multiple pixels in the source interface, thereby changing its color value, etc.), and then distributed to the LCD TV and then displayed interface. Obviously, as shown in Figure 10, the display effect of the opposite terminal interface 1 is poor, the screen color is too bright and the color is too bright, and the user’s long-term viewing will cause discomfort such as eye fatigue, eye swelling, and itching, while the opposite terminal interface 2 The display effect is better, the color of the picture is reasonable and comfortable, and it is not dazzling, which ensures the comfort of the user's viewing. At the same time, the display effect of the peer interface 2 is relatively consistent with the display effect of the source interface on the mobile phone, which ensures the consistency of the user viewing experience of the display interfaces on different devices in the distributed display scenario.
如上所述,为了解决个别设备对绿蓝红等颜色过亮的显示问题,本申请实施例提供了一种分布显示方法,当手机等移动终端设备上的显示画面需要分布到其他对端设备时,先对该对端设备进行判断。如果判断出该对端设备为可能出现某些颜色显示不佳的大屏设备,如液晶电视或者其他色彩还原不佳的大屏设备时,可以提取手机等移动终端设备上待分布显示的界面的色彩的亮度,当亮度超过一定阈值时,也即该界面存在亮度较大的区域,容易使得其在对端设备上分布显示时,造成画面过曝过亮等问题,则可以先在本端对界面的颜色进行处理,例如可以降低其中亮度超过阈值的像素的饱和度值,还例如可以按照一定的选取规则,提取上述CMC色差椭圆中靠近球心的其他更低亮度、饱和度的近似色彩椭圆(肉眼能分辨出的色差范围)的中心点色值替代原来有可能显示不佳的颜色。然后再根据处理后的色彩,在对端设备上进行分布显示,从而可以优化对端设备上的显示效果,达到换设备显示之后,显示内容不刺眼、不过爆,肉眼舒适的最终效果。As mentioned above, in order to solve the problem that individual devices display excessively bright colors such as green, blue, and red, embodiments of the present application provide a distributed display method. When the display screen on a mobile terminal device such as a mobile phone needs to be distributed to other peer devices , First judge the peer device. If it is determined that the peer device is a large-screen device with poor color display, such as LCD TVs or other large-screen devices with poor color reproduction, you can extract the information of the interface to be displayed on mobile terminal devices such as mobile phones. The brightness of the color. When the brightness exceeds a certain threshold, that is, there is an area with greater brightness on the interface, which is likely to cause problems such as overexposure and brightness of the screen when it is displayed on the opposite device. You can first The color of the interface is processed, for example, the saturation value of pixels whose brightness exceeds the threshold can be reduced. For example, other approximate color ellipses with lower brightness and saturation close to the center of the CMC color difference ellipse can be extracted according to certain selection rules. The color value of the center point (the range of color difference that can be distinguished by the naked eye) replaces the original color that may display poorly. Then, according to the processed colors, the distributed display is performed on the peer device, so that the display effect on the peer device can be optimized, and the final effect of the display content is not glaring, not too explosive, and comfortable to the naked eye after the display of the device is changed.
可选地,本申请实施例还提供了一种解决个别设备对红色蓝色灯颜色易偏色问题的方法。针对少量对某种颜色显示偏色的屏幕,可以获取屏幕种类并维护数据库,然后可以根屏幕色彩管理数据库进行颜色替换,达到换设备显示之后,肉眼看上去更接近原色的最终效果。Optionally, the embodiment of the present application also provides a method to solve the problem that individual devices tend to cast red and blue lights. For a small number of screens that display a color cast of a certain color, the screen type can be obtained and the database can be maintained, and then the color can be replaced by the screen color management database, to achieve the final effect that the naked eye looks closer to the original color after the device is changed.
请参阅图11,图11是本申请实施例提供的一种分布显示装置的结构示意图,该分布显示装置可以包括装置30,该装置30可以包括获取单元301、第一确定单元302、第二确定单元303和第一生成单元304,其中,各个单元的详细描述如下。Please refer to FIG. 11. FIG. 11 is a schematic structural diagram of a distributed display device provided by an embodiment of the present application. The distributed display device may include a device 30, which may include an acquiring unit 301, a first determining unit 302, and a second determining unit. The unit 303 and the first generating unit 304, wherein the detailed description of each unit is as follows.
获取单元301,用于获取第一界面的第一信息,所述第一信息包括所述第一界面中的P个像素各自的第一亮度值和第一饱和度值;所述第一界面为在第一设备中显示的界面;P为大于或者等于1的整数;The acquiring unit 301 is configured to acquire first information of a first interface, where the first information includes the first brightness value and the first saturation value of each of the P pixels in the first interface; the first interface is The interface displayed in the first device; P is an integer greater than or equal to 1;
第一确定单元302,用于确定所述第一界面中的N个第一像素和M个第二像素;所述N个第一像素中的每一个第一像素的所述第一亮度值大于第一阈值;所述M个第二像素中的每一个第二像素的所述第一亮度值小于或者等于所述第一阈值;N、M为大于或者等于1的整数;The first determining unit 302 is configured to determine N first pixels and M second pixels in the first interface; the first brightness value of each first pixel in the N first pixels is greater than A first threshold; the first brightness value of each second pixel of the M second pixels is less than or equal to the first threshold; N and M are integers greater than or equal to 1;
第二确定单元303,用于若所述N个第一像素的所述第一亮度值的和与所述P个像素 的所述第一亮度值的和的比值大于或者等于第二阈值,则确定所述N个第一像素的第二饱和度值;所述第二饱和度值小于所述第一饱和度值;The second determining unit 303 is configured to: if the ratio of the sum of the first brightness values of the N first pixels to the sum of the first brightness values of the P pixels is greater than or equal to a second threshold, Determine the second saturation value of the N first pixels; the second saturation value is less than the first saturation value;
第一生成单元304,用于生成第二信息,所述第二信息包括所述N个第一像素的所述第一亮度值和所述第二饱和度值,以及所述M个第二像素的所述第一亮度值和所述第一饱和度值;所述第二信息用于第二设备根据所述第二信息显示第二界面。The first generating unit 304 is configured to generate second information, the second information including the first brightness value and the second saturation value of the N first pixels, and the M second pixels The first brightness value and the first saturation value of, and the second information is used by the second device to display a second interface according to the second information.
在一种可能的实现方式中,所述第二确定单元303,具体用于:In a possible implementation manner, the second determining unit 303 is specifically configured to:
若所述N个第一像素的所述第一亮度值的和与所述P个像素的所述第一亮度值的和的比值大于或者等于第二阈值,则确定所述N个第一像素中的第i个第一像素的所述第一饱和度值位于第k个区间;i为大于或者等于1,且小于或者等于N的整数;k为大于1的整数;If the ratio of the sum of the first brightness values of the N first pixels to the sum of the first brightness values of the P pixels is greater than or equal to a second threshold, determine the N first pixels The first saturation value of the i-th first pixel in is located in the k-th interval; i is an integer greater than or equal to 1 and less than or equal to N; k is an integer greater than 1;
将第k-1个区间内的随机值确定为所述第i个第一像素的第二饱和度值;所述第k-1个区间与所述第k个区间相邻,且所述第k-1个区间内的最大值小于所述第k个区间内的最小值。The random value in the k-1th interval is determined as the second saturation value of the i-th first pixel; the k-1th interval is adjacent to the kth interval, and the The maximum value in the k-1 interval is smaller than the minimum value in the k-th interval.
在一种可能的实现方式中,所述获取单元301,具体用于:In a possible implementation manner, the acquiring unit 301 is specifically configured to:
获取所述第一界面中的所述P个像素各自的第一颜色值;Acquiring the first color value of each of the P pixels in the first interface;
根据所述P个像素各自的所述第一颜色值,通过色彩空间变换,计算得到所述P个像素各自的所述第一亮度值和所述第一饱和度值。According to the first color value of each of the P pixels, the first brightness value and the first saturation value of each of the P pixels are calculated through color space transformation.
在一种可能的实现方式中,所述第一界面包括一个或多个图像区域;所述获取单元301,还具体用于:In a possible implementation manner, the first interface includes one or more image areas; the acquiring unit 301 is also specifically configured to:
提取所述第一界面中的所述一个或多个图像区域中的每一个图像区域的像素数组;Extracting the pixel array of each of the one or more image areas in the first interface;
计算所述每一个图像区域的像素数组内的每一个像素的所述第一颜色值,得到所述第一界面中的所述P个像素各自的所述第一颜色值。The first color value of each pixel in the pixel array of each image area is calculated to obtain the first color value of each of the P pixels in the first interface.
在一种可能的实现方式中,所述第一界面还包括一个或多个文字区域;所述获取单元301,还用于:In a possible implementation manner, the first interface further includes one or more text areas; the obtaining unit 301 is further configured to:
获取所述第一界面中的所述一个或多个文字区域中的每一个文字区域内的每一个文字的所述第一颜色值;Acquiring the first color value of each text in each text area of the one or more text areas in the first interface;
根据所述每一个文字区域内的每一个文字的所述第一颜色值,通过色彩空间变换,计算得到所述每一个文字区域内的每一个文字的所述第一亮度值和所述第一饱和度值。According to the first color value of each text in each text area, the first brightness value and the first brightness value of each text in each text area are calculated through color space transformation. Saturation value.
在一种可能的实现方式中,所述装置30还包括:In a possible implementation manner, the device 30 further includes:
计算单元305,用于根据所述第二信息,计算所述N个第一像素的第二颜色值和所述M个第二像素的所述第一颜色值;A calculation unit 305, configured to calculate the second color values of the N first pixels and the first color values of the M second pixels according to the second information;
第二生成单元306,用于生成第三信息,所述第三信息包括所述N个第一像素的所述第二颜色值和所述M个第二像素的所述第一颜色值;所述第三信息用于所述第二设备根据所述第三信息显示所述第二界面。The second generating unit 306 is configured to generate third information, the third information including the second color values of the N first pixels and the first color values of the M second pixels; The third information is used by the second device to display the second interface according to the third information.
在一种可能的实现方式中,所述第二设备为屏幕发光亮度和/或色彩饱和度大于所述第一设备的设备。In a possible implementation manner, the second device is a device whose screen light-emitting brightness and/or color saturation is greater than that of the first device.
需要说明的是,本申请实施例中所描述的分布显示装置中各功能单元的功能可参见上述图8中所述的方法实施例中步骤S801-步骤S804的相关描述,此处不再进行赘述。It should be noted that the functions of each functional unit in the distributed display device described in the embodiment of the present application can refer to the related description of step S801 to step S804 in the method embodiment described in FIG. 8, and details are not repeated here. .
图11中每个单元可以以软件、硬件、或其结合实现。以硬件实现的单元可以包括路及电炉、算法电路或模拟电路等。以软件实现的单元可以包括程序指令,被视为是一种软件产品,被存储于存储器中,并可以被处理器运行以实现相关功能,具体参见之前的介绍。Each unit in FIG. 11 can be implemented by software, hardware, or a combination thereof. The hardware-implemented units can include circuits and electric furnaces, arithmetic circuits or analog circuits, etc. A unit implemented in software may include program instructions, which is regarded as a software product, is stored in a memory, and can be run by a processor to implement related functions. For details, refer to the previous introduction.
基于上述方法实施例以及装置实施例的描述,本申请实施例还提供一种终端设备。请参阅图12,图12是本申请实施例提供的一种终端设备的结构示意图,该终端设备40至少包括处理器401,输入设备402、输出设备403和计算机可读存储介质404,该终端设备还可以包括其他通用部件,在此不再详述。其中,终端设备内的处理器401,输入设备402、输出设备403和计算机可读存储介质404可通过总线或其他方式连接,本申请实施例对此不作具体限定。Based on the description of the foregoing method embodiment and device embodiment, an embodiment of the present application also provides a terminal device. Please refer to FIG. 12, which is a schematic structural diagram of a terminal device provided by an embodiment of the present application. The terminal device 40 includes at least a processor 401, an input device 402, an output device 403, and a computer-readable storage medium 404. The terminal device It can also include other common components, which will not be described in detail here. Among them, the processor 401, the input device 402, the output device 403, and the computer-readable storage medium 404 in the terminal device may be connected by a bus or other means, which is not specifically limited in the embodiment of the present application.
处理器401可以是通用中央处理器(CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个用于控制以上方案程序执行的集成电路。The processor 401 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the above program programs.
该终端设备内的存储器406可以是只读存储器406(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(Electrically Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器406可以是独立存在,通过总线与处理器401相连接。存储器406也可以和处理器401集成在一起。The memory 406 in the terminal device can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (RAM), or can store Other types of dynamic storage devices for information and instructions can also be Electrically Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory, CD-ROM or Other optical disc storage, optical disc storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or can be used to carry or store desired commands or data structures Program code and any other medium that can be accessed by the computer, but not limited to this. The memory 406 may exist independently, and is connected to the processor 401 through a bus. The memory 406 may also be integrated with the processor 401.
计算机可读存储介质404可以存储在终端设备的存储器406中,所述计算机可读存储介质404用于存储计算机程序,所述计算机程序包括程序指令,所述处理器401用于执行所述计算机可读存储介质404存储的程序指令。处理器401(或称CPU(Central Processing Unit,中央处理器))是终端设备的计算核心以及控制核心,其适于实现一条或一条以上指令,具体适于加载并执行一条或一条以上指令从而实现相应方法流程或相应功能;在一个实施例中,本申请实施例所述的处理器401可以用于进行分布显示的一系列处理,包括:获取第一界面的第一信息,所述第一信息包括所述第一界面中的P个像素各自的第一亮度值和第一饱和度值;所述第一界面为在第一设备中显示的界面;P为大于或者等于1的整数;确定所述第一界面中的N个第一像素和M个第二像素;所述N个第一像素中的每一个第一像素的所述第一亮度值大于第一阈值;所述M个第二像素中的每一个第二像素的所述第一亮度值小于或者等于所述第一阈值;N、M为大于或者等于1的整数;若所述N个第一像素的所述第一亮度值的和与所述P个像素的所述第一亮度值的和的比值大于或者等于第二阈值,则确定所述N个第一像素的第二饱和度值;所述第二饱和度值小于所述第一饱和度值;生成第二信息,所述第二信息包括所述N个第一像素的所述第一亮度值和所述第二饱和度值,以及所述M个第二像素的所述第一亮度值和所述第一饱和度值;所述第二信息用于第二设备根据所述第二信息显示第二界面,等等。The computer-readable storage medium 404 may be stored in the memory 406 of the terminal device. The computer-readable storage medium 404 is used to store a computer program. The computer program includes program instructions. The processor 401 is used to execute the computer program. Read the program instructions stored in the storage medium 404. The processor 401 (or CPU (Central Processing Unit, central processing unit)) is the computing core and control core of the terminal device. It is suitable for implementing one or more instructions, and specifically for loading and executing one or more instructions to achieve The corresponding method flow or corresponding function; in one embodiment, the processor 401 described in the embodiment of the present application may be used to perform a series of processing of distributed display, including: acquiring first information of the first interface, the first information Including the first brightness value and the first saturation value of each of the P pixels in the first interface; the first interface is the interface displayed in the first device; P is an integer greater than or equal to 1; N first pixels and M second pixels in the first interface; the first brightness value of each first pixel in the N first pixels is greater than a first threshold; the M second pixels The first brightness value of each second pixel in the pixels is less than or equal to the first threshold; N and M are integers greater than or equal to 1; if the first brightness value of the N first pixels If the ratio of the sum of the first brightness values of the P pixels to the sum of the first brightness values is greater than or equal to a second threshold, the second saturation value of the N first pixels is determined; the second saturation value is less than The first saturation value; generating second information, the second information including the first brightness value and the second saturation value of the N first pixels, and the M second pixels The first brightness value and the first saturation value of, the second information is used by the second device to display a second interface according to the second information, and so on.
需要说明的是,本申请实施例中所描述的终端设备中各功能单元的功能可参见上述图8中所述的方法实施例中的步骤S801-步骤S804的相关描述,此处不再赘述。It should be noted that, for the functions of each functional unit in the terminal device described in the embodiment of the present application, refer to the related description of step S801 to step S804 in the method embodiment described in FIG. 8, which will not be repeated here.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
本申请实施例还提供了一种计算机可读存储介质(Memory),所述计算机可读存储介质是终端设备中的记忆设备,用于存放程序和数据。可以理解的是,此处的计算机可读存储介质既可以包括终端设备中的内置存储介质,当然也可以包括终端设备所支持的扩展存储介质。计算机可读存储介质提供存储空间,该存储空间存储了终端设备的操作系统。并且,在该存储空间中还存放了适于被处理器401加载并执行的一条或一条以上的指令,这些指令可以是一个或一个以上的计算机程序(包括程序代码)。需要说明的是,此处的计算机可读存储介质可以是高速RAM存储器,也可以是非不稳定的存储器(non-volatile memory),例如至少一个磁盘存储器;可选地还可以是至少一个位于远离前述处理器的计算机可读存储介质。The embodiment of the present application also provides a computer-readable storage medium (Memory). The computer-readable storage medium is a memory device in a terminal device for storing programs and data. It can be understood that the computer-readable storage medium herein may include a built-in storage medium in the terminal device, and of course, may also include an extended storage medium supported by the terminal device. The computer-readable storage medium provides storage space, and the storage space stores the operating system of the terminal device. In addition, one or more instructions suitable for being loaded and executed by the processor 401 are stored in the storage space, and these instructions may be one or more computer programs (including program codes). It should be noted that the computer-readable storage medium here may be a high-speed RAM memory, or a non-volatile memory (non-volatile memory), such as at least one disk memory; optionally, it may also be at least one located far away from the foregoing The processor is a computer-readable storage medium.
本申请实施例还提供一种计算机程序,该计算机程序包括指令,当该计算机程序被计算机执行时,使得计算机可以执行任意一种分布显示方法的部分或全部步骤。The embodiments of the present application also provide a computer program, which includes instructions, when the computer program is executed by a computer, the computer can execute part or all of the steps of any distributed display method.
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述的部分,可以参见其它实施例的相关描述。In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in an embodiment, reference may be made to related descriptions of other embodiments.
需要说明的是,对于前述的各方法实施例,为了简单描述,故将其都表述为一系列的动作组合,但是本领域技术人员应该知悉,本申请并不受所描述的动作顺序的限制,因为依据本申请,某些步骤可能可以采用其他顺序或者同时进行。其次,本领域技术人员也应该知悉,说明书中所描述的实施例均属于优选实施例,所涉及的动作和模块并不一定是本申请所必须的。It should be noted that for the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations, but those skilled in the art should know that this application is not limited by the described sequence of actions. Because according to this application, some steps may be performed in other order or at the same time. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by this application.
在本申请所提供的几个实施例中,应该理解到,所揭露的装置,可通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如上述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed device may be implemented in other ways. For example, the device embodiments described above are merely illustrative, for example, the division of the above-mentioned units is only a logical function division, and there may be other divisions in actual implementation, for example, multiple units or components can be combined or integrated. To another system, or some features can be ignored, or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical or other forms.
上述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described above as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
另外,在本申请各实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, the functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or software functional unit.
上述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者 说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以为个人计算机、服务端或者网络设备等,具体可以是计算机设备中的处理器)执行本申请各个实施例上述方法的全部或部分步骤。其中,而前述的存储介质可包括:U盘、移动硬盘、磁碟、光盘、只读存储器(Read-OnlyMemory,缩写:ROM)或者随机存取存储器(RandomAccessMemory,缩写:RAM)等各种可以存储程序代码的介质。If the aforementioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, the technical solution of the present application essentially or the part that contributes to the existing technology or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium , Including several instructions to make a computer device (which may be a personal computer, a server or a network device, etc., specifically a processor in a computer device) execute all or part of the steps of the foregoing methods of the various embodiments of the present application. Among them, the aforementioned storage medium may include: U disk, mobile hard disk, magnetic disk, optical disk, read-only memory (Read-Only Memory, abbreviation: ROM) or Random Access Memory (Random Access Memory, abbreviation: RAM), etc. The medium of the program code.
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围。As mentioned above, the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions recorded in the embodiments are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (17)

  1. 一种分布显示方法,其特征在于,包括:A distributed display method, characterized in that it comprises:
    获取第一界面的第一信息,所述第一信息包括所述第一界面中的P个像素各自的第一亮度值和第一饱和度值;所述第一界面为在第一设备中显示的界面;P为大于或者等于1的整数;Acquire first information of the first interface, where the first information includes the first brightness value and the first saturation value of each of the P pixels in the first interface; the first interface is displayed on the first device The interface; P is an integer greater than or equal to 1;
    确定所述第一界面中的N个第一像素和M个第二像素;所述N个第一像素中的每一个第一像素的所述第一亮度值大于第一阈值;所述M个第二像素中的每一个第二像素的所述第一亮度值小于或者等于所述第一阈值;N、M为大于或者等于1的整数;Determine N first pixels and M second pixels in the first interface; the first brightness value of each first pixel in the N first pixels is greater than a first threshold; the M The first brightness value of each second pixel in the second pixels is less than or equal to the first threshold; N and M are integers greater than or equal to 1;
    若所述N个第一像素的所述第一亮度值的和与所述P个像素的所述第一亮度值的和的比值大于或者等于第二阈值,则确定所述N个第一像素的第二饱和度值;所述第二饱和度值小于所述第一饱和度值;If the ratio of the sum of the first brightness values of the N first pixels to the sum of the first brightness values of the P pixels is greater than or equal to a second threshold, determine the N first pixels The second saturation value of; the second saturation value is less than the first saturation value;
    生成第二信息,所述第二信息包括所述N个第一像素的所述第一亮度值和所述第二饱和度值,以及所述M个第二像素的所述第一亮度值和所述第一饱和度值;所述第二信息用于第二设备根据所述第二信息显示第二界面。Generate second information, the second information including the first brightness value and the second saturation value of the N first pixels, and the first brightness value and the sum of the M second pixels The first saturation value; the second information is used by the second device to display a second interface according to the second information.
  2. 根据权利要求1所述的方法,其特征在于,所述若所述N个第一像素的所述第一亮度值的和与所述P个像素的所述第一亮度值的和的比值大于或者等于第二阈值,则确定所述N个第一像素的第二饱和度值,包括:The method according to claim 1, wherein the ratio of the sum of the first brightness values of the N first pixels to the sum of the first brightness values of the P pixels is greater than Or equal to the second threshold, determining the second saturation value of the N first pixels includes:
    若所述N个第一像素的所述第一亮度值的和与所述P个像素的所述第一亮度值的和的比值大于或者等于第二阈值,则确定所述N个第一像素中的第i个第一像素的所述第一饱和度值位于第k个区间;i为大于或者等于1,且小于或者等于N的整数;k为大于1的整数;If the ratio of the sum of the first brightness values of the N first pixels to the sum of the first brightness values of the P pixels is greater than or equal to a second threshold, determine the N first pixels The first saturation value of the i-th first pixel in is located in the k-th interval; i is an integer greater than or equal to 1 and less than or equal to N; k is an integer greater than 1;
    将第k-1个区间内的随机值确定为所述第i个第一像素的第二饱和度值;所述第k-1个区间与所述第k个区间相邻,且所述第k-1个区间内的最大值小于所述第k个区间内的最小值。The random value in the k-1th interval is determined as the second saturation value of the i-th first pixel; the k-1th interval is adjacent to the kth interval, and the The maximum value in the k-1 interval is smaller than the minimum value in the k-th interval.
  3. 根据权利要求1-2任意一项所述的方法,其特征在于,所述获取第一界面的第一信息,包括:The method according to any one of claims 1-2, wherein the acquiring first information of the first interface comprises:
    获取所述第一界面中的所述P个像素各自的第一颜色值;Acquiring the first color value of each of the P pixels in the first interface;
    根据所述P个像素各自的所述第一颜色值,通过色彩空间变换,计算得到所述P个像素各自的所述第一亮度值和所述第一饱和度值。According to the first color value of each of the P pixels, the first brightness value and the first saturation value of each of the P pixels are calculated through color space transformation.
  4. 根据权利要求3所述的方法,其特征在于,所述第一界面包括一个或多个图像区域;所述获取所述第一界面中的所述P个像素各自的第一颜色值,包括:The method according to claim 3, wherein the first interface includes one or more image regions; and the acquiring the first color value of each of the P pixels in the first interface includes:
    提取所述第一界面中的所述一个或多个图像区域中的每一个图像区域的像素数组;Extracting the pixel array of each of the one or more image areas in the first interface;
    计算所述每一个图像区域的像素数组内的每一个像素的所述第一颜色值,得到所述第一界面中的所述P个像素各自的所述第一颜色值。The first color value of each pixel in the pixel array of each image area is calculated to obtain the first color value of each of the P pixels in the first interface.
  5. 根据权利要求4所述的方法,其特征在于,所述第一界面还包括一个或多个文字区域;所述获取第一界面的第一信息,还包括:The method according to claim 4, wherein the first interface further comprises one or more text areas; and the obtaining the first information of the first interface further comprises:
    获取所述第一界面中的所述一个或多个文字区域中的每一个文字区域内的每一个文字的所述第一颜色值;Acquiring the first color value of each text in each text area of the one or more text areas in the first interface;
    根据所述每一个文字区域内的每一个文字的所述第一颜色值,通过色彩空间变换,计算得到所述每一个文字区域内的每一个文字的所述第一亮度值和所述第一饱和度值。According to the first color value of each text in each text area, the first brightness value and the first brightness value of each text in each text area are calculated through color space transformation. Saturation value.
  6. 根据权利要求1-5任意一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 1-5, wherein the method further comprises:
    根据所述第二信息,计算所述N个第一像素的第二颜色值和所述M个第二像素的所述第一颜色值;Calculating the second color values of the N first pixels and the first color values of the M second pixels according to the second information;
    生成第三信息,所述第三信息包括所述N个第一像素的所述第二颜色值和所述M个第二像素的所述第一颜色值;所述第三信息用于所述第二设备根据所述第三信息显示所述第二界面。Generate third information, where the third information includes the second color values of the N first pixels and the first color values of the M second pixels; the third information is used for the The second device displays the second interface according to the third information.
  7. 根据权利要求1-6任意一项所述的方法,其特征在于,所述第二设备为屏幕发光亮度和/或色彩饱和度大于所述第一设备的设备。The method according to any one of claims 1 to 6, wherein the second device is a device with a screen whose brightness and/or color saturation are greater than that of the first device.
  8. 一种分布显示装置,其特征在于,包括:A distributed display device, characterized in that it comprises:
    获取单元,用于获取第一界面的第一信息,所述第一信息包括所述第一界面中的P个像素各自的第一亮度值和第一饱和度值;所述第一界面为在第一设备中显示的界面;P为大于或者等于1的整数;The acquiring unit is configured to acquire first information of the first interface, where the first information includes the first brightness value and the first saturation value of each of the P pixels in the first interface; the first interface is The interface displayed in the first device; P is an integer greater than or equal to 1;
    第一确定单元,用于确定所述第一界面中的N个第一像素和M个第二像素;所述N个第一像素中的每一个第一像素的所述第一亮度值大于第一阈值;所述M个第二像素中的每一个第二像素的所述第一亮度值小于或者等于所述第一阈值;N、M为大于或者等于1的整数;The first determining unit is configured to determine N first pixels and M second pixels in the first interface; the first brightness value of each first pixel in the N first pixels is greater than the first brightness value of the first pixel A threshold; the first brightness value of each second pixel of the M second pixels is less than or equal to the first threshold; N and M are integers greater than or equal to 1;
    第二确定单元,用于若所述N个第一像素的所述第一亮度值的和与所述P个像素的所述第一亮度值的和的比值大于或者等于第二阈值,则确定所述N个第一像素的第二饱和度值;所述第二饱和度值小于所述第一饱和度值;The second determining unit is configured to determine if the ratio of the sum of the first brightness values of the N first pixels to the sum of the first brightness values of the P pixels is greater than or equal to a second threshold value The second saturation value of the N first pixels; the second saturation value is less than the first saturation value;
    第一生成单元,用于生成第二信息,所述第二信息包括所述N个第一像素的所述第一亮度值和所述第二饱和度值,以及所述M个第二像素的所述第一亮度值和所述第一饱和度值;所述第二信息用于第二设备根据所述第二信息显示第二界面。The first generating unit is configured to generate second information, the second information including the first brightness value and the second saturation value of the N first pixels, and the information of the M second pixels The first brightness value and the first saturation value; the second information is used by the second device to display a second interface according to the second information.
  9. 根据权利要求8所述的装置,其特征在于,所述第二确定单元,具体用于:若所述N个第一像素的所述第一亮度值的和与所述P个像素的所述第一亮度值的和的比值大于或者等于第二阈值,则确定所述N个第一像素中的第i个第一像素的所述第一饱和度值位于第k个区间;i为大于或者等于1,且小于或者等于N的整数;k为大于1的整数;将第k-1个区间内的随机值确定为所述第i个第一像素的第二饱和度值;所述第k-1个区间与所述第k个区间相邻,且所述第k-1个区间内的最大值小于所述第k个区间内的最小值。8. The device according to claim 8, wherein the second determining unit is specifically configured to: if the sum of the first brightness values of the N first pixels and the P pixels If the ratio of the sum of the first brightness values is greater than or equal to the second threshold, it is determined that the first saturation value of the i-th first pixel among the N first pixels is located in the k-th interval; i is greater than or An integer equal to 1 and less than or equal to N; k is an integer greater than 1; the random value in the k-1th interval is determined as the second saturation value of the i-th first pixel; the kth -1 interval is adjacent to the kth interval, and the maximum value in the k-1th interval is smaller than the minimum value in the kth interval.
  10. 根据权利要求8-9任意一项所述的装置,其特征在于,所述获取单元,具体用于:The device according to any one of claims 8-9, wherein the acquiring unit is specifically configured to:
    获取所述第一界面中的所述P个像素各自的第一颜色值;Acquiring the first color value of each of the P pixels in the first interface;
    根据所述P个像素各自的所述第一颜色值,通过色彩空间变换,计算得到所述P个像素各自的所述第一亮度值和所述第一饱和度值。According to the first color value of each of the P pixels, the first brightness value and the first saturation value of each of the P pixels are calculated through color space transformation.
  11. 根据权利要求10所述的装置,其特征在于,所述第一界面包括一个或多个图像区域;所述获取单元,还具体用于:The device according to claim 10, wherein the first interface includes one or more image areas; and the acquiring unit is further specifically configured to:
    提取所述第一界面中的所述一个或多个图像区域中的每一个图像区域的像素数组;Extracting the pixel array of each of the one or more image areas in the first interface;
    计算所述每一个图像区域的像素数组内的每一个像素的所述第一颜色值,得到所述第一界面中的所述P个像素各自的所述第一颜色值。The first color value of each pixel in the pixel array of each image area is calculated to obtain the first color value of each of the P pixels in the first interface.
  12. 根据权利要求11所述的装置,其特征在于,所述第一界面还包括一个或多个文字区域;所述获取单元,还用于:The device according to claim 11, wherein the first interface further comprises one or more text areas; and the acquiring unit is further configured to:
    获取所述第一界面中的所述一个或多个文字区域中的每一个文字区域内的每一个文字的所述第一颜色值;Acquiring the first color value of each text in each text area of the one or more text areas in the first interface;
    根据所述每一个文字区域内的每一个文字的所述第一颜色值,通过色彩空间变换,计算得到所述每一个文字区域内的每一个文字的所述第一亮度值和所述第一饱和度值。According to the first color value of each text in each text area, the first brightness value and the first brightness value of each text in each text area are calculated through color space transformation. Saturation value.
  13. 根据权利要求8-12任意一项所述的装置,其特征在于,所述装置还包括:The device according to any one of claims 8-12, wherein the device further comprises:
    计算单元,用于根据所述第二信息,计算所述N个第一像素的第二颜色值和所述M个第二像素的所述第一颜色值;A calculation unit, configured to calculate the second color values of the N first pixels and the first color values of the M second pixels according to the second information;
    第二生成单元,用于生成第三信息,所述第三信息包括所述N个第一像素的所述第二颜色值和所述M个第二像素的所述第一颜色值;所述第三信息用于所述第二设备根据所述第三信息显示所述第二界面。The second generating unit is configured to generate third information, where the third information includes the second color values of the N first pixels and the first color values of the M second pixels; The third information is used by the second device to display the second interface according to the third information.
  14. 根据权利要求8-13任意一项所述的装置,其特征在于,所述第二设备为屏幕发光亮度和/或色彩饱和度大于所述第一设备的设备。The device according to any one of claims 8-13, wherein the second device is a device with a screen whose brightness and/or color saturation are greater than that of the first device.
  15. 一种终端设备,其特征在于,所述终端设备为第一设备,包括处理器和存储器,所述处理器和存储器相连,其中,所述存储器用于存储程序代码,所述处理器用于调用所述程序代码,以执行如权利要求1至7任意一项所述的方法。A terminal device, characterized in that the terminal device is a first device, including a processor and a memory, the processor and the memory are connected, wherein the memory is used to store program codes, and the processor is used to call all The program code is used to execute the method according to any one of claims 1 to 7.
  16. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现上述权利要求1至7任意一项所述的方法。A computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, which when executed by a processor implements the method according to any one of claims 1 to 7.
  17. 一种计算机程序,其特征在于,所述计算机程序包括指令,当所述计算机程序被计算机执行时,使得所述计算机执行如权利要求1至7任意一项所述的方法。A computer program, characterized in that the computer program includes instructions, when the computer program is executed by a computer, the computer is caused to execute the method according to any one of claims 1 to 7.
PCT/CN2021/099491 2020-06-12 2021-06-10 Distributed display method and related device WO2021249504A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010537460.3 2020-06-12
CN202010537460.3A CN113805830B (en) 2020-06-12 2020-06-12 Distribution display method and related equipment

Publications (1)

Publication Number Publication Date
WO2021249504A1 true WO2021249504A1 (en) 2021-12-16

Family

ID=78845363

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/099491 WO2021249504A1 (en) 2020-06-12 2021-06-10 Distributed display method and related device

Country Status (2)

Country Link
CN (1) CN113805830B (en)
WO (1) WO2021249504A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116702701A (en) * 2022-10-26 2023-09-05 荣耀终端有限公司 Word weight adjusting method, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103165098A (en) * 2011-12-13 2013-06-19 国际商业机器公司 System and method for automatically adjusting electronic display settings
CN104601971A (en) * 2014-12-31 2015-05-06 小米科技有限责任公司 Color adjustment method and device
CN105047177A (en) * 2015-08-19 2015-11-11 京东方科技集团股份有限公司 Display equipment adjustment device, display equipment adjustment method, and display device
US9348614B2 (en) * 2012-03-07 2016-05-24 Salesforce.Com, Inc. Verification of shared display integrity in a desktop sharing system
CN106951203A (en) * 2017-03-16 2017-07-14 联想(北京)有限公司 The display adjusting method and device of display device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009088886A (en) * 2007-09-28 2009-04-23 Canon Inc Imaging apparatus
CN101710955B (en) * 2009-11-24 2014-06-25 北京中星微电子有限公司 Method and equipment for adjusting brightness and contrast
US8884994B2 (en) * 2011-05-13 2014-11-11 Samsung Display Co., Ltd. Method and apparatus for blending display modes
CN106710571B (en) * 2017-03-23 2021-05-04 青岛海信激光显示股份有限公司 Display control method, display controller and tiled display system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103165098A (en) * 2011-12-13 2013-06-19 国际商业机器公司 System and method for automatically adjusting electronic display settings
US9348614B2 (en) * 2012-03-07 2016-05-24 Salesforce.Com, Inc. Verification of shared display integrity in a desktop sharing system
CN104601971A (en) * 2014-12-31 2015-05-06 小米科技有限责任公司 Color adjustment method and device
CN105047177A (en) * 2015-08-19 2015-11-11 京东方科技集团股份有限公司 Display equipment adjustment device, display equipment adjustment method, and display device
CN106951203A (en) * 2017-03-16 2017-07-14 联想(北京)有限公司 The display adjusting method and device of display device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116702701A (en) * 2022-10-26 2023-09-05 荣耀终端有限公司 Word weight adjusting method, terminal and storage medium

Also Published As

Publication number Publication date
CN113805830B (en) 2023-09-29
CN113805830A (en) 2021-12-17

Similar Documents

Publication Publication Date Title
WO2021027649A1 (en) Dark-mode display interface processing method, electronic device, and storage medium
WO2020125410A1 (en) Image processing method and electronic device
WO2021057277A1 (en) Photographing method in dark light and electronic device
WO2020093988A1 (en) Image processing method and electronic device
CN112598594A (en) Color consistency correction method and related device
WO2021013132A1 (en) Input method and electronic device
CN113963659B (en) Display device and adjustment method thereof
WO2021190348A1 (en) Image processing method and electronic device
WO2022257451A1 (en) Display method, electronic device and computer storage medium
CN113099146B (en) Video generation method and device and related equipment
WO2020233593A1 (en) Method for displaying foreground element, and electronic device
WO2021249504A1 (en) Distributed display method and related device
CN113452969B (en) Image processing method and device
CN117201930B (en) Photographing method and electronic equipment
WO2023030168A1 (en) Interface display method and electronic device
CN113781959B (en) Interface processing method and device
WO2023131070A1 (en) Electronic device management method, electronic device, and readable storage medium
WO2022252810A1 (en) Display mode switching method and apparatus, and electronic device and medium
WO2023000745A1 (en) Display control method and related device
CN113891008B (en) Exposure intensity adjusting method and related equipment
CN114827696B (en) Method for synchronously playing audio and video data of cross-equipment and electronic equipment
WO2021190097A1 (en) Image processing method and device
CN114519891A (en) Backlight adjusting method and device and storage medium
CN114463191B (en) Image processing method and electronic equipment
CN116744106B (en) Control method of camera application and terminal equipment

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21821757

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21821757

Country of ref document: EP

Kind code of ref document: A1