diff options
author | Jean-Marc Valin <jmvalin@amazon.com> | 2023-05-24 01:31:45 +0300 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@amazon.com> | 2023-06-16 20:02:16 +0300 |
commit | c64b321e7a564c673ab0322e4df895be51ec29a2 (patch) | |
tree | b8ca3463637af60fbed6656bbea33935b65bb4e2 /silk | |
parent | 39f68ce356b8377a27759cd2356ec9b366e639b9 (diff) |
DRED API update
output() renamed to decode(), dred objects using alloc() and free(),
OpusDRED now passed as cost for decoding.
Diffstat (limited to 'silk')
-rw-r--r-- | silk/dred_decoder.c | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/silk/dred_decoder.c b/silk/dred_decoder.c index 5eecb42e..d010f91a 100644 --- a/silk/dred_decoder.c +++ b/silk/dred_decoder.c @@ -37,29 +37,7 @@ #include "celt/entdec.h" -int opus_dred_get_size(void) -{ - return sizeof(OpusDRED); -} - -OpusDRED *opus_dred_create(int *error) -{ - OpusDRED *dec; - dec = (OpusDRED *)opus_alloc(opus_dred_get_size()); - if (dec == NULL) - { - if (error) - *error = OPUS_ALLOC_FAIL; - return NULL; - } - return dec; - -} -void opus_dred_destroy(OpusDRED *dec) -{ - free(dec); -} int dred_ec_decode(OpusDRED *dec, const opus_uint8 *bytes, int num_bytes, int min_feature_frames) { |