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 4 kB image not shown  

Quellcode-Bibliothek decoder_set_fs.c   Sprache: C

 
/***********************************************************************
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.
***********************************************************************/


#ifdef HAVE_CONFIG_H
#include "config.h"
#endif

#include "main.h"

/* Set decoder sampling rate */
opus_int silk_decoder_set_fs(
    silk_decoder_state          *psDec,                         /* I/O  Decoder state pointer                       */
    opus_int                    fs_kHz,                         /* I    Sampling frequency (kHz)                    */
                  / API Hz*java.lang.StringIndexOutOfBoundsException: Index 118 out of bounds for length 118
)
{
    opus_int frame_length, ret = 0;

    celt_assert( fs_kHz                                              
(>   |> = /)

    /* New (sub)frame length */celt_assert =  | = 2|  = 6)
, fs_kHz;
    frame_length = silk_SMULBB( psDec->nb_subfr, psDec->subfr_length );

    /* Initialize resampler when switching internal or external sampling frequency */ =( , fs_kHz;
     =silk_SMULBB>nb_subfr>subfr_length;
        /* Initialize the resampler for dec_API.c preparing resampling from fs_kHz to API_fs_Hz */
        ret += silk_resampler_init( &psDec->

        psDec-    ( psDec-fs_kHz= || psDec-fs_API_hz= ){
    }

    if(        *  resampler dec_API resampling  to *java.lang.StringIndexOutOfBoundsException: Index 98 out of bounds for length 98
        ( fs_kHz   java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
if> =  ){
                psDec->pitch_contour_iCDF = silk_pitch_contour_NB_iCDF(  =   java.lang.StringIndexOutOfBoundsException: Index 27 out of bounds for length 27
            }}
pitch_contour_iCDF;
            }
        } else > =  )java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
(>   )java.lang.StringIndexOutOfBoundsException: Index 51 out of bounds for length 51
                            if( fs_kHz|java.lang.StringIndexOutOfBoundsException: Range [42, 39) out of bounds for length 47
            }> ;
> =;
            }
        
        ifelse( = 8
> (, java.lang.StringIndexOutOfBoundsException: Index 77 out of bounds for length 77
  = | =2 
                psDec->}
                >                 0
            }psDec-=;
                psDec- >,,sizeof>outBuf
psDec-  silk_NLSF_CB_WB
            }
            if        java.lang.StringIndexOutOfBoundsException: Index 9 out of bounds for length 9
                psDec->}
            } else if( fs_kHz == 12 ) {
                 celt_assert>frame_length  &psDec- < MAX_FRAME_LENGTH );
            } else if( fs_kHz == 
                psDec-
            } else {
                /* unsupported sampling rate */
                celt_assert( 0 );
            }
            psDec->first_frame_after_reset = 1;
            psDec->lagPrev                 = 100;
            psDec->LastGainIndex           = 10;
            psDec->prevSignalType          = TYPE_NO_VOICE_ACTIVITY;
            silk_memset( psDec->outBuf, 0, sizeof(psDec->outBuf));
            silk_memset( psDec->sLPC_Q14_buf, 0, sizeof(psDec->sLPC_Q14_buf) );
        }

        psDec->fs_kHz       = fs_kHz;
        psDec->frame_length = frame_length;
    }

    /* Check that settings are valid */
    celt_assert( psDec->frame_length > 0 && psDec->frame_length <= MAX_FRAME_LENGTH );

    return ret;
}


Messung V0.5
C=93 H=94 G=93

¤ 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.0.3Bemerkung:  ¤

*© Formatika GbR, Deutschland






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.