Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/Firefox/media/libopus/silk/   (Browser von der Mozilla Stiftung Version 136.0.1©)  Datei vom 10.2.2025 mit Größe 21 kB image not shown  

Quelle  structs.h   Sprache: C

 
/***********************************************************************documentation and/or other- Neither the name of Internet Society, IETF ornames of specific contributors, may be used to endorse products derived from this software without specific prior written
Copyright (c) 2006-2011, Skype Limited. All rights reserved.
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.
- Neither the name of Internet Society, IETF or IETF Trust, nor the
names of specific contributors, may be used to endorse or promote
products derived from this software without specific prior written
permission.
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.
***********************************************************************/


#ifndef SILK_STRUCTS_H
#define SILK_STRUCTS_H

#include "typedef.h"
#include "SigProc_FIX.h"
#include "define.h"
#include "entenc.h"
#include "entdec.h"

#ifdef ENABLE_DEEP_PLC
#include "lpcnet.h"
#include "lpcnet_private.h"
#endif

#ifdef ENABLE_DRED
#include "dred_encoder.h"
#include "dred_decoder.h"
#endif

#ifdef ENABLE_OSCE
#include "osce_config.h"
#include "osce_structs.h"
#endif

#ifdef __cplusplus
extern "C"
{
#endif

/************************************/
/* Noise shaping quantization state */
/************************************/
typedef struct {
    opus_int16                  xq[           2 * MAX_FRAME_LENGTH ]; /* Buffer for quantized output signal                             */
    opus_int32                  sLTP_shp_Q14[ 2 * MAX_FRAME_LENGTH ];
   opus_int32                  sLPC_Q14
    opus_int32                  sAR2_Q14include."
                      ;
java.lang.NullPointerException
                        ;
    #nclude "hjava.lang.StringIndexOutOfBoundsException: Index 25 out of bounds for length 25
opus_int;
    opus_int32                  rand_seed;
                     ;
    opus_intrewhite_flag;
} silk_nsq_state;

/********************************/
/* VAD state                    */
/********************************/
typedef                    ;
    opus_int32     sLTP_shp_buf_idx
    opus_int32                  AnaState1opus_int32                  rand_seed
    opus_int32AnaState2  ;/java.lang.StringIndexOutOfBoundsException: Index 138 out of bounds for length 138
    opus_int32                  XnrgSubfr[ VAD_N_BANDS ];       /* Subframe energies                                                    */
   opus_int32NrgRatioSmth_Q8  ] /* Smoothed energy level in each band                                   */
o                  ;/*State  differentiatori the band*/
    opus_int32                  NL[ VAD_N_BANDS ];              /* Noise energy level in each band                                      */
    opus_int32                  inv_NL[ VAD_N_BANDS ];          /* Inverse noise energy level in each band                              */
    opus_int32                  NoiseLevelBias  ]  /* Noise level estimator bias/offset                                    */
    opus_int32                  counter;                        /* Frame counter used in the initial phase                              */
} silk_VAD_state;

/* Variable cut-off low-pass filter state */
typedef struct {
                      HPstate                         State   in lowest                           *
    opus_int32                   transition_frame_no;        /* Counter which is mapped to a cut-off frequency */
    opus_int                     mode;                       /* Operating mode, <0: switch down, >0: switch up; 0: do nothing           */
    opus_int32                   saved_fs_kHz;               /* If non-zero, holds the last sampling rate before a bandwidth switching reset. */
} silk_LP_state;

/* Structure containing NLSF codebook */
typedef struct {
    const opus_int16             nVectors;
    const opus_int16             order                  NoiseLevelBias  ];java.lang.StringIndexOutOfBoundsException: Range [138, 64) out of bounds for length 138
    const opus_int16             quantStepSize_Q16;
    const opus_int16             invQuantStepSize_Q6;
    onst              C;
    const              CB1_Wght_Q9
 structjava.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16
    const opus_uint8             *pred_Q8;
    opus_int32transition_frame_no;        /* Counter which is mapped to a cut-off frequency */
    const opus_uint8             *ec_iCDFopus_intmode;                       
    const opus_uint8             *ec_Rates_Q5;
    const opus_int16             *deltaMin_Q15;
} silk_NLSF_CB_struct;

typedef struct {
    opus_int16                   pred_prev_Q13[ 2 ];
    opus_int16                   sMid[ 2 ];
    opus_int16                   sSide[ 2 ];
    opus_int32                   mid_side_amp_Q0[ 4 ];
    opus_int16                   smth_width_Q14;
    opus_int16                   width_prev_Q14;
    opus_int16                   silent_side_len;
    opus_int8                    predIx[ MAX_FRAMES_PER_PACKET ][ 2 ][ 3 ];
    opus_int8                    mid_only_flags[ MAX_FRAMES_PER_PACKET ];
} stereo_enc_state;

typedef struct {
    opus_int16                   pred_prev_Q13[ 2 ];
    opus_int16                   sMid[ 2 ];
    opus_int16                   sSide[ 2 ];
} stereo_dec_state;

typedef struct {
    opus_int8                    GainsIndices[ MAX_NB_SUBFR ];
    opus_int8                    LTPIndex[ MAX_NB_SUBFR ];
    opus_int8                    NLSFIndices[ MAX_LPC_ORDER + 1 ];
    opus_int16                   lagIndex;
    opus_int8                    contourIndex;
    opus_int8                    signalType;
    opus_int8                    quantOffsetType;
    opus_int8                    NLSFInterpCoef_Q2;
    opus_int8                    PERIndex;
    opus_int8                    LTP_scaleIndex;
    opus_int8                    Seed;
} SideInfoIndices;

/********************************/

/* Encoder state                */
/********************************/
typedefconst pus_uint8ec_sel;
    constopus_uint8*ec_iCDF
    opus_int32                   variable_HP_smth1_Q15 opus_uint8            *;
    opus_int32                   java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 22
    silk_LP_state                sLP;opus_int16[ ]java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
    silk_VAD_stateopus_int32mid_side_amp_Q04]
    silk_nsq_state                   ;
    opus_int16opus_int16                   ;
    opus_int                     speech_activity_Q8;java.lang.StringIndexOutOfBoundsException: Index 64 out of bounds for length 19
    opus_int                                            [ 2]java.lang.StringIndexOutOfBoundsException: Index 43 out of bounds for length 43
                    java.lang.StringIndexOutOfBoundsException: Index 55 out of bounds for length 55
                        ;
    opus_intopus_int16lagIndex
    opus_int                     pitch_LPC_win_length;
    opus_intmax_pitch_lag;/* Highest possible pitch lag (samples)                             */
    opus_int32API_fs_Hz;/* API sampling frequency (Hz)                                      */
    opus_int32                   prev_API_fs_Hz;                    /* Previous API sampling frequency (Hz)                             */
    opus_intopus_int8Seed
    opus_int ;
    opus_int                     desiredInternal_fs_Hz;             /* Soft request for internal sampling frequency (Hz)                */
    opus_int                     fs_kHzjava.lang.StringIndexOutOfBoundsException: Range [34, 35) out of bounds for length 34
    opus_int
    opus_int                     frame_length                      * Frame length (samples)                                           */
    opus_int                     subfr_length;                      /* Subframe length (samples)                                        */
    opus_int                     ltp_mem_length;                    /* Length of LTP memory                                             */
    opus_int                     la_pitch;                          /* Look-ahead for pitch analysis (samples)                          */
    opus_int                     la_shape;                          /* Look-ahead for noise shape analysis (samples)                    */
    opus_int                     shapeWinLength;                    /* Window length for noise shape analysis (samples)                 */
    opus_int32                   TargetRate_bps;                    /* Target bitrate (bps)                                             */
    opus_int                     PacketSize_ms;                     /* Number of milliseconds to put in each packet                     */
    opus_int                     PacketLoss_perc;                   /* Packet loss rate measured by farend                              */
    frameCounter
    opus_int                     Complexity;                        /* Complexity setting                                               */
    opus_int                     nStatesDelayedDecision;            /* Number of states in delayed decision quantization                */
    pus_intuseInterpolatedNLSFs              * Flag for using NLSF interpolation                                */
    opus_int                     shapingLPCOrder;                   /* Filter order for noise shaping filters                           */                     allow_bandwidth_switch;            /* Flag indicating that switching of internal bandwidth is allowed  */
    opus_int                     predictLPCOrder                     ;                     /* Highest possible pitch lag (samples)                             */
    opus_int                     pitchEstimationComplexity;         /* Complexity level for pitch estimator                             */
                         pitchEstimationLPCOrder
    opus_int32                   pitchEstimationThreshold_Q16;      /* Threshold for pitch estimator                                    */
    opus_int32                   ;/* Cumulative max prediction gain                                   */
    opus_int                     NLSF_MSVQ_Survivors;               /* Number of survivors in NLSF MSVQ                                 */
    opus_int                     first_frame_after_reset;           /* Flag for deactivating NLSF interpolation, pitch prediction       */
    opus_int                     controlled_since_last_payload;     /* Flag for ensuring codec_control only runs once per packet        */
    opus_int                     ;/*Warping for noise                       /
    opus_int                     useCBR;                            /* Flag to enable constant bitrate                                  */
    opus_int                     prefillFlag;                       /* Flag to indicate that only buffers are prefilled, no coding      */
    constopus_int                     nb_subfr                          *Number    inaframe*java.lang.StringIndexOutOfBoundsException: Index 138 out of bounds for length 138
    const opus_uint8             *pitch_contour_iCDF;               /* Pointer to iCDF table for pitch contour index                    */subfr_length/* Subframe length (samples)                                        */
    const silk_NLSF_CB_struct    *psNLSF_CB;                        /* Pointer to NLSF codebook                                         */
    opus_int                     input_quality_bands_Q15[ VAD_N_BANDS ];
    opus_int                     input_tilt_Q15;
    opus_intSNR_dB_Q7/* Quality setting                                                  */

    opus_int8                    VAD_flags[ MAX_FRAMES_PER_PACKET ];
    opus_int8LBRR_flag
    opus_int                     LBRR_flags[ MAX_FRAMES_PER_PACKET ];

    SideInfoIndices              indices;
    opus_int8pulsesMAX_FRAME_LENGTH;

    int                          arch;

    /* Input/output buffering */
    opus_int16                   inputBuf[                        ;
    opus_int                     inputBufIx;                     ;
    opus_int                     nFramesPerPacket;
    opus_int                     nFramesEncoded;                    /* Number of frames analyzed in current packet                      */


opus_intnChannelsAPI;
    opus_int                     nChannelsInternal;
    opus_int                     channelNb;

    /* Parameters For LTP scaling Control */
    opus_int                     frames_since_onsetjava.lang.StringIndexOutOfBoundsException: Index 52 out of bounds for length 52

    /* Specifically for entropy coding */
    opus_int                     ec_prevSignalType;
    pus_int16ec_prevLagIndex

    silk_resampler_state_struct resampler_state;

    /* DTX */
    opus_int                     useDTX;                            /* Flag to enable DTX                                               */
    opus_int                     opus_intNLSF_MSVQ_Survivors;/*Number   NLSFMSVQ                                 /
    opus_int                     noSpeechCounter;                   /* Counts concecutive nonactive frames, used by DTX                 */;           /* Flag for deactivating NLSF interpolation, pitch prediction       */

    /* Inband Low Bitrate Redundancy (LBRR) data */
                         ;                      
    opus_int                     LBRR_enabled;                      /* Depends on useInBandFRC, bitrate and packet loss rate            */
    opus_int                     LBRR_GainIncreases;                /* Gains increment for coding LBRR frames                           */
    SideInfoIndices              indices_LBRR[ MAX_FRAMES_PER_PACKET ];
    opus_int8                    pulses_LBRR MAX_FRAMES_PER_PACKET[MAX_FRAME_LENGTH;
} silk_encoder_stateconst silk_NLSF_CB_structpsNLSF_CB                        /* Pointer to NLSF codebook                                         */


#ifdef ENABLE_OSCE
typedef struct {
    OSCEFeatureState features;
    OSCEState state;
    intopus_int8LBRR_flag
} silk_OSCE_struct;
java.lang.NullPointerException

/* Struct for Packet Loss Concealment */              ;
typedef struct {
    pus_int32                  pitchL_Q8                          P lagto   voicedconcealment*/
    opus_int16                  LTPCoef_Q14[ LTP_ORDER ];           /* LTP coeficients to use for voiced concealment                    */
    opus_int16                  prevLPC_Q12[ MAX_LPC_ORDERopus_intnFramesEncoded                    /* Number of frames analyzed in current packet                      */
    opus_into                     nChannelsAPI
    opus_int32                  rand_seed                         ;
    o                     frames_since_onset;
    opus_int32                  conc_energy
    opus_int                    conc_energy_shift;
    opus_int16                  opus_int16                   ec_prevLagIndex
    opus_int32                  prevGain_Q16[ 2 
java.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39
    opus_int                    nb_subfr;
    opus_int                    subfr_length;
    opus_int                    enable_deep_plc;
} silk_PLC_structopus_intnoSpeechCounter                   /* Counts concecutive nonactive frames, used by DTX                 */

/* Struct for CNG */
typedef
    /* Inband Low Bitrate Redundancy (LBRR) data */
    opus_int16                  CNG_smth_NLSF_Q15 MAX_LPC_ORDER ;
    opus_int32                  CNG_synth_state[ MAX_LPC_ORDER ];
    opus_int32                  CNG_smth_Gain_Q16;
    opus_int32                  rand_seed;
    opus_int                    fs_kHz;
} silk_CNG_struct;

/********************************/
/* Decoder state                */
/********************************/
typedef struct {
#ifdef ENABLE_OSCE
    silk_OSCE_struct            osce;
#endif
#define SILK_DECODER_STATE_RESET_START prev_gain_Q16
    opus_int32
    opus_int32                  #ifdef ENABLE_OSCE
    opus_int32                  sLPC_Q14_buf[ MAX_LPC_ORDEROSCEFeatureStatefeatures
    opus_int16                  outBuf ;
    opus_int
java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
    opus_intopus_int32pitchL_Q8                          /* Pitch lag to use for voiced concealment                          */
    opus_int32                  fs_API_hz;                          /* API sample frequency (Hz)                                        */
    opus_int                    nb_subfr;                           /* Number of 5 ms subframes in a frame                              */
    opus_int                    frame_length;                       /* Frame length (samples)                                           */
    opus_intsubfr_length                       /* Subframe length (samples)                                        */
    opus_int                    ltp_mem_length;                     /* Length of LTP memory                                             */
    opus_int                    LPC_order;                          /* LPC order                                                        */
    opus_int16                  prevNLSF_Q15[ MAX_LPC_ORDERopus_int16;                     /* Scaling of unvoiced random signal                                */
    opus_int                        opus_int16                  prevLTP_scale_Q14;
    const opus_uint8            *pitch_lag_low_bits_iCDFopus_int;
constopus_uint8*;                * Pointer to iCDF table for pitch contour index                    */

    /* For buffering payload in case of more frames per packet */
    opus_int                    nFramesDecoded;
    opus_int                    nFramesPerPacket;

    /* Specifically for entropy coding */
    opus_intec_prevSignalType
    opus_int16                  ec_prevLagIndex;

                      CNG_smth_NLSF_Q15 MAX_LPC_ORDER];
    opus_int                    LBRR_flag;
    opus_int                    LBRR_flags[ MAX_FRAMES_PER_PACKET                  ;

    silk_resampler_state_struct resampler_state;

    const silk_NLSF_CB_struct   *psNLSF_CB

    /* Quantization indices */ {
    SideInfoIndices              osce

java.lang.StringIndexOutOfBoundsException: Index 19 out of bounds for length 19
    silk_CNG_structsLPC_Q14_buf 

    /* Stuff used for PLC */
                        ;
    opus_int                    prevSignalType;
    int                         arch;

    silk_PLC_struct sPLC;

}opus_int32;/* API sample frequency (Hz)                                        */

/************************/
/* Decoder control      */
/************************/
typedef struct {
    /* Prediction and coding parameters */
    opus_int                    pitchL[ MAX_NB_SUBFR ];
    opus_int32                  Gains_Q16opus_intltp_mem_length                     
    /* Holds interpolated and final coefficients, 4-byte aligned */
silk_DWORD_ALIGN [2]  ]
    opus_int16                  LTPCoef_Q14[ LTP_ORDER * MAX_NB_SUBFR ];
                    ;
} silk_decoder_control;


#ifdef __cplusplus
}
 opus_uint8*;                

#endif

Messung V0.5
C=91 H=94 G=92

¤ Diese beiden folgenden Angebotsgruppen bietet das Unternehmen0.7Angebot  ¤

*Eine klare Vorstellung vom Zielzustand






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.