Helper functions for colourspaces. More...
Functions | |
| khr_df_primaries_e | findMapping (const Primaries *p, float latitude) |
| Map a set of primaries to a KDFS primaries enum. | |
| bool | getPrimaries (khr_df_primaries_e primaries, Primaries *p) |
| Get the primaries corresponding to a KDFS primaries enum. | |
Helper functions for colourspaces.
| khr_df_primaries_e findMapping | ( | const Primaries * | p, |
| float | latitude | ||
| ) |
Map a set of primaries to a KDFS primaries enum.
| [in] | p | pointer to a Primaries struct filled in with the primary values. |
| [in] | latitude | tolerance to use while matching. A suitable value might be 0.002 but it depends on the application. |