Home
last modified time | relevance | path

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

12

/third_party/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 …]
/third_party/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;
18 SK_API sk_sp<SkData> SkWriteICCProfile(const skcms_TransferFunction&,
20 SK_API sk_sp<SkData> SkWriteICCProfileWithCicp(const skcms_TransferFunction&, const skcms_Matrix3x3…
/third_party/skia/src/core/
DSkColorSpace.cpp19 SkColorSpace::SkColorSpace(const skcms_TransferFunction& transferFn, in SkColorSpace()
40 sk_sp<SkColorSpace> SkColorSpace::MakeRGB(const skcms_TransferFunction& transferFn, in MakeRGB()
46 const skcms_TransferFunction* tf = &transferFn; in MakeRGB()
67 static SkColorSpace* Make(const skcms_TransferFunction& transferFn, in Make()
114 bool SkColorSpace::isNumericalTransferFn(skcms_TransferFunction* coeffs) const { in isNumericalTransferFn()
126 void SkColorSpace::transferFn(skcms_TransferFunction* fn) const { in transferFn()
130 void SkColorSpace::invTransferFn(skcms_TransferFunction* fn) const { in invTransferFn()
307 skcms_TransferFunction transferFn; in Deserialize()
327 auto make_named_tf = [=](const skcms_TransferFunction& tf) { in Deserialize()
362 skcms_TransferFunction transferFn; in Deserialize()
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()
109 const skcms_TransferFunction&, skvm::Color);
DSkICC.cpp187 static void write_trc_tag(uint32_t* ptr, const skcms_TransferFunction& fn) { in write_trc_tag()
221 static bool nearly_equal(const skcms_TransferFunction& u, in nearly_equal()
222 const skcms_TransferFunction& v) { in nearly_equal()
244 const char* get_color_profile_description(const skcms_TransferFunction& fn, in get_color_profile_description()
282 const skcms_TransferFunction& fn, in get_color_profile_tag()
312 sk_sp<SkData> SkWriteICCProfile(const skcms_TransferFunction& fn, in SkWriteICCProfile()
370 sk_sp<SkData> SkWriteICCProfileWithCicp(const skcms_TransferFunction& fn, in SkWriteICCProfileWithCicp()
DSkColorFilter.cpp327 skcms_TransferFunction fTF; bool fUseDstTF = true;
332 const skcms_TransferFunction* tf, in SkWorkingFormatColorFilter()
343 skcms_TransferFunction tf = fTF; in workingFormat()
431 skcms_TransferFunction tf; in CreateProc()
446 const skcms_TransferFunction* tf, in WithWorkingFormat()
DSkColorFilterPriv.h21 const skcms_TransferFunction* tf,
DSkColorSpaceXformSteps.h50 skcms_TransferFunction srcTF, // Apply for linearize.
DSkColorSpaceXformSteps.cpp75 skcms_TransferFunction dstTF; in SkColorSpaceXformSteps()
182 const skcms_TransferFunction& tf, skvm::Color c) { in sk_program_transfer_fn()
/third_party/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()
/third_party/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()
1120 curve->parametric = skcms_TransferFunction{1,1,0,0,0,0,0}; in canonicalize_identity()
[all …]
Dskcms_internal.h34 float skcms_MaxRoundtripError(const skcms_Curve* curve, const skcms_TransferFunction* inv_tf);
/third_party/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()
/third_party/skia/third_party/skcms/src/
DTransform_inl.h314 SI F apply_tf(const skcms_TransferFunction* tf, F x) { in apply_tf()
334 SI F apply_pq(const skcms_TransferFunction* tf, F x) { in apply_pq()
352 SI F apply_hlg(const skcms_TransferFunction* tf, F x) { in apply_hlg()
372 SI F apply_hlginv(const skcms_TransferFunction* tf, F x) { in apply_hlginv()
1205 case Op_tf_r:{ r = apply_tf((const skcms_TransferFunction*)*args++, r); } break; in exec_ops()
1206 case Op_tf_g:{ g = apply_tf((const skcms_TransferFunction*)*args++, g); } break; in exec_ops()
1207 case Op_tf_b:{ b = apply_tf((const skcms_TransferFunction*)*args++, b); } break; in exec_ops()
1208 case Op_tf_a:{ a = apply_tf((const skcms_TransferFunction*)*args++, a); } break; in exec_ops()
1210 case Op_pq_r:{ r = apply_pq((const skcms_TransferFunction*)*args++, r); } break; in exec_ops()
1211 case Op_pq_g:{ g = apply_pq((const skcms_TransferFunction*)*args++, g); } break; in exec_ops()
[all …]
/third_party/skia/gm/
Dcolorspace.cpp14 static const skcms_TransferFunction gTFs[] = {
86 for (skcms_TransferFunction tf : gTFs) { in draw_colorspace_gm()
Dreadpixels.cpp78 skcms_TransferFunction fn = { 1.8f, 1.f, 0.f, 0.f, 0.f, 0.f, 0.f }; in make_parametric_transfer_fn()
/third_party/skia/experimental/ffmpeg/
DSkVideoDecoder.cpp46 static skcms_TransferFunction compute_transfer(AVColorTransferCharacteristic t) { in compute_transfer()
55 skcms_TransferFunction linear_to_encoded = { in compute_transfer()
58 skcms_TransferFunction encoded_to_linear; in compute_transfer()
/third_party/skia/src/effects/
DSkHighContrastFilter.cpp62 skcms_TransferFunction linear = SkNamedTransferFn::kLinear; in Make()
/third_party/skia/fuzz/
DFuzzCreateDDL.cpp61 skcms_TransferFunction skcmsFn; in gen_fuzzed_imageinfo()
/third_party/skia/src/images/
DSkImageEncoderFns.h188 skcms_TransferFunction fn; in icc_from_color_space()
/third_party/skia/tools/viewer/
DViewer.h203 skcms_TransferFunction fColorSpaceTransferFn;
/third_party/skia/tools/fm/
Dfm.cpp546 const FlagOption<skcms_TransferFunction> kTransferFunctions[] = { in main()
558 skcms_TransferFunction tf; in main()

12