ddp_aal.h 752 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef __DDP_AAL_H__
  2. #define __DDP_AAL_H__
  3. #define AAL_HIST_BIN 33 /* [0..32] */
  4. #define AAL_DRE_POINT_NUM 29
  5. #define AAL_SERVICE_FORCE_UPDATE 0x1
  6. typedef struct {
  7. /* DRE */
  8. int dre_map_bypass;
  9. /* CABC */
  10. int cabc_gainlmt[33];
  11. } DISP_AAL_INITREG;
  12. typedef struct {
  13. unsigned int serviceFlags;
  14. int backlight;
  15. unsigned int maxHist[AAL_HIST_BIN];
  16. } DISP_AAL_HIST;
  17. typedef struct {
  18. int DREGainFltStatus[AAL_DRE_POINT_NUM];
  19. int cabc_fltgain_force; /* 10-bit ; [0,1023] */
  20. int cabc_gainlmt[33];
  21. int FinalBacklight; /* 10-bit ; [0,1023] */
  22. } DISP_AAL_PARAM;
  23. void disp_aal_on_end_of_frame(void);
  24. extern int aal_dbg_en;
  25. void aal_test(const char *cmd, char *debug_output);
  26. void disp_aal_notify_backlight_changed(int bl_1024);
  27. #endif