Joel Holdsworth
fe975a701d
Added some scroll bars
2008-05-22 19:19:04 +01:00
6310e9789b
Merge ct/devel to see if there are any problems...
2008-05-20 04:58:16 +02:00
Christian Thaeter
f58be32a05
Fixes after rebase
...
* remove _GNU_SOURCE from tests
* re-enable C source building in backend
2008-05-19 16:37:50 +02:00
Christian Thaeter
64e549dc81
headers for the memory mapping backend (WIP)
2008-05-19 16:27:30 +02:00
Christian Thaeter
9ad62d0edc
Fix: one must not return from a mutex section
2008-05-19 16:27:30 +02:00
Christian Thaeter
241327bcd4
rename 'fhcache' global var to 'lumiera_fhcache'
2008-05-19 16:27:30 +02:00
Christian Thaeter
444b142d85
Correct File flag masking
...
The hash lookup needs to ignore O_EXCL|O_TRUNC|O_CREAT as well as file
reopening must not use this flags.
2008-05-19 16:27:29 +02:00
Christian Thaeter
c4816c39fd
Proper flag and stat handling for files
...
Filedescriptors create files at construction, each later access becomes
a reopen on the now existing file.
file_handle_acquire() reopens the file to gain a handle when required
and checks that the file is really the one we expected (ino and dev num)
2008-05-19 16:27:29 +02:00
Christian Thaeter
00b9dff106
Doxygen config update
...
* set EXPORT_ALL=NO to leave out undcoumented entities.
* Fix a lot @file directives
2008-05-19 16:27:29 +02:00
Christian Thaeter
8311316a92
Doxydocing for the filehandling stuff
2008-05-19 16:27:28 +02:00
Christian Thaeter
dd63a0e190
filedescriptor cleanup and fixes
...
basically working now, flag masking is not complete yet.
2008-05-19 16:27:28 +02:00
Christian Thaeter
232afe77e9
Filehandling
...
* add 'backend' for backend global initialization/destruction
and common functions.
* WIP: 'file' acts as interface to named files, provides posix
filehandles with and acquire/release function pair.
* 'filehandle' manages posix filehandles internally, refcounted.
* WIP: 'filehandlecache' keeps unused filehandles in a MRU cache
* WIP: test for filehandle management
* improved filedescriptor test
2008-05-19 16:27:28 +02:00
Christian Thaeter
b11ff40fbe
Filedescriptor updates
...
* make registry initialization singleton, no parameters.
* remove registry init from all functions, has to be called explicitly.
* some nobug improvements
2008-05-19 16:27:28 +02:00
Christian Thaeter
bb98bb434b
add nobug resource tracking to filedescriptors
2008-05-19 16:27:28 +02:00
Christian Thaeter
5286838886
filedescriptor handling basics working, including some tests
...
It is now possible to acquire/release filedescriptors for existing files
and files to be created.
Filedescriptors are managed in a registry by refcounts, they get
automatically destructed when the last user releases them.
2008-05-19 16:27:28 +02:00
Christian Thaeter
791f42c104
WIP: Low level file management
...
We have 'File' which associates a name with a file and will be used to
offer an interface for the application.
Posix 'Filehandles' which are managed in a 'Filehandlecache' to utilize
a limited number of fd's at optimum.
Internally we use 'Filedescriptor's which manage files, mapping and all
kinds of metadata. Filedescriptors weak referenced by a registry and freed
when the last user vanishes.
2008-05-19 16:27:27 +02:00
Christian Thaeter
94e075d2c2
fix: mrucache_drop() must call the element destructor
2008-05-19 16:23:16 +02:00
Christian Thaeter
03ed87051d
fix missing declaration of lumiera_calloc() in safeclib.h
2008-05-19 16:23:16 +02:00
Christian Thaeter
63c07d1274
doxydocing mrucache
2008-05-19 16:23:15 +02:00
Christian Thaeter
dc0cbf0ad8
Fix: off by one allocation error in tmpbuf_snprintf()
2008-05-19 16:23:15 +02:00
Christian Thaeter
ff6ce603a4
tmpbuf_sprintf renamed to tmpbuf_snprintf
2008-05-19 16:23:15 +02:00
Christian Thaeter
0996c386bb
Mrucache update
...
* Fix: unlinking at destroy
* rename add/remove to checkin/checkout
* add a drop function which moves a node to the end for fast reuse
2008-05-19 16:23:15 +02:00
Christian Thaeter
b909c2247d
add a cuckoo_nelements function
...
Query the number of elements stored in a hash, useful for debugging.
2008-05-19 16:23:15 +02:00
Christian Thaeter
293b872b5d
extend the MUTEX_SECTION macro with NoBug resource tracking
...
LUMIERA_MUTEX_SECTION takes now a nobug flag as first argument and
a nobug resource-handle as second argument.
This change works forward for the NoBug resource tracker and
deadlock detector.
2008-05-19 16:23:15 +02:00
Christian Thaeter
b4183ed444
safeclib improvements
...
* add lumiera_calloc()
* improve cleanup functions for tmpbuf
2008-05-19 16:23:15 +02:00
6b1be6b7e7
Refactorings regarding use of smart-ptr, Placement and BuilderTool
2008-05-19 08:46:19 +02:00
86162ad314
moved new code into library modules and adapted BuilderTool to use it.
...
BuilderTool_test now passed.
2008-05-19 08:38:13 +02:00
Christian Thaeter
8ba3df3b31
missing slash
2008-05-19 01:54:40 +02:00
Christian Thaeter
5ae909e2a0
add C++ parts to lib build
2008-05-19 01:51:34 +02:00
Christian Thaeter
3b6713b23c
build common and (re-)enable backend build (C++ part)
...
- not (yet) merged backend C parts are commented out for now
2008-05-19 01:50:53 +02:00
Christian Thaeter
b6bd181ca8
correct pasting glitch and copyright header date
2008-05-19 01:48:02 +02:00
Christian Thaeter
e8164062a2
integrate proc into automake
...
* all files in src/proc are build into libs
* TODO: -Werror still missing
* TODO: Tests are not yet compiled
2008-05-18 00:01:51 +02:00
Christian Thaeter
249c6d5eda
Remove _GNU_SOURCE from certain files
...
GNU_SOURCE is globally activated in configure.ac
2008-05-17 23:33:21 +02:00
Christian Thaeter
2cbfeda4df
correct return types in condition.h
2008-05-17 23:25:50 +02:00
Joel Holdsworth
5f8c9a2a12
Corrected 3 build errors
2008-05-17 18:12:07 +01:00
Joel Holdsworth
df5c40fd63
Panels can now be show and hidden
...
More documentation added to Panel
2008-05-17 11:20:49 +01:00
88fc2f6099
WIP reworked to replace boost::variant by a custom solution
...
Not a big simplification, but at least the actual codepath is shorter,
while it's not so general as boost::variant (and not threadsafe!)
2008-05-17 04:34:46 +02:00
Joel Holdsworth
8437450767
More work on icons
2008-05-16 19:23:12 +01:00
Joel Holdsworth
a51d91d7b5
Corrected the makefile
2008-05-16 18:53:45 +01:00
Joel Holdsworth
fdbdfe2493
Added an icon for the timeline
2008-05-16 18:49:32 +01:00
Joel Holdsworth
41d5ff9610
Added an icon to the viewer panel
2008-05-15 00:04:10 +01:00
Joel Holdsworth
1d89341fa4
Removed a couple of redundant files
2008-05-14 22:50:53 +01:00
Joel Holdsworth
0b70cf132a
Copying lumiera_gui.rc now works
2008-05-14 22:29:05 +01:00
Joel Holdsworth
4c9eea2c73
Modified Makefile.am to test lumiera_gui.rc copying failure
2008-05-14 22:02:02 +01:00
Joel Holdsworth
ae2c74ff42
Tied gui into main lumiera build
2008-05-14 00:26:00 +01:00
Joel Holdsworth
f030798844
Merge branch 'devel' of git://git.lumiera.org/lumiera/ct into work
2008-05-13 22:10:22 +01:00
Christian Thaeter
a9cf2c719d
Fix: uuid includes
2008-05-13 21:42:51 +02:00
Christian Thaeter
380c1d2c47
dropped the pre-gavl framerate sources out of lib
2008-05-13 21:31:30 +02:00
Joel Holdsworth
05055fa795
Added POTFILES.in
2008-05-13 20:07:21 +01:00
Christian Thaeter
b41115d1b2
Add cuckoo hashing to the library
...
This implementation of cuckoo hashing gives guaranteed O(1)
lookup complexity and amortized O(1) insert and remove complexity.
Hash tables by default grow and shrink automatically.
It is posible to preallocate entries and turn automatic shrinking off,
taking out the memory management factors for insert and remove operations.
2008-05-13 20:57:20 +02:00
Christian Thaeter
3a8b3feb96
add string creating functions to tmpbuf
...
* lumiera_tmpbuf_strndup() duplicates a string
* lumiera_tmpbuf_sprintf() creates a formatted string
2008-05-13 20:57:20 +02:00
Christian Thaeter
d32c74361b
Fix: typo in mrucache_age()
2008-05-13 20:57:19 +02:00
Christian Thaeter
69ba3b389c
LUMIERA_MUTEX_SECTION(mutex) macro for sections of mutex protected code
2008-05-13 20:57:19 +02:00
Christian Thaeter
eab6b64f6d
let mrucache age return how much elements it couldn't purge
2008-05-13 20:57:19 +02:00
Christian Thaeter
328127980a
a small most-recent-used cache implementation
2008-05-13 20:57:19 +02:00
Christian Thaeter
7686a2ec56
Renamed the temporary 'buffer' functions to 'tmpbuf'
2008-05-13 20:57:18 +02:00
Christian Thaeter
0b8b5bf507
uuid functions
2008-05-13 20:54:05 +02:00
Christian Thaeter
27ca8a7362
let LUMIERA_DIE take an error identifier as parameter
2008-05-13 20:54:05 +02:00
Christian Thaeter
8b162cada4
llist update
2008-05-13 20:54:04 +02:00
Christian Thaeter
19ee8afa08
safeclib wraps some common c library functions and adds some tools
...
* lumiera_malloc which succeeds or dies
* some safe string functions
* Thread local round robin buffers for temporary data
2008-05-13 20:54:04 +02:00
Joel Holdsworth
ed2146dae0
Added the icon which will be used for the video viewer panel's caption
2008-05-13 17:33:18 +01:00
Joel Holdsworth
f72dab3257
Added support for video via a GDK fallback
2008-05-12 13:02:14 +01:00
Joel Holdsworth
67413c7c17
Made a temporary fix for the crash-on-undock bug
2008-05-08 23:34:28 +01:00
Joel Holdsworth
b8c94df12a
Further XVideo tidy ups
2008-05-08 23:09:04 +01:00
Joel Holdsworth
f1fdfdf94a
Added XVideo code
2008-05-08 20:56:55 +01:00
Joel Holdsworth
130da1ec77
Layed the foundation of a
2008-05-05 22:21:58 +01:00
Joel Holdsworth
03bc0cd276
Relocated gui into the src folder
2008-05-02 17:26:50 +01:00
03047e6d17
WIP maybe a solution for getting the correct wrapper within Builder Tools.
...
works, but problem is: you need to know the exact type of the wrapper, e.g. Placement<Clip> or shared_ptr<Media>
2008-04-26 05:38:19 +02:00
d9e6adfe02
make Placement<MObject> implement the interface Buildable.
...
WIP: works, but isnt what I intended. Rather need a specialisation to be able to define functions
treat (Placement<TY>) based on the concrete TY....
2008-04-23 05:48:45 +02:00
aea5ed323a
refactor to use the customized lumiera::P<Type> instead of shared_ptr<Type>
2008-04-23 04:16:45 +02:00
3e8996005e
start using the new lifecycle hooks. remove global nobugcfg.h
...
Now using proc/lumiera.hpp and proc/nobugcfg.hpp (i.e. only for the proc-Layer). Using ON_BASIC_INIT to
pull up NoBug automatically and for installing the unknown-exception handler. Add calls for
ON_GLOBAL_INIT and ON_GLOBAL_SHUTDOWN hooks to main() and to the testrunner
2008-04-14 05:15:16 +02:00
85189d3f4c
extend Appconfig class to provide Lifecycle callback hooks
...
esp. for automatic triggering the initialisation of very basic struff (like NoBug...)
2008-04-13 23:54:39 +02:00
024e3c4dbc
change build to link in separate libs, also split test executable.
...
now building liblumiback.a liblumiproc.a liblumi.a
build a separate test-common executable (for everything in src/common)
include a precompiled header for assets.
2008-04-12 04:55:18 +02:00
f7bfe50bc9
Merge branch 'builder'
2008-04-12 02:12:41 +02:00
a03e3c5e73
Merge from backend: wikis, admin-scrits, test.sh
...
(dont merge any srcfiles)
2008-04-12 02:07:16 +02:00
Christian Thaeter
15bab21da8
Merged the timestuff removal, done by simeon
...
(cherry picked from commit bc5a301d01ac323bafcc434e33f6043678749f14)
2008-04-12 01:12:18 +02:00
97821a0fa2
Design: clarified various details regarding Track handling
2008-04-11 06:24:27 +02:00
a869c71077
Defaults Manager finished for now
...
...passes high level test (with help by the mock 'resolution engine') ;-)
2008-04-08 04:39:07 +02:00
0b5b9b593e
DefsManagerImpl_test now running
2008-04-08 03:21:24 +02:00
ed2799b76f
getting the first test of defsmanagerimpltest.cpp to run
...
..adding some backdoors and bashing at the mock implementation to fake the behaviour of a real resolution engine
2008-04-07 08:03:22 +02:00
b86a8605e7
now complete and passing the compiler
2008-04-07 03:19:24 +02:00
3ed3813be3
WIP work out how some special cases of config queries can be handled.
...
Including some tricky recursive calls. Even if this is currently a mock implementation it helps me find out
how the real implementation (in Prolog) could handle these cases.
Doesnt pass the compiler yet (some stubs missing)
2008-04-06 20:11:34 +02:00
b53d8655fd
yet another helper function: remove matching term from query string
2008-04-06 08:56:18 +02:00
b361fc9672
supplement tests for some small utils dealing with query expressions
2008-04-06 05:36:16 +02:00
24825a13f3
registry for default objects now passing test
2008-04-05 22:52:20 +02:00
dffd635482
switch asset ordering impl to utilize the new custom smart-ptr
...
passes compiler and test suite, finally!
TODO: also switch the derived asset kinds to use P<Media>, P<Struct>,....
maybe do the same with MObject?
2008-04-05 07:26:54 +02:00
2b529e3fac
customized smart-ptr based on std::shared_ptr
...
hopefully resolves long standing problems with odering and type relations
of objects handled via smart ptr
2008-04-05 05:57:54 +02:00
162976a4cf
WIP reorganize the ordering relation on assets
...
(should simplify handling of comparisons at various places)
2008-04-03 03:50:28 +02:00
3d2791b91e
WIP some fixes; add test for a utility function
2008-04-02 04:06:08 +02:00
6596699f6e
WIP code for handling registration of defaults objects.
...
Missing some TODOs and test coverage
2008-03-31 03:21:28 +02:00
c4128c9816
merge Lumiera renaming
...
WIP doesn't pass the compiler (not due to the merge)
2008-03-10 08:38:59 +01:00
e737b9ef1b
Lumiera renaming -- source code
2008-03-10 06:09:44 +01:00
fbacb4cdb1
Lumiera renaming -- build system
2008-03-10 05:07:21 +01:00
0baf15ca94
Cinelerra-3 renamed to Lumiera -- copyright and documentation
2008-03-10 04:25:03 +01:00
a3d91286c8
WIP defaults manager implementation
2008-02-29 18:58:29 +01:00
4af2d47995
test-driven-brainstorming: DefsManager interface building blocks
2008-02-29 04:27:24 +01:00
919a57ed9a
doc comment fix
2008-02-22 04:58:37 +01:00
c4d8c8ffdc
merge scons (small improvement)
2008-02-18 04:28:54 +01:00
ea0416881e
WIP towards a asset::Struct naming scheme
2008-02-18 04:16:53 +01:00
34b14a226e
defer creation of the empty default sesison,
...
avoids running complex code in static initialisation
2008-02-16 02:47:01 +01:00