OPUS编解码相关
📎 原始文档:https://www.kdocs.cn/l/cjHy8VrhUBe1 OPUS编解码相关
- OPUS的编码H文件定义 【金山文档】 opus_enc_api.h
#ifndef u16
#define u32 unsigned int
#define u16 unsigned short
#define s16 short
#define u8 unsigned char
#endif
typedef struct _OPUS_EN_FILE_IO_ {
void *priv;
u16(*input_data)(void *priv, s16 *buf, u16 len); //short
void (*output_data)(void *priv, u8 *buf, u16 len); //bytes
} OPUS_EN_FILE_IO;
typedef struct __OPUS_ENC_OPS {
u32(*need_buf)(u16 samplerate); //samplerate=16k ignore
u32(*open)(u8 *ptr, OPUS_EN_FILE_IO *audioIO, u8 quality, u16 sample_rate);
//1. quality:bitrate 0:16kbps 1:32kbps 2:64kbps
// quality: MSB_2:(bit7_bit6) format_mode //0:百度_无头. 1:酷狗_eng+range.
// quality:LMSB_2:(bit5_bit4) low_complexity //0:高复杂度,高质量.兼容之前库. 1:低复杂度,低质量.
//2. sample_rate sample_rate=16k ignore
u32(*run)(u8 *ptr);
} OPUS_ENC_OPS;
extern OPUS_ENC_OPS *get_opus_enc_ops(void);
#endif
【金山文档】 opus_enc_api
https://kdocs.cn/l/ceKn1R3Lfg9U
- 各解码格式支持情况 【金山文档】 解码列表
解码列表.otl
3.相关OPUS介绍
本文档为保密信息,未经授权,请勿转发或告知第三方。非常感谢!
This electronic documentation and any attachments are confidential and may be legally privileged or otherwise protected from disclosure. If you are not the intended recipient, please do not disclose the contents to anyone。
Thank you for your cooperation!
解析权归杰理所有!
The analysis right belongs to JieLi Technology Co., Ltd.
