hv_app_DdcciPQ.h 9.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  1. /*
  2. * @file hv_app_DdcciPQ.h
  3. * @brief Header file of ddcci for TPV PQ factory.
  4. *
  5. * @verbatim
  6. * ==============================================================================
  7. * ##### How to use #####
  8. * ==============================================================================
  9. * (+) Use
  10. *
  11. * @author HiView SoC Software Team
  12. * @version 1.0.0
  13. * @date 2024-05-06
  14. */
  15. #ifndef _HV_APP_DDCCI_PQ_FACTORY_H
  16. #define _HV_APP_DDCCI_PQ_FACTORY_H
  17. #include "hv_comm_DataType.h"
  18. #include "hv_vos_Comm.h"
  19. #include "hv_comm_Define.h"
  20. #if 0
  21. typedef struct _PQCecPara
  22. {
  23. USHORT16 usCurrentBrightness;
  24. USHORT16 usMaxBrightness;
  25. UCHAR8 CecMinLum;
  26. UCHAR8 CecMaxLum;
  27. }CecPara;
  28. typedef struct _PQPanelPara
  29. {
  30. USHORT16 usPanelTypicalBright;
  31. USHORT16 usPanelMaxBrightness;
  32. }PQPanelPara;
  33. /**
  34. * @brief Get max value of RGB gain
  35. * @param[in] None
  36. * @return max value of RGB gain
  37. */
  38. USHORT16 Hv_App_Ddcci_PQ_GetRGBGainMaxVal(VOID);
  39. /**
  40. * @brief set R gain
  41. * @param[in] usRed value of R gain
  42. * @return None
  43. */
  44. VOID Hv_App_Ddcci_PQ_SetRGain(USHORT16 usRed);
  45. /**
  46. * @brief get R gain
  47. * @param[in] None
  48. * @return value of R gain
  49. */
  50. USHORT16 Hv_App_Ddcci_PQ_GetRGain(VOID);
  51. /**
  52. * @brief set G gain
  53. * @param[in] usGreen value of G gain
  54. * @return None
  55. */
  56. VOID Hv_App_Ddcci_PQ_SetGGain(USHORT16 usGreen);
  57. /**
  58. * @brief get G gain
  59. * @param[in] None
  60. * @return value of G gain
  61. */
  62. USHORT16 Hv_App_Ddcci_PQ_GetGGain(VOID);
  63. /**
  64. * @brief set B gain
  65. * @param[in] usBlue value of B gain
  66. * @return None
  67. */
  68. VOID Hv_App_Ddcci_PQ_SetBGain(USHORT16 usBlue);
  69. /**
  70. * @brief get B gain
  71. * @param[in] None
  72. * @return value of B gain
  73. */
  74. USHORT16 Hv_App_Ddcci_PQ_GetBGain(VOID);
  75. /**
  76. * @brief set R offset
  77. * @param[in] usRed value of R offset
  78. * @return None
  79. */
  80. VOID Hv_App_Ddcci_PQ_SetROffset(USHORT16 usRed);
  81. /**
  82. * @brief get R offset
  83. * @param[in] None
  84. * @return value of R offset
  85. */
  86. USHORT16 Hv_App_Ddcci_PQ_GetROffset(VOID);
  87. /**
  88. * @brief set G offset
  89. * @param[in] ucGreen value of G offset
  90. * @return None
  91. */
  92. VOID Hv_App_Ddcci_PQ_SetGOffset(USHORT16 usGreen);
  93. /**
  94. * @brief get G offset
  95. * @param[in] None
  96. * @return value of G offset
  97. */
  98. USHORT16 Hv_App_Ddcci_PQ_GetGOffset(VOID);
  99. /**
  100. * @brief set B offset
  101. * @param[in] usBlue value of B offset
  102. * @return None
  103. */
  104. VOID Hv_App_Ddcci_PQ_SetBOffset(USHORT16 usBlue);
  105. /**
  106. * @brief get B offset
  107. * @param[in] None
  108. * @return value of B offset
  109. */
  110. USHORT16 Hv_App_Ddcci_PQ_GetBOffset(VOID);
  111. /**
  112. * @brief set contrast
  113. * @param[in] ucVal value of contrast
  114. * @return None
  115. */
  116. VOID Hv_App_Ddcci_PQ_SetContrast(UCHAR8 ucVal);
  117. /**
  118. * @brief get value of contrast
  119. * @param[in] None
  120. * @return value of contrast
  121. */
  122. UCHAR8 Hv_App_Ddcci_PQ_GetContrast(VOID);
  123. /**
  124. * @brief set brightness
  125. * @param[in] ucVal value of brightness
  126. * @return None
  127. */
  128. VOID Hv_App_Ddcci_PQ_SetBrightness(UCHAR8 ucVal);
  129. /**
  130. * @brief get value of brightness
  131. * @param[in] None
  132. * @return value of brightness
  133. */
  134. UCHAR8 Hv_App_Ddcci_PQ_GetBrightness(VOID);
  135. /**
  136. * @brief set osd brightness
  137. * @param[in] ucVal value of brightness
  138. * @param[in] ucAct flag of brightness
  139. * @return None
  140. */
  141. VOID Hv_App_Ddcci_PQ_SetDefaultBrightness(UCHAR8 ucVal, UCHAR8 ucAct);
  142. /**
  143. * @brief get value of osd default brightness
  144. * @param[in] None
  145. * @return value of brightness
  146. */
  147. UCHAR8 Hv_App_Ddcci_PQ_GetDefaultBrightness(VOID);
  148. /**
  149. * @brief set sub brightness
  150. * @param[in] ucVal value of sub brightness
  151. * @param[in] ucFlag flag of saving
  152. * @return None
  153. */
  154. VOID Hv_App_Ddcci_PQ_SetSubBrightness(UCHAR8 ucVal, UCHAR8 ucFlag);
  155. /**
  156. * @brief get value of sub brightness
  157. * @param[in] None
  158. * @return value of sub brightness
  159. */
  160. UCHAR8 Hv_App_Ddcci_PQ_GetSubBrightness(VOID);
  161. /**
  162. * @brief set text mode brightness
  163. * @param[in] ucVal value of text mode brightness
  164. * @param[in] ucFlag flag of saving
  165. * @return None
  166. */
  167. VOID Hv_App_Ddcci_PQ_SetTextModeBrightness(UCHAR8 ucVal, UCHAR8 ucFlag);
  168. /**
  169. * @brief get value of text mode brightness
  170. * @param[in] None
  171. * @return value of text mode brightness
  172. */
  173. UCHAR8 Hv_App_Ddcci_PQ_GetTextModeBrightness(VOID);
  174. /**
  175. * @brief set read mode brightness
  176. * @param[in] ucVal value of read mode brightness
  177. * @param[in] ucFlag flag of saving
  178. * @return None
  179. */
  180. VOID Hv_App_Ddcci_PQ_SetReadModeBrightness(UCHAR8 ucVal, UCHAR8 ucFlag);
  181. /**
  182. * @brief get value of read mode brightness
  183. * @param[in] None
  184. * @return value of read mode brightness
  185. */
  186. UCHAR8 Hv_App_Ddcci_PQ_GetReadModeBrightness(VOID);
  187. /**
  188. * @brief set CEC mode brightness
  189. * @param[in] ucVal value of CEC mode brightness
  190. * @param[in] ucFlag flag of saving
  191. * @return None
  192. */
  193. VOID Hv_App_Ddcci_PQ_SetCECModeBrightness(USHORT16 usVal, UCHAR8 ucFlag);
  194. /**
  195. * @brief set max brightness duty
  196. * @param[in] ucVal value max brightness duty
  197. * @param[in] ucFlag flag of saving
  198. * @return None
  199. */
  200. VOID Hv_App_Ddcci_PQ_SetMaxBrightnessDuty(USHORT16 usVal, UCHAR8 ucFlag);
  201. /**
  202. * @brief set SRGB brightness
  203. * @param[in] ucVal value of SRGB brightness
  204. * @param[in] ucFlag flag of saving
  205. * @return None
  206. */
  207. VOID Hv_App_Ddcci_PQ_SetSRGBBrightness(UCHAR8 ucVal, UCHAR8 ucFlag);
  208. /**
  209. * @brief get value of SRGB brightness
  210. * @param[in] None
  211. * @return value of SRGB brightness
  212. */
  213. UCHAR8 Hv_App_Ddcci_PQ_GetSRGBBrightness(VOID);
  214. /**
  215. * @brief save color parameters to SRGB
  216. * @param[in] ucFlag flag of saving
  217. * @return None
  218. */
  219. VOID Hv_App_Ddcci_PQ_SaveColorSRGB(UCHAR8 ucFlag);
  220. /**
  221. * @brief save color parameters to native
  222. * @param[in] ucFlag flag of saving
  223. * @return None
  224. */
  225. VOID Hv_App_Ddcci_PQ_SaveColorNative(UCHAR8 ucFlag);
  226. /**
  227. * @brief save color parameters to 4000K
  228. * @param[in] ucFlag flag of saving
  229. * @return None
  230. */
  231. VOID Hv_App_Ddcci_PQ_SaveColor4000K(UCHAR8 ucFlag);
  232. /**
  233. * @brief save color parameters to 5000K
  234. * @param[in] ucFlag flag of saving
  235. * @return None
  236. */
  237. VOID Hv_App_Ddcci_PQ_SaveColor5000K(UCHAR8 ucFlag);
  238. /**
  239. * @brief save color parameters to 6500K
  240. * @param[in] ucFlag flag of saving
  241. * @return None
  242. */
  243. VOID Hv_App_Ddcci_PQ_SaveColor6500K(UCHAR8 ucFlag);
  244. /**
  245. * @brief save color parameters to 7500K
  246. * @param[in] ucFlag flag of saving
  247. * @return None
  248. */
  249. VOID Hv_App_Ddcci_PQ_SaveColor7500K(UCHAR8 ucFlag);
  250. /**
  251. * @brief save color parameters to 8200K
  252. * @param[in] ucFlag flag of saving
  253. * @return None
  254. */
  255. VOID Hv_App_Ddcci_PQ_SaveColor8200K(UCHAR8 ucFlag);
  256. /**
  257. * @brief save color parameters to 9300K
  258. * @param[in] ucFlag flag of saving
  259. * @return None
  260. */
  261. VOID Hv_App_Ddcci_PQ_SaveColor9300K(UCHAR8 ucFlag);
  262. /**
  263. * @brief save color parameters to 10000K
  264. * @param[in] ucFlag flag of saving
  265. * @return None
  266. */
  267. VOID Hv_App_Ddcci_PQ_SaveColor10000K(UCHAR8 ucFlag);
  268. /**
  269. * @brief save color parameters to 11500K
  270. * @param[in] ucFlag flag of saving
  271. * @return None
  272. */
  273. VOID Hv_App_Ddcci_PQ_SaveColor11500K(UCHAR8 ucFlag);
  274. /**
  275. * @brief save color parameters to user temp
  276. * @param[in] ucFlag flag of saving
  277. * @return None
  278. */
  279. VOID Hv_App_Ddcci_PQ_SaveColorUser(UCHAR8 ucFlag);
  280. /**
  281. * @brief save color parameters to text mode
  282. * @param[in] ucFlag flag of saving
  283. * @return None
  284. */
  285. VOID Hv_App_Ddcci_PQ_SaveColorTextMode(UCHAR8 ucFlag);
  286. /**
  287. * @brief save color parameters to standard mode
  288. * @param[in] ucFlag flag of saving
  289. * @return None
  290. */
  291. VOID Hv_App_Ddcci_PQ_SaveColorStandMode(UCHAR8 ucFlag);
  292. /**
  293. * @brief save color parameters to custom mode
  294. * @param[in] ucFlag flag of saving
  295. * @return None
  296. */
  297. VOID Hv_App_Ddcci_PQ_SaveColorCustomMode(UCHAR8 ucFlag);
  298. /**
  299. * @brief save color parameters to XX00K
  300. * @param[in] ucFlag flag of saving
  301. * @return None
  302. */
  303. VOID Hv_App_Ddcci_PQ_SaveColorXX00K(UCHAR8 ucFlag);
  304. /**
  305. * @brief save color parameters to cinema
  306. * @param[in] ucFlag flag of saving
  307. * @return None
  308. */
  309. VOID Hv_App_Ddcci_PQ_SaveCinema(UCHAR8 ucFlag);
  310. /**
  311. * @brief save color parameters to gaming
  312. * @param[in] ucFlag flag of saving
  313. * @return None
  314. */
  315. VOID Hv_App_Ddcci_PQ_SaveGaming(UCHAR8 ucFlag);
  316. /**
  317. * @brief save color parameters to native
  318. * @param[in] ucFlag flag of saving
  319. * @return None
  320. */
  321. VOID Hv_App_Ddcci_PQ_SaveNative(UCHAR8 ucFlag);
  322. /**
  323. * @brief set HDR
  324. * @param[in] ucFlag status of HDR
  325. * @return None
  326. */
  327. VOID Hv_App_Ddcci_PQ_SetHDR(UCHAR8 ucFlag);
  328. /**
  329. * @brief set HDR duty
  330. * @param[in] usVal value of HDR duty
  331. * @return None
  332. */
  333. VOID Hv_App_Ddcci_PQ_SetHDRDuty(USHORT16 usVal);
  334. /**
  335. * @brief save color parameters to movie HDR mode
  336. * @param[in] ucFlag flag of saving
  337. * @return None
  338. */
  339. VOID Hv_App_Ddcci_PQ_SaveMovieHDRMode(UCHAR8 ucFlag);
  340. /**
  341. * @brief save color parameters to game HDR mode
  342. * @param[in] ucFlag flag of saving
  343. * @return None
  344. */
  345. VOID Hv_App_Ddcci_PQ_SaveGameHDRMode(UCHAR8 ucFlag);
  346. /**
  347. * @brief save color parameters to picture mode
  348. * @param[in] ucFlag flag of saving
  349. * @return None
  350. */
  351. VOID Hv_App_Ddcci_PQ_SavePictureMode(UCHAR8 ucFlag);
  352. /**
  353. * @brief save color parameters to AdobeRGB
  354. * @param[in] ucFlag flag of saving
  355. * @return None
  356. */
  357. VOID Hv_App_Ddcci_PQ_SaveAdobeRGB(UCHAR8 ucFlag);
  358. /**
  359. * @brief save color parameters to BT709
  360. * @param[in] ucFlag flag of saving
  361. * @return None
  362. */
  363. VOID Hv_App_Ddcci_PQ_SaveBT709(UCHAR8 ucFlag);
  364. /**
  365. * @brief save all temp parameters
  366. * @param[in] none
  367. * @return None
  368. */
  369. VOID Hv_App_Ddcci_PQ_SaveAllTemp(VOID);
  370. /**
  371. * @brief set gamma
  372. * @param[in] ucVal id of gamma
  373. * @return None
  374. */
  375. VOID Hv_App_Ddcci_PQ_SelectGamma(UCHAR8 ucVal);
  376. /**
  377. * @brief get gamma id
  378. * @param[in] None
  379. * @return id of gamma
  380. */
  381. UCHAR8 Hv_App_Ddcci_PQ_GetGamma(VOID);
  382. /**
  383. * @brief set DCR
  384. * @param[in] ucVal status of DCR
  385. * @return None
  386. */
  387. VOID Hv_App_Ddcci_PQ_SetDCR(UCHAR8 ucVal);
  388. /**
  389. * @brief enter CEC mode
  390. * @param[in] ucVal enable of CEC
  391. * @param[in] pstCecPara parameters of CEC
  392. * @return None
  393. */
  394. VOID Hv_App_Ddcci_PQ_EnterCECMode(UCHAR8 ucVal, CecPara *pstCecPara);
  395. /**
  396. * @brief exit CEC mode
  397. * @param[in] ucVal parameters of CEC
  398. * @return None
  399. */
  400. VOID Hv_App_Ddcci_PQ_ExitCECMode(UCHAR8 ucVal);
  401. /**
  402. * @brief get brightness of panel
  403. * @param[in] None
  404. * @return None
  405. */
  406. VOID Hv_App_Ddcci_PQ_GetPanelBrightness(PQPanelPara *pstPQPanelPara);
  407. #endif
  408. #endif