整理代码
This commit is contained in:
commit
c7b4e178ec
364 changed files with 59691 additions and 0 deletions
41
video/hisi/mpp5/HDMIAudioOutput.h
Normal file
41
video/hisi/mpp5/HDMIAudioOutput.h
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
#ifndef CCC7E17D_FF7C_44B5_8DCC_BFCE92AAFC87
|
||||
#define CCC7E17D_FF7C_44B5_8DCC_BFCE92AAFC87
|
||||
/*
|
||||
*******************************************************************************
|
||||
* INCLUDE
|
||||
*******************************************************************************
|
||||
*/
|
||||
#include "../core/AudioOutput.h"
|
||||
#include "MPPChannel.h"
|
||||
#include <hi_mpi_audio.h>
|
||||
|
||||
namespace Video
|
||||
{
|
||||
namespace MPP5
|
||||
{
|
||||
/*
|
||||
*******************************************************************************
|
||||
* CLASS DECLARE
|
||||
*******************************************************************************
|
||||
*/
|
||||
class HDMIAudioOutput: public Core::AudioOutput, public MPPChannel
|
||||
{
|
||||
public:
|
||||
HDMIAudioOutput(const std::string& arg);
|
||||
~HDMIAudioOutput();
|
||||
|
||||
protected:
|
||||
void initialize() override;
|
||||
void deinitialize() override;
|
||||
void onConfigChanged(ParameterNames& names) override;
|
||||
void writeFrame(Core::Frame::Ptr pFrame) override;
|
||||
|
||||
int getVolumeValue();
|
||||
|
||||
private:
|
||||
hi_audio_bit_width _bitWidth;
|
||||
hi_audio_snd_mode _sndMode;
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue