summaryrefslogtreecommitdiff
path: root/src/modules/evas/model_loaders (follow)
AgeCommit message (Collapse)Author
2019-10-29meson: redo evas buildingMarcel Hollerbach
Summary: before recent times we had to support static and shared building based on the options of the user, which forced us to complicate our build with the evas_goal hack. the evas_goal hack more or less was the idea of "faking" the evas build in the evas directory, finish all the .eo generation there, then build the modules and make all the static files ready. Then build everything in evas_goal. Now, that we just build everything the same always, we can simply build it in the evas way (removing the evas_goal hack FINALLY), as the same modules are build statically and shared. This also gives us the possibility to build the shared image loaders *again* the the modules directory, which unbreaks peoples build scripts who packaged loader files seperatly. Reviewers: zmike, raster, cedric, stefan_schmidt Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D10548
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
2017-12-13efl: drop deprecated Encoding key from desktop filesRoss Vandegrift
Summary: The Encoding key is no longer required, all desktop files are assumed to be UTF-8 encoded. See details at: https://standards.freedesktop.org/desktop-entry-spec/1.1/apc.html Fix various typos and misspellings lintian, Debian's package checker, uses strings to check for common typos in compiled binaries. This change fixes the ones it identified in 1.20.6. Reviewers: cedric Reviewed By: cedric Subscribers: cedric, jpeg Differential Revision: https://phab.enlightenment.org/D5584 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2017-08-02evas model loader - restructure code to silence warningCarsten Haitzler (Rasterman)
keep our build quiet warnings-wise and change the code to be so... so we see real warnings. not a bug... just a warning.
2016-12-20evas/ply: Add filename in error logsJean-Philippe Andre
As suggested by @k-s I'm pretty sure that this parser will easily fail. Eg. find uchar properties but it's not r,g,b in this exact order? No color for you. Find no uchar at all? Fail immediately even if we can handle a no color situation just fine.
2016-12-19evas/ply: Fix some memleaksJean-Philippe Andre
I have a strong feeling that this parser is not very robust... Closes T5001
2016-12-06all: use void if we really want to make sure we do not accept parametersStefan Schmidt
In C we need this to make clear that we really do not accept parameters. Found by the smatch source code matcher. I had run and fixed this before but it seems to creep in again over time.
2016-08-15Eo: Finish the renaming of Eo to the EFL.Tom Hacohen
This renames all the rest of the API to the EFL namespace except for Eo_Event that will follow soon. Obviously breaks both API and ABI.
2016-07-06evas: fix initialisation and shutdown of eet and eina by mesh loader and saver.Cedric BAIL
2016-07-04efl - fix lots of little init/shutdown pairs that are wrongCarsten Haitzler (Rasterman)
i've fixed almost all the eina init/shutdown pairs to do the right thing now... except one (ecore_shutdown) with comment inline where eo_shutdown is not called. if this is called we are in crash land. this needs further inspection.
2016-05-26Evas: Fix compilation warningJean-Philippe Andre
Missing initializers. Damn C and {0}. I could also have used GCC's {} form.
2016-05-20evas 3d - fix mesh savers/loaders to not leave memory unsetCarsten Haitzler (Rasterman)
i've been gettign persistent evas test suite suite failures ffor a while. annoying as i can't get 100% pass anymore. it's due to segv's in evas test suite thanks to chunks of uninitialized memory in the mesh loaders/saver code. this fixes that @fix
2016-03-11Revert "Automatic migration to the new eo_add syntax."Tom Hacohen
This reverts commit 4f949a2757b6332306264d7f126b15ba7bfd37d4.
2016-03-09Automatic migration to the new eo_add syntax.Tom Hacohen
2016-03-03Fix more wrong migration to Eo4.Tom Hacohen
The if wasn't using {} so one of the statements was out of the scope of the condition. There was some misindented code.
2016-03-03Automatic migration to Eo4.Tom Hacohen
I just ran my script (email to follow) to migrate all of the EFL automatically. This commit is *only* the automatic conversion, so it can be easily reverted and re-run.
2016-02-10evas: include Eet.h where it's needed.Florent Revest
This patch is applied by OpenEmbedded project to let evas build correctly in crosscompilation environnement. cf: https://github.com/openembedded/meta-oe/blob/master/meta-efl/recipes-efl/efl/efl/0002-evas_3d-Add-Eet.h-includes.patch @fix Signed-off-by: Nicolas Aguirre <aguirre.nicolas@gmail.com> Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-12-29Evas 3d: Fix some potential crashesJean-Philippe Andre
Those were happening before the previous patches.
2015-12-29[Evas] Refactor model's savers and loaders.perepelits.m
Summary: Move common part to a separated document. Make code more readable using smaller functions. (from Task T2713) Everything is OK with make check. Reviewers: cedric, raster, Hermet, stefan_schmidt Reviewed By: stefan_schmidt Subscribers: jpeg, artem.popov Differential Revision: https://phab.enlightenment.org/D3430
2015-12-10Revert "Evas: Refactor model's savers and loaders."Jean-Philippe Andre
This reverts commit 01a32f64c0ffbe2ce048f8eb016d685913558cf5. This broke make check with the following error: evas_test_mesh.c:123:F:Meshes:evas_object_mesh_loader_saver:0: Failure 'res == 1' occurred Reopen https://phab.enlightenment.org/D3420
2015-12-10Evas: Refactor model's savers and loaders.perepelits.m
Summary: Move common part to a separated document. Make code more readable using smaller functions. (from Task T2713) I did it again because somehow test is passing now. It seems like this test suite is unstable. Please, let me know if there are any errors after running distcheck. Reviewers: cedric, raster, Hermet, stefan_schmidt Subscribers: jpeg, artem.popov Differential Revision: https://phab.enlightenment.org/D3420
2015-12-10evas_eet: Add Type Safety checkPankaj Mittal
Summary: The Function _evas_canvas3d_eet_file_free(void) is referenced in evas_model_load_file_eet()(file:evas_model_load_eet.c at line 122). This call is under condition if ((eet_file->mesh == NULL) || (eet_file->header == NULL)). when either eet_file->mesh or eet_file->header are NULL, dereference of the corresponding pointer in function "_evas_canvas3d_eet_file_free()" will generate Segmentation Fault. @fix Reviewers: raster, Hermet, tasn, wonsik, spacegrapher, cedric, jpeg Subscribers: singh.amitesh, sachin.dev, alok25, yashu21985, mvsovani, cedric Differential Revision: https://phab.enlightenment.org/D3369
2015-12-08Revert "evas: refactor model's savers and loaders."Stefan Schmidt
This reverts commit 32c33ed64dda542c7cfc952fc656bb711260441b. This refactor broke the evas test cases for the model loaders and savers. I gave it a week to get fixed but a first try did not succeed and its blocks a lot of other automated testing. To be honest, it should have never gone it when it breaks existing test cases. Once fixed this refactor can happily go in. Fixes T2905
2015-12-01evas: refactor model's savers and loaders.perepelits.m
Summary: Move common part to a separated document. Make code more readable using smaller functions. (from Task T2713) Reviewers: cedric, raster, Hermet Subscribers: artem.popov Differential Revision: https://phab.enlightenment.org/D3373
2015-11-23Evas 3d: Remove left over debug message from recent commitJean-Philippe Andre
2015-11-23evas: fix PLY loader and saver.perepelits.m
Summary: Use less memory by indexation vertices and not keeping more than one copy of it (from task T2713). [Fix] Reviewers: cedric, raster, Hermet Subscribers: artem.popov Differential Revision: https://phab.enlightenment.org/D3355 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-08-04Evas canvas3d: Move evas 3d types to evas_types.eotOleksandr Shcherbina
Summary: Move evas_canvas3d types from Evas_Eo.h to evas_types.eot Change enum constatnt for vertex_arrtib, material_attrib, blend_func Correct namespace for Evas.Real type Reviewers: cedric, tasn Reviewed By: tasn Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2734
2015-08-03Revert "Include <Eet.h> where needed. cf:"Nicolas Aguirre
This reverts commit 877338659b4176e1a77f7b6cf37f6225cca763bc.
2015-08-03Include <Eet.h> where needed. cf:Florent Revest
https://github.com/openembedded/meta-oe/blob/master/meta-efl/recipes-efl/efl/efl/0002-evas_3d-Add-Eet.h-includes.patch
2015-06-17evas: change interface evas_3d to evas_canvas3dOleksandr Shcherbina
Summary: Regard to https://phab.enlightenment.org/T2479 it is need for right generation Eolian files Reviewers: cedric Subscribers: cedric, tasn Differential Revision: https://phab.enlightenment.org/D2711 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-26evas-3d: fix incorrect reading of .obj file which had an empty line before ↵Bogdan Devichev
data in unix encoding. Summary: For example of a bug, part of .obj file: vn 0.5536 -0.7200 -0.4185\n vn -0.5536 -0.7200 -0.4185\n \# 239 vertex normals\n \n vt 0.4998 0.2618 0.0000\n(lines like this were ignored) vt 0.5205 0.2550 0.0000\n vt 0.5249 0.2618 0.0000\n @fix Test Plan: Run colorpick example. Before and after this update. ("M15.obj" has fixed places.) Reviewers: cedric, Hermet, raster Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D2049 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2015-02-18evas: remove compilation warning.Cedric BAIL
2015-02-11evas: Evas_3D - iport/export of Obj format can be read even if obj-file does ↵Bogdan Devichev
not have normals or tex-coords. Summary: This commit fixed several bugs, and show what was be fixed. Bugs: - When designer save obj file in Blender, he/she can set flags (fig 1). Normals and UV coords flags was necessary for obj loader. Loader crushed when they are not set as true. It fixed by this commit. - Another loaders set default values to data which aren't in loading file, so mesh need more memory for unused data. It fixed by this commit for obj and will be fixed for another formats in future. - Saver saved incorrect data if normals or tex_coords was not set in mesh in evas. Now it fixed. - Saver failed if it save mesh without material. It fixed and in this case material file is not created now. - Also fixed some leaks and undefined behavior which valgrind shows. Example: - Example shows cases described above. Example use files saved with different flags for it. Resources: - man_mesh is replaced by several smaller file, to use them for showing new features and fixes. For example, similar to that models can be added when implement work with material for obj, work with different flags for obj loader/saver etc. (big count of man_meshes is to much memory). - texture for home is flipped, because of bug with texture in efl to see if tex_coords is incorrect. Test: - test should be rewritten in future, because another formats still use default values for normals and tex_coords. And test can not pass for all types of obj file because of standardization for any format in him. Test Plan: Test suit will be rewritten after correcting of other formats (they will set NULL to file when save an empty data (like mesh without normals)) Reviewers: Hermet, raster, cedric Reviewed By: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D1957 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
2014-12-23evas: the eet loader use eet_mmap that take an Eina_File instead of eet_open.Bogdan Devichev
2014-12-23evas: entry points to modules is Eina_File. Model_Common_Loader is deleted.Bogdan Devichev
2014-12-23evas: entry points to modules is new struct with Eina_file, not const char ↵Bogdan Devichev
*file.
2014-12-23evas: ply_loader and obj_loader work with Eina_File.Bogdan Devichev
2014-12-23evas: add lib/evas/common/evas_model_<action>.c. Functions are renamed ↵Bogdan Devichev
similar to functions in image_save_load process.
2014-12-23evas: replace and rename savers/loaders.Bogdan Devichev
2014-12-23evas: dummies for model_saver_loader are created.Bogdan Devichev