整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
43
video/hisi/mpp5/AudioEncoder.h
Normal file
43
video/hisi/mpp5/AudioEncoder.h
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
#ifndef D8737294_8E5E_4514_9AD1_CFD956F0E262
|
||||
#define D8737294_8E5E_4514_9AD1_CFD956F0E262
|
||||
/*
|
||||
*******************************************************************************
|
||||
* INCLUDE
|
||||
*******************************************************************************
|
||||
*/
|
||||
#include "MPPChannel.h"
|
||||
#include "../core/AudioEncoder.h"
|
||||
#include <hi_common_aio.h>
|
||||
|
||||
namespace Video
|
||||
{
|
||||
namespace MPP5
|
||||
{
|
||||
/*
|
||||
*******************************************************************************
|
||||
* CLASS DECLARE
|
||||
*******************************************************************************
|
||||
*/
|
||||
class AudioEncoder: public MPPChannel, public Core::AudioEncoder
|
||||
{
|
||||
public:
|
||||
AudioEncoder(Core::CodecID codecID);
|
||||
~AudioEncoder();
|
||||
|
||||
protected:
|
||||
void initialize() override;
|
||||
void deinitialize() override;
|
||||
Core::Packet::Ptr encode() override;
|
||||
void onConfigChanged(ParameterNames& names) override;
|
||||
|
||||
private:
|
||||
int _fd;
|
||||
hi_audio_frame _frame;
|
||||
|
||||
public:
|
||||
static void initModule();
|
||||
static void deinitModule();
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue