Sergey Duck
4d9bcd489b
Restructurization
2020-05-26 13:23:42 +03:00
Tad Hardesty
d44526af83
Bump version to v0.2.1 and update docs link
2018-08-07 02:27:08 -07:00
Tad Hardesty
5600b95aa4
Add a test for 'packet loss' decode calls
...
Tests 06643a44.
2018-08-07 02:27:07 -07:00
Tad Hardesty
f43fcc33ad
Add comment justifying Send impl
2018-08-07 02:16:39 -07:00
Ram Kaniyur
55d988beac
Make Encoder, Decoder and Repacketizer Send-able.
2018-07-17 03:24:55 +10:00
Tad Hardesty
0d2167ffa5
Correct unnecessary mutable variables
2017-11-30 13:41:28 -08:00
Tad Hardesty
4c8ba6dfef
Add VBR and VBR constraint encoder CTLs
2017-11-30 04:03:34 -08:00
thelearnerofcode
58c8421a53
Added [derive(Debug)] to various public-facing structs.
2017-10-02 17:25:24 -04:00
Tad Hardesty
06643a441c
Pass null pointer on empty decode input, for packet loss
...
Although this does not change behavior in the current implementation,
which also accepts a length of zero to mean packet loss, the
documentation only indicates that a null pointer means packet loss. For
future safety, pass a null pointer when the packet is empty.
2017-05-20 20:38:59 -07:00
Tad Hardesty
7def3a668c
Add a few additional test cases
2017-05-20 20:38:37 -07:00
Tad Hardesty
43f36f0e7f
Remove compiletest for now
...
There's no easy way to ignore this test in the case that the installed
nightly disagrees with compiletest-rs. This is getting in the way of
improving the normal tests, so disable it for now.
2017-05-16 13:55:14 -07:00
Tad Hardesty
f522a8a155
Explicitly panic when a length exceeds c_int range
...
Rather than relying on `as c_int` to do the right thing, check
explicitly that a negative or truncated value is not being created.
2017-05-15 18:34:33 -07:00
Tad Hardesty
8cf15ae5e3
Replace check calls with ffi macro
...
The macro stringifies the function name automatically and ensures that
the error check is not skipped.
2017-05-15 18:22:12 -07:00
Tad Hardesty
5975370c92
Tidy handling of certain BadArg errors
...
Additionally, expose ErrorCode::description publically and use it
on-demand rather than retrieving it in advance in Error::from_code.
2017-05-15 17:36:52 -07:00
Tad Hardesty
c888c71feb
Add macros to simplify CTL implementations
...
Also fixes a bug where get_bandwidth CTLs were not returning the correct
values.
2017-05-15 17:17:50 -07:00
Tad Hardesty
2ae7540582
Implement decoder CTLs
2017-05-15 16:49:55 -07:00
Tad Hardesty
45b191a645
Add categories to Cargo.toml
2017-01-25 23:51:00 -08:00
Tad Hardesty
a72206baea
Bump version to v0.2.0 and add docs link
2016-10-17 17:54:29 -07:00
Mathew Velasquez
b0377c9506
Add lookahead getter
2016-10-16 17:13:09 -07:00
Tad Hardesty
9a0430620f
Use compiletest to check Repacketizer lifetimes
2016-10-15 02:16:47 -07:00
Jean-Marc Valin
09f9d16148
Add support for Max and Auto bitrates through an enum
2016-10-07 17:37:21 -07:00
Nicholas Stafie
6c6bec4c0c
Add inband FEC and packet loss percentage getters and setters
2016-10-05 13:31:32 +01:00
Tad Hardesty
c7a906230b
Line wrap comments on Application
2016-08-15 17:41:34 -07:00
Jean-Marc Valin
0117ef5011
Rename CodingMode to Application
...
Makes it more in line with the Opus terminology
2016-08-15 17:17:33 -07:00
Jean-Marc Valin
4173ad0371
Add encode methods returning newly-created Vecs
2016-07-22 23:22:42 -07:00
Tad Hardesty
73b8da5e6d
Bump version to 0.1.1
2016-04-21 16:09:24 -05:00
Tad Hardesty
cafa553b73
Update to opus-sys 0.2 and libc 0.2
2016-04-21 16:08:16 -05:00
Tad Hardesty
561db24ad7
Annotate CTLs and add generic CTLs to Decoder
2016-04-11 23:40:14 -05:00
Nicholas Stafie
2274f67016
Add bitrate getter and setter bindings
2016-03-26 20:06:27 +02:00
Tad Hardesty
dab2e27f9b
Add readme, license, and Cargo metadata
2016-02-25 19:25:09 -06:00
Tad Hardesty
6b1228288a
Tidy Repacketizer interface and add more tests
...
The combine() method can be used to avoid manually managing a
RepacketizerState in the simplest use case, and cat_move now simply
calls cat internally, in a way that is easier to verify the safety of.
2016-02-25 18:13:38 -06:00
Tad Hardesty
3c6ce567f6
Fix Repacketizer soundness with proper lifetime bounds
...
RepacketizerState represents an in-progress repacketization with
specific lifetime bounds on the input buffers.
2016-02-25 18:12:35 -06:00
Tad Hardesty
f98c05957f
Fix Mono and Stereo being reversed
2016-02-25 04:50:19 -06:00
Tad Hardesty
1df6208ba8
Add documentation
2016-02-25 04:49:42 -06:00
Tad Hardesty
4d93aaad66
Add Repacketizer
2016-02-25 03:55:18 -06:00
Tad Hardesty
4f2b8af392
Add a few encoding tests
2016-02-24 03:11:24 -06:00
Tad Hardesty
d07b0b4ad2
Add Decoder, packets, and Error handling
2016-02-24 02:06:01 -06:00
Tad Hardesty
2d7ef8336d
Initial commit
2016-02-24 00:50:13 -06:00