chore: migrate project into clean repository

This commit is contained in:
yuuux
2026-08-13 16:50:52 +08:00
commit d1d25a09e7
27405 changed files with 9422808 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
if (CONFIG_SDK_MODULE_ICO)
listenai_link_libraries(${CMAKE_CURRENT_SOURCE_DIR}/libico.a)
listenai_include_directories(
./include
)
endif()

View File

@@ -0,0 +1,9 @@
config SDK_MODULE_ICO
bool "ico support"
default n
menuconfig ICO
bool "ico support"
depends on SDK_MODULE_ICO
default n

View File

@@ -0,0 +1,58 @@
#if !defined(SE_TEAM__AP__2015_04_15__H)
#define SE_TEAM__AP__2015_04_15__H
#include "ivErrorCode.h"
#include "ivDebug.h"
#define ICO_ENCODER (0)
#define ICO_DECODER (1)
typedef struct tagICOInitParam{
ivPointer pBuffer;
ivInt32 nBufferSize;
ivInt32 nBitRate;
ivInt16 nBandWidth;
ivInt16 nCoderFlag;
ivPointer pReserved;
}TICOInitParam,ivPtr PICOInitParam;
#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */
/* Create CAE object */
ivStatus /* Returned Error Info */
ivCall ICOCreate(
ivHandle ivPtr hICOObj, /*[In/Out] To Receive the ICO object handle */
PICOInitParam pInitParam /*[In] Input parameter struct */
);
/* Start encoder */
ivStatus /* Returned Error Info */
ivCall ICOEncoder(
ivHandle hICOObj, /* The ICO object handle */
ivPointer pInData,
ivInt16 nInSize,
ivPointer pOutData,
ivPInt16 pOutSize
);
ivStatus /* Returned Error Info */
ivCall ICODecoder(
ivHandle hICOObj, /* The ICO object handle */
ivPointer pInData,
ivInt16 nInSize,
ivPointer pOutData,
ivPInt16 pOutSize
);
ivStatus
ivCall ICOReset(ivHandle hICOObj);
#ifdef __cplusplus
}
#endif /* __cplusplus */
#endif

View File

@@ -0,0 +1,34 @@
/******************************************************************************
* File Name : ivDebug.h
* Description : InterSound 调试头文件
* Author : pingbu
* Date Of Creation : 2004-03-05
* Platform : Any
* Modification History :
*------------------------------------------------------------------------------
* Date Author Modifications
*------------------------------------------------------------------------------
* 2004-03-05 pingbu Created
******************************************************************************/
#ifndef IFLYTEK_VOICE__2004_03_05__DEBUG__H
#define IFLYTEK_VOICE__2004_03_05__DEBUG__H
#ifdef __cplusplus
extern "C" {
#endif
/*
* 调试功能定义
*/
#define ivAssert(f) IV_ASSERT(f)
#ifdef __cplusplus
}
#endif
#endif /* IFLYTEK_VOICE__2004_03_05__DEBUG__H */

View File

@@ -0,0 +1,276 @@
/*--------------------------------------------------------------+
| |
| ivDefine.h - Basic Definitions |
| |
| Copyright (c) 1999-2012, ANHUI USTC iFLYTEK CO.,LTD. |
| All rights reserved. |
| |
+--------------------------------------------------------------*/
#ifndef IFLYTEK_VOICE__DEFINE__H
#define IFLYTEK_VOICE__DEFINE__H
#include "ivPlatform.h"
#include <limits.h>
#define IV_CHECK_RES_READ 1 /* 是否检查用户回调函数读取资源的成功性 */
/*
* 修饰符
*/
#define ivConst IV_CONST
#define ivStatic IV_STATIC
#ifdef IV_INLINE
#define ivInline IV_STATIC IV_INLINE
#else
#define ivInline IV_STATIC
#endif
#define ivExtern IV_EXTERN
#define ivPtr IV_PTR_PREFIX*
#define ivCPtr ivConst ivPtr
#define ivPtrC ivPtr ivConst
#define ivCPtrC ivConst ivPtr ivConst
#define ivCall IV_CALL_STANDARD /* 非递归的(不可重入的) */
#define ivReentrant IV_CALL_REENTRANT /* 递归的(可重入的) */
#define ivVACall IV_CALL_VAR_ARG /* 支持变参的 */
#define ivProc ivCall ivPtr
/*
* 定义
*/
#define ivNull (0)
/* 布尔类型及其值(须根据平台定制) */
typedef int ivBool;
#define ivTrue (~0)
#define ivFalse (0)
/* 对比类型及其值 */
typedef int ivComp;
#define ivGreater (1)
#define ivEqual (0)
#define ivLesser (-1)
#define ivIsGreater(v) ((v)>0)
#define ivIsEqual(v) (0==(v))
#define ivIsLesser(v) ((v)<0)
/*
* 数据类型
*/
/* 基本值类型 */
typedef signed IV_TYPE_INT8 ivInt8; /* 8-bit */
typedef unsigned IV_TYPE_INT8 ivUInt8; /* 8-bit */
typedef signed IV_TYPE_INT16 ivInt16; /* 16-bit */
typedef unsigned IV_TYPE_INT16 ivUInt16; /* 16-bit */
typedef signed IV_TYPE_INT24 ivInt24; /* 24-bit */
typedef unsigned IV_TYPE_INT24 ivUInt24; /* 24-bit */
typedef signed IV_TYPE_INT32 ivInt32; /* 32-bit */
typedef unsigned IV_TYPE_INT32 ivUInt32; /* 32-bit */
typedef unsigned IV_TYPE_INT64 ivUInt64; /* 32-bit */
typedef unsigned short uint16;
typedef unsigned int uint32;
typedef signed char Word8;
typedef short Word16;
typedef int Word32;
typedef int Flag;
#if INT_MAX == 32767
typedef unsigned int UWord16;
#elif SHRT_MAX == 32767
typedef unsigned short UWord16;
#endif
/* define 32 bit unsigned types for G.722.1 */
#if INT_MAX == 2147483647L
typedef unsigned int UWord32;
#elif LONG_MAX == 2147483647L
typedef unsigned int UWord32;
#endif
#ifdef IV_TYPE_INT48
typedef signed IV_TYPE_INT48 ivInt48; /* 48-bit */
typedef unsigned IV_TYPE_INT48 ivUInt48; /* 48-bit */
#endif
#ifdef IV_TYPE_INT64
typedef signed IV_TYPE_INT64 ivInt64; /* 64-bit */
typedef unsigned IV_TYPE_INT64 ivUInt64; /* 64-bit */
#endif
/* 相应的指针类型 */
typedef ivInt8 ivPtr ivPInt8; /* 8-bit */
typedef ivUInt8 ivPtr ivPUInt8; /* 8-bit */
typedef ivInt16 ivPtr ivPInt16; /* 16-bit */
typedef ivUInt16 ivPtr ivPUInt16; /* 16-bit */
typedef ivInt24 ivPtr ivPInt24; /* 24-bit */
typedef ivUInt24 ivPtr ivPUInt24; /* 24-bit */
typedef ivInt32 ivPtr ivPInt32; /* 32-bit */
typedef ivUInt32 ivPtr ivPUInt32; /* 32-bit */
#ifdef IV_TYPE_INT48
typedef ivInt48 ivPtr ivPInt48; /* 48-bit */
typedef ivUInt48 ivPtr ivPUInt48; /* 48-bit */
#endif
#ifdef IV_TYPE_INT64
typedef ivInt64 ivPtr ivPInt64; /* 64-bit */
typedef ivUInt64 ivPtr ivPUInt64; /* 64-bit */
#endif
/* 常量指针类型 */
typedef ivInt8 ivCPtr ivPCInt8; /* 8-bit */
typedef ivUInt8 ivCPtr ivPCUInt8; /* 8-bit */
typedef ivInt16 ivCPtr ivPCInt16; /* 16-bit */
typedef ivUInt16 ivCPtr ivPCUInt16; /* 16-bit */
typedef ivInt24 ivCPtr ivPCInt24; /* 24-bit */
typedef ivUInt24 ivCPtr ivPCUInt24; /* 24-bit */
typedef ivInt32 ivCPtr ivPCInt32; /* 32-bit */
typedef ivUInt32 ivCPtr ivPCUInt32; /* 32-bit */
#ifdef IV_TYPE_INT48
typedef ivInt48 ivCPtr ivPCInt48; /* 48-bit */
typedef ivUInt48 ivCPtr ivPCUInt48; /* 48-bit */
#endif
#ifdef IV_TYPE_INT64
typedef ivInt64 ivCPtr ivPCInt64; /* 64-bit */
typedef ivUInt64 ivCPtr ivPCUInt64; /* 64-bit */
#endif
#if 0
/* 基本类型 */
typedef signed IV_TYPE_FLT32 ivFlt32; /* 32-bit */
typedef unsigned IV_TYPE_FLT32 ivUFlt32; /* 32-bit */
typedef signed IV_TYPE_FLT64 ivFlt64; /* 64-bit */
typedef unsigned IV_TYPE_FLT64 ivUFlt64; /* 64-bit */
/* 相应的指针类型 */
typedef ivFlt32 ivPtr ivPFlt32; /* 32-bit */
typedef ivUFlt32 ivPtr ivPUFlt32; /* 32-bit */
typedef ivFlt64 ivPtr ivPFlt64; /* 64-bit */
typedef ivUFlt64 ivPtr ivPUFlt64; /* 64-bit */
/* 常量指针类型 */
typedef ivFlt32 ivCPtr ivPCFlt32; /* 32-bit */
typedef ivUFlt32 ivCPtr ivPCUFlt32; /* 32-bit */
typedef ivFlt64 ivCPtr ivPCFlt64; /* 64-bit */
typedef ivUFlt64 ivCPtr ivPCUFlt64; /* 64-bit */
#endif
/* 边界值定义 */
#define IV_SBYTE_MAX (+127)
#define IV_MAX_INT16 (+32767)
#define IV_INT_MAX (+8388607L)
#define IV_MAX_INT32 (+2147483647L)
#define IV_SBYTE_MIN (-IV_SBYTE_MAX - 1)
#define IV_MIN_INT16 (-IV_MAX_INT16 - 1)
#define IV_INT_MIN (-IV_INT_MAX - 1)
#define IV_MIN_INT32 (-IV_MAX_INT32 - 1)
#define IV_BYTE_MAX (0xffU)
#define IV_USHORT_MAX (0xffffU)
#define IV_UINT_MAX (0xffffffUL)
#define IV_ULONG_MAX (0xffffffffUL)
#define IV_CHECK_SATURATE16(x) IV_ASSERT((x)>= IV_MIN_INT16 && (x) <= IV_MAX_INT16)
/* 内存基本单元 */
typedef ivUInt8 ivByte;
typedef ivPUInt8 ivPByte;
typedef ivPCUInt8 ivPCByte;
typedef signed ivInt;
typedef signed ivPtr ivPInt;
typedef signed ivCPtr ivPCInt;
typedef unsigned ivUInt;
typedef unsigned ivPtr ivPUInt;
typedef unsigned ivCPtr ivPCUInt;
/* 指针 */
typedef void ivPtr ivPointer;
typedef void ivCPtr ivCPointer;
/* 句柄 */
typedef ivPointer ivHandle;
/* 地址、尺寸类型 */
typedef IV_TYPE_ADDRESS ivAddress;
typedef IV_TYPE_SIZE ivSize;
/*
* 字符相关定义
*/
/* 字符类型定义 */
typedef ivInt8 ivCharA;
typedef ivUInt16 ivCharW;
#if IV_UNICODE
typedef ivCharW ivChar;
#else
typedef ivCharA ivChar;
#endif
/* 字符串类型定义 */
typedef ivCharA ivPtr ivStrA;
typedef ivCharA ivCPtr ivCStrA;
typedef ivCharW ivPtr ivStrW;
typedef ivCharW ivCPtr ivCStrW;
typedef ivChar ivPtr ivStr;
typedef ivChar ivCPtr ivCStr;
/* 文本常量宏 */
#define ivTextA(s) ((ivCStrA)s)
#define ivTextW(s) ((ivCStrW)L##s)
#if IV_UNICODE
#define ivText(s) ivTextW(s)
#else
#define ivText(s) ivTextA(s)
#endif
/*
* 资源地址、尺寸类型及数据类型大小常量
*/
typedef ivUInt32 ivResAddress;
typedef ivUInt32 ivResSize;
#define ivResSize_Int8 1
#define ivResSize_Int16 2
#define ivResSize_Int32 4
#endif /* !IFLYTEK_VOICE__DEFINE__H */

View File

@@ -0,0 +1,45 @@
/*----------------------------------------------+
| |
| ivErrorCode.h - Basic Definitions |
| |
| Copyright (c) 1999-2012, iFLYTEK Ltd. |
| All rights reserved. |
| |
+----------------------------------------------*/
#ifndef IFLYTEK_VOICE__2012_02_27_ERRORCODE__H
#define IFLYTEK_VOICE__2012_02_27_ERRORCODE__H
#include "ivDefine.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef ivInt32 ivErrID;
typedef ivInt32 ivStatus;
typedef ivInt32 MAEErrID;
typedef ivInt32 ivMAEStatus;
/* General */
#define ivErr_InvArg ((ivStatus)2)
#define ivErr_Failed ((ivStatus)3)
#define ivErr_NotSupport ((ivStatus)4)
#define ivErr_OutOfMemory ((ivStatus)5)
/* For object status */
#define ivErr_InvCall ((ivStatus)6)
#define ivErr_BufferEmpty ((ivStatus)7)
#define ivErr_BufferFull ((ivStatus)8)
#define ivErr_Done ((ivStatus)9) /* Êý¾Ý´¦Àí½áÊø */
#ifdef __cplusplus
}
#endif
#define ivErr_OK ((ivStatus)0)
#define ivErr_FALSE ((ivStatus)1)
#define ivSucceeded(hr) ((ivUInt32)(hr) <= 1)
#endif /* !IFLYTEK_VOICE__2008_10_13_ERRORCODE__H */

View File

@@ -0,0 +1,85 @@
/*----------------------------------------------+
| |
| ivPlatform.h - InterSound 4 Platform Config |
| |
| Platform: ADS (ARM) |
| |
| Copyright (c) 1999-2012, iFLYTEK Ltd. |
| All rights reserved. |
| |
+----------------------------------------------*/
/*
* TODO: 在这里包含目标平台程序需要的公共头文件
*/
#ifdef WIN32
#include <crtdbg.h>
#include <memory.h>
#include <tchar.h>
//#include <windows.h>
#endif
/*
* TODO: 根据目标平台特性修改下面的配置选项
*/
#define IV_UNIT_BITS 8 /* 内存基本单元位数 */
#define IV_BIG_ENDIAN 0 /* 是否是 Big-Endian 字节序 */
#define IV_PTR_GRID 4 /* 最大指针对齐值 */
#define IV_PTR_PREFIX /* 指针修饰关键字(典型取值有 near | far, 可以为空) */
#define IV_CONST const /* 常量关键字(可以为空) */
#define IV_EXTERN extern /* 外部关键字 */
#define IV_STATIC static /* 静态函数关键字(可以为空) */
#define IV_INLINE __inline /* 内联关键字(典型取值有 inline, 可以为空) */
#define IV_CALL_STANDARD /* 普通函数修饰关键字(典型取值有 stdcall | fastcall | pascal, 可以为空) */
#define IV_CALL_REENTRANT /* 递归函数修饰关键字(典型取值有 stdcall | reentrant, 可以为空) */
#define IV_CALL_VAR_ARG /* 变参函数修饰关键字(典型取值有 cdecl, 可以为空) */
#define IV_TYPE_INT8 char /* 8位数据类型 */
#define IV_TYPE_INT16 short /* 16位数据类型 */
#define IV_TYPE_INT24 int /* 24位数据类型 */
#define IV_TYPE_INT32 long /* 32位数据类型 */
#define IV_TYPE_INT64 long long /* 64位数据类型 */
#define IV_TYPE_ADDRESS unsigned int /* 地址数据类型 */
#define IV_TYPE_SIZE unsigned int /* 大小数据类型 */
#define IV_VOLATILE volatile
#define IV_ANSI_MEMORY 0 /* 是否使用 ANSI 内存操作库 */
#define IV_ANSI_STRING 0 /* 是否使用 ANSI 字符串操作库 */
#if defined __GNUC__
#define IV_GNUC_COMPILER 1
#endif
#define IV_ARM_COMPILER 0
#if defined _MSC_VER
#define IV_WIN32_COMPILER 1
#endif
#ifdef WIN32
#define IV_ASSERT(exp) _ASSERT(exp) /* 断言操作 */
#else
#define IV_ASSERT(exp)
#endif
#define IV_YIELD /* 空闲操作(在协作式调度系统中应定义为任务切换调用, 可以为空) */
#if defined(DEBUG) || defined(_DEBUG)
#define IV_DEBUG 1 /* 是否支持调试 */
#else
#define IV_DEBUG 0 /* 是否支持调试 */
#endif
/* 根据平台编译选项决定是否以 Unicode 方式构建 */
#if defined(UNICODE) || defined(_UNICODE)
#define IV_UNICODE 1 /* 是否以 Unicode 方式构建 */
#else
#define IV_UNICODE 0 /* 是否以 Unicode 方式构建 */
#endif

Binary file not shown.