- reference source code for EVS codec
This commit is contained in:
64
src/libs/libevs/lib_com/g192.h
Executable file
64
src/libs/libevs/lib_com/g192.h
Executable file
@@ -0,0 +1,64 @@
|
||||
/*====================================================================================
|
||||
EVS Codec 3GPP TS26.442 Apr 03, 2018. Version 12.11.0 / 13.6.0 / 14.2.0
|
||||
====================================================================================*/
|
||||
|
||||
#ifndef G192_H
|
||||
#define G192_H G192_H
|
||||
|
||||
/*
|
||||
* ENUMS
|
||||
*/
|
||||
|
||||
/* error enums */
|
||||
|
||||
typedef enum _G192_ERROR
|
||||
{
|
||||
G192_NO_ERROR = 0x0000,
|
||||
G192_MEMORY_ERROR = 0x0001,
|
||||
G192_WRONG_PARAMS = 0x0002,
|
||||
G192_INIT_ERROR = 0x0003,
|
||||
G192_WRITE_ERROR = 0x0004,
|
||||
G192_READ_ERROR = 0x0005,
|
||||
G192_FILE_NOT_FOUND = 0x0006,
|
||||
G192_INVALID_DATA = 0x0007, /* error returned when read data is invalid */
|
||||
G192_NOT_IMPLEMENTED = 0x0010,
|
||||
G192_NOT_INITIALIZED = 0x0100,
|
||||
G192_UNKNOWN_ERROR = 0x1000,
|
||||
G192_EOF = 0xffff /* EOF during reading */
|
||||
} G192_ERROR;
|
||||
|
||||
/*
|
||||
* Structures
|
||||
*/
|
||||
|
||||
/* main handle */
|
||||
struct __G192;
|
||||
typedef struct __G192 * G192_HANDLE;
|
||||
|
||||
/*
|
||||
* Functions
|
||||
*/
|
||||
|
||||
G192_ERROR
|
||||
G192_Reader_Open(G192_HANDLE* phG192, FILE * filename);
|
||||
|
||||
G192_ERROR
|
||||
G192_ReadVoipFrame_compact(G192_HANDLE const hG192,
|
||||
unsigned char * const serial,
|
||||
Word16 * const num_bits,
|
||||
Word16 *rtpSequenceNumber,
|
||||
Word32 *rtpTimeStamp,
|
||||
Word32 *rcvTime_ms);
|
||||
|
||||
G192_ERROR
|
||||
G192_ReadVoipFrame_short(G192_HANDLE const hG192,
|
||||
Word16 * const serial,
|
||||
Word16 *num_bits,
|
||||
Word16 *rtpSequenceNumber,
|
||||
Word32 *rtpTimeStamp,
|
||||
Word32 *rcvTime_ms);
|
||||
|
||||
G192_ERROR
|
||||
G192_Reader_Close(G192_HANDLE* phG192);
|
||||
|
||||
#endif /* G192_H */
|
||||
Reference in New Issue
Block a user