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

32 lines
956 B
C++

#ifndef CFE2FF99_0E17_46AD_B839_023CAED87EE5
#define CFE2FF99_0E17_46AD_B839_023CAED87EE5
/*
*******************************************************************************
* INCLUDE
*******************************************************************************
*/
#include "../../core/SampleFormat.h"
#include "../../core/CodecID.h"
#include <hi_common_aio.h>
namespace Video
{
namespace MPP5
{
/*
*******************************************************************************
* CLASS DECLARE
*******************************************************************************
*/
class Util
{
public:
static hi_audio_bit_width getBitWidth(Core::SampleFormat format);
static hi_audio_snd_mode getSndMode(Core::ChannelLayout layout);
static hi_payload_type getPayloadType(Core::CodecID id);
static uint32_t getChannelId(const std::string& name);
};
}
}
#endif