diff options
author | Jan Buethe <jbuethe@amazon.de> | 2022-10-26 10:15:31 +0000 |
---|---|---|
committer | Jan Buethe <jbuethe@amazon.de> | 2022-10-26 10:15:31 +0000 |
commit | 7c423e61aacc582e846b593974544e508306bf21 (patch) | |
tree | 789fe747ba34d00e342d8acf2dd06e7e2396eb8d /silk/dred_config.h | |
parent | 56f14668aab5a6fe65e1dc8b6fc189f26350620f (diff) | |
download | opus-7c423e61aacc582e846b593974544e508306bf21.tar.gz |
changed data types for r, dead_zone, quant_scale and p0 to opus_uint16
Diffstat (limited to 'silk/dred_config.h')
-rw-r--r-- | silk/dred_config.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/silk/dred_config.h b/silk/dred_config.h new file mode 100644 index 00000000..6a059abb --- /dev/null +++ b/silk/dred_config.h @@ -0,0 +1,40 @@ +/* Copyright (c) 2022 Amazon + Written by Jan Buethe */ +/* + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER + OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, + PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR + PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF + LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING + NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +*/ + +/* these are inpart duplicates to the values defined in dred_rdovae_constants.h */ +#define DRED_NUM_FEATURES 20 +#define DRED_LATENT_DIM 80 +#define DRED_STATE_DIM 24 +#define DRED_NUM_QUANTIZATION_LEVELS 40 +#define DRED_MAX_FRAMES 100 +#define DRED_SILK_ENCODER_DELAY 79 +#define DRED_FRAME_SIZE 160 +#define DRED_DFRAME_SIZE (2 * (DRED_FRAME_SIZE)) +#define DRED_MAX_DATA_SIZE 1000 +#define DRED_ENC_Q0 9 +#define DRED_ENC_Q1 15 +#define DRED_NUM_REDUNDANCY_FRAMES 50
\ No newline at end of file |