整理代码

This commit is contained in:
蒲爽 2026-09-28 21:33:04 +08:00
commit c7b4e178ec
364 changed files with 59691 additions and 0 deletions

View file

@ -0,0 +1,60 @@
#ifndef CAE4D712_1E71_4191_9693_2F31854D9087
#define CAE4D712_1E71_4191_9693_2F31854D9087
/*
*******************************************************************************
* INCLUDE
*******************************************************************************
*/
#include "util/HandlesManager.h"
/*
*******************************************************************************
* CONSTANTS
*******************************************************************************
*/
#define NO_SIGNAL_YUV_PATH "/customer/no-signal-1080.yvu422sp"
#define NO_SIGNAL_YUV_FORMAT HI_PIXEL_FORMAT_YVU_SEMIPLANAR_422
#define NO_SIGNAL_YUV_WIDTH 1920
#define NO_SIGNAL_YUV_HEIGHT 1080
#define NO_SIGNAL_JPEG_PATH "/customer/no-signal-1080.jpg"
#define NO_SIGNAL_JPEG_WIDTH 1920
#define NO_SIGNAL_JPEG_HEIGHT 1080
namespace Video
{
namespace MPP5
{
/*
*******************************************************************************
* CLASS DECLARE
*******************************************************************************
*/
class ResourceManager
{
public:
static uint32_t allocVPSSGroupID();
static void freeVPSSGroupID(uint32_t id);
static uint32_t allocVENCChannelID();
static void freeVENCChannelID(uint32_t id);
static uint32_t allocVDECChannelID();
static void freeVDECChannelID(uint32_t id);
static uint32_t allocAENCChannelID();
static void freeAENCChannelID(uint32_t id);
static uint32_t allocRGNHandle();
static void freeRGNHandle(uint32_t handle);
private:
static Util::HandlesManager<uint32_t> _vpssGroupIDManager;
static Util::HandlesManager<uint32_t> _vencChannelIDManager;
static Util::HandlesManager<uint32_t> _vdecChannelIDManager;
static Util::HandlesManager<uint32_t> _aencChannelIDManager;
static Util::HandlesManager<uint32_t> _rgnHandleManager;
};
}
}
#endif