- 根目录:
- include
- media
- davinci
- dm644x_ccdc.h
#ifndef _DM644X_CCDC_H
#define _DM644X_CCDC_H
#include <media/davinci/ccdc_types.h>
#include <media/davinci/vpfe_types.h>
enum ccdc_sample_length {
CCDC_SAMPLE_1PIXELS,
CCDC_SAMPLE_2PIXELS,
CCDC_SAMPLE_4PIXELS,
CCDC_SAMPLE_8PIXELS,
CCDC_SAMPLE_16PIXELS
};
enum ccdc_sample_line {
CCDC_SAMPLE_1LINES,
CCDC_SAMPLE_2LINES,
CCDC_SAMPLE_4LINES,
CCDC_SAMPLE_8LINES,
CCDC_SAMPLE_16LINES
};
enum ccdc_gama_width {
CCDC_GAMMA_BITS_15_6,
CCDC_GAMMA_BITS_14_5,
CCDC_GAMMA_BITS_13_4,
CCDC_GAMMA_BITS_12_3,
CCDC_GAMMA_BITS_11_2,
CCDC_GAMMA_BITS_10_1,
CCDC_GAMMA_BITS_09_0
};
enum ccdc_data_size {
CCDC_DATA_16BITS,
CCDC_DATA_15BITS,
CCDC_DATA_14BITS,
CCDC_DATA_13BITS,
CCDC_DATA_12BITS,
CCDC_DATA_11BITS,
CCDC_DATA_10BITS,
CCDC_DATA_8BITS
};
struct ccdc_a_law {
unsigned char enable;
enum ccdc_gama_width gama_wd;
};
struct ccdc_black_clamp {
unsigned char enable;
enum ccdc_sample_length sample_pixel;
enum ccdc_sample_line sample_ln;
unsigned short start_pixel;
unsigned short sgain;
unsigned short dc_sub;
};
struct ccdc_black_compensation {
char r;
char gr;
char b;
char gb;
};
struct ccdc_fault_pixel {
unsigned char enable;
unsigned short fp_num;
unsigned int fpc_table_addr;
};
struct ccdc_config_params_raw {
enum ccdc_data_size data_sz;
struct ccdc_a_law alaw;
struct ccdc_black_clamp blk_clamp;
struct ccdc_black_compensation blk_comp;
struct ccdc_fault_pixel fault_pxl;
};
#ifdef __KERNEL__
#include <linux/io.h>
#define FP_NUM_BYTES 4
#define NUM_EXTRAPIXELS 8
#define NUM_EXTRALINES 8
#define CCDC_WIN_PAL {0, 0, 720, 576}
#define CCDC_WIN_VGA {0, 0, (640 + NUM_EXTRAPIXELS), (480 + NUM_EXTRALINES)}
struct ccdc_params_raw {
enum ccdc_pixfmt pix_fmt;
enum ccdc_frmfmt frm_fmt;
struct v4l2_rect win;
enum vpfe_pin_pol fid_pol;
enum vpfe_pin_pol vd_pol;
enum vpfe_pin_pol hd_pol;
enum ccdc_buftype buf_type;
unsigned char image_invert_enable;
struct ccdc_config_params_raw config_params;
};
struct ccdc_params_ycbcr {
enum ccdc_pixfmt pix_fmt;
enum ccdc_frmfmt frm_fmt;
struct v4l2_rect win;
enum vpfe_pin_pol fid_pol;
enum vpfe_pin_pol vd_pol;
enum vpfe_pin_pol hd_pol;
int bt656_enable;
enum ccdc_pixorder pix_order;
enum ccdc_buftype buf_type;
};
#endif
#endif
- 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
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
- 99
- 100
- 101
- 102
- 103
- 104
- 105
- 106
- 107
- 108
- 109
- 110
- 111
- 112
- 113
- 114
- 115
- 116
- 117
- 118
- 119
- 120
- 121
- 122
- 123
- 124
- 125
- 126
- 127
- 128
- 129
- 130
- 131
- 132
- 133
- 134
- 135
- 136
- 137
- 138
- 139
- 140
- 141
- 142
- 143
- 144
- 145
- 146
- 147
- 148
- 149
- 150
- 151
- 152
- 153
- 154
- 155
- 156
- 157
- 158
- 159
- 160
- 161
- 162
- 163
- 164
- 165
- 166
- 167
- 168
- 169
- 170
- 171
- 172
- 173
- 174
- 175
- 176
- 177
- 178
- 179
- 180
- 181
- 182
- 183
- 184