mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-06-14 12:05:58 +08:00
初始提交
This commit is contained in:
38
src/Codec/AACEncoder.h
Normal file
38
src/Codec/AACEncoder.h
Normal file
@@ -0,0 +1,38 @@
|
||||
/*
|
||||
* AACEncoder.h
|
||||
*
|
||||
* Created on: 2016年8月11日
|
||||
* Author: xzl
|
||||
*/
|
||||
|
||||
#ifndef CODEC_AACENCODER_H_
|
||||
#define CODEC_AACENCODER_H_
|
||||
|
||||
|
||||
namespace ZL {
|
||||
namespace Codec {
|
||||
|
||||
class AACEncoder {
|
||||
public:
|
||||
AACEncoder(void);
|
||||
virtual ~AACEncoder(void);
|
||||
bool init(int iSampleRate, int iAudioChannel, int iAudioSampleBit);
|
||||
int inputData(char *pcData, int iLen, unsigned char **ppucOutBuffer);
|
||||
|
||||
private:
|
||||
unsigned char *m_pucPcmBuf = nullptr;
|
||||
unsigned int m_uiPcmLen = 0;
|
||||
|
||||
unsigned char *m_pucAacBuf = nullptr;
|
||||
void *m_hEncoder = nullptr;
|
||||
|
||||
unsigned long m_ulInputSamples = 0;
|
||||
unsigned long m_ulMaxInputBytes = 0;
|
||||
unsigned long m_ulMaxOutputBytes = 0;
|
||||
|
||||
};
|
||||
|
||||
} /* namespace Codec */
|
||||
} /* namespace ZL */
|
||||
|
||||
#endif /* CODEC_AACENCODER_H_ */
|
||||
Reference in New Issue
Block a user