Files
2026-08-24 10:03:24 +08:00

56 lines
1.6 KiB
C++

/*
* Copyright (c) 2014 Amlogic, Inc. All rights reserved.
*
* This source code is subject to the terms and conditions defined in the
* file 'LICENSE' which is part of this source code package.
*
* Description: header file
*/
#ifndef WHITEBALANCEDATABASE_H_
#define WHITEBALANCEDATABASE_H_
#include <cutils/properties.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include "CSqlite.h"
#include "PQTableTypeOSD.h"
#include "PQType.h"
class WhitebalanceDataBase: public CSqlite {
public:
WhitebalanceDataBase();
~WhitebalanceDataBase();
static WhitebalanceDataBase *GetInstance();
int Init();
int closePqDB(void);
int reopenDB(const char *db_path);
bool SetSyncData(void *pData, int iSize);
bool GetSyncData(void *pData, int iSize);
bool SetWhiteBalanceFilePath(char *path);
//TV_PICTURE
bool SetRGBGainOffsetData(COLORTEMP_DATA *pData, int level = 0, int src = 0, int timing = 0);
bool GetRGBGainOffsetData(COLORTEMP_DATA *pData, int level = 0, int src = 0, int timing = 0);
bool SetWhitebalanceGammaData(GAMMA_OFFSET_DATA *pData, int level = 0, int mode = 0, int src = 0, int timing = 0);
bool GetWhitebalanceGammaData(GAMMA_OFFSET_DATA *pData, int level = 0, int mode = 0, int src = 0, int timing = 0);
bool SetGammaTableData(tcon_gamma_table_t *pData, int level, int type);
bool GetGammaTableData(tcon_gamma_table_t *pData, int level, int type);
private:
bool CreateNewDB(const char *db_path);
bool CreateTable(const char *TableName);
static WhitebalanceDataBase *mInstance;
};
#endif