Commit Graph

1909 Commits

Author SHA1 Message Date
xant 2a520b4e84 CVFilter are now properly created and applied
but can't be controlled from the gui (yet)
2010-06-14 23:21:38 +02:00
xant fa51e2706d minor cleanings 2010-06-14 23:21:32 +02:00
xant e47cde7b60 leftovers 2010-06-14 22:11:11 +02:00
xant 5fe8e2ea64 Refactoring filter implementation on osx
- moving filter-related code out of the layercontroller
  by creating a Filter subclass : CVFilter
- making coreimage filters available to javascript when running on osx

Note : this is a work in progress and implementation is still unfinished
       (coreimage filters won't work in this revision)
2010-06-14 22:04:40 +02:00
xant 2faf041d29 minore extensions and cleanings to the internal 'filter' api 2010-06-14 21:59:06 +02:00
xant 5aaa74ae32 ensure updating the textview in the mainthread
(for the sake of safeness)
2010-06-14 21:55:59 +02:00
xant da2063755b there is no need of a lock in that routine ...
it's a runloop in a separate thread ..
and it won't never exit the loop until the program ends
2010-06-14 18:06:13 +02:00
xant c1dfa8d4c8 MouseController is now conform to the new internal API 2010-05-31 09:21:49 +02:00
xant a93fc46456 FilterInstance can now be safely subclassed 2010-05-23 14:58:34 +02:00
xant 70c8381699 FilterInstance can (and should) now be used through the Factory 2010-05-23 14:51:46 +02:00
xant 0c468129c2 added filter_instance.h 2010-05-22 12:46:28 +02:00
xant f10ff95818 layer ordering is now controllable again through the listview
+ minor cleanings

Conflicts:

	xcode/CVScreenView.mm
2010-05-22 11:55:34 +02:00
xant 3b8869d60c ported last jaromil's changes to the new Filter implementation.
(also civilized the code a bit)
2010-05-22 11:39:59 +02:00
xant 0380e83394 Merge branch 'filter_refactoring' into trunk
Conflicts:
	src/filter_js.cpp
	src/include/filter.h
2010-05-22 11:32:22 +02:00
xant f05ea9df4d getTexture now returns an autoreleased object. Callers will retain it if necessary
refactoring the feedFrame/renderFrame/getTexture flow to make a more
clever use of memory and autorelease pools

started implementing CVFilter

(on the way of having CoreImage filters usable from javascript)
2010-05-22 11:11:23 +02:00
xant 267513a82c minor cleanings
(dead code)
2010-05-20 21:45:46 +02:00
Xant dc331c0e2d debug message 2010-05-19 13:04:44 -07:00
Xant bfd4d1f988 ensure setting the name as soon as we know it + minor cleanings 2010-05-19 12:57:56 -07:00
Xant 219ceb7166 dumb example script to test filter functionalities 2010-05-19 12:57:31 -07:00
Xant c7b1b81741 bugfix: casts are EVIL
and float != double
2010-05-19 12:41:27 -07:00
Xant c8bb7f1cc9 safety belts 2010-05-19 01:49:08 -07:00
Xant 4e42f444bd thread safeness + minor cleanings 2010-05-19 00:08:32 -07:00
Xant f3cf898540 more cleanings and fixes
ensure calling f0r_init() only after we have resolved the symbol
2010-05-18 23:37:24 -07:00
Xant df219682d5 Filters can now be instantiated through the Factory
and everything seems now to build and work on linux as well

(but further tests on filters are necessary since some functionalities
 could have been broken during the refactoring)
2010-05-18 05:42:52 -07:00
Xant 5f050d027e add filter_instance.cpp/h to the mix 2010-05-18 05:42:10 -07:00
Xant 7556c959a5 define WITH_FREEFRAME
(it was already used in the sourcecode, but missing from config.h)
2010-05-18 00:22:28 -07:00
xant b92958d44b empty files (but already included in the project) 2010-05-17 21:05:57 +02:00
xant 760bb90a50 refactoring the internal Filter implementation
changes don't affect the javascript api
2010-05-17 21:01:02 +02:00
Jaromil cb9356f0af code documentation updates
doxygen now works again
more classes are left to be documented
2010-05-09 00:42:41 +02:00
Jaromil 875a4d3435 scale2x algo moved aside for now
we keep files in the obsolete/ directory
as previously mentioned, we can do a scale2x screen in future..
2010-05-09 00:14:03 +02:00
Jaromil 5630ac2be6 removed old magnification code
obsoleted since long, it cleans up the Screen api

eventually we might want to have more screens
with magnification in future, algos like those
found in Mame, h2x and such
2010-05-08 22:05:08 +02:00
Jaromil 483246f2f7 filters to give author and description information 2010-05-08 22:05:07 +02:00
xant b79276388e no need to output a black frame anymore 2010-05-03 08:46:50 +02:00
xant 2a55d5b8a6 minor cleanings 2010-05-02 22:06:51 +02:00
xant 065bfc238f core-image filters can now be applied to geolayers created from javascripts
any subclass of CVCocoaLayer with a controller associated to it can now
be controlled through the filterpanel.
The filter panel for a specific layer can now be opened by
double-clicking on the layer name in the listview.

a bit of refactoring in CVFilterPanel/CVLayerView/CVLayerController
has been done to allow viewless layers to be created and eventually
controlled through a filterpanel
2010-05-02 16:54:06 +02:00
xant b9d0b2e1ee cosmetics 2010-05-02 15:08:32 +02:00
xant 78490f48e8 found the deadlock-related problem.
It should be now fixed , so I re-enabled calls to
JS_BeginRequest()/JS_EndRequest() where necessary
2010-05-02 12:52:00 +02:00
xant e3e97e3609 still hunting for the gc-related deadlock
disabling explicit calls to JS_GC() for now, still those
seem to trigger the deadlock (garbage-collection happens anyway
since jsapi will still implicitly take care of it)
2010-05-02 11:53:04 +02:00
xant 1cca034a66 include cairo in the osx build 2010-05-02 11:53:04 +02:00
xant 32902a5d1e reactivating the garbage-collector
and deactivating some calls to JS_BeginRequest()/JS_EndRequest() ...
it seems that when code is called directly from the javascript
wrapping js-api calls in a request dead-locks.
It could also be that we leave an opened-request somewhere and so
deadlocks are only our fault, but I checked carefully and it seems
unlikely (but further checks will follow)

In the meanwhile , disabling request-wrapping in geo_layer_js seems
to make everything work properly (gc() garbage-collects smoothly and
everything runs with neither crashes nor deadlocks)
2010-05-02 11:53:04 +02:00
xant f439e34bb0 cleanings 2010-05-02 11:53:04 +02:00
Jaromil 56abd26238 sdl_image check typo in configure.ac 2010-05-02 10:53:39 +02:00
xant 3f2017aec6 fixed some minor leaks
filters are now initialized on first use
2010-05-02 00:42:25 +02:00
Jaromil eea899b56b fix to parse javascript commands
now processing scripts are loaded again
after the big cleanup on the js context handling
2010-04-30 14:47:27 +02:00
xant 77d0408784 CVGeoLayer (+ all necessary refactoring and fixes to make it possible) 2010-04-29 14:24:46 +02:00
xant bb8e364148 no need to include <jsscript.h> 2010-04-26 14:32:07 +02:00
xant a0e319ec17 wrong and useless includes broke karmic64 builds 2010-04-26 14:13:31 +02:00
Xant 1777c3bbd5 added a missing semicolon + Controller::JSCall can't be imported yet 2010-04-26 02:35:42 -07:00
xant 0b3cca5c9a ignore the ControllerListener class in python bindings 2010-04-26 11:13:27 +02:00
xant 876a00ae24 cx => global_environment->js->global_context 2010-04-25 23:21:34 +02:00