tvg_format: optimize data format
authorHermet Park <chuneon.park@samsung.com>
Thu, 29 Jul 2021 11:25:49 +0000 (20:25 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Mon, 2 Aug 2021 03:25:14 +0000 (12:25 +0900)
commit419f64e29e62bee651906bc4ff9f9a135da805eb
tree25b1d72df70215207a2d8e1b57e11e08e13527ea
parent58b85737849f59f5f6ba76ccf44c2fad0848a3f5
tvg_format: optimize data format

This reduces tvg binary format size by converting PathCommand to more compact size.

This optimization increase +12% compress rate with our example:

195,668 => 174,071 (sum of all converted tvgs from svgs)

@Issues: https://github.com/Samsung/thorvg/issues/639
src/examples/images/test.tvg
src/loaders/tvg/tvgTvgLoadParser.cpp
src/savers/tvg/tvgTvgSaver.cpp