Commit Graph

7876 Commits

Author SHA1 Message Date
goksu a13ad841db
timer fix 2023-08-29 10:25:11 +03:00
goksu f3dfede62f
outliers 2023-08-18 17:42:53 +03:00
goksu 3553148174
detecting outliers 2023-08-18 02:04:38 +03:00
goksu 4bcd9711da
milli to micro 2023-08-07 15:11:28 +03:00
goksu c3254394f3
warmup iteration instead time 2023-08-07 15:07:19 +03:00
goksu d7371720b0
warmup 2023-08-03 19:08:57 +03:00
goksu fae5e8c941
little fixes 2023-08-01 17:37:55 +03:00
goksu 5025ea6e49
SOLID python and bug fixes for others 2023-07-24 23:53:12 +03:00
goksu f9775cf1ee
used ccraw 2023-07-24 22:24:33 +03:00
goksu 893d7ac6c2
compatible with other platforms 2023-07-24 10:14:46 +03:00
goksu 1fb442f6cf
compiling and linking works as demos 2023-07-20 14:51:58 +03:00
goksu e9362ecc59
linking by gcc 2023-07-14 16:18:00 +03:00
goksu 9c7800659d
python format 2023-07-12 15:16:41 +03:00
goksu 16411c0af7
cumulative time per N iterations 2023-07-12 14:51:56 +03:00
goksu 954d7c1ca5
loading in baseline and benchmark 2023-07-12 01:18:21 +03:00
goksu ceb8fab9ae
html dirs 2023-07-12 00:52:31 +03:00
goksu 1afa5619ba
html font names 2023-07-05 14:00:12 +03:00
goksu e536bca36f
rm before creation 2023-07-05 12:59:59 +03:00
goksu e3d8aee979
testing page redesigned 2023-07-04 16:48:48 +03:00
goksu 7c7322fb5e
green coloring fixed 2023-06-29 14:07:02 +03:00
goksu d9cc4478a2
cleaner id, date and branch 2023-06-20 17:42:09 +03:00
goksu cc1ad531be
parameters in use 2023-06-20 16:20:27 +03:00
goksu 36f0d7c80a
parameters and id in result page 2023-06-20 16:16:53 +03:00
goksu 46551f7ef8
-c 50 arg added 2023-06-19 22:15:55 +03:00
goksu f5713fa136
makefile fixed 2023-06-16 23:22:07 +03:00
Ahmet Göksu 79011cfffd Delete benchmark.html 2023-06-12 14:51:18 +00:00
goksu f95a2c8279
make integrated 2023-06-12 17:44:04 +03:00
goksu 93b8d39394
Revert "files optimized"
This reverts commit 0e87ae09a6.
2023-06-12 14:06:45 +03:00
goksu 0e87ae09a6
files optimized 2023-06-11 12:10:31 +03:00
goksu b0712e9a84
.ds_store excluded from .gitignore 2023-06-01 16:17:36 +03:00
goksu 9dd15018c2
ftbench demo with seperate makefile 2023-05-25 13:46:16 +03:00
suzuki toshiya 562f348192 [doc] Type1 GX (sfnt-wrapped Type1) is not supported.
* docs/formats.txt: Clarify the reference of Type1 GX,
and state that this format is not supported.  This
is because the content `TYP1' table is not exactly same
with the Type1 font format specification; no eexec
encryption is used.  For detail and concrete examples,
see the analysis on:

https://gitlab.freedesktop.org/freetype/freetype/-/issues/1231
2023-05-20 12:52:25 +00:00
Craig White 2342a03a9d Add missing end quote of a string in the example code of FT_Trace_Set_Level 2023-05-19 14:11:57 -04:00
Seigo Nonaka 115e927540 [truetype] Reduce heap allocation of `deltaSet` variation data.
`deltaSet` is an array of packed integers that can be 32 bits, 16 bits, or
8 bits.  Before this change, these values were unpacked to 32-bit integers.
However, this can cause big heap allocations, e.g., around 500 KByte for
'NotoSansCJK'.  To reduce this amount, store the packed integers and unpack
them just before passing to the calculation.  At calculation time, due to
the variable length of region indices, temporary heap allocations are
necessary.  This heap allocation is not negligible and visible in `ftbench`
results.  So, use stack-allocated arrays for short array calculations.

Fixes #1230.

* include/freetype/internal/ftmmtypes.h (GX_ItemVarDataRec): New fields
`wordDeltaCount` and `longWords`.

* src/truetype/ttgxvar.c (tt_var_load_item_variation_store): Load packed
data.
(tt_var_get_item_delta): Unpack data before applying.
2023-05-19 06:50:28 +02:00
Jouk Jansen 99dadd56a4 vms_make.com: Create shared executable for x86 version of OpenVMS. 2023-05-17 12:40:59 +02:00
Werner Lemberg 416d4c25f1 Add new load flag `FT_LOAD_NO_SVG`.
Modern color fonts often contain both an 'SVG' and 'COLR' table.  FreeType
always preferred 'SVG' over 'COLR' (this was a design decision), however,
this might not be the right choice for the user.  The new flags makes
FreeType ignore the 'SVG' table while loading a glyph.

Fixes #1229.

* include/freetype/freetype.h (FT_LOAD_NO_SVG): New macro.

* src/base/ftobjs.c (FT_Load_Glyph), src/cff/cffgload.c (cff_slot_load),
src/truetype/ttgload.c (TT_Load_Glyph): Use it.
2023-05-15 16:04:15 +02:00
Werner Lemberg 872a759b46 .mailmap: Updated. 2023-05-13 09:35:12 +02:00
Alexei Podtelezhnikov e1a4e081aa [cache] Merge functions.
* src/cache/ftccache.c (FTC_Cache_Init): Merge into...
(ftc_cache_done): ... this function, with unnecessary checks removed.
2023-05-12 22:27:08 -04:00
Alexei Podtelezhnikov 771ff8bd03 [cache] Minor casting and cosmetic updates.
* src/cache/ftcglyph.c (ftc_gcache_{init,done}): Remove casting.
(FTC_GCache_Lookup): Cosmetic variable renaming.
* src/cache/ftcsbits.c (ftc_snode_compare): Formatting.
2023-05-12 22:21:47 -04:00
Werner Lemberg 3af4772d68 * include/freetype/ftcache.h: Typo, punctuation. 2023-05-12 05:59:00 +02:00
Alexei Podtelezhnikov b07ab47b2a * include/freetype/ftcache.h: Formatted and updated. 2023-05-11 23:23:52 -04:00
suzuki toshiya 7132f5b0d1 * include/freetype/internal/t1types.h: Fix the indentation. 2023-05-12 09:49:58 +09:00
Alexei Podtelezhnikov ad708d70c9 [cache] Revise the dynamic hash table accounting.
Instead of counting entries relative to the middle of the hash table,
this switches to the absolute counter with the full index range mask.
As a result, some calculations become a bit simpler.  The cache resizing
logic stays largely the same.

* src/cache/ftccache.h (FTC_NODE_TOP_FOR_HASH): Revised with new counter.
* src/cache/ftccache.c (ftc_get_top_node_for_hash): Ditto.
(ftc_cache_resize): Simplify reallocations and stop their zeroing.
(ftc_cache_init): Stop over-allocating but keep zeroing initially.
(FTC_Cache_Clear, FTC_Cache_RemoveFaceID): Updated accordingly.
2023-05-11 21:44:31 +00:00
suzuki toshiya 6ca0a9356f [t1cid] Set FT_FACE_FLAG_CID_KEYED.
* cidobjs.c (cid_face_init): Set FT_FACE_FLAG_CID_KEYED.

* cidriver.c (cid_get_is_cid): Comment about the case that
is_cid cannot guarantee the glyph collection specification.
2023-05-11 14:31:23 +00:00
Jouk Jansen c3876354e5 * src/smooth/ftgrays.c (FT_SSE2): Don't define for VMS. 2023-05-09 07:15:53 +02:00
Werner Lemberg e02a40a4f8 * src/cff/cffdrivr.c (cff_glyph_load): Fix guard for `size`.
This was forgotten to change in commit 2b54eba36b (in May 2004).

Reported as

  https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=58739
2023-05-08 20:12:26 +02:00
Werner Lemberg 5edd6d52b1 Minor compiler warning fixes.
* src/autofit/afcjk.c (af_cjk_get_standard_widths), src/autofit/aflatin.c
(af_latin_get_standard_widths): Use `FT_CALLBACK_DEF`.

* src/cff/cffparse.c (cff_parser_run): Initialize and fix allocation of `q`.
2023-05-08 07:22:59 +02:00
Werner Lemberg bd37b84718 * src/psaux/t1cmap.c: Signature fixes. 2023-05-08 06:46:55 +02:00
Werner Lemberg 968fc281ac * src/bzip2/ftbzip2.c: Signature fixes. 2023-05-08 06:26:43 +02:00
Werner Lemberg d52166ae9d [cache] Signature fixes.
* src/cache/ftcglyph.c, src/cache/ftcglyph.h (FTC_GNode_Compare): Remove
redundant function.  It is equivalent to `ftc_gnode_compare` and becomes
completely meaningless with fixed signatures.
Update all callers.

* src/cache/ftcsbits.c, src/cache/ftcsbits.h (FTC_SNode_Compare): Remove
redundant function.  It is equivalent to `ftc_snode_compare` and becomes
completely meaningless with fixed signatures.
Update all callers.
2023-05-08 06:21:16 +02:00