Home
last modified time | relevance | path

Searched refs:tf (Results 1 - 25 of 176) sorted by relevance

12345678

/third_party/skia/src/core/
H A DSkColorSpacePriv.h38 // For exotic HDR transfer functions, we encode them using a tf.g that makes no sense,
42 static inline TFKind classify_transfer_fn(const skcms_TransferFunction& tf) { in classify_transfer_fn() argument
43 if (tf.g < 0 && (int)tf.g == tf.g) { in classify_transfer_fn()
45 switch ((int)tf.g) { in classify_transfer_fn()
54 if (sk_float_isfinite(tf.a + tf.b + tf.c + tf in classify_transfer_fn()
[all...]
H A DSkColorSpaceXformSteps.cpp182 const skcms_TransferFunction& tf, skvm::Color c) { in sk_program_transfer_fn()
183 skvm::F32 G = p->uniformF(uniforms->pushF(tf.g)), in sk_program_transfer_fn()
184 A = p->uniformF(uniforms->pushF(tf.a)), in sk_program_transfer_fn()
185 B = p->uniformF(uniforms->pushF(tf.b)), in sk_program_transfer_fn()
186 C = p->uniformF(uniforms->pushF(tf.c)), in sk_program_transfer_fn()
187 D = p->uniformF(uniforms->pushF(tf.d)), in sk_program_transfer_fn()
188 E = p->uniformF(uniforms->pushF(tf.e)), in sk_program_transfer_fn()
189 F = p->uniformF(uniforms->pushF(tf.f)); in sk_program_transfer_fn()
190 TFKind tf_kind = classify_transfer_fn(tf); in sk_program_transfer_fn()
181 sk_program_transfer_fn(skvm::Builder* p, skvm::Uniforms* uniforms, const skcms_TransferFunction& tf, skvm::Color c) sk_program_transfer_fn() argument
H A DSkColorSpace.cpp46 const skcms_TransferFunction* tf = &transferFn; in MakeRGB() local
52 tf = &SkNamedTransferFn::kSRGB; in MakeRGB()
54 tf = &SkNamedTransferFn::k2Dot2; in MakeRGB()
59 tf = &SkNamedTransferFn::kLinear; in MakeRGB()
62 return sk_sp<SkColorSpace>(new SkColorSpace(*tf, toXYZ)); in MakeRGB()
327 auto make_named_tf = [=](const skcms_TransferFunction& tf) { in Deserialize()
337 return SkColorSpace::MakeRGB(tf, toXYZ); in Deserialize()
410 SkASSERTF(equiv(X,Y), "Hash collision at tf[%d], !equiv(%g,%g)\n", i, X,Y); in Equals()
/third_party/skia/third_party/skcms/
H A Dskcms.cc131 // For exotic HDR transfer functions, we encode them using a tf.g that makes no sense,
145 static TFKind classify(const skcms_TransferFunction& tf, TF_PQish* pq = nullptr in classify() argument
147 if (tf.g < 0 && (int)tf.g == tf.g) { in classify()
149 switch ((int)tf.g) { in classify()
150 case -PQish: if (pq ) { memcpy(pq , &tf.a, sizeof(*pq )); } return PQish; in classify()
151 case -HLGish: if (hlg) { memcpy(hlg, &tf.a, sizeof(*hlg)); } return HLGish; in classify()
152 case -HLGinvish: if (hlg) { memcpy(hlg, &tf.a, sizeof(*hlg)); } return HLGinvish; in classify()
158 if (isfinitef_(tf in classify()
172 skcms_TransferFunction_isSRGBish(const skcms_TransferFunction* tf) skcms_TransferFunction_isSRGBish() argument
175 skcms_TransferFunction_isPQish(const skcms_TransferFunction* tf) skcms_TransferFunction_isPQish() argument
178 skcms_TransferFunction_isHLGish(const skcms_TransferFunction* tf) skcms_TransferFunction_isHLGish() argument
182 skcms_TransferFunction_makePQish(skcms_TransferFunction* tf, float A, float B, float C, float D, float E, float F) skcms_TransferFunction_makePQish() argument
190 skcms_TransferFunction_makeScaledHLGish(skcms_TransferFunction* tf, float K, float R, float G, float a, float b, float c) skcms_TransferFunction_makeScaledHLGish() argument
198 skcms_TransferFunction_eval(const skcms_TransferFunction* tf, float x) skcms_TransferFunction_eval() argument
[all...]
/third_party/icu/icu4c/source/test/perf/unisetperf/
H A Dunisetperf.cpp102 UBool tf=false; in countSpans() local
104 i=span(s, length, i, tf); in countSpans()
105 tf=(UBool)(!tf); in countSpans()
109 int32_t span(const UChar *s, int32_t length, int32_t start, UBool tf) const { in span()
114 if(tf!=set.contains(c)) { in span()
184 UBool tf=false; in call() local
186 i+=span(set, s+i, length-i, tf); in call()
187 tf=(UBool)(!tf); in call()
195 span(const UnicodeSet &set, const UChar *s, int32_t length, UBool tf) span() argument
246 UBool tf=false; call() local
301 UBool tf=(UBool)((testcase.spanCount&1)==0); call() local
347 UBool tf=false; call() local
397 UBool tf=(UBool)((testcase.spanCount&1)==0); call() local
[all...]
/third_party/musl/libc-test/src/math/
H A Dfpclassify.c11 } tf[] = { variable
92 for (i = 0; i < length(tf); i++) { in main()
93 if (fpclassify(tf[i].f) != tf[i].class) in main()
94 error(tf[i], fpclassify); in main()
95 if (!!isinf(tf[i].f) != (tf[i].class == FP_INFINITE)) in main()
96 error(tf[i], isinf); in main()
97 if (!!isnan(tf[i].f) != (tf[ in main()
[all...]
/third_party/toybox/toys/pending/
H A Dsyslogd.c278 static int write_rotate(struct logfile *tf, int len) in write_rotate() argument
282 isreg = (!fstat(tf->logfd, &statf) && S_ISREG(statf.st_mode)); in write_rotate()
288 int i = strlen(tf->filename) + 3 + 1; in write_rotate()
293 sprintf(new_file, "%s.%d", tf->filename, i); in write_rotate()
295 sprintf(old_file, "%s.%d", tf->filename, --i); in write_rotate()
298 rename(tf->filename, new_file); in write_rotate()
299 unlink(tf->filename); in write_rotate()
300 close(tf->logfd); in write_rotate()
301 tf->logfd = open(tf in write_rotate()
320 struct logfile *tf = TT.lfiles; logmsg() local
[all...]
/third_party/lzma/CPP/7zip/Common/
H A DRegisterArc.h44 #define REGISTER_ARC_V(n, e, ae, id, sigSize, sig, offs, flags, tf, crIn, crOut, isArc) \
45 static const CArcInfo g_ArcInfo = { flags, id, sigSize, offs, sig, n, e, ae, tf, crIn, crOut, isArc } ; \
47 #define REGISTER_ARC_R(n, e, ae, id, sigSize, sig, offs, flags, tf, crIn, crOut, isArc) \
48 REGISTER_ARC_V (n, e, ae, id, sigSize, sig, offs, flags, tf, crIn, crOut, isArc) \
68 #define REGISTER_ARC_IO(n, e, ae, id, sig, offs, flags, tf, isArc) \
71 REGISTER_ARC_R(n, e, ae, id, Z7_ARRAY_SIZE(sig), sig, offs, flags, tf, CreateArc, CreateArcOut, isArc)
73 #define REGISTER_ARC_IO_DECREMENT_SIG(n, e, ae, id, sig, offs, flags, tf, isArc) \
76 REGISTER_ARC_V(n, e, ae, id, Z7_ARRAY_SIZE(sig), sig, offs, flags, tf, CreateArc, CreateArcOut, isArc) \
/third_party/ltp/testcases/kernel/fs/fsx-linux/
H A Dfsx-linux.c422 struct test_file *tf = get_tf(); in get_fd() local
423 return tf->fd; in get_fd()
428 struct test_file *tf; in open_test_files() local
441 for (i = 0, tf = test_files; i < num_test_files; i++, tf++) { in open_test_files()
443 tf->path = argv[i]; in open_test_files()
444 tf->fd = open(tf->path, O_RDWR | (lite ? 0 : O_CREAT | O_TRUNC), in open_test_files()
446 if (tf->fd < 0) { in open_test_files()
447 prterr(tf in open_test_files()
462 struct test_file *tf; close_test_files() local
542 fill_tf_buf(struct test_file *tf) fill_tf_buf() argument
552 output_line(struct test_file *tf, int op, unsigned offset, unsigned size, struct timeval *tv) output_line() argument
589 struct test_file *tf = get_tf(); doread() local
644 struct test_file *tf = get_tf(); domapread() local
722 struct test_file *tf = get_tf(); dowrite() local
782 struct test_file *tf = get_tf(); domapwrite() local
880 struct test_file *tf = get_tf(); dotruncate() local
941 struct test_file *tf = get_tf(); docloseopen() local
[all...]
/third_party/ffmpeg/libavcodec/
H A Dh264_picture.c44 ff_thread_release_ext_buffer(h->avctx, &pic->tf); in ff_h264_unref_picture()
98 av_assert0(src->tf.f == src->f); in ff_h264_ref_picture()
100 dst->tf.f = dst->f; in ff_h264_ref_picture()
101 ret = ff_thread_ref_frame(&dst->tf, &src->tf); in ff_h264_ref_picture()
154 av_assert0(src->tf.f == src->f); in ff_h264_replace_picture()
156 dst->tf.f = dst->f; in ff_h264_replace_picture()
157 ff_thread_release_ext_buffer(h->avctx, &dst->tf); in ff_h264_replace_picture()
158 ret = ff_thread_ref_frame(&dst->tf, &src->tf); in ff_h264_replace_picture()
[all...]
/third_party/vk-gl-cts/modules/gles3/functional/
H A Des3fLifetimeTests.cpp72 void draw (GLuint vao, GLfloat scale, bool tf, Surface* dst);
126 void ScaleProgram::draw (GLuint vao, GLfloat scale, bool tf, Surface* dst) in draw() argument
143 if (tf) in draw()
146 if (tf) in draw()
313 void attach (GLuint buffer, GLuint tf);
314 void detach (GLuint buffer, GLuint tf);
316 GLuint getAttachment (GLuint tf);
326 void BufferTfAttacher::attach (GLuint buffer, GLuint tf) in attach() argument
328 glBindTransformFeedback(GL_TRANSFORM_FEEDBACK, tf); in attach()
334 void BufferTfAttacher::detach (GLuint buffer, GLuint tf) in detach() argument
343 getAttachment(GLuint tf) getAttachment() argument
378 setupContainer(GLuint seed, GLuint tf) setupContainer() argument
504 GLuint tf = 0; iterate() local
[all...]
/third_party/lwip/test/unit/
H A Dlwip_check.h25 #define tcase_add_named_test(tc,tf) \
26 _tcase_add_test((tc),(tf).func,(tf).name,0, 0, 0, 1)
34 #define tcase_add_named_test(tc,tf) tcase_add_test(tc,tf)
/third_party/ffmpeg/libavfilter/
H A Dvf_fieldhint.c119 int64_t tf, bf; in filter_frame() local
141 } else if (sscanf(buf, "%"PRId64",%"PRId64" %c %c", &tf, &bf, &hint, &field) == 4) { in filter_frame()
143 } else if (sscanf(buf, "%"PRId64",%"PRId64" %c", &tf, &bf, &hint) == 3) { in filter_frame()
145 } else if (sscanf(buf, "%"PRId64",%"PRId64"", &tf, &bf) == 2) { in filter_frame()
153 if (tf > outlink->frame_count_in + 1 || tf < FFMAX(0, outlink->frame_count_in - 1) || in filter_frame()
155 av_log(ctx, AV_LOG_ERROR, "Out of range frames %"PRId64" and/or %"PRId64" on line %"PRId64" for %"PRId64". input frame.\n", tf, bf, s->line, inlink->frame_count_out); in filter_frame()
161 if (tf > 1 || tf < -1 || in filter_frame()
163 av_log(ctx, AV_LOG_ERROR, "Out of range %"PRId64" and/or %"PRId64" on line %"PRId64" for %"PRId64". input frame.\n", tf, b in filter_frame()
[all...]
H A Dfflcms2.c219 cmsHTRANSFORM tf; in ff_icc_profile_read_primaries() local
228 tf = cmsCreateTransformTHR(s->ctx, profile, TYPE_RGB_8, xyz, TYPE_XYZ_DBL, in ff_icc_profile_read_primaries()
238 if (!tf) { in ff_icc_profile_read_primaries()
243 cmsDoTransform(tf, testprimaries, dst, 4); in ff_icc_profile_read_primaries()
244 cmsDeleteTransform(tf); in ff_icc_profile_read_primaries()
280 cmsHTRANSFORM tf; in ff_icc_profile_detect_transfer() local
289 tf = cmsCreateTransformTHR(s->ctx, profile, TYPE_RGB_8, ref, TYPE_GRAY_DBL, in ff_icc_profile_detect_transfer()
293 if (!tf) { in ff_icc_profile_detect_transfer()
298 cmsDoTransform(tf, testramp, dst, FF_ARRAY_ELEMS(dst)); in ff_icc_profile_detect_transfer()
299 cmsDeleteTransform(tf); in ff_icc_profile_detect_transfer()
[all...]
/third_party/skia/gm/
H A Duserfont.cpp55 static sk_sp<SkTypeface> round_trip(sk_sp<SkTypeface> tf) { in round_trip() argument
56 auto data = tf->serialize(); in round_trip()
73 static sk_sp<SkTextBlob> make_blob(sk_sp<SkTypeface> tf, float size, float* spacing) { in make_blob() argument
74 SkFont font(tf); in make_blob()
88 auto waterfall = [&](sk_sp<SkTypeface> tf) {
96 auto blob = make_blob(tf, size, &spacing);
99 if (tf == nullptr) {
/third_party/skia/src/utils/
H A DSkCustomTypeface.cpp125 sk_sp<SkUserTypeface> tf(new SkUserTypeface(fStyle)); in detach()
126 tf->fAdvances = std::move(fAdvances); in detach()
127 tf->fPaths = std::move(fPaths); in detach()
128 tf->fMetrics = fMetrics; in detach()
133 for (const auto& path : tf->fPaths) { in detach()
138 tf->fMetrics.fTop = bounds.top(); in detach()
139 tf->fMetrics.fBottom = bounds.bottom(); in detach()
140 tf->fMetrics.fXMin = bounds.left(); in detach()
141 tf->fMetrics.fXMax = bounds.right(); in detach()
143 return std::move(tf); in detach()
206 const SkUserTypeface* tf = this->userTF(); global() variable
[all...]
H A DSkOrderedFontMgr.cpp59 if (auto tf = fm->matchFamilyStyle(family, style)) { in onMatchFamilyStyle()
60 return tf; in onMatchFamilyStyle()
71 if (auto tf = fm->matchFamilyStyleCharacter(familyName, style, bcp47, bcp47Count, uni)) { in onMatchFamilyStyleCharacter()
72 return tf; in onMatchFamilyStyleCharacter()
/third_party/ffmpeg/libavdevice/tests/
H A Dtimefilter.c58 TimeFilter *tf = ff_timefilter_new(1, par0, par1); in main() local
59 if (!tf) { in main()
65 filtered = ff_timefilter_update(tf, samples[i], i ? (samplet[i] - samplet[i-1]) : 1); in main()
70 ff_timefilter_destroy(tf); in main()
/third_party/ffmpeg/tools/python/
H A Dtf_sess_config.py21 import tensorflow as tf namespace
28 gpu_options = tf.compat.v1.GPUOptions(
33 config = tf.compat.v1.ConfigProto(
/third_party/skia/include/third_party/skcms/
H A Dskcms.h79 static inline bool skcms_TransferFunction_makePQ(skcms_TransferFunction* tf) { in skcms_TransferFunction_makePQ() argument
80 return skcms_TransferFunction_makePQish(tf, -107/128.0f, 1.0f, 32/2523.0f in skcms_TransferFunction_makePQ()
84 static inline bool skcms_TransferFunction_makeHLG(skcms_TransferFunction* tf) { in skcms_TransferFunction_makeHLG() argument
85 return skcms_TransferFunction_makeHLGish(tf, 2.0f, 2.0f in skcms_TransferFunction_makeHLG()
311 // We always store any alpha channel linearly. In the chart below, tf-1() is the inverse
323 // tf-1(r), tf-1(g), tf-1(b), 1.0
325 // tf-1(r), tf
387 skcms_SetTransferFunction(skcms_ICCProfile* p, const skcms_TransferFunction* tf) skcms_SetTransferFunction() argument
[all...]
/third_party/musl/src/network/
H A Dgetaddrinfo.c64 int tf[2] = { AF_INET, AF_INET6 }; in getaddrinfo() local
68 if (family==tf[1-i]) continue; in getaddrinfo()
69 int s = socket(tf[i], SOCK_CLOEXEC|SOCK_DGRAM, in getaddrinfo()
92 if (family == tf[i]) return EAI_NONAME; in getaddrinfo()
93 family = tf[1-i]; in getaddrinfo()
/third_party/skia/dm/
H A DDM.cpp1295 skcms_TransferFunction tf; in identify_transfer_fn() local
1296 cs->transferFn(&tf); in identify_transfer_fn()
1297 switch (classify_transfer_fn(tf)) { in identify_transfer_fn()
1299 if (tf.a == 1 && tf.b == 0 && tf.c == 0 && tf.d == 0 && tf.e == 0 && tf.f == 0) { in identify_transfer_fn()
1300 return SkStringPrintf("gamma %.3g", tf in identify_transfer_fn()
[all...]
/third_party/skia/third_party/externals/swiftshader/tests/regres/cov/
H A Dtree.go114 tf, ok := t.files[file.Path]
116 tf = newTreeFile()
117 t.files[file.Path] = tf
121 tf.allSpans.Add(span)
124 tf.allSpans.Add(span)
131 tcm, test := tf.tcm, t.testRoot
174 func (t *Tree) allSpans(tf *treeFile, tcm TestCoverageMap) SpanSet {
177 for id := tc.Group; id != nil; id = tf.spangroups[*id].Extend {
178 group := tf.spangroups[*id]
183 spans = spans.addAll(spans.invertAll(t.allSpans(tf, t
[all...]
/third_party/skia/src/ports/
H A DSkFontMgr_custom.cpp173 sk_sp<SkTypeface> tf(set->matchStyle(SkFontStyle(SkFontStyle::kNormal_Weight,
176 if (nullptr == tf) {
264 sk_sp<SkTypeface> tf;
267 tf.reset(this->onMatchFamilyStyle(familyName, style));
270 if (nullptr == tf) {
271 tf.reset(fDefaultFamily->matchStyle(style));
274 return tf;
/third_party/vk-gl-cts/external/openglcts/modules/common/
H A DglcPackedDepthStencilTests.cpp292 BaseTest(deqp::Context& context, const TypeFormat& tf);
347 BaseTest::BaseTest(deqp::Context& context, const TypeFormat& tf) in BaseTest() argument
348 : deqp::TestCase(context, tf.formatName, "") in BaseTest()
361 , m_typeFormat(tf) in BaseTest()
1287 ValidateErrorsTest(deqp::Context& context, const TypeFormat& tf);
1296 ValidateErrorsTest::ValidateErrorsTest(deqp::Context& context, const TypeFormat& tf) : BaseTest(context, tf) in ValidateErrorsTest() argument
1568 VerifyReadPixelsTest(deqp::Context& context, const TypeFormat& tf);
1574 VerifyReadPixelsTest::VerifyReadPixelsTest(deqp::Context& context, const TypeFormat& tf) : BaseTest(context, tf) in VerifyReadPixelsTest() argument
1642 VerifyGetTexImageTest(deqp::Context& context, const TypeFormat& tf) VerifyGetTexImageTest() argument
1685 VerifyCopyTexImageTest(deqp::Context& context, const TypeFormat& tf) VerifyCopyTexImageTest() argument
1783 VerifyPartialAttachmentsTest(deqp::Context& context, const TypeFormat& tf) VerifyPartialAttachmentsTest() argument
1947 VerifyMixedAttachmentsTest(deqp::Context& context, const TypeFormat& tf) VerifyMixedAttachmentsTest() argument
2105 VerifyParametersTest(deqp::Context& context, const TypeFormat& tf) VerifyParametersTest() argument
2184 RenderbuffersTest(deqp::Context& context, const TypeFormat& tf) RenderbuffersTest() argument
2251 StencilSizeTest(deqp::Context& context, const TypeFormat& tf) StencilSizeTest() argument
2327 ClearBufferTest(deqp::Context& context, const TypeFormat& tf) ClearBufferTest() argument
2457 BlitTest(deqp::Context& context, const TypeFormat& tf) BlitTest() argument
2616 StencilTexturingTest(deqp::Context& context, const TypeFormat& tf) StencilTexturingTest() argument
[all...]

Completed in 16 milliseconds

12345678