-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(toxav): fix docs of toxav.h #2754
Conversation
fe5ab46
to
85d1761
Compare
acutally "b" (lowercase b) always means bits. |
and video bitrate is correct as Kb/s (kilo bits per second). well i am still checking this. its been a long time. hold on a bit ... |
zoff is right, Kb and kbit are the same unit, so that particular unit is not really being fixed, just reworded. I do support the change though, being more explicit/clear in the documentation and spelling it out is probably a good thing. |
@zoff99 yea we multiply both audio and video rates by 1000, BUT /*!\brief Target data rate
*
* Target bitrate to use for this stream, in kilobits per second.
*/
unsigned int rc_target_bitrate; |
yeah thats why i say im still checking. in my forks i think its correct but let me actually check ... |
yeah its wrong in toktok: Line 420 in 5344d7f
but fixed in mine: cfg2.rc_target_bitrate = (bit_rate / 1000); |
sidenote: opus changed, and the new meaningful lower bound for the bitrate is |
but in any case the toxav PR needs to be merged first. fixes of old bugs come only afterwards. |
@zoff99 do we preserve behavoir and adjust the comments (this pr as-is) or do we fix it and change behavior? |
This pr has no conflicts with your pr, so that does not really matter, only if we change the code. Also, someone needs to fix circle ci first ... |
back to draft, until either toxav prs is merged. |
1c68998
to
85d1761
Compare
85d1761
to
745c742
Compare
745c742
to
06aea13
Compare
Update: this no longer changes the described bitrate of video to mega bits. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2754 +/- ##
==========================================
- Coverage 73.04% 73.00% -0.04%
==========================================
Files 149 149
Lines 30478 30478
==========================================
- Hits 22263 22251 -12
- Misses 8215 8227 +12 ☔ View full report in Codecov by Sentry. |
That's good. The Mbit change is API / behavior breaking, so it's good to have it in a separate PR until we are ready to break the API. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: 0 of 2 approvals obtained (waiting on @Green-Sky, @iphydf, and @zoff99)
4b26218
to
252dd25
Compare
- fix units to be more readable - use width before height consistently - video -> audio typo
252dd25
to
7e57328
Compare
I would like to correct my earlier comment that that Mbit change is, in fact, not API breaking. I thought the API used to say Mbit/s before, due to various force-push diffs in this PR doing the Mbit/s -> kbit/s function doc change, in which case changing it to kbit/s would be API-breaking, but I went and checked 5 years worth of the past revisions of toxav.h and apparently it has always been kbit/s, so no API is being broken. |
Yeah, that PR being merged so unceremoniously is what made me go back and double-check if it was actually API breaking or not, before I yell at iphydf for breaking the API. Apparently it wasn't, which is good. |
Kb/sec
->kbit/sec
)width
beforeheight
consistentlyfor another pr: fix video being actually
Mbit/sec
#2782This change is