Home
last modified time | relevance | path

Searched refs:skcms_TransferFunction (Results 1 – 25 of 51) sorted by relevance

123

/external/skia/include/third_party/skcms/
Dskcms.h46 typedef struct skcms_TransferFunction { struct
48 } skcms_TransferFunction; argument
50 SKCMS_API float skcms_TransferFunction_eval (const skcms_TransferFunction*, float);
51 SKCMS_API bool skcms_TransferFunction_invert(const skcms_TransferFunction*,
52 skcms_TransferFunction*);
61 SKCMS_API bool skcms_TransferFunction_makePQish(skcms_TransferFunction*,
67 SKCMS_API bool skcms_TransferFunction_makeScaledHLGish(skcms_TransferFunction*,
72 static inline bool skcms_TransferFunction_makeHLGish(skcms_TransferFunction* fn, in skcms_TransferFunction_makeHLGish()
79 static inline bool skcms_TransferFunction_makePQ(skcms_TransferFunction* tf) { in skcms_TransferFunction_makePQ()
84 static inline bool skcms_TransferFunction_makeHLG(skcms_TransferFunction* tf) { in skcms_TransferFunction_makeHLG()
[all …]
/external/skia/include/core/
DSkColorSpace.h42 static constexpr skcms_TransferFunction kSRGB =
45 static constexpr skcms_TransferFunction k2Dot2 =
48 static constexpr skcms_TransferFunction kLinear =
51 static constexpr skcms_TransferFunction kRec2020 =
54 static constexpr skcms_TransferFunction kPQ =
57 static constexpr skcms_TransferFunction kHLG =
119 static sk_sp<SkColorSpace> MakeRGB(const skcms_TransferFunction& transferFn,
147 bool isNumericalTransferFn(skcms_TransferFunction* fn) const;
220 void transferFn(skcms_TransferFunction* fn) const;
221 void invTransferFn(skcms_TransferFunction* fn) const;
[all …]
DSkICC.h14 struct skcms_TransferFunction;
16 SK_API sk_sp<SkData> SkWriteICCProfile(const skcms_TransferFunction&,
/external/skqp/third_party/skcms/
Dskcms.h46 typedef struct skcms_TransferFunction { struct
48 } skcms_TransferFunction; typedef
50 SKCMS_API float skcms_TransferFunction_eval (const skcms_TransferFunction*, float);
51 SKCMS_API bool skcms_TransferFunction_invert(const skcms_TransferFunction*,
52 skcms_TransferFunction*);
58 skcms_TransferFunction parametric;
120 SKCMS_API const skcms_TransferFunction* skcms_sRGB_TransferFunction(void);
121 SKCMS_API const skcms_TransferFunction* skcms_sRGB_Inverse_TransferFunction(void);
122 SKCMS_API const skcms_TransferFunction* skcms_Identity_TransferFunction(void);
134 const skcms_TransferFunction* inv_tf);
[all …]
Dskcms.cc77 static float max_roundtrip_error(const skcms_Curve* curve, const skcms_TransferFunction* inv_tf) { in max_roundtrip_error()
89 bool skcms_AreApproximateInverses(const skcms_Curve* curve, const skcms_TransferFunction* inv_tf) { in skcms_AreApproximateInverses()
245 static bool tf_is_valid(const skcms_TransferFunction* tf) { in tf_is_valid()
817 curve->parametric = skcms_TransferFunction{1,1,0,0,0,0,0}; in read_a2b()
1102 const skcms_TransferFunction* skcms_sRGB_TransferFunction() { in skcms_sRGB_TransferFunction()
1106 const skcms_TransferFunction* skcms_sRGB_Inverse_TransferFunction() { in skcms_sRGB_Inverse_TransferFunction()
1107 static const skcms_TransferFunction sRGB_inv = in skcms_sRGB_Inverse_TransferFunction()
1112 const skcms_TransferFunction* skcms_Identity_TransferFunction() { in skcms_Identity_TransferFunction()
1113 static const skcms_TransferFunction identity = {1,1,0,0,0,0,0}; in skcms_Identity_TransferFunction()
1192 const skcms_TransferFunction* inv_tf) { in skcms_TRCs_AreApproximateInverse()
[all …]
/external/skqp/include/core/
DSkColorSpace.h43 static constexpr skcms_TransferFunction kSRGB =
46 static constexpr skcms_TransferFunction k2Dot2 =
49 static constexpr skcms_TransferFunction kLinear =
111 static sk_sp<SkColorSpace> MakeRGB(const skcms_TransferFunction& transferFn,
140 bool isNumericalTransferFn(skcms_TransferFunction* fn) const;
DSkICC.h14 struct skcms_TransferFunction;
16 SK_API sk_sp<SkData> SkWriteICCProfile(const skcms_TransferFunction&,
/external/skia/src/core/
DSkColorSpacePriv.h42 static inline TFKind classify_transfer_fn(const skcms_TransferFunction& tf) { in classify_transfer_fn()
68 static inline bool is_almost_srgb(const skcms_TransferFunction& coeffs) { in is_almost_srgb()
78 static inline bool is_almost_2dot2(const skcms_TransferFunction& coeffs) { in is_almost_2dot2()
86 static inline bool is_almost_linear(const skcms_TransferFunction& coeffs) { in is_almost_linear()
105 const skcms_TransferFunction&, skvm::Color);
DSkColorSpace.cpp19 SkColorSpace::SkColorSpace(const skcms_TransferFunction& transferFn, in SkColorSpace()
39 sk_sp<SkColorSpace> SkColorSpace::MakeRGB(const skcms_TransferFunction& transferFn, in MakeRGB()
45 const skcms_TransferFunction* tf = &transferFn; in MakeRGB()
66 static SkColorSpace* Make(const skcms_TransferFunction& transferFn, in Make()
113 bool SkColorSpace::isNumericalTransferFn(skcms_TransferFunction* coeffs) const { in isNumericalTransferFn()
125 void SkColorSpace::transferFn(skcms_TransferFunction* fn) const { in transferFn()
129 void SkColorSpace::invTransferFn(skcms_TransferFunction* fn) const { in invTransferFn()
293 skcms_TransferFunction transferFn; in Deserialize()
313 auto make_named_tf = [=](const skcms_TransferFunction& tf) { in Deserialize()
348 skcms_TransferFunction transferFn; in Deserialize()
DSkICC.cpp183 static void write_trc_tag(uint32_t* ptr, const skcms_TransferFunction& fn) { in write_trc_tag()
208 static bool nearly_equal(const skcms_TransferFunction& u, in nearly_equal()
209 const skcms_TransferFunction& v) { in nearly_equal()
231 const char* get_color_profile_description(const skcms_TransferFunction& fn, in get_color_profile_description()
269 const skcms_TransferFunction& fn, in get_color_profile_tag()
299 sk_sp<SkData> SkWriteICCProfile(const skcms_TransferFunction& fn, in SkWriteICCProfile()
DSkColorFilter.cpp318 skcms_TransferFunction fTF; bool fUseDstTF = true;
323 const skcms_TransferFunction* tf, in SkWorkingFormatColorFilter()
334 skcms_TransferFunction tf = fTF; in workingFormat()
422 skcms_TransferFunction tf; in CreateProc()
437 const skcms_TransferFunction* tf, in WithWorkingFormat()
/external/skia/src/ports/
DSkNDKConversions.cpp45 static constexpr skcms_TransferFunction k2Dot6 = {2.6f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f};
56 skcms_TransferFunction transferFunction;
76 static bool nearly_equal(const skcms_TransferFunction& x, const skcms_TransferFunction& y) { in nearly_equal()
98 skcms_TransferFunction fn; in toDataSpace()
/external/skqp/src/core/
DSkColorSpacePriv.h34 static inline bool is_valid_transfer_fn(const skcms_TransferFunction& coeffs) { in is_valid_transfer_fn()
84 static inline bool is_almost_srgb(const skcms_TransferFunction& coeffs) { in is_almost_srgb()
94 static inline bool is_almost_2dot2(const skcms_TransferFunction& coeffs) { in is_almost_2dot2()
102 static inline bool is_almost_linear(const skcms_TransferFunction& coeffs) { in is_almost_linear()
DSkColorSpace.cpp39 sk_sp<SkColorSpace> SkColorSpace::MakeRGB(const skcms_TransferFunction& transferFn, in MakeRGB()
66 static SkColorSpace* Make(const skcms_TransferFunction& transferFn, in Make()
107 skcms_TransferFunction fwd, inv; in computeLazyDstFields()
118 bool SkColorSpace::isNumericalTransferFn(skcms_TransferFunction* coeffs) const { in isNumericalTransferFn()
203 skcms_TransferFunction tf; in toProfile()
317 skcms_TransferFunction transferFn; in Deserialize()
337 auto make_named_tf = [=](const skcms_TransferFunction& tf) { in Deserialize()
372 skcms_TransferFunction transferFn; in Deserialize()
DSkICC.cpp183 static void write_trc_tag(uint32_t* ptr, const skcms_TransferFunction& fn) { in write_trc_tag()
208 static bool nearly_equal(const skcms_TransferFunction& u, in nearly_equal()
209 const skcms_TransferFunction& v) { in nearly_equal()
231 const char* get_color_profile_description(const skcms_TransferFunction& fn, in get_color_profile_description()
269 const skcms_TransferFunction& fn, in get_color_profile_tag()
295 sk_sp<SkData> SkWriteICCProfile(const skcms_TransferFunction& fn, in SkWriteICCProfile()
DSkColorSpaceXformSteps.cpp109 skcms_TransferFunction tf; in apply()
125 skcms_TransferFunction tf; in apply()
DSkColorSpaceXformSteps.h47 skcms_TransferFunction srcTF, // Apply for linearize.
/external/skia/third_party/skcms/
Dskcms.cc145 static TFKind classify(const skcms_TransferFunction& tf, TF_PQish* pq = nullptr in classify()
172 bool skcms_TransferFunction_isSRGBish(const skcms_TransferFunction* tf) { in skcms_TransferFunction_isSRGBish()
175 bool skcms_TransferFunction_isPQish(const skcms_TransferFunction* tf) { in skcms_TransferFunction_isPQish()
178 bool skcms_TransferFunction_isHLGish(const skcms_TransferFunction* tf) { in skcms_TransferFunction_isHLGish()
182 bool skcms_TransferFunction_makePQish(skcms_TransferFunction* tf, in skcms_TransferFunction_makePQish()
190 bool skcms_TransferFunction_makeScaledHLGish(skcms_TransferFunction* tf, in skcms_TransferFunction_makeScaledHLGish()
198 float skcms_TransferFunction_eval(const skcms_TransferFunction* tf, float x) { in skcms_TransferFunction_eval()
259 float skcms_MaxRoundtripError(const skcms_Curve* curve, const skcms_TransferFunction* inv_tf) { in skcms_MaxRoundtripError()
271 bool skcms_AreApproximateInverses(const skcms_Curve* curve, const skcms_TransferFunction* inv_tf) { in skcms_AreApproximateInverses()
1117 curve->parametric = skcms_TransferFunction{1,1,0,0,0,0,0}; in canonicalize_identity()
[all …]
/external/skia/tests/
DColorSpaceTest.cpp133 skcms_TransferFunction fn; in DEF_TEST()
166 skcms_TransferFunction fn; in DEF_TEST()
295 skcms_TransferFunction fn; in DEF_TEST()
312 skcms_TransferFunction fn; in DEF_TEST()
340 skcms_TransferFunction fn; in DEF_TEST()
353 skcms_TransferFunction tf = SkNamedTransferFn::kSRGB; in DEF_TEST()
DParametricStageTest.cpp12 static void check_error(skiatest::Reporter* r, float limit, skcms_TransferFunction fn) { in check_error()
44 skcms_TransferFunction fn = {0,0,0,0,0,0,0}; in check_error()
DNdkEncodeTest.cpp227 static constexpr skcms_TransferFunction k2Dot6 = {2.6f, 1.0f, 0.0f, 0.0f, 0.0f, 0.0f, 0.0f};
240 static bool nearly_equal(const skcms_TransferFunction& x, const skcms_TransferFunction& y) { in nearly_equal()
259 skcms_TransferFunction fnA, fnB; in nearly_equal()
/external/skia/gm/
Dcolorspace.cpp14 static const skcms_TransferFunction gTFs[] = {
86 for (skcms_TransferFunction tf : gTFs) { in draw_colorspace_gm()
/external/skqp/tests/
DParametricStageTest.cpp12 static void check_error(skiatest::Reporter* r, float limit, skcms_TransferFunction fn) { in check_error()
44 skcms_TransferFunction fn = {0,0,0,0,0,0,0}; in check_error()
DColorSpaceTest.cpp132 skcms_TransferFunction fn; in DEF_TEST()
165 skcms_TransferFunction fn; in DEF_TEST()
294 skcms_TransferFunction fn; in DEF_TEST()
311 skcms_TransferFunction fn; in DEF_TEST()
/external/skia/third_party/skcms/src/
DTransform_inl.h310 SI F apply_tf(const skcms_TransferFunction* tf, F x) { in apply_tf()
330 SI F apply_pq(const skcms_TransferFunction* tf, F x) { in apply_pq()
348 SI F apply_hlg(const skcms_TransferFunction* tf, F x) { in apply_hlg()
368 SI F apply_hlginv(const skcms_TransferFunction* tf, F x) { in apply_hlginv()
1201 case Op_tf_r:{ r = apply_tf((const skcms_TransferFunction*)*args++, r); } break; in exec_ops()
1202 case Op_tf_g:{ g = apply_tf((const skcms_TransferFunction*)*args++, g); } break; in exec_ops()
1203 case Op_tf_b:{ b = apply_tf((const skcms_TransferFunction*)*args++, b); } break; in exec_ops()
1204 case Op_tf_a:{ a = apply_tf((const skcms_TransferFunction*)*args++, a); } break; in exec_ops()
1206 case Op_pq_r:{ r = apply_pq((const skcms_TransferFunction*)*args++, r); } break; in exec_ops()
1207 case Op_pq_g:{ g = apply_pq((const skcms_TransferFunction*)*args++, g); } break; in exec_ops()
[all …]

123