On Thu, 24 Oct 2019 18:58:30 +0800 (CST) Jing <[email protected]> said:
> Hi Vincent, thanks for your advise, thanks. > > Hi Carsten, any advise for the memory consumption issue when display image > number/size is large ? Thanks. use thumbnails? don't create image objects that are not visible? create them when they become visible? > At 2019-10-23 18:14:45, "Vincent Torri" <[email protected]> wrote: > >On Wed, Oct 23, 2019 at 12:05 PM Jing <[email protected]> wrote: > >> > >> Hi Carsten,I am using a raw edje object. Follow your advise, i use > >> evas_object_image_add and evas_object_image_file_set can display different > >> images in my GUI. But when the number/size of image is large, it will > >> consume a lot of memory, is there any way to reduce the memory consumption? > >> > >> Besides, it there any way to play mp3 and mp4 file ? Please advise, many > >> thanks. > > > >you can use emotion library for media files. You must compile the EFL > >with at least a video backend (vlc or xine or gstreamer 1) > > > >Vincent > > > >> > >> At 2019-10-22 21:31:36, "Carsten Haitzler" <[email protected]> wrote: > >> >On Tue, 22 Oct 2019 20:13:51 +0800 (CST) Jing <[email protected]> said: > >> > > >> >> Hi Carsten, > >> >> Thanks for your reply. I want to dynamically display different images > >> >> in my GUI, the images are read from SD card. How to add this feature ? > >> >> Please help,thanks. > >> > > >> >many ways. you can use a basic evas image object (evas_object_image_add) > >> >then set the file on it and query size, set min/max size hints so edje > >> >will do the right thing in sizing the object. swallow this object into > >> >the right swallow part name. efl, enlightenment, terminology, rage is > >> >full of code like this. you can use an elm image which will handle async > >> >loading for you and some other things if you want to pass off that > >> >handling to elementary. > >> > > >> >it all depends on your existing code and where you have started from. are > >> >you using a raw edje object. en elm layout (which wraps edje objects)? > >> >what other objects and code are you using? > >> > > >> >> At 2019-10-22 16:45:55, "Carsten Haitzler (The Rasterman)" > >> >> <[email protected]> wrote: > >> >> >On Tue, 22 Oct 2019 15:03:47 +0800 (CST) Jing <[email protected]> > >> >> >said: > >> >> > > >> >> >> Hi all, > >> >> >> I define a IMAGE part in my EDC file with a default image. And call > >> >> >> evas_object_image_file_set() to display a new image. But when other > >> >> >> parts receive a signal or event, this IMAGE part will return to > >> >> >> display the default png image, please advise how to fix this > >> >> >> issue, many thanks. > >> >> > > >> >> >never do that. the image is owned/controlled by edje. you are not > >> >> >meant to modify the object of an edje part in any way. also don't rely > >> >> >on it always existing. it may be deleted and re-created. you do not > >> >> >own this object. the edje parent does. > >> >> > > >> >> >if you want to have an image you can control, then SWALLOW parts are > >> >> >for that. you provide an object to edje to "swallow into" the part. > >> >> >this means edje will do these things to the swallowed object: > >> >> > > >> >> >1. move + resize this object > >> >> >2. stack it (raise/lower etc.) > >> >> >3. take over layer controls (just don't mess with the layer to begin > >> >> >with) > >> >> >4. show/hide as needed > >> >> >5. set clipper > >> >> >6. apply any evas maps > >> >> >7. control pass/repeat events flags > >> >> > > >> >> >when the edje parent is deleted, child swallowed objects are orphaned > >> >> >(they are kicked out of the parent edje) and it's up to you to clean > >> >> >them up or re-use them as needed. > >> >> > > >> >> >so create an image and then swallow this image object into a SWALLOW > >> >> >part. > >> >> > > >> >> > > >> >> >-- > >> >> >------------- Codito, ergo sum - "I code, therefore I am" > >> >> >-------------- Carsten Haitzler - [email protected] > >> > > >> > > >> >-- > >> >------------- Codito, ergo sum - "I code, therefore I am" -------------- > >> >Carsten Haitzler - [email protected] > >> > >> _______________________________________________ > >> enlightenment-devel mailing list > >> [email protected] > >> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > > > > >_______________________________________________ > >enlightenment-devel mailing list > >[email protected] > >https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > > _______________________________________________ > enlightenment-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- Carsten Haitzler - [email protected] _______________________________________________ enlightenment-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
