Color management system that supports legacy and advanced color management applications
First Claim
1. A color management system that supports a request from a component, the color management system comprising memory storing:
- an application program interface (API) layer module that receives the request from a component, the request identifying an object corresponding to a profile and an operation to perform on a requested element of the object;
an API adaptation layer module that obtains the request from the API layer module and that analyzes the request to determine whether the profile corresponding to the object is associated with a legacy format or with an advanced format;
a legacy processing module that processes the request if the profile corresponding to the object is associated with the legacy format; and
an advanced processing module that processes the request if the profile corresponding to the object is associated with the advanced format;
wherein the API layer module returns a response to the request, the response being configured to;
return results of the operation upon the requested element when the requested element is compatible with the determined format of the profile,return results of the operation upon a different element of the profile determined to match the requested element when the requested element is not compatible with the determined format of the profile and the different element is available, wherein the API layer module is operable to determine availability of the different element from the profile; and
return an error when the requested element is not compatible with the determined format and the different element is unavailable.
1 Assignment
0 Petitions
Accused Products
Abstract
The present invention provides method and apparatus for supporting a legacy application programming interface (API) set between a component and a color management system. The legacy API set supports both the new capabilities as well as the legacy capabilities. The color management system determines the format type for an object that is referenced by an API call. If the object is associated with a legacy format, the API call is processed by a legacy processing module. If the object is associated with an advanced format, the API call is processed by an advanced processing module. If a plurality of objects is associated with an API call with mixed formats, the color management system converts some of the objects so that the objects have a consistent format. A common structure supports an object that may have either a legacy format or an advanced format.
-
Citations
11 Claims
-
1. A color management system that supports a request from a component, the color management system comprising memory storing:
-
an application program interface (API) layer module that receives the request from a component, the request identifying an object corresponding to a profile and an operation to perform on a requested element of the object; an API adaptation layer module that obtains the request from the API layer module and that analyzes the request to determine whether the profile corresponding to the object is associated with a legacy format or with an advanced format; a legacy processing module that processes the request if the profile corresponding to the object is associated with the legacy format; and an advanced processing module that processes the request if the profile corresponding to the object is associated with the advanced format; wherein the API layer module returns a response to the request, the response being configured to; return results of the operation upon the requested element when the requested element is compatible with the determined format of the profile, return results of the operation upon a different element of the profile determined to match the requested element when the requested element is not compatible with the determined format of the profile and the different element is available, wherein the API layer module is operable to determine availability of the different element from the profile; and return an error when the requested element is not compatible with the determined format and the different element is unavailable. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A method of supporting an application program interface (API) performed by one or more computing devices of a color management system, the method comprising:
-
(a) receiving an application program interface (API) call from a component, the API call containing a parameter; (b) analyzing an object corresponding to a profile to determine if the profile corresponding to the object corresponds to a legacy format or an advanced format, the object being identified by the parameter, the API call being compatible with the legacy format and with the advanced format and describing a requested element of the object to access; (c) if the profile corresponding to the object is associated with the legacy format, invoking a legacy processing module to process the API call; (d) if the profile corresponding to the object is associated with the advanced format, invoking an advanced processing module to process the API call; (e) in response to (c)-(d), modifying a common structure that represents the object in accordance with a format of the object, the common structure accommodating the legacy format and the advanced format; and (f) returning an API response, wherein; when the requested element is compatible with the determined format of the profile, performing the operation upon the requested element, and returning a result of the operation upon the requested element; and when the requested element is not compatible with the determined format of the profile, determining when a different element of the profile is available that matches the requested element, performing the operation upon the different element and returning a result of the operation upon the different element when the different element is available, and returning an error when the different element is unavailable. - View Dependent Claims (7, 8)
-
-
9. One or more computer-readable storage media storing computer-executable instructions that, when executed by a computing device, cause the computing device to perform acts including:
-
(a) receiving an application program interface (API) call from a component, the API call containing a parameter; (b) analyzing an object corresponding to a profile to determine if the profile corresponding to the object corresponds to a legacy format or an advanced format, the object being identified by the parameter, the API call being compatible with the legacy format and with the advanced format and describing a requested element of the object to access; (c) if the profile corresponding to the object is associated with the legacy format, invoking a legacy processing module to process the API call; (d) if the profile corresponding to the object is associated with the advanced format, invoking an advanced processing module to process the API call; (e) in response to (c)-(d), modifying a common structure that represents the object in accordance with a format of the object, the common structure accommodating the legacy format and the advanced format; and (f) returning an API response, wherein; when the requested element is compatible with the determined format of the profile, performing the operation upon the requested element, and returning a result of the operation upon the requested element; and when the requested element is not compatible with the determined format of the profile, determining when a different element of the profile is available that matches the requested element, performing the operation upon the different element and returning a result of the operation upon the different element when the different element is available, and returning an error when the different element is unavailable. - View Dependent Claims (10, 11)
-
Specification