summaryrefslogtreecommitdiff
path: root/toxav/toxav.h
AgeCommit message (Collapse)Author
2018-08-26Update copyright to 2018.iphydf
2018-08-14Fix style in toxav.c.iphydf
* Use Camel_Snake_Case for type names. * Use at least 4 characters for constant names. I.e. `END` is a type name, but `RETURN` is a constant name. This is because `DHT` is a type name (yay consistency). * Using `min_*` functions instead of MIN, we can avoid a cast. * Use `for`-loops for for-each-frame semantics instead of `while`. * Don't use assignments as expressions. * `++i` instead of `i++`. * Function pointers are dereferenced automatically, so no need to manually do so. * Avoid void pointers that lie about not being spaghetti code. Toxcore and toxav are both spaghetti and shouldn't pretend anything else. * Don't use empty statements (e.g. no `;;` anywhere in the code).
2018-02-20make groupnumber uint32_tsudden6
fixes #606
2018-01-28Make audio/video bit rates "properties"xhe
follow TokTok#731. This commit completely removed all things in namespace bit_rate, and deprecated functions are to be added back in another commit. set_xxx() is treadted as a property of namespace audio&video, same as bit_rate change event. toxav_basic_test is fixed, either.
2018-01-25Split bit_rate_set(), one for audio, one for video.xhe
Fixes #572. As discussed in the issue, there's a risk that toxcore may not hold the maximum bitrates libvpx supports, if toxcore insists on using integer type. I initially proposed to have another flag in set(), so that we can use unsigned type instead. iphydf came up with a better solution, that is splitting the original functions, one for audio, one for video. Now, we could safely replace int32_t with uint32_t. Also: clean video_bit_rate_invalid() Though this is not a part of issue #572, as it's used in the toxav_bit_rate_set(), i cleaned the code. As mannol said, there should be a check. Uint32_t is large enough to hold the maximum bitrates libvpx supports, but user may pass a value larger than uint while smaller than uint32_t. Thanks to the reminding from nurupo, it's no longer a stub function. Bitrate error enums are shared for both audio and video https://github.com/TokTok/c-toxcore/pull/578#issuecomment-360095609, just as iphydf said.
2017-01-19Update license headers and remove redundant file name comment.iphydf
"All rights reserved" was incorrect. The project was licensed under GPL3, which means a lot of rights are licensed to everybody in the world, i.e. not reserved to the "Tox Project".
2016-11-20Add NONE enumerator to bit mask.iphydf
2016-10-01Minor documentation fixes.iphydf
- Fixed incorrect parameter names (documented name didn't match code name). - Removed `@return` from functions that return `void`. - Make sure every parameter is documented. This required moving the planes and strides documentation to the function docs.
2016-09-28v0.0.0 => v0.0.1Gregory Mullen (grayhatter)
2016-09-19Revert "Make ToxAV stateless"iphydf
This reverts commit 21f8db12c45bd56293262cd4abfb73cd9abec821. It is currently broken. Incoming call callbacks are not invoked, and instead the client goes offline immediately.
2016-09-17Make ToxAV statelessGregory Mullen (grayhatter)
2016-09-16Ensure that all TODOs have an owner.iphydf
In the future, all TODOs added either need a bug number (TODO(#NN)) or a person's github user name. By default, I made irungentoo the owner of all toxcore TODOs, mannol the owner of toxav TODOs, and myself the owner of API TODOs.
2016-09-09Use `const` for version numbers.iphydf
ApiDSL generates the lowercase function declarations for us and puts them in the right namespace (TOX_, TOXAV_).
2016-09-01Match parameter names in declarations with their definitions.iphydf
The parameter names were taken from function definitions to update the names in function declarations (prototypes).
2016-03-09Added astyled toxav.h to match toxav.in.hderive
2015-11-03Astyle.irungentoo
2015-10-24Add synchronization protection for send_frame API functionsEniz Vukovic
2015-10-23Fix docsmannol
2015-10-13Fix typo and change logger config optionEniz Vukovic
2015-10-12Return removed groupchats codeEniz Vukovic
2015-10-11Remove old commentEniz Vukovic
2015-10-10UpdateEniz Vukovic
2015-10-10New Adaptive BR algorithm, cleanups and fixesEniz Vukovic
2015-08-18typokrobelus
2015-08-07Fixed memory leak during session cleanup and fixed naming.mannol
2015-07-10Fixed CALL_STATE namingmannol
2015-07-09Fixed documentation.mannol
2015-07-01Fixed missing include toxav_old.hmannol
2015-06-30Implement handling capability change on rtp levelmannol
2015-06-27Added support for old groupchatsmannol
2015-06-27Renamed TOXAV_CALL_STATE to TOXAV_FRIEND_CALL_STATEmannol
2015-06-27Added explanation about how audio callback worksmannol
2015-06-27Added payload turning off by setting bit rate to 0mannol
2015-06-05Forgot about thismannol
2015-06-05Rebased on master and removed alpha channel (again)mannol
2015-05-22Updated with mastermannol
2015-05-12Fix bugmannol
2015-05-07Fixed inconsistenciesmannol
2015-05-01Fixed* api comments and some bugsmannol
2015-04-29Fixed typokrobelus
2015-04-29Donemannol
2015-04-26Almost donemannol
2015-04-21Final touchupsmannol
2015-04-20Add extern "C"mannol
2015-04-18Update commentmannol
2015-04-18Fix toxav callbackmannol
2015-04-17Update latestmannol
2015-04-16The pretty basic adaptive bitrate is *working*mannol
2015-03-29A little CS cleanupmannol
2015-03-25Consistency with core apiDubslow