platform/upstream/efl.git
10 years agoEvas filters: Implement color curves filter
Jean-Philippe Andre [Mon, 9 Dec 2013 07:32:38 +0000 (16:32 +0900)]
Evas filters: Implement color curves filter

Color curves are a very simple tool to alter the colors of an image,
on a per-pixel basis. This implementation will simply map each pixel
to a 256 bytes buffer, provided by the application.

NOTE: There are no convenience functions yet for easy curve
generation, but this is the plan (give point A, B, B and interpolate
between them to generate the 256 values array).

10 years agoEvas filters: Implement blur functions
Jean-Philippe Andre [Mon, 9 Dec 2013 07:26:02 +0000 (16:26 +0900)]
Evas filters: Implement blur functions

Currently supported:
- Box blur for Alpha and RGBA
- Gaussian blur for Alpha and RGBA

Motion blur is not implemented.

These effects are SLOW. Gaussian blur is based on a true gaussian
curve for small radii, or a sine-based approximation.
The true gaussian might need to be removed for consistency, since
it gives slightly different results from the sine one (less blur).

It is not possible to mix Alpha and RGBA surfaces in this filter.

10 years agoEvas filters: Implement other masking functions
Jean-Philippe Andre [Mon, 9 Dec 2013 07:23:58 +0000 (16:23 +0900)]
Evas filters: Implement other masking functions

These functions differ from normal blending as they will use
a mask on top of input and output buffers.
So, basically they blend input+mask into a third buffer output.

If output is RGBA then mask or input MUST be RGBA.

10 years agoEvas filters: Implement blend functions
Jean-Philippe Andre [Mon, 9 Dec 2013 07:20:48 +0000 (16:20 +0900)]
Evas filters: Implement blend functions

Currently, blending supports the following:
- Alpha --> Alpha (simple alpha masking)
- Alpha + Color --> RGBA (same as mask)
- RGBA --> RGBA (normal blend)
- RGBA --> Alpha (desaturate using A=(R+G+B)/3)

10 years agoEvas filters: Import main implementation file
Jean-Philippe Andre [Mon, 9 Dec 2013 06:57:50 +0000 (15:57 +0900)]
Evas filters: Import main implementation file

evas_filter.c contains the entry points for the evas filters subsystem,
in particular, the filter API, the (yet very basic) buffer management
system, the command queue and main context handling functions.

Right now, the Evas engine is left untouched, so these implementations
will work ONLY in the software engine.

NOTE: This will not compile on its own (thus, not added to Makefile.am),
as it will require the filter implementations to be linked.

10 years agoEvas filters: Import main header file
Jean-Philippe Andre [Mon, 9 Dec 2013 06:54:48 +0000 (15:54 +0900)]
Evas filters: Import main header file

evas_filter.h contains the API declarations for the internal
Evas Filter module: enums, functions and some documentation.

10 years agoecore-x xpresent - fix build if you DONT have xpresent there.
Carsten Haitzler (Rasterman) [Fri, 7 Feb 2014 08:10:41 +0000 (17:10 +0900)]
ecore-x xpresent - fix build if you DONT have xpresent there.

10 years agoecore_x: added @since comment about ecore_x_e_illume_window_state_send
Doyoun Kang [Fri, 7 Feb 2014 08:06:22 +0000 (17:06 +0900)]
ecore_x: added @since comment about ecore_x_e_illume_window_state_send

Reviewers: seoz

CC: zmike, cedric, raster
Differential Revision: https://phab.enlightenment.org/D526

10 years agoEvas fonts: Pass RGBA_Image instead of DATA32 buffer
Jean-Philippe Andre [Wed, 15 Jan 2014 09:18:16 +0000 (18:18 +0900)]
Evas fonts: Pass RGBA_Image instead of DATA32 buffer

Since we want to be able to draw to alpha buffers, it's
easier if we pass the whole image struct instead of just
the data pointer.

10 years agoEvas text utils: Check syntax in color parse
Jean-Philippe Andre [Mon, 30 Dec 2013 09:13:32 +0000 (18:13 +0900)]
Evas text utils: Check syntax in color parse

If the color string is not correct (ie. not #RRGGBBAA, #RGBA, #RGB, #RRGGBB),
return an error.

10 years agoEvas: Move _format_color_parse to common file
Jean-Philippe Andre [Mon, 30 Dec 2013 09:07:15 +0000 (18:07 +0900)]
Evas: Move _format_color_parse to common file

This (simple) code should be shared between Textblock and Filters.

10 years agoEvas: Add support for Alpha buffers
Jean-Philippe Andre [Mon, 9 Dec 2013 05:46:12 +0000 (14:46 +0900)]
Evas: Add support for Alpha buffers

Evas is an RGBA only engine, BUT we also use some alpha masks,
especially in the font rendering pipeline.
This commit adds basic support for alpha buffer operations
(blend and copy).

RGBA_Image can then point to either alpha-only data, if
its colorspace is grey.

10 years agoecore_x: Add ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_OVER.
Jaehwan Kim [Fri, 7 Feb 2014 05:21:40 +0000 (14:21 +0900)]
ecore_x: Add ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_OVER.

This Atom is for accessibility.
In the touch screen, when the finger moves continuously, it is uesd.

10 years agoevas/common - code refactoring.
ChunEon Park [Fri, 7 Feb 2014 04:39:11 +0000 (13:39 +0900)]
evas/common - code refactoring.

tiny change for readibility.

10 years agoecore_x: Added API - ecore_x_e_illume_window_state_send
Doyoun Kang [Fri, 7 Feb 2014 04:05:00 +0000 (13:05 +0900)]
ecore_x: Added API - ecore_x_e_illume_window_state_send

Summary:
there exists ecore_x_e_illume_window_state_set and ecore_x_e_illume_window_state_get,
but no ecore_x_e_illume_window_state_send.

Reviewers: raster, seoz, cedric

Reviewed By: seoz

CC: cedric, seoz
Differential Revision: https://phab.enlightenment.org/D512

10 years agoautotools: use libevil libdl implementation.
Vincent Torri [Fri, 7 Feb 2014 03:56:37 +0000 (12:56 +0900)]
autotools: use libevil libdl implementation.

Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
10 years agoevas: gl backend - ensure eng_window_use in image_content_hint_set
Wonsik Jung [Fri, 7 Feb 2014 03:17:59 +0000 (12:17 +0900)]
evas: gl backend - ensure eng_window_use in image_content_hint_set

Summary: Ensure eng_window_use in image_content_hint_set

Test Plan:
1. make native OpenGLES application.
2. set evas object image  with evas_object_image_native_surface_set.
3. GLES Application try to call eglMakeCurrent with own eglContext, then resize evas object resize

Reviewers: Hermet, raster, cedric

Reviewed By: cedric

CC: cedric, seoz
Differential Revision: https://phab.enlightenment.org/D523

Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
10 years agoedje: edje_calc - fix deffect by find the part description when 'approximate' is...
Vyacheslav Reutskiy [Fri, 7 Feb 2014 03:16:01 +0000 (12:16 +0900)]
edje: edje_calc - fix deffect by find the part description when 'approximate' is EINA_FALSE

Reviewers: cedric, raster, seoz

Reviewed By: cedric

CC: cedric
Differential Revision: https://phab.enlightenment.org/D495

Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
10 years agoEvas font: Change font fallback to not depend on fontconfig >= 2.11.
Tom Hacohen [Wed, 5 Feb 2014 13:54:41 +0000 (13:54 +0000)]
Evas font: Change font fallback to not depend on fontconfig >= 2.11.

Apparently, it was available for quite a while. It's just a case of confusing documentation
that made me think the minimum version is 2.11.

10 years agoEvas textblock: Improved error messages when detecting errors in markup.
Tom Hacohen [Wed, 5 Feb 2014 13:51:22 +0000 (13:51 +0000)]
Evas textblock: Improved error messages when detecting errors in markup.

10 years agoevas: textblock - Added Null checking in evas_textblock_text_markup_to_utf8 before...
Youngbok Shin [Wed, 5 Feb 2014 13:23:55 +0000 (13:23 +0000)]
evas: textblock - Added Null checking in evas_textblock_text_markup_to_utf8 before calling eina_strbuf_append_length API.

Summary:
When input string has non-finished markup tags or escaped tags,
eina_strbuf_append_length is called with Null string.
There is a Null checking in eina_strbuf_* API, but it will print error message when input string is Null.
Strictly speaking, *_markup_to_utf8 API could be used with any kind of input string.
So, we need to add Null checking for removing the useless error message.

Test Plan:
Call the API like the following code.
evas_textblock_text_markup_to_utf8(NULL, "test_text&&&&");

ERR message will be printed.

Reviewers: woohyun, tasn, seoz, Hermet, hbr4570

CC: cedric
Differential Revision: https://phab.enlightenment.org/D493

10 years agoevas/map - added comment to do.
ChunEon Park [Wed, 5 Feb 2014 11:55:38 +0000 (20:55 +0900)]
evas/map - added comment to do.

10 years agoeina: restore magic debug option for ABI compatibility purpose.
Cedric BAIL [Wed, 5 Feb 2014 02:10:29 +0000 (11:10 +0900)]
eina: restore magic debug option for ABI compatibility purpose.

We can't remove that option as it break ABI for people who did turn
it off in 1.7.

- cherry-pick me -

10 years agoEvas font: Added support for font fallback for eet/edje fonts.
Tom Hacohen [Mon, 3 Feb 2014 13:58:25 +0000 (13:58 +0000)]
Evas font: Added support for font fallback for eet/edje fonts.

This is a long awaited feature that has been requested years ago.
Fontconfig finally added the support needed to make it happen, so here
it is.

I added a fontconfig query to look for similar fonts in case we loaded a
font from eet/edje/file(no fontconfig). This now works quite well.

Still missing: if you load a bold/italic/whatever font directly (set the file)
without putting ":weight=bold" you will not get run-time emboldenment if
only non-bold fonts are found.

This unfortunately depends on very recent fontconfig version (#ifed out
when unavailable), so only people with fontconfig >= 2.11 will enjoy
this feature.

10 years agoEvas font: Renamed evas_load_fontconfig and added support for a base set.
Tom Hacohen [Thu, 30 Jan 2014 14:20:45 +0000 (14:20 +0000)]
Evas font: Renamed evas_load_fontconfig and added support for a base set.

Renamed it so it'll be more obvious that it's internal.
Added the parameter as the first step towards supporting edje font
fallback using fontconfig.

10 years agoedje embryo reset timer should probably call the reset function
zmike [Mon, 3 Feb 2014 23:23:50 +0000 (18:23 -0500)]
edje embryo reset timer should probably call the reset function

10 years agoedje embryo now supports reset_timer()
zmike [Mon, 3 Feb 2014 22:18:52 +0000 (17:18 -0500)]
edje embryo now supports reset_timer()

works the same as ecore_timer_reset()

10 years agoedje freeze count can no longer become negative
Mike Blumenkrantz [Mon, 3 Feb 2014 16:51:45 +0000 (11:51 -0500)]
edje freeze count can no longer become negative

10 years agoPatcna: fix wrong widgth and height in eina_rectangle computation logic.
Cedric BAIL [Mon, 3 Feb 2014 06:35:36 +0000 (15:35 +0900)]
Patcna: fix wrong widgth and height in eina_rectangle computation logic.

Reviewers: cedric, raster, seoz, Hermet, bluezery

Reviewed By: cedric

Differential Revision: https://phab.enlightenment.org/D500

Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
10 years agoevas - fix tom's bold-killer from 2cb9db171ead5bc9920234e27c2e12b7c7b3883a
Carsten Haitzler (Rasterman) [Sun, 2 Feb 2014 01:59:33 +0000 (10:59 +0900)]
evas - fix tom's bold-killer from 2cb9db171ead5bc9920234e27c2e12b7c7b3883a

10 years agoevas: fix doxygen warning in group of Evas_Key
Jihoon Kim [Sat, 1 Feb 2014 05:19:38 +0000 (14:19 +0900)]
evas: fix doxygen warning in group of Evas_Key

Evas_Common.h:5243: warning: end of file while inside a group

10 years agoedje: fix the mismatched argument name with doxygen
Jihoon Kim [Sat, 1 Feb 2014 04:32:57 +0000 (13:32 +0900)]
edje: fix the mismatched argument name with doxygen

warning: argument 'above' of command @param is not found in the argument list of edje_edit_part_restack_part_above(Evas_Object *obj, const char *part, const char *below)

10 years agoedje: call imf reset before selecting text area
Jihoon Kim [Sat, 1 Feb 2014 01:32:53 +0000 (10:32 +0900)]
edje: call imf reset before selecting text area

10 years agoUpdating hungarian and italian translations
maxerba [Wed, 29 Jan 2014 18:18:28 +0000 (19:18 +0100)]
Updating hungarian and italian translations

10 years agoEvas font: Added support for the freetype spacing tag.
Tom Hacohen [Wed, 29 Jan 2014 14:36:02 +0000 (14:36 +0000)]
Evas font: Added support for the freetype spacing tag.

This doesn't work nicely, as for some reason fontconfig doesn't work
nicely with ':spacing=mono' without a font name.
Doesn't work with fc-match either. It does work with fc-list, but that's
not what we'd like to use. It could be just an issue with my local
fontconfig configuration.

This fixes T865 although the problem is now with freetype.

10 years agoEvas font: Added support for weight/width/slant font tags.
Tom Hacohen [Wed, 29 Jan 2014 14:10:40 +0000 (14:10 +0000)]
Evas font: Added support for weight/width/slant font tags.

This let's you set those directly, instead of using the style tag.

10 years agoEvas textblock: Fix selection with bidi text.
Tom Hacohen [Wed, 29 Jan 2014 13:25:21 +0000 (13:25 +0000)]
Evas textblock: Fix selection with bidi text.

This is a regression introduced in
548e548632333f5ef533079a7aaa54aadd20ef8d.

This is really bad, and essentially broke selection geometry for bidi
text. Very serious.

The problematic code assumed that the range comparison for the items
assumed the item marked with 1 is always logically before the item marked
with 2, which is just not true.

10 years agoEvas textblock: Added a test for range geometry with bidi text.
Tom Hacohen [Tue, 28 Jan 2014 17:03:07 +0000 (17:03 +0000)]
Evas textblock: Added a test for range geometry with bidi text.

10 years agofix evas_tiler bug (makes evas get stuck in an infinite loop there in certain scenarios)
Daniel Kolesa [Wed, 29 Jan 2014 10:00:29 +0000 (10:00 +0000)]
fix evas_tiler bug (makes evas get stuck in an infinite loop there in certain scenarios)

10 years agoefl: fixed documentation typos.
Daniel Juyung Seo [Tue, 28 Jan 2014 15:19:16 +0000 (00:19 +0900)]
efl: fixed documentation typos.

10 years agoEdje entry: Fix memory corruption (of by one in allocation).
Tom Hacohen [Tue, 28 Jan 2014 10:10:05 +0000 (10:10 +0000)]
Edje entry: Fix memory corruption (of by one in allocation).

This fixes T867.

10 years agoevas_render: avoid unnecessary assignment.
Daniel Juyung Seo [Mon, 27 Jan 2014 16:54:25 +0000 (01:54 +0900)]
evas_render: avoid unnecessary assignment.

10 years agoEdje entry: Fix anchor href parsing.
Tom Hacohen [Mon, 27 Jan 2014 15:14:32 +0000 (15:14 +0000)]
Edje entry: Fix anchor href parsing.

It should now correctly work with arguments surrounded with either
quotes or spaces.

10 years agoentry: clear selection before selecting new one
Jihoon Kim [Mon, 27 Jan 2014 12:34:09 +0000 (21:34 +0900)]
entry: clear selection before selecting new one

10 years agoecore-audio: remove src files that are never compiled
Carsten Haitzler (Rasterman) [Sun, 26 Jan 2014 12:35:17 +0000 (21:35 +0900)]
ecore-audio: remove src files that are never compiled

10 years agoecore audio: tests - remove #if0'd out code
Carsten Haitzler (Rasterman) [Sun, 26 Jan 2014 09:33:36 +0000 (18:33 +0900)]
ecore audio: tests - remove #if0'd out code

10 years agochecking for libmount newer than 2.19.0 means newer, not older
Mike Blumenkrantz [Sat, 25 Jan 2014 04:25:58 +0000 (23:25 -0500)]
checking for libmount newer than 2.19.0 means newer, not older

10 years agoallow --without-tests in addition to --with-tests=no
Mike Blumenkrantz [Sat, 25 Jan 2014 04:25:29 +0000 (23:25 -0500)]
allow --without-tests in addition to --with-tests=no

10 years agoconfigure: Add ecore-imf to ETHUMB_INTERNAL_LIBS
Ryuan Choi [Fri, 24 Jan 2014 11:14:23 +0000 (20:14 +0900)]
configure: Add ecore-imf to ETHUMB_INTERNAL_LIBS

It is to fix possible build break of ethumb

I got below message.
lib/edje/.libs/libedje.so: undefined reference to `ecore_imf_context_retrieve_selection_callback_set'
collect2: error: ld returned 1 exit status
make[4]: *** [bin/ethumb/ethumb] Error 1

10 years agoa small ecore_getopt bugfix
Daniel Kolesa [Fri, 24 Jan 2014 10:12:41 +0000 (10:12 +0000)]
a small ecore_getopt bugfix

10 years agoeina: fix test suite for rwlock... hopefully.
Cedric BAIL [Fri, 24 Jan 2014 03:00:32 +0000 (12:00 +0900)]
eina: fix test suite for rwlock... hopefully.

10 years agoautotools: let's not override what we just did.
Cedric BAIL [Fri, 24 Jan 2014 02:14:31 +0000 (11:14 +0900)]
autotools: let's not override what we just did.

10 years agoevas - textgrid - clear up unused var warning
Carsten Haitzler (Rasterman) [Fri, 24 Jan 2014 01:01:23 +0000 (10:01 +0900)]
evas - textgrid - clear up unused var warning

10 years agoevas: textgrid - fix crash in terminology with rare characters.
Jean-Philippe Andre [Fri, 24 Jan 2014 00:44:40 +0000 (09:44 +0900)]
evas: textgrid - fix crash in terminology with rare characters.

So I have a weird crash in terminology.
Reproduction path:
eet -x /path/to/elm/theme/default.edj edje/images/537

Scroll back in the terminal buffer, to show the entire file: CRASH.

Reviewers: cedric, tasn

CC: cedric, raster
Differential Revision: https://phab.enlightenment.org/D468

Signed-off-by: Cedric BAIL <cedric.bail@samsung.com>
10 years agoembryo: force the insertion of a '/' in the path to be sure that file path make sense.
Cedric BAIL [Thu, 23 Jan 2014 23:17:53 +0000 (08:17 +0900)]
embryo: force the insertion of a '/' in the path to be sure that file path make sense.

10 years agoeina_tls: fix calls to TlsFree
Jérémy Zurcher [Thu, 23 Jan 2014 09:40:02 +0000 (10:40 +0100)]
eina_tls: fix calls to TlsFree

10 years agoRegisters a fallback handler for a given subsection of the object hierarchy.
Carsten Haitzler (Rasterman) [Thu, 23 Jan 2014 06:45:22 +0000 (15:45 +0900)]
Registers a fallback handler for a given subsection of the object hierarchy.

Summary:
Goal of this patch is cover in Eldbus library function dbus_connection_register_fallback.
http://dbus.freedesktop.org/doc/api/html/group__DBusConnection.html#gac4473b37bfa74ccf7459959d27e7bc59

Reviewers: stanluk, raster

Reviewed By: raster

Differential Revision: https://phab.enlightenment.org/D479

10 years agoeina_tls: add eina_tls_cb_new(Eina_TLS *key, Eina_TLS_Delete_Cb delete_cb)
Jérémy Zurcher [Thu, 23 Jan 2014 05:50:08 +0000 (14:50 +0900)]
eina_tls: add eina_tls_cb_new(Eina_TLS *key, Eina_TLS_Delete_Cb delete_cb)

Summary:
   delete_cb is called at thread exit for each Eina_TLS keys used by the thread

Details:
   posix:
      pthread_key_create(key, delete_cb); does it
   win32/wince:
      eina_tls_free/new un/registers key&&cb into a static eina_list.
      eina_tls_set add the key to an eina_list in Eina_Thread_Win3.
      this list is cleared and callbacks are called in _eina_thread_join()

Test Plan: win32/wince has to be tested, I have no setup to do it.

Reviewers: cedric

CC: cedric
Differential Revision: https://phab.enlightenment.org/D489

10 years agoedje: Support to set or retrieve selection of ecore_imf
Jihoon Kim [Thu, 23 Jan 2014 02:26:52 +0000 (11:26 +0900)]
edje: Support to set or retrieve selection of ecore_imf

10 years agoecore_imf: fix to call function of immodule when the input method property is changed
Jihoon Kim [Thu, 23 Jan 2014 02:19:54 +0000 (11:19 +0900)]
ecore_imf: fix to call function of immodule when the input method property is changed

10 years agoecore_imf: Add selection_set callback type to allow Input Method to select a region...
Jihoon Kim [Thu, 23 Jan 2014 02:02:51 +0000 (11:02 +0900)]
ecore_imf: Add selection_set callback type to allow Input Method to select a region of text

10 years agoAdd ecore_imf_context_selection_get API to allow Input Method to get the selected...
Jihoon Kim [Thu, 23 Jan 2014 01:44:00 +0000 (10:44 +0900)]
Add ecore_imf_context_selection_get API to allow Input Method to get the selected text.

10 years agoembryo_cc - remove trainling / from path for windows stat so it works
Carsten Haitzler (Rasterman) [Wed, 22 Jan 2014 23:45:44 +0000 (08:45 +0900)]
embryo_cc - remove trainling / from path for windows stat so it works

10 years agoEvas: Fix proxy rendering for animated objects
Jean-Philippe Andre [Wed, 22 Jan 2014 07:40:50 +0000 (16:40 +0900)]
Evas: Fix proxy rendering for animated objects

An invalid optimization was implemented in proxy rendering.
We can't assume a proxy is a smart object.

Refer to 5cefa00d0ad0f54.

Fixes T832.

Proxy rendering is still broken when using cserve2... :(

10 years agoeina: do not access dead pointer from within valgrind macro.
Cedric BAIL [Wed, 22 Jan 2014 03:21:43 +0000 (12:21 +0900)]
eina: do not access dead pointer from within valgrind macro.

10 years agoximimmodule: fix dereference after null check
Jihoon Kim [Wed, 22 Jan 2014 00:46:24 +0000 (09:46 +0900)]
ximimmodule: fix dereference after null check

CID 1162749:  Dereference after null check  (FORWARD_NULL)
/src/modules/ecore_imf/xim/ecore_imf_xim.c: 1027 in _ecore_imf_xim_preedit_draw_call()

10 years agookay, bring back xrandr < 1.4 compat for ecore_x_randr_output_name_get
Mike Blumenkrantz [Tue, 21 Jan 2014 21:07:38 +0000 (16:07 -0500)]
okay, bring back xrandr < 1.4 compat for ecore_x_randr_output_name_get

apparently I read the commit order wrong and this fix went in for 1.4.0, not 1.3.2, which means anyone who has 1.3.2 has been having lots of fun crashes for the past 24 hours

10 years agonul terminate string from ecore_x_randr_output_name_get
Mike Blumenkrantz [Tue, 21 Jan 2014 19:58:06 +0000 (14:58 -0500)]
nul terminate string from ecore_x_randr_output_name_get

10 years agoSynced libunibreak local copy with upstream.
Tom Hacohen [Tue, 21 Jan 2014 16:41:06 +0000 (16:41 +0000)]
Synced libunibreak local copy with upstream.

This fixes T805.

10 years agoEvas: Fix MMX mask function _op_copy_p_mas_dp_mmx()
Jean-Philippe Andre [Tue, 21 Jan 2014 06:30:35 +0000 (15:30 +0900)]
Evas: Fix MMX mask function _op_copy_p_mas_dp_mmx()

This function does the following operation:
COPY pixel x mask --> dst

But it wasn't iterating over the source. So it was repeating
the value of the first pixel over and over again.

Is this even used anywhere? RGBA + alpha mask function!?

10 years agoecore_x_randr_output_name_get fixme removed
Mike Blumenkrantz [Tue, 21 Jan 2014 03:00:47 +0000 (22:00 -0500)]
ecore_x_randr_output_name_get fixme removed

this was a fixme which was likely written sometime before July 2010 when the bug was fixed, just prior to the 1.3.1 release. I think it's probably okay to require that release since it's been 3+ years.

10 years agoRevert "eet: do not load data when the file is open in read/write mode."
Carsten Haitzler (Rasterman) [Tue, 21 Jan 2014 00:18:52 +0000 (09:18 +0900)]
Revert "eet: do not load data when the file is open in read/write mode."

This reverts commit f8b0322704a4d74e4a5545727c18dc8385318657.

this breaks efreets icon cache. i have been noticing this since
yesterday across all my machines once i update just efl. i tracked it
down to this commit.

10 years ago_op_blend_c_dp_neon miscalculation fix
Carsten Haitzler (Rasterman) [Mon, 20 Jan 2014 15:11:33 +0000 (00:11 +0900)]
_op_blend_c_dp_neon miscalculation fix

Summary:
When processing random data result of this function differs from C variant in more than 50% cases.
This difference is due to alpha calculation, in C code :

 a = 256 - (c >> 24)

in NEON:

"vmvn.u8  q7,q6       \n\t"
// ie (8 bit)~(c>>24)    ===   255 - (c>>24)

We cant just add "1" as overflow will occur in case (c>>24) ==  0  (we use only 8 bit per channel in vector registers)
So here is the solution:
copy *d right before multiplication and add it to the result of it later.

This makes the function slower by 20-30% but it is still at least 2 times faster then C code.

Reviewers: raster

Differential Revision: https://phab.enlightenment.org/D455

10 years agoeet_data: guarantee double-word alignment for temporary stack buffer.
Gustavo Sverzut Barbieri [Mon, 20 Jan 2014 23:37:09 +0000 (21:37 -0200)]
eet_data: guarantee double-word alignment for temporary stack buffer.

The code was giving enough memory to store doubles and longs, but they
could be unaligned as "unsigned char" allows 1-byte alignment, while
double may require 8 bytes.

By specifying the array as "long long" we force certain alignment in a
platform independent way. As this array is small enough and
short-lived, the number of items were not changed, this results in
more bytes on the stack but it shouldn't matter.

10 years agoeina/mp/one_big: fix alignment issues.
Gustavo Sverzut Barbieri [Mon, 20 Jan 2014 23:27:58 +0000 (21:27 -0200)]
eina/mp/one_big: fix alignment issues.

When over-allocating (past "pool->max" items) a memory slice will be
allocated to the new item as a linked list using Eina_Inlist.

The original code was placing the Eina_Inlist structure (3 pointers)
at the beginning of the allocated memory. However the item must have
proper alignment based on "pool->item_size", otherwise a structure may
end with unaligned members. Take for example MIPS 32 bits, it uses 4
bytes pointers with 8 bytes double. A structure containing a double
could have it unaligned as 12 % 8 = 4 (12 is the size of Eina_Inlist,
that contains 3 pointers), and MIPS doesn't allow unaligned access.

Albin Tonnerre (Lutin) spotted this in his Debian MIPS test machine,
it was breaking at eet_data_get_double() that was storing an unaligned
double. This was being called from within edje test suite.

The current code will place the list node after the requested
"pool->item_size", of course guaranteeing the pointer inside the node
is aligned (otherwise a "char" or "short" would break its alignment).

10 years agoecore_getopt: support for per-category help listing
Daniel Kolesa [Mon, 20 Jan 2014 17:10:21 +0000 (17:10 +0000)]
ecore_getopt: support for per-category help listing

10 years agoconfigure: include required NEON build flags.
Gustavo Sverzut Barbieri [Mon, 20 Jan 2014 14:15:56 +0000 (12:15 -0200)]
configure: include required NEON build flags.

It is required to use "-mfpu=neon" to build NEON.

Patch-by: Albin Tonnerre <lutin@debian.org>
10 years ago[ecore_x] Fix to handle paste null data case.
Jaehyun Cho [Mon, 20 Jan 2014 13:15:33 +0000 (22:15 +0900)]
[ecore_x] Fix to handle paste null data case.

Summary: Do nothing when null data is pasted.

Reviewers: Hermet, raster

Reviewed By: raster

CC: seoz, raster, cedric
Differential Revision: https://phab.enlightenment.org/D473

10 years agoecore - fix CRIT -> CRI macro
Carsten Haitzler (Rasterman) [Mon, 20 Jan 2014 11:23:22 +0000 (20:23 +0900)]
ecore - fix CRIT -> CRI macro

10 years agoedje: Call _edje_entry_imf_context_reset in _edje_entry_user_insert.
Youngbok Shin [Mon, 20 Jan 2014 06:59:50 +0000 (15:59 +0900)]
edje: Call _edje_entry_imf_context_reset in _edje_entry_user_insert.

Summary:
When user paste text to elm_entry, _edje_entry_user_insert is called.
We need to reset a prediction buffer just like _edje_entry_text_markup_insert.

Reviewers: seoz, Hermet, woohyun, tasn, jihoon, raster

Reviewed By: raster

CC: cedric
Differential Revision: https://phab.enlightenment.org/D461

10 years agoeina-inlist - handle prepend/append relative if list is null (empty)
Carsten Haitzler (Rasterman) [Mon, 20 Jan 2014 06:16:56 +0000 (15:16 +0900)]
eina-inlist - handle prepend/append relative if list is null (empty)

stable release - cherry-pick me!

10 years agoeet: do not load data when the file is open in read/write mode.
Cedric BAIL [Mon, 20 Jan 2014 03:03:02 +0000 (12:03 +0900)]
eet: do not load data when the file is open in read/write mode.

I do think that it was a left over from previous file format. Removing
this memcpy should make Enlightenment startup faster and should reduce
by 500KB the memory it use.

10 years agoeina: add eina_{str,bin}buf_manage_read_only_new_length().
Cedric BAIL [Thu, 2 Jan 2014 06:36:23 +0000 (15:36 +0900)]
eina: add eina_{str,bin}buf_manage_read_only_new_length().

It is sometime useful to start from a defined buffer, but to not touch it
until needed. This make life of caller more easier as they don't need to
duplicate the buffer themself as Eina will now take care of that.

10 years agoeina: add eina_binbuf_append_buffer() and eina_strbuf_append_buffer().
Cedric BAIL [Thu, 2 Jan 2014 03:16:26 +0000 (12:16 +0900)]
eina: add eina_binbuf_append_buffer() and eina_strbuf_append_buffer().

10 years agoeet: reduce memory usage of Eet internal structure by removing useless structure.
Cedric BAIL [Fri, 17 Jan 2014 09:55:14 +0000 (18:55 +0900)]
eet: reduce memory usage of Eet internal structure by removing useless structure.

10 years agoedje: Add changed signal emit in _edje_entry_imf_event_delete_surrounding_cb
Youngbok Shin [Mon, 20 Jan 2014 03:54:45 +0000 (12:54 +0900)]
edje: Add changed signal emit in _edje_entry_imf_event_delete_surrounding_cb

Summary:
"_edje_entry_imf_event_delete_surrounding_cb" changes text of entry.
When the callback function is called and the entry is changed,
we need to notice to applications that the entry is changed.

Reviewers: seoz, Hermet, tasn, woohyun, jihoon, raster

Reviewed By: raster

CC: cedric
Differential Revision: https://phab.enlightenment.org/D460

10 years agoedje_cc: factorize two strlen()s
Jean Guyomarc'h [Mon, 20 Jan 2014 03:47:46 +0000 (12:47 +0900)]
edje_cc: factorize two strlen()s

Reviewers: cedric, raster

Reviewed By: raster

CC: cedric
Differential Revision: https://phab.enlightenment.org/D454

10 years agoecore_evas_wayland_common: fix compilation, missing bits of 892b1c5
Jérémy Zurcher [Sun, 19 Jan 2014 18:41:27 +0000 (19:41 +0100)]
ecore_evas_wayland_common: fix compilation, missing bits of 892b1c5

10 years agoFix doxy typo
Chris Michael [Thu, 16 Jan 2014 09:23:19 +0000 (09:23 +0000)]
Fix doxy typo

Signed-off-by: Chris Michael <devilhorns@comcast.net>
10 years agoecore_evas - applied macro to check rotation state.
ChunEon Park [Sat, 18 Jan 2014 13:26:10 +0000 (22:26 +0900)]
ecore_evas - applied macro to check rotation state.

also, let the potrait compare on the higher priority.

if you can suggest better macro name, then please modify it.

10 years agoRevert "ecore_evas - use the macro orthogonal check."
ChunEon Park [Sat, 18 Jan 2014 13:04:25 +0000 (22:04 +0900)]
Revert "ecore_evas - use the macro orthogonal check."

This reverts commit 43acf1e82f94dcdca25d6781d8b27b015f4bd656.

some partial changes are incorrectly applied.

10 years agoecore_evas - use the macro orthogonal check.
ChunEon Park [Sat, 18 Jan 2014 12:53:56 +0000 (21:53 +0900)]
ecore_evas - use the macro orthogonal check.

10 years agoefl - updated AUTHORS
ChunEon Park [Sat, 18 Jan 2014 10:12:45 +0000 (19:12 +0900)]
efl - updated AUTHORS

10 years agoevas: Fixed to compare current render_op with previous render_op for textblock. If...
Youngbok Shin [Sat, 18 Jan 2014 10:06:16 +0000 (19:06 +0900)]
evas: Fixed to compare current render_op with previous render_op for textblock. If the render_op is changed, call evas_object_render_pre_prev_cur_add.

Summary: This change is related to the commit: cdb86e34bbf82bd91aefd686bfc3bdf2a018a956

Reviewers: woohyun, tasn, Hermet, seoz

CC: cedric
Differential Revision: https://phab.enlightenment.org/D450

10 years agoefl/ecore_con - compare same types.
ChunEon Park [Sat, 18 Jan 2014 09:50:51 +0000 (18:50 +0900)]
efl/ecore_con - compare same types.

10 years agoefl/emotion - added missing headers for getuid() geteuid().
ChunEon Park [Sat, 18 Jan 2014 09:49:27 +0000 (18:49 +0900)]
efl/emotion - added missing headers for getuid() geteuid().

10 years agopkgbuild -> luajit
Carsten Haitzler (Rasterman) [Sat, 18 Jan 2014 00:25:43 +0000 (09:25 +0900)]
pkgbuild -> luajit

10 years agoedje: use luajit by default, if you want lua use --enable-lua-old
Daniel Kolesa [Fri, 17 Jan 2014 19:07:59 +0000 (19:07 +0000)]
edje: use luajit by default, if you want lua use --enable-lua-old

10 years agoEvas cserve2: Fix invalid memory access
Jean-Philippe Andre [Fri, 17 Jan 2014 09:07:33 +0000 (18:07 +0900)]
Evas cserve2: Fix invalid memory access

In case of load error, we free the file entry, but forgot to
reset the pointer to it in the image entry.

10 years agoedje: use EINA_UNUSED instead of __UNUSED__
Jihoon Kim [Fri, 17 Jan 2014 09:51:36 +0000 (18:51 +0900)]
edje: use EINA_UNUSED instead of __UNUSED__