Jinny You
2c6c8d3b21
updated copyright date ( #1866 )
2023-12-28 10:43:25 +09:00
Hermet Park
5d32cf1e3b
loader/svg: ++optimization
...
share the image data to bypass the need for multiple bitmap memory copies.
2023-08-22 13:29:49 +09:00
Hermet Park
e7d29e166b
loaders: unify duplicated b64 decoders.
...
- move the svg/lottie b64 decoders to tvgLzw.
- renames tvgLzw -> tvgCompressor
2023-08-17 21:28:58 +09:00
Mira Grudzinska
480917651a
utils: custom strtof and strndup moved into utils
...
The custom implementations of 'strtof' and 'strndup'
present in the svg loader have been moved into a new
'utils' directory (strToFloat and strDuplicate, respectively).
2023-08-05 11:49:36 +09:00
Hermet Park
de6df1fb21
loader svg: --compiler warning
...
warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
2023-07-26 00:46:30 +09:00
Mira Grudzinska
de41853bcf
svg_loader: custom strndup moved into utils
...
The custom _strndup was used only in one file
as an internal function and wasn't accessible
in other parts of the code. Now function
is available as svgUtilStrndup.
2023-07-26 00:21:56 +09:00
Mira Grudzinska
b0991b6ce7
svg_loader: fixing 'infinity' handling in svgUtilStrtof
...
The word 'infinity' was not read to the end due to
the pointer shifting.
2023-04-24 10:47:17 +09:00
Hermet Park
9b3c34c3b1
updated copyright.
2023-01-14 13:48:11 +09:00
JunsuChoi
1769e1c4af
common Util: Move to before decimal part calculation
2022-12-14 10:42:27 +09:00
JunsuChoi
439c918553
common Util: Skip if there is a space after the dot
...
Some SVG parsers allow parsing of "0."
If there is a space after the dot, skip to the next step.
2022-12-14 10:42:27 +09:00
Rémi Verschelde
0c6c37b616
build: Add missing <cstring> includes for MinGW compatibility
2022-01-19 16:40:30 +09:00
Hermet Park
f0141e63de
updated copyright date.
2022-01-12 14:08:48 +09:00
Hermet Park
a3ecff9504
svg_loader util: fix the floating constant truncated to zero issue.
...
fyi, the minimum value of the float is 1.175494351 E-38
@Issue: https://github.com/Samsung/thorvg/issues/899
2021-10-15 15:20:01 +09:00
Michal Maciola
e186bb4a82
svg_loader util: fix missing quot
...
There was checking for 0 ('\0') that should be checking for '0'
2021-10-15 02:04:17 +09:00
Hermet Park
d9f421ff4a
svg_loader util: just fix a typo
...
exponet -> exponent
2021-10-13 20:12:51 +09:00
Hermet Park
5a6240bdf3
svg_loader util: code refactoring
...
fix for thorvg coding convention.
no logical changes.
2021-10-13 20:07:08 +09:00
projectitis
dad6c71b6c
all: fix warnings on MSVC
...
* Explicit casts to suppress warnings
* Fixed compiler warnings
2021-10-09 11:33:45 +09:00
Michal Maciola
30a3d442b9
svg_loader: image tag: fixed utf8 decode
...
Fixed svgUtilURLDecode function.
Deleted snippet was not needed and it broken decoding when space.
2021-07-14 10:08:15 +09:00
JunsuChoi
bbc0fbb130
svg_loader SvgUtil: Move nullcheck to before use
...
prevent invalid access
2021-07-12 13:37:42 +09:00
Michal Maciola
31f45fbd5f
svg_loader: <image> tag introduced fix #9
...
Fixed Base64 and utf8 for new line and whitespace
Changed tvgSvgLoaderCommon.h to single line convention
2021-07-09 12:04:29 +09:00
Michal Maciola
48bc30e70a
svg_loader: <image> tag introduced fix #7
...
fixed auto and new lines in tvgSvgUtil.cpp
2021-07-09 12:04:29 +09:00
Michal Maciola
80fa97d366
svg_loader: <image> tag introduced
...
This patch introduces embeded <image> tag for svg files.
Images can be now loaded from local path or using data URI Scheme (RFC2397).
Base64 and utf8/uri are welcome.
@issue: #518
2021-07-09 12:04:29 +09:00
Hermet Park
6a79d2c06e
svg_loader: fix the inifite loop bug when size has 'em' unit.
...
svg may have 'em' unit for fonts, strtof() must handle this case to not
drop in the infinite loop.
Yet thorvg doesn't support font feature in svg,
it must multiply values with font size if those values have 'em' size.
@Issue: https://github.com/Samsung/thorvg/issues/488
2021-06-30 11:27:31 +09:00
Hermet Park
e1ebcf6153
loaders svg: code refactoring
...
split functions as its purpose.
2021-04-21 11:12:22 +09:00