Commit 75b97ed5 authored by Ripinder Singh's avatar Ripinder Singh
Browse files

code review Format, fixcmdline for self_test.prn is not followed by number

parent 66c6aa03
Loading
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -296,6 +296,22 @@ static inline const char *ivas_error_to_string( ivas_error error_code )
    {
        return "data error";
    }
    if ( ( error_code & 0x7000 ) == 0x7000 )
    {
        switch ( error_code )
        {
            case IVAS_ERR_RTP_UNDERFLOW:
                return "RTP Undeflow in reading frame/packet";
            case IVAS_ERR_RTP_INSUFFICIENT_OUTPUT_SIZE:
                return "Output buffer size is insufficient";
            case IVAS_ERR_RTP_UNPACK_PI_DATA:
                return "Unpacking PI data failure";
            case IVAS_ERR_RTP_UNSUPPORTED_FRAME:
                return "Unsupported RTP frame";
            default:
                return "rtp error";
        }
    }

    return "Unknown error";
}
+1 −2
Original line number Diff line number Diff line
@@ -33,9 +33,8 @@
#ifndef IVAS_BPOOL_H
#define IVAS_BPOOL_H

#include <stdint.h>
#include <stddef.h>
#include "ivas_error.h"
#include "common_api_types.h"

/* Forward declaraiton of opaque buffer pool handle */
typedef struct BPOOL *BPOOL_HANDLE;
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@
#define IVAS_QUEUE_H

#include <stddef.h>
#include "ivas_error.h"
#include "common_api_types.h"

typedef struct NODE
{
+526 −538
Original line number Diff line number Diff line
@@ -33,17 +33,9 @@
#ifndef IVAS_RTP_API_H
#define IVAS_RTP_API_H

#pragma once
#include <stddef.h>
#include <stdbool.h>
#include <stdint.h>
#include "options.h"
#include "ivas_error.h"

#ifdef __cplusplus
extern "C"
{
#endif
#include "common_api_types.h"

/*
 * +-----------------------+---------------------+--------------------+----------+
@@ -596,8 +588,4 @@ extern "C"
    uint32_t *timestamp                 /* o   : timestamp in RTP Clock @ 16KHz      */
);

#ifdef __cplusplus
}
#endif

#endif /* IVAS_RTP_API_H */
+7 −7
Original line number Diff line number Diff line
@@ -33,9 +33,9 @@
#ifndef IVAS_RTP_FILE_H
#define IVAS_RTP_FILE_H

#include <stdint.h>
#include <stddef.h>
#include "ivas_error.h"
#include <stdbool.h>
#include "common_api_types.h"

typedef struct IVAS_RTP_FILE *IVAS_RTP_FILE_HANDLE;

Loading