Hermet Park
af002df5ff
tvg_saver: optimize binary format.
...
Skip to save transform data by accumulating them through the scene tree,
and then applying the final transform to the path points.
Assume that each transform have 36 bytes, it could be increased linear to paints node count
if every paints has transform in the worst case.
Fudamentally, this save their memory and only remains to Bitmap Pictures,
also helps to reduce the loading/rendering workloads since
it doesn't need to perform any transform jobs after converting.
2021-08-07 12:00:31 +09:00
Hermet Park
5e52134e2a
dexample Picture: improve the test coverage.
...
In this patch, it replaced the test images with Lenna.
and fix the wrong jpeg file size figuring.
2021-07-30 12:09:59 +09:00
Hermet Park
e59ba67b7c
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
2021-07-30 10:35:30 +09:00
Hermet Park
87c6ce1f7c
tvg_format: save/restore default view size in the data.
...
current bounding box of the paint is the default view size...
Do we have any better information of that?
2021-07-29 15:51:00 +09:00
Hermet Park
30ebf35c13
tvg_saver: fix the invalid data size.
...
sizeof(colors) indicates its pointer size, we actually intended to the structure size.
2021-07-26 16:18:37 +09:00
Hermet Park
87d00b4121
tvg format: code refactoring #10
...
keep neat & clean code,
revise to tvg style naming convention.
2021-07-21 13:59:57 +09:00
Hermet Park
bccb1d29e3
examples: split Tvg to TvgSaver, PictureTvg
...
We'd like to clearly split showcases TvgSaver & Picture.
2021-07-20 14:10:05 +09:00
Hermet Park
8059a23f7c
tvg format: code refactoring #2
...
code clean up, removed reserved data sector
2021-07-20 12:53:16 +09:00
Hermet Park
60e3129ce2
common saver: change to instance based for future sync/async behavior.
...
reserve sync() method TODO
2021-07-19 20:32:31 +09:00
Hermet Park
94eeb92dbe
infra: seprate test image resources from the examples.
...
change for removing dependency.
2021-07-19 14:43:26 +09:00
Michal Maciola
1c30bb391f
example: logo_test.svg ( #617 )
...
Manually created svg with edited logo.svg that test most of the svg tags
and attributes
2021-07-14 13:57:32 +02:00
Michal Maciola
cc71ff43e5
example svg: 'image-embeded.svg' added fix #2
...
Chenaged indent to tabs
2021-07-09 17:44:00 +09:00
Michal Maciola
9ea99e90e2
example svg: 'image-embeded.svg' added fix #1
...
Added png image with composition applied
2021-07-09 17:44:00 +09:00
Michal Maciola
f0815934d8
example svg: 'image-embeded.svg' added
2021-07-09 17:44:00 +09:00
Michal Maciola
957ad5d017
example: PictureJpg.cpp
...
Created an example for testing jpg loading
2021-07-08 23:17:05 +09:00
Hermet Park
58fefeb05f
examples tvg: clean up for tvg consistency.
...
no logical changes.
2021-06-11 12:58:15 +09:00
mmaciola
2c1f165f19
TVG Loader/Saver module: tvg loader example
2021-06-11 12:51:35 +09:00
Hermet Park
2401495c47
examples: updated svg samples
2021-06-10 11:59:45 +09:00
Hermet Park
6cc7dfdc56
examples: revise picture sample code.
2021-04-01 20:05:07 +09:00
Mateusz Palkowski
ac3e848cfe
minor fixes
2021-04-01 19:38:30 +09:00
Hermet Park
0faea8a9ab
examples: clean up mask resources.
...
These are not proper for our svg examples.
2021-03-15 19:19:54 +09:00
Patryk Kaczmarek
6e59116137
example: AnimateMask images change
...
Change-Id: Iacd407c3e186f1f91c2bcbd9099f0b83a9dba264
2021-03-09 14:39:56 +09:00
Hermet Park
e64ff980b0
examples images: correct file change mode.
...
For consistency, thorvg keeps file chmod => 664.
2021-02-25 19:14:23 +09:00
Patryk Kaczmarek
03d48159e3
examples: new AnimateMask example and svg images with masks
...
Change-Id: I609597a5ecb710e9af9939a3028eeef691b66188
2021-02-25 12:24:19 +09:00
Hermet Park
1523446a20
examples Svg: replace a few example svgs.
2020-12-10 19:53:40 +09:00
JunsuChoi
e00f948705
raw_loader Loader: Introduce Raw image loader
...
Add RawLoader class that loads and display raw images,
and adds a Rasterizer for image data.
Image data can be loaded via picture.
Loaded image supports Composition, Transformation and Alpha blending.
New API
Result load(uint32_t* data, uint32_t width, uint32_t height, bool isCopy) noexcept;
2020-11-23 18:12:36 +09:00