summaryrefslogtreecommitdiff
path: root/kernel-headers/ddp_gamma.h
blob: 484bf27cfe4f2061ea1e862b7819ec745d794e2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef __DDP_GAMMA_H__
#define __DDP_GAMMA_H__

//#include <asm/uaccess.h>


typedef enum {
    DISP_GAMMA0 = 0,
    DISP_GAMMA_TOTAL
} disp_gamma_id_t;


typedef unsigned int gamma_entry;
#define GAMMA_ENTRY(r10, g10, b10) (((r10) << 20) | ((g10) << 10) | (b10))

#define DISP_GAMMA_LUT_SIZE 512

typedef struct {
    disp_gamma_id_t hw_id;
    gamma_entry lut[DISP_GAMMA_LUT_SIZE];
} DISP_GAMMA_LUT_T;


typedef enum {
    DISP_CCORR0 = 0,
    DISP_CCORR_TOTAL
} disp_ccorr_id_t;

typedef struct {
    disp_ccorr_id_t hw_id;
    unsigned int coef[3][3];
} DISP_CCORR_COEF_T;

#endif