Commit bae3ae77 authored by vaclav's avatar vaclav
Browse files

add IVAS_DEC_Set5msFlag()

parent c503c914
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -659,6 +659,11 @@ int main(
        {
            arg.enable5ms = false;
        }

        if ( ( error = IVAS_DEC_Set5msFlag( hIvasDec, arg.enable5ms ) ) != IVAS_ERR_OK )
        {
            return error;
        }
#endif
#endif

+22 −0
Original line number Diff line number Diff line
@@ -543,6 +543,28 @@ ivas_error IVAS_DEC_EnableSplitRendering(


#ifdef API_5MS
/*---------------------------------------------------------------------*
 * IVAS_DEC_Set5msFlag( )
 *
 * Get the 5ms flag
 *---------------------------------------------------------------------*/

ivas_error IVAS_DEC_Set5msFlag(
    IVAS_DEC_HANDLE hIvasDec, /* i/o: IVAS decoder handle   */
    const int16_t enable5ms   /* i  : 5ms flag              */
)
{
    if ( hIvasDec == NULL || hIvasDec->st_ivas == NULL || hIvasDec->st_ivas->hDecoderConfig == NULL )
    {
        return IVAS_ERR_UNEXPECTED_NULL_POINTER;
    }

    hIvasDec->st_ivas->hDecoderConfig->Opt_5ms = enable5ms;

    return IVAS_ERR_OK;
}


/*---------------------------------------------------------------------*
 * IVAS_DEC_Get5msFlag( )
 *
+5 −0
Original line number Diff line number Diff line
@@ -366,6 +366,11 @@ ivas_error IVAS_DEC_EnableSplitRendering(
);
#endif

ivas_error IVAS_DEC_Set5msFlag(
    IVAS_DEC_HANDLE hIvasDec,                   /* i/o: IVAS decoder handle                                                     */
    const int16_t enable5ms                     /* i  : 5ms flag                                                                */
);

ivas_error IVAS_DEC_Get5msFlag(
    IVAS_DEC_HANDLE hIvasDec,                   /* i/o: IVAS decoder handle                                                     */
    int16_t *enable5ms                          /* o  : 5ms flag                                                                */