Make method to get VisualUrl shorter. Let we allow to get only the last 20 character of URL name when we don't need to print full URL. Change-Id: Id7203bff84fdf61a7950cec1c79ebce48b1a9a43 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
(Vector) Support EncodedImageBuffer can use for vector image Support to append extension when we use imagetype For example, if EncodedImageBuffer has VECTOR_IMAGE type, we will generate url "enbuf://3.svg" So we can use it directly by ImageView -> SvgVisual And also, let we support Remote animated vector image. (Since we can load animated vector image by raw buffer.) Change-Id: I09fd214021507cd8d29bbd3c3720d4427f5eedd7 Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
Minor coverity issue fixes Fix some minor coverity issues that might has meanful 1. Implement missing move operation. 2. Remove float equal checks by ==, != operator. 3. Remove useless std::move. 4. Remove const keyword for function return value. 5. Resolve some value has same name. 6. Use referenced iterator so we don't copy value. 7. Remove cyclic header include (a.k.a gltf-loader.h -> scene3d-view-impl.h -> gltf-loader.h) Change-Id: I57ad541310b43413ee0d52b1f8c56a95df12bbd9 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Store VisualUrl's hash result, and reuse it When we request load of animated image visual, It will generate the image url's hash for every frame. This patch cache the VisualUrl's hash result so We don't need to re-calculate hash for the same image url. Change-Id: I637e7d2dc141f25164fb96337d76031f44c2152f Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Fix webp&gif issue 1. Change Fitting mode - animated image visual use FIT_KEEP_ASPECT_RATIO by default, but image visual use FILL. i think we need to use same fitting mode by default. 2. use npatch in webp and gif - if webp and gif use npatch, it need to be change regular type Change-Id: Ib29234e86d5d2efaa38dce9ef391a79a1065dd5d
image-view: Add tvg image format Change-Id: I17c2968badef555ffe9562cba928b379668e6894
Disconnect relationship with VisualUrl and VisualFactory When VisualFactory destory, VisualFactoryCache also destroy, and TextureManager also destory. At this time, mTextureInfoContainer clear, and TextureInfo's VisualUrl destroy. When VisualUrl destuctor called, we call VisaulFactory::Get() and try to get TextureManager. But We are now on VisualFactory's destroy called... This is why image-view-encoded-image-buffer.example make Segfault. This patch move previous VisualUrl's job to TextureManager and ImageVisual. Change-Id: Iefc6fe7f8bda6cee08fdaafded4979935cbc87a2 Signed-off-by: Eunki Hong <eunkiki.hong@samsung.com>
Generate url and load texture from encoded image buffer Make some way to load image from raw-buffer stream. This raw-buffer will alive when some actor contain this buffer. Limitation : animated-image, vector-image, animated-vector-image not working now. Will support another patch 1. Generate url from encoded raw buffer like this ImageUrl url = Toolkit::Image::GenerateUrl(const EncodedImageBuffer &); 2. When we use URL as this string, we can load it like normal LOCAL file. ImageView imageView = Toolkit::ImageView::New(url.GetUrl()); 3. Buffer will automatically removed when ImageUrl scope is out-of-date, and no actor use it. NOTE : even ImageUrl lifecycle is done, cached texture can use internally. Change-Id: I517d9526d13a6b761792dcb7054864643f209b67 Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
Add ImageUrl Class and reference count for external texture 1.Add ImageUrl Class ImageUrl is a class for wrapping url that is get from external buffer the purpose of this class is that manage this external buffer 2.Add reference count for external texturea Change-Id: I3eb0bb3280d84035db9d981ae73807847e5b74bc
Revert "visual: Implements rive animation" This reverts commit ef1f2122e3825ec5fa1d2d3b568caec69ecd3d0c. Change-Id: Iea2dcb4faf48c7af5226fc6820f207a998abdec9
visual: Implements rive animation Change-Id: I6c6db8ff53493ad164142805d2655cb34b9ce10e
Updated all cpp files to new format Change-Id: If92183926ff6584c5d05efda672b422b9dd9a322
Support WebP format - Modified animated-image-visual to support webp amimated image format - Added and removed some functions of image-cache to use rolling-animated-image-cache for the both of gif and webp - Checked whether mFrameDelayTimer is null or not for the case that Action::PLAY is entered but the system do not support animated webp Change-Id: I254c4c8e715772acb6c0725c58e64aba1a6dafc4 Signed-off-by: Seungho, Baek <sbsh.baek@samsung.com>
Add animated vector image visual Change-Id: Iefe7615251ce5185f782151ff2bd4510fd829b4c
Removed Texture Atlas for the GIF image. Added new RollingGifImageCache for animated images. Change-Id: Idda4fecb7f4c5303f459a9e6b18222fdb3c83a41
Added devel APIs to add and remove external Texture and TextureSet to texture manager Change-Id: Ieb6009e26303510172e1562ad62645c1e037679a
Add support for TEXTURE url type in VisualUrl Change-Id: I65ed858a629c17cc149996ed5e10db89e8a91ed4
Encapsulated visual URL in new VisualUrl class. The VisualUrl object encapsulates the URL string and also resolves the data type and whether the url is local or remote on creation. Change-Id: I88cfc98563799d2646bde1911a5e8e90496ffd45 Signed-off-by: David Steele <david.steele@samsung.com>