p26001-store-acs-soc-fw-app/video/hisi/mpp5/HDMIAudioOutput.h
2026-09-28 21:33:04 +08:00

41 lines
1.1 KiB
C++

#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