ddp_gamma.h 742 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __DDP_GAMMA_H__
  2. #define __DDP_GAMMA_H__
  3. #include <asm/uaccess.h>
  4. typedef enum {
  5. DISP_GAMMA0 = 0,
  6. DISP_GAMMA_TOTAL
  7. } disp_gamma_id_t;
  8. typedef unsigned int gamma_entry;
  9. #define GAMMA_ENTRY(r10, g10, b10) (((r10) << 20) | ((g10) << 10) | (b10))
  10. #define DISP_GAMMA_LUT_SIZE 512
  11. typedef struct {
  12. disp_gamma_id_t hw_id;
  13. gamma_entry lut[DISP_GAMMA_LUT_SIZE];
  14. } DISP_GAMMA_LUT_T;
  15. typedef enum {
  16. DISP_CCORR0 = 0,
  17. DISP_CCORR_TOTAL
  18. } disp_ccorr_id_t;
  19. typedef struct {
  20. disp_ccorr_id_t hw_id;
  21. unsigned int coef[3][3];
  22. } DISP_CCORR_COEF_T;
  23. extern int corr_dbg_en;
  24. void ccorr_test(const char *cmd, char *debug_output);
  25. int ccorr_interface_for_color(unsigned int ccorr_idx,
  26. unsigned int ccorr_coef[3][3], void *handle);
  27. #endif