Commit 86899ac4 authored by JÜRGEN Gerstacker's avatar JÜRGEN Gerstacker
Browse files

clang format

parent 5df5fd25
Loading
Loading
Loading
Loading
Loading
+6 −5
Original line number Diff line number Diff line
@@ -105,7 +105,8 @@ static UWord16 ivas_ari_get_symbol(

#ifndef FIX_2402_SIGNED_VERSION
xxx
UWord16 ivas_ari_decode_14bits_bit_ext_1_lfe(
    UWord16
    ivas_ari_decode_14bits_bit_ext_1_lfe(
        Decoder_State *st,
        Tastat *s,
        const UWord16 *cum_freq,
+54 −40
Original line number Diff line number Diff line
@@ -75,7 +75,8 @@ static Word16 arith_decode_bits_fx(
    Decoder_State *st,                      /* i/o: pointer to bitstream decoder state */
    Word16 nBits                            /* i  : number of bits to decode */
#ifdef FIX_2402_REPL_EVS_ARI_CODEC_DEC2
    , Word16 *extra_bits_read
    ,
    Word16 *extra_bits_read
#endif
)
{
@@ -114,7 +115,8 @@ static Word16 arith_decode_residual_fx(
    const UWord16 *cumulativeFrequencyTable, /* i  : cumulative frequency table to be used Q0 */
    Word16 tableOffset                       /* i  : offset used to align the table */
#ifdef FIX_2402_REPL_EVS_ARI_CODEC_DEC2
    , Word16 *extra_bits_read
    ,
    Word16 *extra_bits_read
#endif
)
{
@@ -150,7 +152,8 @@ static Word16 arith_decode_residual_fx(
    /* decode extra with 4 bits */
    extra = arith_decode_bits_fx( hPrivateData, st, 4
#ifdef FIX_2402_REPL_EVS_ARI_CODEC_DEC2
        , extra_bits_read
                                  ,
                                  extra_bits_read
#endif
    ); // Q0
#ifdef DEBUGGING_2402
@@ -165,7 +168,8 @@ static Word16 arith_decode_residual_fx(
        /* decode addtional extra with 6 bits */
        extra = arith_decode_bits_fx( hPrivateData, st, 6
#ifdef FIX_2402_REPL_EVS_ARI_CODEC_DEC2
           , extra_bits_read
                                      ,
                                      extra_bits_read
#endif
        );                       // Q0
        IF( EQ_16( extra, 63 ) ) /* escape code 63 to indicate extra >= 63 */
@@ -173,7 +177,8 @@ static Word16 arith_decode_residual_fx(
            /* decode safety extra with 7 bits */
            extra = arith_decode_bits_fx( hPrivateData, st, 7
#ifdef FIX_2402_REPL_EVS_ARI_CODEC_DEC2
               , extra_bits_read
                                          ,
                                          extra_bits_read
#endif
            ); // Q0
            extra = add( 63, extra );
@@ -200,7 +205,8 @@ static Word16 arith_decode_residual_fx(
static void arith_decode_flush_fx(
    Decoder_State *st /* i/o: pointer to decoder state */
#ifdef FIX_2402_REPL_EVS_ARI_CODEC_DEC2
    , Word16 *extra_bits_read
    ,
    Word16 *extra_bits_read
#endif
)
{
@@ -224,7 +230,8 @@ static void decode_sfe_vector_fx(
    Word16 *x,                              /* o  : current vector to decode */
    Word16 length                           /* i  : number of elements to decode */
#ifdef FIX_2402_REPL_EVS_ARI_CODEC_DEC2
    , Word16 *extra_bits_read
    ,
    Word16 *extra_bits_read
#endif
)
{
@@ -262,7 +269,8 @@ static void decode_sfe_vector_fx(

                pred = arith_decode_bits_fx( hPrivateData, st, 2
#ifdef FIX_2402_REPL_EVS_ARI_CODEC_DEC2
                   , extra_bits_read
                                             ,
                                             extra_bits_read
#endif
                );                                 /* LSBs as 2 bit raw */
                x[f] = add( shl( res, 2 ), pred ); // Q0
@@ -276,7 +284,8 @@ static void decode_sfe_vector_fx(
                                                hPrivateData->cf_se01,
                                                hPrivateData->cf_off_se01
#ifdef FIX_2402_REPL_EVS_ARI_CODEC_DEC2
                                                , extra_bits_read
                                                ,
                                                extra_bits_read
#endif
                );
                x[f] = add( x[0], res ); // Q0
@@ -296,7 +305,8 @@ static void decode_sfe_vector_fx(
                                                hPrivateData->cf_se02 + index1,
                                                hPrivateData->cf_off_se02[index2]
#ifdef FIX_2402_REPL_EVS_ARI_CODEC_DEC2
                                                , extra_bits_read
                                                ,
                                                extra_bits_read
#endif
                );
                x[f] = add( x[prev_offset], res ); // Q0
@@ -314,7 +324,8 @@ static void decode_sfe_vector_fx(
                                                hPrivateData->cf_se10,
                                                hPrivateData->cf_off_se10
#ifdef FIX_2402_REPL_EVS_ARI_CODEC_DEC2
                                                , extra_bits_read
                                                ,
                                                extra_bits_read
#endif
                );
                x[f] = add( prev_x[f], res ); // Q0
@@ -342,7 +353,8 @@ static void decode_sfe_vector_fx(
                                                hPrivateData->cf_se11 + index1,
                                                hPrivateData->cf_off_se11[index2]
#ifdef FIX_2402_REPL_EVS_ARI_CODEC_DEC2
                                                , extra_bits_read
                                                ,
                                                extra_bits_read
#endif
                );
                x[f] = add( pred, res ); // Q0
@@ -431,7 +443,8 @@ void IGFSCFDecoderDecode(

    decode_sfe_vector_fx( hPublicData, st, hPublicData->t, hPublicData->prev, sfe, hPublicData->scfCountLongBlock[igfGridIdx]
#ifdef FIX_2402_REPL_EVS_ARI_CODEC_DEC2
        , &extra_bits_read
                          ,
                          &extra_bits_read
#endif
    );

@@ -440,7 +453,8 @@ void IGFSCFDecoderDecode(
#endif
    arith_decode_flush_fx( st
#ifdef FIX_2402_REPL_EVS_ARI_CODEC_DEC2
    , &extra_bits_read
                           ,
                           &extra_bits_read
#endif
    ); /* finish AC decoding */
#ifdef DEBUGGING_2402
+5 −5

File changed.

Contains only whitespace changes.

+6 −6

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.