Commit Graph

1901 Commits

Author SHA1 Message Date
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
xant c4ebf38f0e hopefully we are now wrapping all calls to jsapi into requests 2010-04-25 22:19:24 +02:00
xant db62dfe2fb more cleanings
I'm leaving calls to JS_SetContextThread() and JS_ClearContextThread
commented-out because we still need to carefully check what's going to
be called asynchrounosly from different threads
(I'll remove superfluous onse later on)
2010-04-25 21:55:39 +02:00
xant 66be5c02ad JS_SetContextThread() must be called only when really accessing the context from another thread
double locking leads to segfault
2010-04-25 21:47:55 +02:00
xant 8220e321ee minor cleanings 2010-04-25 12:13:35 +02:00
Xant ccb93674cd handle return-code from JSCall() properly
so that the keyboard-controller works again on linux
2010-04-25 00:44:31 -07:00
xant f247d44914 extra checks + ensure setting the default geometry for a CVLayer
when creating it in the QTLayerController
2010-04-25 00:13:34 +02:00
xant e276da4ed8 minor fixes and cleanings
the most serious fix here was to flag the cocoa keyboardcontroller as
indestructible, to avoid crashes when loading a new script after a reset()
(the keyboardcontroller was destroyed while still used as a singleton,
 so the new script was referencing a dead instance)
2010-04-24 23:51:43 +02:00
Xant f31c3c07b6 ensure building with threadsafe libjs 2010-04-24 01:43:28 -07:00