Color gamut conversion method and device, communication equipment and storage medium

CN121729883APending Publication Date: 2026-03-24BEIJING XIAOMI MOBILE SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-23
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

Color loss occurs when multimedia content is converted from a relatively large color gamut to a relatively small color gamut.

Method used

By determining the color information of the first and second color gamuts in the first color space, a first coordinate system is constructed, regions are divided, and coordinate mapping is performed to ensure the transition effect of color information and avoid abrupt color changes.

Benefits of technology

During the color gamut conversion process, the color details of the first color gamut are preserved to ensure a smooth transition of color information and avoid abrupt color changes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121729883A_ABST
    Figure CN121729883A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of communication, in particular to a color gamut conversion method and device, communication equipment and a storage medium, and the color gamut conversion method comprises the steps: determining color information of a first color gamut and a second color gamut in a first color space; determining a first region and a second region corresponding to the first color gamut and the second color gamut in the first coordinate system under each hue; a third area is determined in the second area, the area outside the third area in the second area is a fourth area, and the area outside the third area in the first area is a fifth area; mapping the corresponding coordinates of the first color gamut in the fifth area to a fourth area; and determining the coordinates of the first color gamut after mapping in the fourth region and the coordinates of the first color gamut in the third region as the coordinates of the first color gamut converted to the second color gamut. According to the method and the device, the original color details of part of the first color gamut can still be kept after the first color gamut is converted into the second color gamut, and the change of the color information is not abrupt.
Need to check novelty before this filing date? Find Prior Art

Description

Color gamut conversion method and device, communication device, and storage medium TECHNICAL FIELD

[0001] The present disclosure relates to the technical field of communication, and in particular, to a color gamut conversion method and device, a communication device, and a storage medium. BACKGROUND

[0002] When multimedia content is transmitted between different devices, it can be converted between different color gamuts according to the capabilities of device software, device hardware, and the like, for example, from an original color gamut to a color gamut that is compatible with the device.

[0003] However, at the creation end, multimedia content is generally created in a relatively large color gamut. Since the hardware and software of general consumer devices can only support a relatively small color gamut, when the multimedia content is transmitted to a consumer device, it needs to be converted from the relatively large color gamut to the relatively small color gamut. In this process, there are problems such as loss of color of the multimedia content.

[0004] SUMMARY

[0005] Embodiments of the present disclosure provide a color gamut conversion method, device, communication device, and storage medium to solve the technical problems in the related art.

[0006] According to a first aspect of an embodiment of the present disclosure, a color gamut conversion method is provided. The method includes: determining first color information of a first color gamut in a first color space, and second color information of a second color gamut in the first color space, wherein the dimensions of the first color space include hue, saturation, and lightness, and the first color gamut is larger than the second color gamut; determining, under each hue in the first color information, a first region corresponding to the first color gamut in a first coordinate system; determining, under each hue in the second color information, a second region corresponding to the second color gamut in the first coordinate system; wherein the dimensions of the first coordinate system include lightness and saturation; determining a third region in the second region, wherein a region outside the third region in the second region is a fourth region, and a region outside the third region in the first region is a fifth region; mapping a coordinate corresponding to the first color gamut in the fifth region to the fourth region; and determining coordinates of the first color gamut after mapping in the fourth region and coordinates of the first color gamut in the third region, as coordinates of the first color gamut converted to the second color gamut under the corresponding hue in the first coordinate system.

[0007] According to a second aspect of the present disclosure, a color gamut conversion apparatus is provided. The apparatus includes: a processing module configured to determine first color information of a first color gamut in a first color space, and second color information of a second color gamut in the first color space, wherein the dimensions of the first color space include hue, saturation, and lightness, and the first color gamut is larger than the second color gamut; determine a first region corresponding to the first color gamut in a first coordinate system for each hue in the first color information; determine a second region corresponding to the second color gamut in the first coordinate system for each hue in the second color information; wherein the dimensions of the first coordinate system include lightness and saturation; determine a third region within the second region, wherein a region outside the third region in the second region is a fourth region, and a region outside the third region in the first region is a fifth region; map the coordinates corresponding to the first color gamut in the fifth region to the fourth region; and determine the coordinates of the first color gamut after mapping in the fourth region and the coordinates of the first color gamut in the third region as coordinates of the first color gamut converted to the second color gamut under the hue corresponding to the first coordinate system.

[0008] According to a third aspect of the present disclosure, a communication device is provided, comprising: one or more processors; wherein the communication device is configured to perform the color gamut conversion method described in the first aspect.

[0009] According to a fourth aspect of the present disclosure, a storage medium is provided that stores instructions that, when executed on a communication device, cause the communication device to perform the color gamut conversion method described in the first aspect.

[0010] According to a fifth aspect of the present disclosure, a program product is provided that, when executed by a communication device, causes the communication device to perform the color gamut conversion method described in the first aspect.

[0011] According to embodiments of this disclosure, since the coordinates in the third region of the second region are derived from the coordinates of the first color gamut in the first coordinate system, it helps to ensure that some of the original color details of the first color gamut are retained after the color information of the first color gamut is converted to the second color gamut. The coordinates in the fourth region of the second region are mapped from the coordinates of the first color gamut in the fifth region, and combined with the coordinates of the third region as the color information of the second color gamut. This provides a certain transition effect relative to the original color information of the first color gamut, which helps to ensure that the change in color information after the conversion from the first color gamut to the second color gamut is not abrupt. Attached Figure Description

[0012] To more clearly illustrate the technical solutions in the embodiments of this disclosure, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this disclosure. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0013] Figure 1 is a schematic flowchart illustrating a color gamut conversion method according to an embodiment of the present disclosure.

[0014] Figure 2 is a schematic diagram of a region in a first coordinate system according to an embodiment of the present disclosure.

[0015] Figure 3 is a schematic diagram of a region in another first coordinate system according to an embodiment of the present disclosure.

[0016] Figure 4 is a schematic flowchart illustrating a method for determining the boundary of a first region according to an embodiment of the present disclosure.

[0017] Figure 5 is a schematic flowchart illustrating a method for determining the boundary of a second region according to an embodiment of the present disclosure.

[0018] Figure 6 is a schematic diagram illustrating the determination of a third region according to an embodiment of the present disclosure.

[0019] Figure 7 is a schematic diagram illustrating the determination of a third region according to an embodiment of the present disclosure.

[0020] Figure 8 is a schematic block diagram of a color gamut conversion device according to an embodiment of the present disclosure.

[0021] Figure 9A is a schematic diagram of the structure of the communication device proposed in an embodiment of this disclosure.

[0022] Figure 9B is a schematic diagram of the chip structure proposed in an embodiment of this disclosure. Detailed Implementation

[0023] Embodiments of this disclosure provide a color gamut conversion method, apparatus, communication device, and storage medium.

[0024] In a first aspect, embodiments of this disclosure propose a color gamut conversion method, the method comprising: determining first color information of a first color gamut in a first color space, and second color information of a second color gamut in the first color space, wherein the dimensions of the first color space include hue, saturation, and lightness, and the first color gamut is larger than the second color gamut; determining a first region corresponding to the first color gamut in a first coordinate system for each hue in the first color information; determining a second region corresponding to the second color gamut in the first coordinate system for each hue in the second color information; wherein the dimensions of the first coordinate system include lightness and saturation; determining a third region within the second region, wherein the region outside the third region in the second region is a fourth region, and the region outside the third region in the first region is a fifth region; mapping the coordinates corresponding to the first color gamut in the fifth region to the fourth region; and determining the coordinates of the first color gamut after mapping in the fourth region and the coordinates of the first color gamut in the third region as the coordinates of the first color gamut converted to the second color gamut under the hue corresponding to the first coordinate system.

[0025] In the above embodiments, since the coordinates in the third region of the second region are the same as the coordinates of the first color gamut in the first coordinate system, it helps to ensure that some of the original color details of the first color gamut are still retained after the color information of the first color gamut is converted to the second color gamut. The coordinates in the fourth region of the second region are mapped from the coordinates of the first color gamut in the fifth region. Combined with the coordinates of the third region, they serve as the color information of the second color gamut. Compared with the original color information of the first color gamut, this can play a certain transition effect, which helps to ensure that the change in color information after the conversion from the first color gamut to the second color gamut is not abrupt.

[0026] In conjunction with some embodiments of the first aspect, in some embodiments, the method further includes: converting the first color gamut and the second color gamut from their respective second color spaces to the first color space.

[0027] In conjunction with some embodiments of the first aspect, in some embodiments, determining the first region corresponding to the first color gamut in a first coordinate system for each hue in the first color information includes: determining the first coordinates of the first color information in a second color space for the hue corresponding to the first coordinate system; determining the boundary of the first region based on the relationship between the first coordinates and a coordinate threshold range; and / or, determining the second region corresponding to the second color gamut in the first coordinate system for each hue of the second color information includes: determining the second coordinates of the second color information in the second color space for the hue corresponding to the first coordinate system; determining the boundary of the second region based on the relationship between the second coordinates and a coordinate threshold range.

[0028] In conjunction with some embodiments of the first aspect, in some embodiments, determining the third region within the second region includes: determining a first vertex corresponding to the maximum saturation value in the first region, and determining a second vertex corresponding to the maximum saturation value in the second region; determining a reference intersection point between a straight line passing through the first vertex and the second vertex and the brightness coordinate axis in the first coordinate system; traversing the boundary points of the second region and connecting them to the reference intersection point to form a first connecting line corresponding to each boundary point of the second region; scaling the boundary points of the second region along the first connecting line according to a first scaling factor, wherein the scaled boundary points of the second region serve as the boundary points of the third region.

[0029] In conjunction with some embodiments of the first aspect, in some embodiments, mapping the coordinates corresponding to the first color gamut in the fifth region to the fourth region includes: traversing the boundary points of the first region and connecting them with the reference intersection point to form a second connecting line corresponding to each boundary point of the first region; scaling the coordinates in the fifth region to the fourth region along the second connecting line according to a second scaling factor.

[0030] In conjunction with some embodiments of the first aspect, in some embodiments, the second scaling factor is determined based on the following information: the coordinates of the boundary of the first region; the coordinates of the boundary of the second region; and the coordinates of the boundary of the third region.

[0031] In conjunction with some embodiments of the first aspect, in some embodiments, the method further includes: converting a multimedia file from the first color gamut to the second color gamut according to the association between the coordinates of the first color gamut in the first coordinate system and the coordinates of the first color gamut transformed to the second color gamut for each hue.

[0032] Secondly, embodiments of this disclosure propose a color gamut conversion device, the device comprising: a processing module configured to determine first color information of a first color gamut in a first color space, and second color information of a second color gamut in the first color space, wherein the dimensions of the first color space include hue, saturation, and lightness, and the first color gamut is larger than the second color gamut; determine a first region corresponding to the first color gamut in a first coordinate system for each hue in the first color information; determine a second region corresponding to the second color gamut in the first coordinate system for each hue in the second color information; wherein the dimensions of the first coordinate system include lightness and saturation; determine a third region within the second region, wherein the region outside the third region in the second region is a fourth region, and the region outside the third region in the first region is a fifth region; map the coordinates corresponding to the first color gamut in the fifth region to the fourth region; and determine the coordinates of the first color gamut after mapping in the fourth region and the coordinates of the first color gamut in the third region as the coordinates of the first color gamut converted to the second color gamut under the hue corresponding to the first coordinate system.

[0033] Thirdly, embodiments of this disclosure provide a communication device comprising: one or more processors; wherein the communication device is configured to perform the color gamut conversion method described in any one of the first aspects and optional embodiments thereof.

[0034] Fourthly, embodiments of this disclosure provide a storage medium storing instructions that, when executed on a communication device, cause the communication device to perform the color gamut conversion method described in any one of the first aspects and optional embodiments of the first aspect.

[0035] Fifthly, embodiments of this disclosure provide a program product that, when executed by a communication device, causes the communication device to perform the color gamut conversion method described in any one of the first aspects and optional embodiments of the first aspect.

[0036] In a sixth aspect, embodiments of this disclosure provide a computer program that, when run on a computer, causes the computer to perform the methods described in the first aspect and any of the alternative embodiments of the first aspect.

[0037] It is understood that the aforementioned color gamut conversion device, communication equipment, communication system, storage medium, program product, and computer program are all used to execute the methods proposed in the embodiments of this disclosure. Therefore, the beneficial effects they can achieve can be referred to the beneficial effects in the corresponding methods, and will not be repeated here.

[0038] This disclosure provides a color gamut conversion method, apparatus, communication device, and storage medium. In some embodiments, the terms "color gamut conversion method" and "information processing method," "communication method," etc., can be used interchangeably; the terms "color gamut conversion apparatus" and "information processing apparatus," "communication apparatus," etc., can be used interchangeably; and the terms "information processing system," "communication system," etc., can be used interchangeably.

[0039] This disclosure is not exhaustive, but merely illustrative of some embodiments, and is not intended to limit the scope of protection of this disclosure. Unless otherwise specified, each step in a particular embodiment can be implemented as an independent embodiment, and the steps can be arbitrarily combined. For example, a solution after removing some steps in a particular embodiment can also be implemented as an independent embodiment, and the order of the steps in a particular embodiment can be arbitrarily interchanged. Furthermore, the optional implementation methods in a particular embodiment can be arbitrarily combined; moreover, the embodiments can be arbitrarily combined, for example, some or all steps of different embodiments can be arbitrarily combined, and a particular embodiment can be arbitrarily combined with the optional implementation methods of other embodiments.

[0040] In each of the disclosed embodiments, unless otherwise specified or in case of logical conflict, the terminology and / or descriptions of the embodiments are consistent and can be referenced by each other. Technical features in different embodiments can be combined to form new embodiments based on their inherent logical relationships.

[0041] The terminology used in the embodiments of this disclosure is for the purpose of describing particular embodiments only and is not intended to limit the scope of this disclosure.

[0042] In the embodiments of this disclosure, unless otherwise stated, elements expressed in the singular, such as “a,” “an,” “the,” “the,” “the,” “the,” “the,” “the,” “this,” etc., may mean “one and only one,” or “one or more,” “at least one,” etc.

[0043] For example, when using articles such as "a", "an", and "the" in translation, the noun following the article can be understood as either a singular or a plural form.

[0044] In the embodiments disclosed herein, "multiple" refers to two or more.

[0045] In some embodiments, the terms “at least one of”, “one or more”, “a plurality of”, “multiple”, etc., may be used interchangeably.

[0046] In some embodiments, the notation "at least one of A and B", "A and / or B", "A in one case, B in another", "in response to one case A, in response to another case B", etc., may include the following technical solutions depending on the situation: in some embodiments, A (execute A regardless of B); in some embodiments, B (execute B regardless of A); in some embodiments, execution is selected from A and B (A and B are selectively executed); in some embodiments, both A and B are executed. The same applies when there are more branches such as A, B, C, etc.

[0047] In some embodiments, the notation "A or B" may include the following technical solutions, depending on the situation: in some embodiments, A (execution of A regardless of B); in some embodiments, B (execution of B regardless of A); in some embodiments, execution is selected from A and B (A and B are selectively executed). The same applies when there are more branches such as A, B, C, etc.

[0048] The prefixes such as "first" and "second" in the embodiments of this disclosure are only for distinguishing different descriptive objects and do not constitute restrictions on the position, order, priority, number or content of the descriptive objects. For the description of the descriptive objects, please refer to the description in the claims or the context of the embodiments. The use of prefixes should not constitute unnecessary restrictions.

[0049] For example, if the descriptive object is "field," then the ordinal numbers preceding "field" in "first field" and "second field" do not restrict the position or order of the "fields." "First" and "second" do not restrict whether the "fields" they modify are in the same message, nor do they restrict the order of "first field" and "second field." Similarly, if the descriptive object is "level," then the ordinal numbers preceding "level" in "first level" and "second level" do not restrict the priority between "levels." Furthermore, the number of descriptive objects is not limited by ordinal numbers; there can be one or more. For example, in "first device," the number of "devices" can be one or more. In addition, objects modified by different prefixes can be the same or different. For example, if the descriptive object is "device," then "first device" and "second device" can be the same device or different devices, and their types can be the same or different. Similarly, if the descriptive object is "information," then "first information" and "second information" can be the same information or different information, and their content can be the same or different.

[0050] In some embodiments, “including A,” “containing A,” “for indicating A,” and “carrying A” can be interpreted as directly carrying A or indirectly indicating A.

[0051] In some embodiments, the terms “in response to…”, “in response to determining…”, “in the case of…”, “when…”, “if…”, “if…”, etc., can be used interchangeably.

[0052] In some embodiments, the terms “greater than,” “greater than or equal to,” “not less than,” “more than,” “more than or equal to,” “not less than,” “higher than,” “higher than or equal to,” “not lower than,” and “above” can be used interchangeably, as can the terms “less than,” “less than or equal to,” “not greater than,” “less than,” “less than or equal to,” “not more than,” “lower than,” “lower than or equal to,” “not higher than,” and “below”.

[0053] In some embodiments, devices, etc., can be interpreted as physical or virtual, and their names are not limited to the names recorded in the embodiments. Terms such as “device”, “equipment”, “circuit”, “network element”, “node”, “function”, “unit”, “section”, “system”, “network”, “chip”, “chip system”, “entity”, and “subject” can be used interchangeably.

[0054] In some embodiments, "network" can be interpreted as devices included in a network (e.g., access network devices, core network devices, etc.).

[0055] In some embodiments, the terms "access network device (AN device)," "radio access network device (RAN device)," "base station (BS)," "radio base station," "fixed station," "node," "access point," "transmission point (TP)," "reception point (RP)," "transmission / reception point (TRP)," "panel," "antenna panel," "antenna array," "cell," "macro cell," "small cell," "femto cell," "pico cell," "sector," "cell group," "serving cell," "carrier," "component carrier," and "bandwidth part (BWP)" can be used interchangeably.

[0056] In some embodiments, the terms "terminal", "terminal device", "user equipment (UE)", "user terminal", "mobile station (MS)", "mobile terminal (MT)", "subscriber station", "mobile unit", "subscriber unit", "wireless unit", "remote unit", "mobile device", "wireless device", "wireless communication device", "remote device", "mobile subscriber station", "access terminal", "mobile terminal", "wireless terminal", "remote terminal", "handset", "user agent", "mobile client", and "client" can be used interchangeably.

[0057] In some embodiments, access network devices, core network devices, or network devices can be replaced by terminals. For example, embodiments of this disclosure can also be applied to structures where communication between access network devices, core network devices, or network devices and terminals is replaced by communication between multiple terminals (e.g., device-to-device (D2D), vehicle-to-everything (V2X), etc.). In this case, the structure can also be configured such that the terminal has all or part of the functions of the access network device. Furthermore, terms such as "uplink" and "downlink" can be replaced with terms corresponding to communication between terminals (e.g., "sidelink"). For example, uplink channel, downlink channel, etc., can be replaced with sidelink channel, and uplink link, downlink, etc., can be replaced with sidelink link.

[0058] In some embodiments, the terminal may be replaced by an access network device, a core network device, or a network device. In this case, the access network device, core network device, or network device may also be configured to have all or some of the functions of the terminal.

[0059] In some embodiments, the acquisition of data, information, etc., may comply with the laws and regulations of the country where the location is situated.

[0060] In some embodiments, data, information, etc., may be obtained with the user's consent.

[0061] Furthermore, each element, each row, or each column in the table of this disclosure can be implemented as an independent embodiment, and any combination of any element, any row, or any column can also be implemented as an independent embodiment.

[0062] In some embodiments, the first device, second device, third device, etc., described in subsequent embodiments may be terminals, network devices (such as access network devices, core network devices), or servers.

[0063] In some embodiments, the terminal includes, but is not limited to, at least one of the following: mobile phone, wearable device, Internet of Things device, car with communication function, smart car, tablet computer, computer with wireless transceiver function, virtual reality (VR) terminal device, augmented reality (AR) terminal device, wireless terminal device in industrial control, wireless terminal device in self-driving, wireless terminal device in remote medical surgery, wireless terminal device in smart grid, wireless terminal device in transportation safety, wireless terminal device in smart city, and wireless terminal device in smart home.

[0064] In some embodiments, the access network device is, for example, a node or device that connects a terminal to a wireless network. The access network device may include, but is not limited to, at least one of the following in a 5G communication system: evolved Node B (eNB), next-generation eNB (ng-eNB), next-generation Node B (gNB), node B (NB), home node B (HNB), home evolved node B (HeNB), radio backhaul device, radio network controller (RNC), base station controller (BSC), base transceiver station (BTS), base band unit (BBU), mobile switching center, base station in a 6G communication system, open RAN, cloud RAN, base station in other communication systems, and access node in a Wi-Fi system.

[0065] In some embodiments, a core network device may be a single device comprising one or more network elements, or it may be multiple devices or a group of devices, each comprising all or part of the aforementioned one or more network elements. Network elements may be virtual or physical. The core network may include, for example, at least one of an Evolved Packet Core (EPC), a 5G Core Network (5GCN), or a Next Generation Core (NGC).

[0066] In some embodiments, the technical solutions of this disclosure can be applied to the Open RAN architecture. In this case, the interfaces between or within access network devices involved in the embodiments of this disclosure can be transformed into internal interfaces of Open RAN. The processes and information interactions between these internal interfaces can be implemented by software or programs.

[0067] In some embodiments, the access network device may be composed of a central unit (CU) and a distributed unit (DU). The CU may also be called a control unit. The CU-DU structure can separate the protocol layer of the access network device. Some of the protocol layer functions are centrally controlled by the CU, while the remaining part or all of the protocol layer functions are distributed in the DU and centrally controlled by the CU. However, this is not the only possibility.

[0068] It is understood that the communication system described in this disclosure is for the purpose of more clearly illustrating the technical solutions of this disclosure, and does not constitute a limitation on the technical solutions proposed in this disclosure. As those skilled in the art will know, with the evolution of system architecture and the emergence of new business scenarios, the technical solutions proposed in this disclosure are also applicable to similar technical problems.

[0069] The embodiments disclosed herein can be applied to Long Term Evolution (LTE), LTE-Advanced (LTE-A), LTE-Beyond (LTE-B), SUPER 3G, IMT-Advanced, 4th generation mobile communication system (4G), 5th generation mobile communication system (5G), 5G new radio (NR), Future Radio Access (FRA), New-Radio Access Technology (RAT), New Radio (NR), New radio access (NX), Future generation radio access (FX), Global System for Mobile communications (GSM), CDMA2000, Ultra Mobile Broadband (UMB), IEEE 802.11 (Wi-Fi), IEEE 802.16 (WiMAX), and IEEE 802.20, Ultra-Wideband (UWB), Bluetooth (a registered trademark), Public Land Mobile Network (PLMN) networks, Device-to-Device (D2D) systems, Machine-to-Machine (M2M) systems, Internet of Things (IoT) systems, Vehicle-to-Everything (V2X) systems, systems utilizing other communication methods, and next-generation systems built upon them, etc. Furthermore, multiple systems can be combined (e.g., a combination of LTE or LTE-A with 5G).

[0070] In a first aspect, embodiments of the present disclosure provide a color gamut conversion method. Figure 1 is a schematic flowchart illustrating a color gamut conversion method according to an embodiment of the present disclosure.

[0071] In some embodiments, the first device may transmit multimedia content (including but not limited to video, images, etc.) to the second device.

[0072] The first device can support a first color gamut, and the multimedia content can be displayed on the first device within the first color gamut. The second device can support a second color gamut, and the multimedia content needs to be displayed on the second device within the second color gamut.

[0073] In some embodiments, the first color gamut is larger than the second color gamut, and multimedia content displayed in the first color gamut can have richer color details compared to displaying in the second color gamut.

[0074] In some embodiments, the color gamut conversion method can be performed by a first device. For example, the first device converts the multimedia content from a first color gamut to a second color gamut, and then sends the converted multimedia content to a second device.

[0075] In some embodiments, the color conversion method can be performed by a second device. For example, after receiving multimedia content, the second device converts the multimedia content from the first color gamut to the second color gamut before displaying it.

[0076] In some embodiments, the color conversion method can be performed by a third device other than the first and second devices. For example, the first device can first send the multimedia content to the third device, convert the multimedia content from the first color gamut to the second color gamut, and then send the converted multimedia content to the second device.

[0077] In some embodiments, at least one of the first device, the second device, and the third device may be a terminal, a network device, or a server, and this disclosure does not limit this.

[0078] As shown in Figure 1, the color gamut conversion method may include the following steps:

[0079] In step S101, the first color information of the first color gamut in the first color space and the second color information of the second color gamut in the first color space are determined. The dimensions of the first color space include hue, saturation and brightness, and the first color gamut is larger than the second color gamut.

[0080] In some embodiments, the first color gamut is larger than the second color gamut; for example, the type of the first color gamut is BT2020, and the type of the second color gamut is P3. It should be noted that the types of the first and second color gamuts are not limited to the two types shown in the examples, and can also be other types; this disclosure does not limit this. The following embodiments mainly use the BT2020 color gamut as the first color gamut and the P3 color gamut as the second color gamut to illustrate the technical solution of this disclosure.

[0081] In some embodiments, in order to convert information in the first color gamut to the second color gamut, an association relationship between the two color gamuts can be established. However, since directly establishing an association relationship between the two color gamuts is quite difficult, the embodiments of this disclosure first determine the color information of the first color gamut and the second color gamut in the first color space, and then establish an association relationship between the first color gamut and the second color gamut based on the color information of the first color gamut and the second color gamut in the first color space.

[0082] In some embodiments, the first color space can be the LCH color space, where L represents lightness, C represents saturation, and H represents hue. The LCH color space includes three dimensions: hue H, lightness L, and saturation C.

[0083] In some embodiments, taking the first color space including the LCH color space as an example, the color information of the first color gamut and the second color gamut in the first color space can be characterized by three dimensions: hue, lightness, and saturation.

[0084] In step S102, the first region corresponding to the first color gamut in the first coordinate system is determined for each hue in the first color information; the second region corresponding to the second color gamut in the first coordinate system is determined for each hue in the second color information; wherein the dimensions of the first coordinate system include brightness and saturation.

[0085] In some embodiments, since the first color space includes three dimensions—hue, lightness, and saturation—the color information in the first color space is also three-dimensional information.

[0086] Since the processing of three-dimensional information is quite difficult, this disclosure can convert the color information in the first color space to a two-dimensional coordinate system for processing.

[0087] For example, a first coordinate system can be constructed, which includes two dimensions: brightness and saturation.

[0088] Since the first color space also includes the dimension of hue, in order to characterize the first color information of the first color gamut in the first color space, the first region corresponding to the first color gamut in the first coordinate system under each hue of the first color information can be determined.

[0089] Accordingly, in order to characterize the second color information of the second color gamut in the first color space, the second region corresponding to the second color gamut in the first coordinate system can be determined for each hue of the second color information.

[0090] Specifically, for the first color information and the second color information, the hue range can be, for example, from 0 to 360. Within the range of 0 to 360, for example, a value can be taken in increments of 1, resulting in 360 hues; or a value can be taken in increments of 2, resulting in 180 hues; or a value can be taken in increments of 0.5, resulting in 720 hues. The specific range of hue values ​​is not limited in this disclosure.

[0091] For example, taking 360 hues as an example, for each hue, it is necessary to construct a corresponding first coordinate system and determine the first region and the second region in the first coordinate system.

[0092] Accordingly, under the hue i corresponding to the first coordinate system, the coordinates in the first region of the first coordinate system can represent the brightness and saturation of the first color gamut under hue i, and the coordinates in the second region of the first coordinate system can represent the brightness and saturation of the second color gamut under the hue i, where i is a value in the range of 0 to 360.

[0093] In step S103, a third region is determined within the second region, wherein the region outside the third region in the second region is the fourth region, and the region outside the third region in the first region is the fifth region.

[0094] In step S104, the coordinates corresponding to the first color gamut in the fifth region are mapped to the fourth region.

[0095] In step S105, the coordinates of the first color gamut after mapping in the fourth region and the coordinates of the first color gamut in the third region are determined, which are the coordinates of the first color gamut transformed to the second color gamut under the hue corresponding to the first coordinate system.

[0096] In some embodiments, since the first color gamut is larger than the second color gamut, it can represent more color information. Under the same hue, the first color gamut contains more information such as brightness and saturation than the second color gamut. Therefore, in the first coordinate system, the first region corresponding to the first color gamut is larger than the second region corresponding to the second color gamut, and the second region is located within the first region.

[0097] Since the coordinates in the first region, combined with the hue corresponding to the first coordinate system, can represent the color information of the first color gamut, and the coordinates in the second region, combined with the hue corresponding to the first coordinate system, can represent the color information of the second color gamut.

[0098] Based on this, the problem of converting the first color gamut to the second color gamut can be transformed into the problem of converting the coordinates in the first region to the second region in the first coordinate system corresponding to each color.

[0099] In some embodiments, if the coordinates in the first region are scaled to the second region based on the size ratio of the first region and the second region, then all color information in the first color gamut will not be displayed according to the original parameters. In this case, multimedia files that were originally displayed based on the first color gamut will have all color information lost after being converted to the second color gamut, and the display effect will not be ideal.

[0100] In this embodiment, the second region can be divided into two parts, namely the third region and the fourth region; the first region can also be divided into two parts, namely the third region and the fifth region. The third region is located within the second region; the fourth region is enclosed by the boundaries of the third region and the second region; and the fifth region is enclosed by the boundaries of the third region and the first region.

[0101] For example, the third region can also be called the preservation region, and the fourth region can also be called the transition region. The coordinates of the first color gamut in the third region are not adjusted, and are used as the coordinates of the second color gamut in the third region.

[0102] Within the second region, there are only the third and fourth regions; while within the first region, there are only the third and fifth regions. Therefore, without adjusting the coordinates of the first color gamut in the third region, and using the coordinates of the second color gamut in the third region, the coordinates of the first color gamut in the fifth region still need to be converted to the second color gamut. In this embodiment, the coordinates of the first color gamut in the fifth region are mapped to the fourth region.

[0103] According to embodiments of this disclosure, since the coordinates in the third region of the second region are derived from the coordinates of the first color gamut in the first coordinate system, it helps to ensure that some of the original color details of the first color gamut are retained after the color information of the first color gamut is converted to the second color gamut. The coordinates in the fourth region of the second region are mapped from the coordinates of the first color gamut in the fifth region, and combined with the coordinates of the third region as the color information of the second color gamut. This provides a certain transition effect relative to the original color information of the first color gamut, which helps to ensure that the change in color information after the conversion from the first color gamut to the second color gamut is not abrupt.

[0104] It should be noted that the embodiment shown in Figure 1 can be implemented independently or in combination with at least one other embodiment in this disclosure. The specific choice can be made as needed, and this disclosure does not limit the scope.

[0105] Figure 2 is a schematic diagram of a region in a first coordinate system according to an embodiment of the present disclosure.

[0106] The coordinate system in Figure 2 is the first coordinate system when hue = i. The horizontal axis of the first coordinate system is saturation C, and the vertical axis is lightness L.

[0107] The first color information of the first color gamut in the LCH color space, when hue = i, corresponds to the first region in the first coordinate system, such as the OL1B1 region in Figure 2.

[0108] The second color gamut, in the LCH color space, corresponds to the second region in the first coordinate system when hue = i, such as the OL2B2 region in Figure 2.

[0109] It should be noted that the first color information of the first color gamut in the LCH color space, when hue = i, corresponds to the coordinates within the first region in the first coordinate system, but may not fill the first region; for example, it may only correspond to some coordinate points within the first region. Similarly, the second color information of the second color gamut in the LCH color space, when hue = i, corresponds to the coordinates within the second region in the first coordinate system, but may not fill the second region; for example, it may only correspond to some coordinate points within the second region.

[0110] As shown in Figure 2, the first region and the second region are similar in shape to triangles, and the boundaries of the first region and the second region partially overlap on the L-axis.

[0111] Figure 3 is a schematic diagram of a region in another first coordinate system according to an embodiment of the present disclosure.

[0112] A third region can be determined within the second region, such as region OL3B3 in Figure 3. The method for determining the third region will be described in subsequent embodiments and will not be elaborated here.

[0113] As shown in Figure 3, the area outside the third area in the second region is the fourth region, and the area outside the third area in the first region is the fifth region.

[0114] In some embodiments, the color gamut conversion method further includes: converting the first color gamut and the second color gamut from the second color space to the first color space.

[0115] For example, the color space where the first and second color gamuts originally reside is not the first color space, but the second color space. The first and second color gamuts can be converted from the second color space to the first color space.

[0116] For example, converting the first color gamut and the second color gamut from the second color space to the first color space can include converting the color information of the first color gamut in the second color space into the color information of the first color space, and converting the color information of the second color gamut in the second color space into the color information of the first color space.

[0117] For example, the second color space includes the RGB color space, where R represents red, G represents green, and B represents blue. It should be noted that the second color space is not limited to the RGB color space, but can also be other color spaces, such as the CMYK color space, the Lab color space, etc., and this disclosure does not limit this.

[0118] In some embodiments, determining the first region corresponding to the first color gamut in the first coordinate system for each hue in the first color information includes:

[0119] Determine the first coordinates of the first color information in the second color space under the hue corresponding to the first coordinate system;

[0120] The boundary of the first region is determined based on the relationship between the first coordinate and the coordinate threshold range;

[0121] In some embodiments, in order to determine the first region, the boundary of the first region can be determined first, and the area enclosed by the boundary of the first region constitutes the first region.

[0122] Because the first color information of the first color gamut corresponds to the first coordinate in the second color space, the region of each dimension needs to be within a specific range, such as within a coordinate threshold range. For example, when the second color space is the RGB color space, the coordinate threshold range for each dimension is 0 to 255. When the value of any dimension of the first coordinate is greater than 255, the color information corresponding to the first coordinate does not belong to the color information of the first color gamut, and the coordinate of the color information corresponding to the first coordinate in the first color space will also be outside the first region; when the value of each dimension of the first coordinate is less than or equal to 255, the color information corresponding to the first coordinate belongs to the color information of the first color gamut, and the coordinate of the color information corresponding to the first coordinate in the first color space will also be within the first region.

[0123] Based on this, the values ​​of the first color information in each dimension of the first color space can be gradually adjusted. Then, the adjusted first color information is converted to the second color space. Next, it is determined whether the first coordinates of the adjusted first color information in the second color space satisfy a coordinate threshold range. Based on this, the first coordinates that critically satisfy the coordinate threshold range can be determined. Then, based on all the first coordinates that critically satisfy the coordinate threshold range, the coordinates of the corresponding first color information in the first coordinate system constitute the boundary of the first region.

[0124] It should be noted that the boundary of the first region determined in this embodiment may not include the part of the first region that overlaps with the coordinate axis.

[0125] Figure 4 is a schematic flowchart illustrating a method for determining the boundary of a first region according to an embodiment of the present disclosure.

[0126] As shown in Figure 4, the first color space is the LCH color space, and the second color space is the RGB color space.

[0127] Starting with hue H=0, and with lightness L=0 and saturation C=0, step S401 is executed: the coordinates of the first color gamut in the LCH color space are converted to the RGB color space (for example, it can be written as LCH2RGB); step S402, for the first coordinate (RGB coordinate) converted to the RGB color space, it can be determined whether the first coordinate is out of range (coordinate threshold range).

[0128] If the first coordinate is out of range, step S403 can be executed to adjust the coordinates of the first color gamut in the LCH color space based on saturation, for example, by increasing ΔC on the current saturation C, where ΔC can be a predefined value. Then, steps S401 and S402 are executed for the adjusted coordinates.

[0129] If the first coordinate is within the range, step S404 can be executed to record the coordinates corresponding to the first coordinate in the LCH color space as the coordinates on the boundary of the first region.

[0130] Further, step S405 can be executed to adjust the coordinates of the first color gamut in the LCH color space in terms of brightness, for example, by increasing ΔL in the current brightness L. Then step S406 is executed to determine whether the brightness exceeds the brightness threshold (e.g., 100).

[0131] If the brightness does not exceed the brightness threshold, you can return to step S401.

[0132] If the brightness exceeds the brightness threshold, step S407 can be executed to output the first set of coordinates determined on the boundary of the first region. The coordinates in the first set constitute the boundary of the first region in the first coordinate system when hue H = 0. For example, the first set can be represented as {(C j ,L j Let |j=0,1…N}, where N is the number of coordinate points on the boundary of the first region, and N is a positive integer.

[0133] Furthermore, steps S401 to S407 can be performed separately for each hue, thereby determining the boundary of the first region in the first coordinate system for each H within the range of 0 to 360.

[0134] In some embodiments, determining the second region in the first coordinate system corresponding to each hue in the second color information includes:

[0135] Determine the second coordinates of the second color information in the second color space under the hue corresponding to the first coordinate system;

[0136] The boundary of the second region is determined based on the relationship between the second coordinate and the coordinate threshold range.

[0137] In some embodiments, in order to determine the second region, the boundary of the second region can be determined first, and then the area enclosed by the boundary of the second region constitutes the second region.

[0138] Because the second color information of the second color gamut corresponds to the second coordinate in the second color space, the region of each dimension needs to be within a specific range, such as within a coordinate threshold range. For example, when the second color space is the RGB color space, the coordinate threshold range for each dimension is 0 to 255. When the value of any dimension of the second coordinate is greater than 255, the color information corresponding to the second coordinate does not belong to the color information of the second color gamut, and the coordinate of the color information corresponding to the second coordinate in the first color space will also be outside the second region; when the value of each dimension of the second coordinate is less than or equal to 255, the color information corresponding to the second coordinate belongs to the color information of the second color gamut, and the coordinate of the color information corresponding to the second coordinate in the first color space will also be within the second region.

[0139] Based on this, the values ​​of the second color information in each dimension of the first color space can be gradually adjusted. Then, the adjusted second color information can be converted to the second color space, and it can be determined whether the second coordinates of the adjusted second color information in the second color space satisfy a relationship with a coordinate threshold range. Based on this, the second coordinates that critically satisfy the coordinate threshold range can be determined. Then, based on all the second coordinates that critically satisfy the coordinate threshold range, the coordinates of the corresponding second color information in the second coordinate system can be determined to form the boundary of the second region.

[0140] It should be noted that the boundary of the second region determined in this embodiment may exclude the part of the second region that overlaps with the coordinate axis.

[0141] Figure 5 is a schematic flowchart illustrating a method for determining the boundary of a second region according to an embodiment of the present disclosure.

[0142] As shown in Figure 5, the first color space is the LCH color space, and the second color space is the RGB color space.

[0143] Starting with hue H=0, and with lightness L=0 and saturation C=0, step S501 is executed: the coordinates of the second color gamut in the LCH color space are converted to the RGB color space (for example, it can be denoted as LCH2RGB); step S502, for the second coordinates (RGB coordinates) converted to the RGB color space, it can be determined whether the second coordinates are out of range (coordinate threshold range).

[0144] If the second coordinate is out of range, step S503 can be executed to adjust the coordinates of the second color gamut in the LCH color space based on saturation, for example, by increasing ΔC on the current saturation C, where ΔC can be a predefined value. Then, steps S501 and S502 are executed for the adjusted coordinates.

[0145] If the second coordinate is within the range, step S504 can be executed to record the coordinates corresponding to the second coordinate in the LCH color space as the coordinates on the boundary of the second region.

[0146] Further, step S505 can be executed to adjust the coordinates of the second color gamut in the LCH color space in terms of brightness, for example, by increasing ΔL on the current brightness L. Then step S506 is executed to determine whether the brightness exceeds the brightness threshold (e.g., 100).

[0147] If the brightness does not exceed the brightness threshold, you can return to step S501.

[0148] If the brightness exceeds the brightness threshold, step S507 can be executed to output the second set of coordinates determined on the boundary of the second region. The coordinates in the second set constitute the boundary of the second region in the second coordinate system when hue H = 0. For example, the second set can be represented as {(C i ,L i Let |i = 0, 1, ..., N}, where N is the number of coordinate points on the boundary of the second region, and N is a positive integer.

[0149] Furthermore, steps S501 to S507 can be performed separately for each hue, thereby determining the boundary of the second region in the second coordinate system for each H within the range of 0 to 360.

[0150] The following examples illustrate how to determine the third region.

[0151] In some embodiments, determining a third region within a second region includes:

[0152] In the first region, determine the first vertex corresponding to the maximum saturation value; in the second region, determine the second vertex corresponding to the maximum saturation value.

[0153] Determine the reference intersection point of the straight line passing through the first and second vertices and the brightness coordinate axes in the first coordinate system;

[0154] Connect the boundary points of the second region with the reference point to form the first line corresponding to each boundary point of the second region.

[0155] Based on the first scaling factor, the boundary points of the second region are scaled along the first connecting line, and the scaled boundary points of the second region are used as the boundary points of the third region.

[0156] In some embodiments, in order to determine the third region, the boundary of the third region can be determined first, and the area enclosed by the boundary of the third region constitutes the third region.

[0157] Since this embodiment ultimately achieves the conversion from the first color gamut to the second color gamut, multimedia content ultimately needs to be displayed based on the second color gamut. Therefore, the points on the boundary of the third region are determined by scaling the boundary points of the second region (rather than by scaling the boundary points of the first region).

[0158] Figure 6 is a schematic diagram illustrating the determination of a third region according to an embodiment of the present disclosure.

[0159] As shown in Figure 6, for example, the first vertex is B1, the second vertex is B2, and the coordinates are (L... p C p The reference intersection point is B0.

[0160] For the boundary points of the second region, such as the second set {(C i ,L i Each point in the set {(C)|i=0,1…N} can be connected to B0 to form N first lines. Additionally, for the second set {(C)|i=0,1…N}, ..., N points can be connected to B0 to form N first lines. i ,L i For each point in the sequence (i = 0, 1, ..., N), the first scaling factor d can be determined. i d i Belongs to set {d i |i=0,1…N}.

[0161] For the boundary point (C) of the second region i ,L i ), can be based on the first scaling factor d on the i-th first connection line. i Scaling is performed, and the scaled coordinates form a set {(C k ,L k )|k=0,1…N} is the set of coordinates of the boundary points of the third region.

[0162] For example, the x-coordinate C of the boundary points of the second region can be determined based on the following formula. i and the vertical axis L i Scaling is performed separately:

[0163] L k =d i (L i -L p )+L p ;

[0164] C k =d i C i .

[0165] It should be noted that the first scaling factor d i For a predefined value, d represents the distinct points in the second set. i They can be the same or different; this disclosure does not restrict them.

[0166] The following examples illustrate how to map the coordinates of the first color gamut in the fifth region to the fourth region.

[0167] In some embodiments, mapping the coordinates corresponding to the first color gamut in the fifth region to the fourth region includes:

[0168] Connect the boundary points of the first region with the reference point to form the second line corresponding to each boundary point of the first region.

[0169] Based on the second scaling factor, the coordinates in the fifth region are scaled to the fourth region along the second connection.

[0170] Figure 7 is a schematic diagram illustrating the determination of a third region according to an embodiment of the present disclosure.

[0171] As shown in Figure 7, for example, the first vertex is B1, the second vertex is B2, and the reference intersection point is B0.

[0172] For the boundary points of the first region, such as the first set {(C j ,L j Each point in the sequence (j = 0, 1, ..., N) can be connected to B0 to form N second lines.

[0173] For each coordinate (C) of the first color gamut within the fifth region S ,L S ), which can be scaled based on the second scaling factor on the i-th first connection line to obtain the coordinates (C) mapped to the fourth region. d ,L d ).

[0174] It should be noted that for each coordinate (C) S ,L S For example, the second scaling factor can be the same. For instance, the second scaling factor is determined based on the following information:

[0175] The coordinates of the boundary of the first region, for example, {(C j ,L j |j=0,1…N};

[0176] The coordinates of the boundary of the second region, for example, {(C i ,L i |i = 0, 1, ..., N};

[0177] The coordinates of the boundary of the third region, for example, {(C k ,L k )|k=0,1…N}.

[0178] For example, the following formula can be used to analyze (C) S ,L S The x-coordinate C S and the ordinate L S Scaling yields (C) d ,L d ):

[0179] Among them, for (C) S ,L S The x-coordinate C S In this regard, the second scaling factor can be denoted as For (C) S ,L S The ordinate L S In this regard, the second scaling factor can be denoted as

[0180] In some embodiments, the color gamut conversion method further includes: converting the multimedia file from the first color gamut to the second color gamut according to the correlation between the coordinates of the first color gamut in the first coordinate system and the coordinates of the first color gamut converted to the second color gamut for each hue.

[0181] Based on the previous embodiments, the correlation between the coordinates of the first color gamut in the first coordinate system and the coordinates of the first color gamut converted to the second color gamut for each hue (e.g., each hue in the range of 0 to 360) is determined. Based on this, for multimedia files displayed based on the first color gamut, the multimedia files can be converted to the second color gamut for display based on this correlation.

[0182] For example, for hue R0, the coordinates of the first gamut in the first coordinate system are (C S ,LS Based on the preceding embodiments, if (C) S ,L S If the color gamut is located in the third region, then the coordinates for the transformation from the first color gamut to the second color gamut are still (C). S ,L S If (C) S ,L S If the color gamut is located in the fifth region, then the coordinates for the transformation from the first color gamut to the second color gamut are (C...). d ,L d Therefore, for each color information within the first color gamut, its coordinates in the first coordinate system under a specific hue, as well as its coordinates transformed to the second color gamut, can be determined, thus enabling the conversion of the color information of multimedia files from the first color gamut to the second color gamut for display.

[0183] It should be noted that the schematic diagram of the first coordinate system shown in the above embodiments is drawn to facilitate the explanation of the technical solution of this application. The subject executing the color gamut conversion method may or may not generate the above schematic diagram of the first coordinate system during the execution of the color gamut conversion method.

[0184] Corresponding to the aforementioned embodiments of the color gamut conversion method, this disclosure also provides embodiments of the color gamut conversion apparatus.

[0185] Figure 8 is a schematic block diagram of a color gamut conversion device according to an embodiment of the present disclosure. As shown in Figure 8, the color gamut conversion device includes a processing module 801.

[0186] In some embodiments, the processing module is configured to: determine first color information of a first color gamut in a first color space, and second color information of a second color gamut in the first color space, wherein the dimensions of the first color space include hue, saturation, and lightness, and the first color gamut is larger than the second color gamut; determine a first region corresponding to the first color gamut in a first coordinate system for each hue in the first color information; determine a second region corresponding to the second color gamut in the first coordinate system for each hue in the second color information; wherein the dimensions of the first coordinate system include lightness and saturation; determine a third region within the second region, wherein the region outside the third region in the second region is a fourth region, and the region outside the third region in the first region is a fifth region; map the coordinates corresponding to the first color gamut in the fifth region to the fourth region; and determine the coordinates of the first color gamut after mapping in the fourth region and the coordinates of the first color gamut in the third region as the coordinates of the first color gamut transformed to the second color gamut under the hue corresponding to the first coordinate system.

[0187] In some embodiments, the processing module is further configured to convert the first color gamut and the second color gamut from the second color space to the first color space.

[0188] In some embodiments, the processing module is configured to determine the first coordinates of the first color information in the second color space under the hue corresponding to the first coordinate system; determine the boundary of the first region according to the relationship between the first coordinates and a coordinate threshold range; and / or, the processing module is configured to determine the second coordinates of the second color information in the second color space under the hue corresponding to the first coordinate system; determine the boundary of the second region according to the relationship between the second coordinates and a coordinate threshold range.

[0189] In some embodiments, the processing module is configured to: determine a first vertex corresponding to the maximum saturation value in the first region; determine a second vertex corresponding to the maximum saturation value in the second region; determine a reference intersection point between a straight line passing through the first vertex and the second vertex and the brightness coordinate axis in the first coordinate system; traverse the boundary points of the second region and connect them with the reference intersection point to form a first connecting line corresponding to each boundary point of the second region; and scale the boundary points of the second region along the first connecting line according to a first scaling factor, wherein the scaled boundary points of the second region serve as the boundary points of the third region.

[0190] In some embodiments, the processing module is configured to traverse the boundary points of the first region and connect them with the reference intersection point to form a second line corresponding to each boundary point of the first region; and scale the coordinates in the fifth region to the fourth region along the second line according to a second scaling factor.

[0191] In some embodiments, the second scaling factor is determined based on the following information: the coordinates of the boundary of the first region; the coordinates of the boundary of the second region; and the coordinates of the boundary of the third region.

[0192] In some embodiments, the processing module is further configured to convert the multimedia file from the first color gamut to the second color gamut based on the association between the coordinates of the first color gamut in the first coordinate system and the coordinates of the first color gamut converted to the second color gamut for each hue.

[0193] For the device embodiments, since they basically correspond to the method embodiments, the relevant parts can be referred to in the description of the method embodiments. The device embodiments described above are merely illustrative. The modules described as separate components may or may not be physically separate, and the components shown as modules may or may not be physical modules; that is, they may be located in one place or distributed across multiple network modules. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0194] This disclosure also provides an apparatus for implementing any of the above methods. For example, an apparatus is provided that includes units or modules for implementing the steps performed by the terminal in any of the above methods. Alternatively, another apparatus is provided that includes units or modules for implementing the steps performed by a network device (e.g., an access network device, a core network functional node, a core network device, etc.) in any of the above methods.

[0195] It should be understood that the division of units or modules in the above device is only a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, the units or modules in the device can be implemented by a processor calling software: for example, the device includes a processor connected to a memory containing instructions. The processor calls the instructions stored in the memory to implement any of the above methods or to implement the functions of the units or modules in the above device. The processor can be, for example, a general-purpose processor, such as a Central Processing Unit (CPU) or a microprocessor, and the memory can be internal or external to the device. Alternatively, the units or modules in the device can be implemented in the form of hardware circuits. The functionality of some or all of the units or modules can be achieved through the design of these hardware circuits, which can be understood as one or more processors. For example, in one implementation, the hardware circuit is an application-specific integrated circuit (ASIC). The functionality of some or all of the units or modules is achieved through the design of the logical relationships between the components within the circuit. In another implementation, the hardware circuit can be implemented using a programmable logic device (PLD). Taking a field-programmable gate array (FPGA) as an example, it can include a large number of logic gates. The connection relationships between the logic gates are configured through configuration files, thereby achieving the functionality of some or all of the units or modules. All units or modules of the above device can be implemented entirely through processor-called software, entirely through hardware circuits, or partially through processor-called software with the remaining parts implemented through hardware circuits.

[0196] In this embodiment, the processor is a circuit with signal processing capabilities. In one implementation, the processor can be a circuit with instruction read and execute capabilities, such as a Central Processing Unit (CPU), a microprocessor, a graphics processing unit (GPU) (which can be understood as a microprocessor), or a digital signal processor (DSP). In another implementation, the processor can implement certain functions through the logical relationships of hardware circuits. The logical relationships of the aforementioned hardware circuits are fixed or reconfigurable. For example, the processor is a hardware circuit implemented using an application-specific integrated circuit (ASIC) or a programmable logic device (PLD), such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document and configuring the hardware circuit can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units or modules. Furthermore, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as a Neural Network Processing Unit (NPU), a Tensor Processing Unit (TPU), or a Deep Learning Processing Unit (DPU).

[0197] Figure 9A is a schematic diagram of the structure of the communication device 9100 proposed in an embodiment of this disclosure. The communication device 9100 can be a network device (e.g., access network device, core network device, etc.), a terminal (e.g., user equipment, etc.), a chip, chip system, or processor that supports the network device in implementing any of the above methods, or a chip, chip system, or processor that supports the terminal in implementing any of the above methods. The communication device 9100 can be used to implement the methods described in the above method embodiments; for details, please refer to the descriptions in the above method embodiments.

[0198] As shown in Figure 9A, the communication device 9100 includes one or more processors 9101. The processor 9101 can be a general-purpose processor or a dedicated processor, such as a baseband processor or a central processing unit (CPU). The baseband processor can be used to process communication protocols and communication data, while the CPU can be used to control communication devices (e.g., base stations, baseband chips, terminal devices, terminal device chips, DUs or CUs, etc.), execute programs, and process program data. Optionally, the communication device 9100 can be used to execute any of the above methods. Optionally, one or more processors 9101 can be used to invoke instructions to cause the communication device 9100 to execute any of the above methods.

[0199] In some embodiments, the communication device 9100 further includes one or more transceivers 9102. When the communication device 9100 includes one or more transceivers 9102, the transceiver 9102 performs at least one of the communication steps (e.g., steps S201, S202, but not limited thereto) in the above method, such as sending and / or receiving, while the processor 9101 performs at least one of other steps (e.g., steps S201, S202, but not limited thereto). In optional embodiments, the transceiver may include a receiver and / or a transmitter, which may be separate or integrated. Optionally, the terms transceiver, transceiver unit, transceiver, transceiver circuit, interface circuit, interface, etc., can be used interchangeably; the terms transmitter, sending unit, transmitter, sending circuit, etc., can be used interchangeably; and the terms receiver, receiving unit, receiver, receiving circuit, etc., can be used interchangeably.

[0200] In some embodiments, the communication device 9100 further includes one or more memories 9103 for storing data. Optionally, all or part of the memories 9103 may be located outside the communication device 9100. In optional embodiments, the communication device 9100 may include one or more interface circuits 9104. Optionally, the interface circuit 9104 is connected to the memory 9102 and can be used to receive data from the memory 9102 or other devices, and can be used to send data to the memory 9102 or other devices. For example, the interface circuit 9104 can read data stored in the memory 9102 and send the data to the processor 9101.

[0201] The communication device 9100 described in the above embodiments may be a network device or a terminal, but the scope of the communication device 9100 described in this disclosure is not limited thereto, and the structure of the communication device 9100 may not be limited by FIG. 9A. The communication device may be a standalone device or a part of a larger device. For example, the communication device may be: (1) a standalone integrated circuit IC, or chip, or chip system or subsystem; (2) a collection of one or more ICs, optionally, the IC collection may also include storage components for storing data and programs; (3) an ASIC, such as a modem; (4) a module that can be embedded in other devices; (5) a receiver, terminal device, smart terminal device, cellular phone, wireless device, handheld device, mobile unit, vehicle device, network device, cloud device, artificial intelligence device, etc.; (6) others, etc.

[0202] Figure 9B is a schematic diagram of the structure of the chip 9200 proposed in an embodiment of this disclosure. For cases where the communication device 9100 can be a chip or a chip system, the schematic diagram of the chip 9200 shown in Figure 9B can be referred to, but is not limited thereto.

[0203] Chip 9200 includes one or more processors 9201. Chip 9200 is used to perform any of the methods described above.

[0204] In some embodiments, chip 9200 further includes one or more interface circuits 9202. Optionally, terms such as interface circuit, interface, and transceiver pin can be used interchangeably. In some embodiments, chip 9200 further includes one or more memories 9203 for storing data. Optionally, all or part of the memories 9203 may be located outside chip 9200. Optionally, interface circuit 9202 is connected to memory 9203, and interface circuit 9202 can be used to receive data from memory 9203 or other devices, and interface circuit 9202 can be used to send data to memory 9203 or other devices. For example, interface circuit 9202 can read data stored in memory 9203 and send the data to processor 9201.

[0205] In some embodiments, the interface circuit 9202 performs at least one of the communication steps (e.g., steps S201, S202, but not limited thereto) in the above-described method, such as sending and / or receiving. For example, the interface circuit 9202 performing the communication steps (e.g., sending and / or receiving) in the above-described method refers to the interface circuit 9202 performing data interaction between the processor 9201, the chip 9200, the memory 9203, or the transceiver device. In some embodiments, the processor 9201 performs at least one of other steps (e.g., steps S201, S202, but not limited thereto).

[0206] The modules and / or devices described in the various embodiments, such as virtual devices, physical devices, and chips, can be combined or separated arbitrarily as needed. Optionally, some or all steps can also be performed collaboratively by multiple modules and / or devices, which is not limited here.

[0207] This disclosure also proposes a storage medium storing instructions that, when executed on the communication device 9100, cause the communication device 9100 to perform any of the above methods. Optionally, the storage medium is an electronic storage medium. Optionally, the storage medium is a computer-readable storage medium, but not limited thereto; it may also be a storage medium readable by other devices. Optionally, the storage medium may be a non-transitory storage medium, but not limited thereto; it may also be a temporary storage medium.

[0208] This disclosure also provides a program product that, when executed by the communication device 9100, causes the communication device 9100 to perform any of the above methods. Optionally, the program product is a computer program product.

[0209] This disclosure also proposes a computer program that, when run on a computer, causes the computer to perform any of the above methods.

Claims

A color gamut conversion method characterized by, The method comprises: determining first color information of a first color gamut in a first color space, and second color information of a second color gamut in the first color space, wherein dimensions of the first color space include hue, saturation, and lightness, and the first color gamut is larger than the second color gamut; determining, in the first color information, a first region corresponding to the first color gamut in a first coordinate system at each hue; and determining, in the second color information, a second region corresponding to the second color gamut in the first coordinate system at each hue, wherein dimensions of the first coordinate system include lightness and saturation; determining a third region within the second region, wherein a region outside the third region in the second region is a fourth region, and a region outside the third region in the first region is a fifth region; mapping a coordinate corresponding to the first color gamut in the fifth region to the fourth region; determining coordinates of the first color gamut in the fourth region after mapping and coordinates of the first color gamut in the third region as coordinates of the first color gamut converted to the second color gamut at a corresponding hue in the first coordinate system. The method of claim 1, wherein The method further comprises: converting the first color gamut and the second color gamut from a second color space to the first color space. The method according to claim 2, characterized in that The determination of the first region corresponding to the first color gamut in the first coordinate system at each hue in the first color information comprises: determining a first coordinate corresponding to the first color information in the second color space at a corresponding hue in the first coordinate system; determining a boundary of the first region according to a relationship between the first coordinate and a coordinate threshold range; and / or The determination of the second region corresponding to the second color gamut in the first coordinate system at each hue in the second color information comprises: determining a second coordinate corresponding to the second color information in the second color space at a corresponding hue in the first coordinate system; determining a boundary of the second region according to a relationship between the second coordinate and a coordinate threshold range. The method according to any one of claims 1 to 3, characterized in that The determination of the third region within the second region comprises: determining a first vertex corresponding to a maximum saturation value in the first region, and a second vertex corresponding to a maximum saturation value in the second region; determining a reference intersection point of a straight line passing through the first vertex and the second vertex and a lightness coordinate axis in the first coordinate system; connecting each boundary point of the second region and the reference intersection point to form a first connecting line corresponding to each boundary point of the second region; scaling the boundary points of the second region along the first connecting line according to a first scaling coefficient, wherein the scaled boundary points of the second region are boundary points of the third region. The method according to claim 4, characterized in that The mapping of the coordinate corresponding to the first color gamut in the fifth region to the fourth region comprises: connecting each boundary point of the first region and the reference intersection point to form a second connecting line corresponding to each boundary point of the first region; scaling the coordinate in the fifth region to the fourth region along the second connecting line according to a second scaling coefficient. The method according to claim 5, characterized in that The second scaling factor is determined based on information including: coordinates of a boundary of the first region; coordinates of a boundary of the second region; coordinates of a boundary of the third region. The method according to any one of claims 1 to 6, characterized in that The method further includes: converting a multimedia file from the first color gamut to the second color gamut according to a correspondence between coordinates of the first color gamut in the first coordinate system and coordinates of the first color gamut converted to the second color gamut under each hue. A color gamut conversion apparatus characterized by comprising: The apparatus includes: a processing module configured to determine first color information of a first color gamut in a first color space and second color information of a second color gamut in the first color space, wherein dimensions of the first color space include hue, saturation, and lightness, and the first color gamut is larger than the second color gamut; determine, under each hue in the first color information, a corresponding first region of the first color gamut in a first coordinate system, and determine, under each hue in the second color information, a corresponding second region of the second color gamut in the first coordinate system, wherein dimensions of the first coordinate system include lightness and saturation; determine a third region within the second region, wherein a region of the second region other than the third region is a fourth region, and a region of the first region other than the third region is a fifth region; map coordinates of the first color gamut in the fifth region to the fourth region; determine coordinates of the first color gamut after mapping in the fourth region and coordinates of the first color gamut in the third region as coordinates of the first color gamut converted to the second color gamut under a corresponding hue in the first coordinate system. A communication device characterized by comprise: one or more processors; wherein the communication device is configured to perform the color gamut conversion method of any one of claims 1 to 7. A storage medium storing instructions, the instructions comprising: The instructions, when executed on the communication device, cause the communication device to perform the color gamut conversion method of any one of claims 1 to 7. A program product, characterized in that The program product, when executed by the communication device, causes the communication device to perform the color gamut conversion method of any one of claims 1 to 7.