Richard Fuchs
4947ab9404
MT#55283 modernise timeval_add
Change-Id: I16a368dc66e632d43f01f9e674ad9637a0c18370
10 months ago
Richard Fuchs
89e355b1ba
MT#55283 remove unused timeval helpers
Change-Id: I53da8a84bac3a5235d5a5155b08a6a3419ddb1a8
10 months ago
Richard Fuchs
672bf5305c
MT#62053 add interfaces-config= option
Change-Id: I32c67bd6834f51c835c08af67a7d84f3216486db
11 months ago
Richard Fuchs
119ca4b105
MT#62053 add config file groups callback
Add a callback type to read config groups and their contents based on a
group prefix.
Unused at this point.
Change-Id: I7d9e043e96f48e599bc4da2d8ef4079559cb8b47
11 months ago
Richard Fuchs
052972082a
MT#62053 generalise config loading
Switch from specialised handling of config sections (used to load
signalling templates) to a more general approach using a callback
mechanism. This allows us to add more information to the config file
while keeping the details of the underlying GKeyFile hidden. Use a typed
hash table for type safety.
Change-Id: I71ddfda0202b47df363bcc5acf1725078774f8f1
11 months ago
Richard Fuchs
ad8ce3541d
MT#61822 add RWLOCK_STATIC_INIT
Change-Id: I6718df967b70554a32c3caddcb4e29af4fb6d7f0
11 months ago
Richard Fuchs
aced85670d
MT#61368 add rwlock_trylock_w()
Helper function. Unused at this point.
Change-Id: I352db1cc363c493665f7cf774eb4d4440a1321c9
12 months ago
Richard Fuchs
b8a915246f
MT#61352 support signalling templates
Change-Id: If5624e3294bff7f677bdb08f98ea920c3b5f929a
1 year ago
Richard Fuchs
50b1d03e61
MT#61263 add flexible MOS calculation
Support different MOS formulas. Only "legacy" (existing formula) is
supported at this point.
Change-Id: I25846da993bf61a34f26a8384622b7a2a2bbcf06
1 year ago
Richard Fuchs
24ff9ce07b
MT#55283 set codec-chain opus app
Change-Id: Ibeecc1f6942e823fa123d6e3083487ef08566331
1 year ago
Richard Fuchs
a46822ff25
MT#55283 compile fix for older glib
by moving the glib helper into containers.h
Change-Id: I09bba2343cbbbaf4f9aba7fc89740d4fa6280927
1 year ago
Richard Fuchs
5647f479c4
MT#55283 support setting cc-opus-complexity
Change-Id: I30130557420e1f53cf69f14e8bed2f3016e22397
2 years ago
Richard Fuchs
a140d83975
MT#55283 enforce hash table types in callbacks
For typed hash tables, enforce the correct type in the arguments to the
hashing and equality functions.
Adapt existing affected callback functions and change their arguments
from void* to the respective types.
Add reverse casts to GHashFunc and GEqualFunc in instances where these
functions are used in non-typed hash tables (that should be converted at
a later point).
Add convenience macro to create typed wrapper functions for hash tables
that use "direct" hashing (i.e. the pointer value).
Add wrappers for existing GLib functions that have generic arguments so
that they can be used in typed hash tables.
Change-Id: I43bb32969208f4aae49584d95c0df8353df6e2a0
2 years ago
Richard Fuchs
324fc591e9
MT#55283 support custom uring buffer size
Change-Id: I020df2427f690d84130ca218c0b24cc8136fc07d
2 years ago
Richard Fuchs
376d61bddb
MT#55283 add convenience atomic_inc_na
Change-Id: Iddeef2a6fe8b29dff3e6975fb2f27cec0a12bbc6
2 years ago
Richard Fuchs
cdc8407a7c
MT#55283 use relaxed memory order for stats
No need for memory barriers here
Change-Id: I9ac6768bb1929be3aa982b0de73c95baa965bef7
2 years ago
Richard Fuchs
ebaca8a4e0
MT#55283 initial support for io_uring
Change-Id: I497db70a4ba6a9242b637a867a70fdfa0f361a44
2 years ago
Richard Fuchs
71177278dd
MT#55283 move atomic64 to auxlib.h
Change-Id: I6597d4ee39ba0ebb86f0640caaf538e505b78b77
2 years ago
Richard Fuchs
28e9079e2f
MT#55283 mass codec-chain update
Change-Id: I181e3cce6145b8bfd4c55e931b303a3b037eb167
2 years ago
Richard Fuchs
8d3b43a445
MT#55283 update NONE flags to gboolean
Also move `version` out of the global namespace.
Change-Id: I72e222fa6c533fc21d8391a861bdb804285895d6
2 years ago
Richard Fuchs
2160cb0fbf
MT#55283 use helper struct instead of void* array
Change-Id: Ic9992d3206d39a9f0274c8d88a3a027b26ba751f
2 years ago
Richard Fuchs
96a894ff8b
MT#55283 move helper funcs away from g_ namespace
Change-Id: I36f35062b135418dadb02d46d50b1454b5eebe3a
2 years ago
Richard Fuchs
949c5a9d8e
MT#55283 work around gcc <12 being stupid
gcc <12 propagates the const-ness of the given value to the newly
declared variable with __auto_type, leading to silly "can't assign to
const variable" errors. Work around this with an ugly macro.
Change-Id: Ic952c094c24bd802379fc10ad19d559613b2c1d0
2 years ago
Richard Fuchs
a40557eb03
MT#55283 remove obsolete macro
Change-Id: I3f05d02fe9475e0689a70725dc659b599a1ac904
2 years ago
Richard Fuchs
0dc3768225
MT#55283 use g_auto for auto locks
Change-Id: I103e0d9a2e24286b242ccd3ac4d2d6b734cdfe35
2 years ago
Richard Fuchs
cfa560c6b4
MT#55283 use g_auto for GHashTable
Change-Id: I698f661711104a0fd6a983c58c0256532e86f87e
2 years ago
Richard Fuchs
c28ba5cd4e
MT#55283 use g_auto for GString
Change-Id: Ie7eb4a8f4115cdf13770cb112d8116b29ae94d73
2 years ago
Richard Fuchs
43b171c714
MT#55283 replace free_gvbuf via g_autoptr
Change-Id: If2ce7fb274478a0c044c00ded1404c31258ed0c7
2 years ago
Richard Fuchs
5a2819bd9d
MT#55283 use g_auto for string buffers
Change-Id: I135f75355a128feb8f3152c170ca4f9022d917a8
2 years ago
Richard Fuchs
32dd03cbd6
MT#54294 update to codec-chain framework
Change-Id: Ic6286494fad459df4a77665aae66f1af03e9664b
2 years ago
Richard Fuchs
b82b31ec2b
MT#54294 convert cudecs usage to plugin
*) Remove packaging for -gpu packages
*) Remove build profile restrictions, except for the build dependency
itself
*) Remove script to generate dh fragments for -gpu packages
*) Convert --cudecs switch to a path argument pointing to the .so
*) Don't link against libcudecs during build
*) Only include the single types.h header needed for usage as a plugin
*) Resolve all symbols during startup after loading the .so
Change-Id: Ide99eec2156d5d3be8c40594391cb1603add4b16
2 years ago
Richard Fuchs
2fa121c0d9
MT#54294 add GPU support
Change-Id: I035eff68a4448ad1b2f5b4520943626e1723fce7
2 years ago
Richard Fuchs
0f9bb26143
MT#55283 unify __attribute__() test macros
Change-Id: Ia2ef8e995c78a2dd1fe33e37f78eed6e58191ac7
2 years ago
Richard Fuchs
d6928c74f8
MT#56374 add gettid() wrapper
... for older glibc which doesn't support it
Change-Id: I82cd49e6a10fd48861ae00c4eda06613f930fca7
2 years ago
Richard Fuchs
125657e108
MT#56374 move glib helper to auxlib
Needed by perf-tester
Change-Id: I9fcb68e48938a2060498bf30ff7ffbdd38c6d94b
2 years ago
Richard Fuchs
0be5b73887
MT#56374 add `poller-size` config var
Change-Id: Ibd6a42f5cc5b261ce95fe0231ec78e55bd66ac31
2 years ago
Richard Fuchs
196249ee00
MT#56374 refactor asan pthread cleanup hack
... in terms of macros that can be reused.
Change-Id: I394dece8ec22ce4eff4deefe5ddd6315bb35a6fb
2 years ago
Richard Fuchs
118a7ed472
MT#56374 move thread_create to lib
It actually uses a shared config setting from the lib (stack size) so
the function itself also belongs in the lib.
Change an argument type to bool.
Change-Id: I8be68008fcfc058cb29069102eb00497b66897a5
2 years ago
Richard Fuchs
4aa1d5f6cd
MT#55283 move prototype
... to appropriate section in .h
Change-Id: Ia66f7df2b8d0393a21505676b9c30adb9b948f2b
2 years ago
Richard Fuchs
ee0fa947ce
MT#56374 move resources() to lib
Useful helper function for other components
Change-Id: Idb8ab38e3ac27461b71e28029e7abc0bfc0529c2
2 years ago
Richard Fuchs
16c08efe62
MT#56374 move pthread helper functions to auxlib
The poller (also in lib) depends on this.
Change-Id: Iabf7c2ddef129401c19ae6a1f4f391ab9eaa4367
2 years ago
Richard Fuchs
61ca57f0cf
MT#56374 move ssl_random to auxlib
The poller (now also in lib) depends on this.
Change-Id: I8185e514c7a7aeef80c905136795904340ff60dc
2 years ago
Richard Fuchs
84f4467241
MT#56374 move rtpe_shutdown to auxlib
This is a dependency of the poller and so is needed in lib/ as well to
make it usable.
Also consolidate the type.
Change-Id: I70ec8a200d6cd65710ac93636a9495cf24c35ef4
2 years ago
Richard Fuchs
ddc79e5713
MT#55283 add missing header
Change-Id: I40a9758e8af0003b64478c6d2bff85e6ab8eae2c
3 years ago
Richard Fuchs
bc742bb1ad
MT#56447 add wrapper g_hash_table_steal_extended
Compatibility for glib versions older than 2.58
Change-Id: Ie212a1c08efa87f103b31eac31f81a3870e5cedd
3 years ago
Richard Fuchs
ed30c55312
MT#56447 fix LOCK __COUNTER__ expansion
We need two levels of CPP macros so that __COUNTER__ is expanded before
being concatenated.
Change-Id: I04d871a3bb841080eb8992bb8261551b5bd22832
3 years ago
Richard Fuchs
cd185fd168
MT#56493 move GTree helpers to auxlib
Change-Id: Ia3135d9f2c370d9c18d7249506256241339df9d1
3 years ago
Richard Fuchs
dc1a44f3ec
MT#55447 add support for EVS
Change-Id: I54993cefbb3d30a4dc87b13507dd0d61739baaa0
3 years ago
Dup4
ad5d98e4d0
MT#55283 Squashed commit of the following:
closes #1560
closes #1559
commit e11f52c041
Author: Dup4 <lyuzhi.pan@gmail.com>
Date: Tue Nov 1 22:58:44 2022 +0800
fix: add comma
commit e0c2f47b49
Author: Dup4 <lyuzhi.pan@gmail.com>
Date: Tue Nov 1 22:01:26 2022 +0800
feat: add log-name option
Change-Id: I40a7b68120efb240faea86eb2d716d5e01a420c3
3 years ago
Richard Fuchs
941a50edd5
TT#156900 add helper functions and macros
Change-Id: I341632e4b6dbefd6743b9b1c4578c374c84505b2
4 years ago