Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Unified Diff: third_party/qcms/src/qcms.h

Issue 2021663003: [qcms] Add API to get parametric gamma curve data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/qcms/README.chromium ('k') | third_party/qcms/src/transform_util.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/qcms/src/qcms.h
diff --git a/third_party/qcms/src/qcms.h b/third_party/qcms/src/qcms.h
index 9efe21fa7cb7c6b89aec7e6c9618693330a62867..a5b3317d7d2f43edb6a827106e506ac8df747e3a 100644
--- a/third_party/qcms/src/qcms.h
+++ b/third_party/qcms/src/qcms.h
@@ -83,6 +83,13 @@ typedef enum {
QCMS_TRC_USHORT, // 0.16 fixed point.
} qcms_trc_type;
+/* Output data of specific channel curve for qcms_profile_get_parametric_curve() */
+typedef enum {
+ QCMS_TRC_RED,
+ QCMS_TRC_GREEN,
+ QCMS_TRC_BLUE,
+} qcms_trc_channel;
+
typedef struct {
double x;
double y;
@@ -134,6 +141,8 @@ qcms_bool qcms_profile_get_vcgt_rgb_channels(qcms_profile *profile, unsigned sho
float qcms_profile_ntsc_relative_gamut_size(qcms_profile *profile);
+size_t qcms_profile_get_parametric_curve(qcms_profile *profile, qcms_trc_channel channel, float data[7]);
+
qcms_transform* qcms_transform_create(
qcms_profile *in, qcms_data_type in_type,
qcms_profile *out, qcms_data_type out_type,
« no previous file with comments | « third_party/qcms/README.chromium ('k') | third_party/qcms/src/transform_util.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698