summaryrefslogtreecommitdiff
path: root/src/lib/emile (follow)
AgeCommit message (Collapse)Author
2018-10-31emile - fix windows buildVincent Torri
use evil and fix libjpeg boolean re-def.
2018-10-02here comes mesonMarcel Hollerbach
a new shiny buildtool that currently completes in the total of ~ 4 min.. 1 min. conf time 2:30 min. build time Where autotools takes: 1:50 min. conf time 3:40 min. build time. meson was taken because it went quite good for enlightenment, and is a traction gaining system that is also used by other mayor projects. Additionally, the DSL that is defined my meson makes the configuration of the builds a lot easier to read. Further informations can be gathered from the README.meson Right now, bindings & windows support are missing. It is highly recommented to use meson 0.48 due to optimizations in meson that reduced the time the meson call would need. Co-authored-by: Mike Blumenkrantz <zmike@samsung.com> Differential Revision: https://phab.enlightenment.org/D7012 Depends on D7011
2018-07-18emile image: close file properly.Hermet Park
@fix
2018-04-05emil: resolve possible memory leak.Hermet Park
Submitted-By-Off: JongMin Lee <jm105.lee@samsung.com>
2018-01-18all: Simplify definition of EAPIVincent Torri
This will help in the transition from Autotools to Meson. This has been tested on Windows for which EFL_XXX_BUILD were first introduced.
2017-10-09emile: comparing less than zero with unsigned interger.Subodh Kumar
Summary: Unsigned integer should not be compared to less than zero. @fix Reviewers: cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5270 Signed-off-by: Cedric Bail <cedric@osg.samsung.com>
2017-09-27emile: unmap the memory for image file after decode.jiin.moon
Summary: In case of emile, unmap the memory of the image file when the image file is closing. But closing of image file happen when the image is flushed from the cache, so the mapped memory of image file remain for long period of time with no benefit (If it is in cache, it won't get decoded again). So I think we don't need to keep the mapped memory of image file. Test Plan: self Reviewers: cedric, jpeg, jypark Reviewed By: cedric Differential Revision: https://phab.enlightenment.org/D5210 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2017-09-22EFL For WIN32: Replace HAVE_EVIL define with _WIN32Vincent 'vtorri' Torri
2017-06-05emile: SSL state should fallthrough to avoid duplication of logic.Cedric BAIL
2017-06-05emile: fallthrough is legal here as we handle fallback case when caller ↵Cedric BAIL
doesn't know about GRY8.
2017-04-06emile_image: add error handling code for ifd_offset valueJaeun Choi
Signed-off-by: JEONGHYUN YUN <jh0506.yun@samsung.com>
2017-02-27emile: rename emile_image_register to emile_image_callback_set.Cedric BAIL
This fix ABI report according to discussion on the mailing list.
2017-02-07emile: don't use APIs deprecated in openssl-1.1Hosang Kim
Summary: When openssl-1.1.0 is built with `--api=1.1 disable-deprecated`, use of deprecated APIs leads to build failures. X-Gentoo-Bug: 606628 X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=606628 Subscribers: cedric, jpeg Tags: #efl Differential Revision: https://phab.enlightenment.org/D4616 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2017-02-01cmake: handle 'FindXXX.cmake' standard with 'find-XXX' libraries.Gustavo Sverzut Barbieri
One can use virtual 'find-XXX' entries in LIBRARIES or PUBLIC_LIBRARIES to use XXX_LIBRARIES and XXX_INCLUDE_DIR.
2017-02-01cmake: emile is depending on eflMarcel Hollerbach
there is some .eot.h file included from the efl interfaces, so we need a dependency here
2017-02-01cmake: use the jpeg module of cmake to find the libraryMarcel Hollerbach
finding libjpeg can be a bit more complex, there are systems that are not delivering a .pc for it. So we should just use the cmake module to find it.
2017-01-27cmake: add EFL_SUPPORT_LIB() and simplify/speedup its usage.Gustavo Sverzut Barbieri
generate a static library for src/static_libs and use that as LIBRARIES for the actual library, for those such as rg_etc that are used multiple times will even speed up the final build by compiling only once. Although not used, they can be made into shared libraries that would go inside /usr/lib/efl/support/v-1.19/libname.so
2017-01-26cmake: add emile and EFL_OPTION_BACKEND()Gustavo Sverzut Barbieri
Add emile and with that EFL_OPTION_BACKEND() to support choosing among different backends for something, in emile's case it's crypto backend (gnutls, openssl or none).
2017-01-04openssl 1.1 build break fixesCarsten Haitzler (Rasterman)
this fixes building against openssl 1.1 since it broke api in various ways by hiding structs and deprecating api's (this causes warnings not breaks unlike the struct hiding). this adapts to these changes and makes efl build again. @fix
2016-12-15emile: refactor color convertion/copy logic in jpeg data decoder.Cedric BAIL
2016-12-15emile: reduce the amount of clobbered variable.Cedric BAIL
2016-12-07emile_image: fix possible segmentation fault in AGRY88Sungtaek Hong
Summary: - ptrag is set NULL and is allocated only when prop is rotated. but *ptrag = 0xFF00 | ptr[0]; without checking rotation. Reviewers: jpeg, cedric, Hermet Reviewed By: Hermet Subscribers: conr2d Differential Revision: https://phab.enlightenment.org/D4463
2016-12-06emile: add infrastructure for callback to request what to do with image.Cedric BAIL
First use of this infrastructure is to make JPEG decoding interruptible.
2016-12-05emile: do not rely on the struct sizeMarcel Hollerbach
Summary: in newer versions of openssl, most of the public structures are made opaque. So we should use the openssl api to allocate this structure. Since ctx is now a pointer we dont need opened anymore, so those vars are replaced with ctx checks. ctx is always NULL'ed after a free fix T4923 Reviewers: cedric, jpeg, stefan_schmidt Reviewed By: jpeg, stefan_schmidt Subscribers: stefan_schmidt, ManMower, jpeg Maniphest Tasks: T4923 Differential Revision: https://phab.enlightenment.org/D4456
2016-10-17Emile: use stronger ssl cipherSimon Lees
Follows on from 356a1aa87a04a8d1c43e01fa861270d0947069c0 emile didn't exist when this work was done originally
2016-09-21emile: fix typos.Cedric BAIL
2016-08-30emile: API break, rename sha1 to hmac_sha1, introduce real sha1.Gustavo Sverzut Barbieri
emile_binbuf_sha1() was actually doing HMAC version using the given key. This doesn't work when all you need is just the SHA1 of the input data. Then rename emile_binbuf_sha1() to emile_binbuf_hmac_sha1() and introduce a new version without key/keylen. This API was marked as BETA and no real users in the codebase, then it shouldn't cause us problems.
2016-08-19emile: fix jpeg loader broken with orientationjiin.moon
Summary: After applying a patch regarding region, side-effect detected. Fixes T4390 Test Plan: make check Reviewers: jpeg, cedric, jypark Maniphest Tasks: T4390 Differential Revision: https://phab.enlightenment.org/D4245
2016-08-17evas: Fix region test in jpeg load with region + zoomJean-Philippe Andre
The previous commit exposed an issue with the region test does not take into account the scale down factor. Not a @fix in itself, as it depends on the previous patch.
2016-08-17emile: region_set does not working in jpeg loader if scale_down has setjiin.moon
Summary: If both region and scale_down has set, ERR would be returned by loader of jpeg. @fix Test Plan: sample code Reviewers: raster, jypark, cedric, jpeg Differential Revision: https://phab.enlightenment.org/D4200
2016-08-01autotools: since it has been broken for some times and nobody noticed, let's ↵Cedric BAIL
remove per directory support.
2016-05-31emile: fix build warning of Emile_Image.JunsuChoi
Summary: initialized structure 'opts_region' for uninitialized build warning Test Plan: N/A Reviewers: raster, woohyun, cedric Reviewed By: cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D3993 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2016-04-14emile: make it possible to build the library alone.Cedric BAIL
2016-03-28Emile: Move colorspaces to Efl.GfxJean-Philippe Andre
A small hack to the toolchain allows us to generate enums with eolian for use by Eet and Emile (internal or otherwise non-eo libraries). Thanks to how BUILT_SOURCES works, the eo.h files required by Emile will be generated before they are used. This adds a partial dependency on eo for eet and emile: - package dependency - include dependency There is no library link dependency.
2016-01-07emile: move all eina_str_base64 to emile_base64.Cedric BAIL
2015-11-11ecore_con: remove last occurence of EMILE_SSLv3Vincent Torri
This fixes compilation on Windows @fix Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-11-09emile: deprecate the use of SSLv3 with GNUTLS backend to.Cedric BAIL
2015-11-02emile/ecore_con: drop SSLv3 support due to security issue.Cedric BAIL
SSLv3 has been compromised a year ago by what is known as POODLE (https://en.wikipedia.org/wiki/POODLE). Every major browser have now dropped support for SSLv3 and distribution are starting to do so also. It is a good timing for us to do so, especially as it breaks build on some distribution.
2015-10-29Eet: fix decoding of embedded ETC imagesJean-Philippe Andre
Typos, lack of NULL check, excessive sizeof(type) not matching the object type, no border set, etc... This all lead to a crash and then no render (with an error message and then without...). This also simplifies the implicit loading of ETC1 as ETC2 when supported by the driver. @fix
2015-10-29Emile: Allow load of ETC images if region = whole imageJean-Philippe Andre
@fix
2015-10-22emile: fix typos catched by coverity.Cedric BAIL
CID1328666
2015-10-22emile: handling memory leak on realloc.Srivardhan Hebbar
Summary: Signed-off-by: Srivardhan Hebbar <sri.hebbar@samsung.com> Reviewers: cedric Differential Revision: https://phab.enlightenment.org/D3210 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-10-22emile: prevent segv when rotation is asked and there is no opts provided.Cedric BAIL
Thanks Vivek for pointing the problem. @fix
2015-10-21emile: remove dead codeStefan Schmidt
This seems to come from some intention to fetch dh from openssl somewhow but it was never implemented. fh always stays 0 since its init and thus we can remove the code it guards. CID: 1288930
2015-09-21emile: fix can not check ifd offset of jpeg in MM(little endian) formatjiin.moon
IFD offset is 4 byte. But just one byte is checked for it in previous patch. Reviewers: Hermet, jypark, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3053 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-29emile jpeg: more descriptive comment.ChunEon Park
2015-08-29emile: fix can not parsing the EXIF info of the jpeg file which has IFD offsetjiin.moon
Summary: IFD offset of jpeg is not fixed. But emile support only 0x8 on now Reviewers: jypark, cedric, Hermet Reviewed By: Hermet Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3000
2015-06-08emile: Init ptrag as it might get used uninitialized if notStefan Schmidt
lib/emile/emile_image.c:2099:49: warning: 'ptrag' may be used uninitialized in this function [-Wmaybe-uninitialized]
2015-06-03emile: fix region load for jpeg image with orientation different set.jiin.moon
Summary: If you try to load the jpeg image with an orientation mode defined using elm_photocam, you can see the broken image(in canse of 90 degree) or even segmentation fault can happen (in case of 180,270 degree) @fix Test Plan: photocam menu on elementary_test Reviewers: Hermet, cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2593 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-05-07emile: remove the need to order the header correctly for Windows.Cedric BAIL