Blame view
include/media/ov772x.h
1.4 KB
5d28d5254 V4L/DVB (13645): ... |
1 2 |
/* * ov772x Camera |
08a66aea5 V4L/DVB (9488): A... |
3 4 5 6 7 8 9 10 11 12 13 |
* * Copyright (C) 2008 Renesas Solutions Corp. * Kuninori Morimoto <morimoto.kuninori@renesas.com> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. */ #ifndef __OV772X_H__ #define __OV772X_H__ |
051489119 V4L/DVB (10669): ... |
14 |
/* for flags */ |
3675c750c soc-camera: ov772... |
15 16 |
#define OV772X_FLAG_VFLIP (1 << 0) /* Vertical flip image */ #define OV772X_FLAG_HFLIP (1 << 1) /* Horizontal flip image */ |
051489119 V4L/DVB (10669): ... |
17 |
|
db6cbc8cf V4L/DVB (11327): ... |
18 19 20 21 22 23 24 25 26 27 28 29 |
/* * for Edge ctrl * * strength also control Auto or Manual Edge Control Mode * see also OV772X_MANUAL_EDGE_CTRL */ struct ov772x_edge_ctrl { unsigned char strength; unsigned char threshold; unsigned char upper; unsigned char lower; }; |
2891f37c2 [media] V4L: ov77... |
30 31 32 33 34 |
#define OV772X_MANUAL_EDGE_CTRL 0x80 /* un-used bit of strength */ #define OV772X_EDGE_STRENGTH_MASK 0x1F #define OV772X_EDGE_THRESHOLD_MASK 0x0F #define OV772X_EDGE_UPPER_MASK 0xFF #define OV772X_EDGE_LOWER_MASK 0xFF |
db6cbc8cf V4L/DVB (11327): ... |
35 36 37 |
#define OV772X_AUTO_EDGECTRL(u, l) \ { \ |
2891f37c2 [media] V4L: ov77... |
38 39 |
.upper = (u & OV772X_EDGE_UPPER_MASK), \ .lower = (l & OV772X_EDGE_LOWER_MASK), \ |
db6cbc8cf V4L/DVB (11327): ... |
40 |
} |
2891f37c2 [media] V4L: ov77... |
41 42 43 44 45 |
#define OV772X_MANUAL_EDGECTRL(s, t) \ { \ .strength = (s & OV772X_EDGE_STRENGTH_MASK) | \ OV772X_MANUAL_EDGE_CTRL, \ .threshold = (t & OV772X_EDGE_THRESHOLD_MASK), \ |
db6cbc8cf V4L/DVB (11327): ... |
46 47 48 49 50 |
} /* * ov772x camera info */ |
08a66aea5 V4L/DVB (9488): A... |
51 |
struct ov772x_camera_info { |
3675c750c soc-camera: ov772... |
52 53 |
unsigned long flags; struct ov772x_edge_ctrl edgectrl; |
08a66aea5 V4L/DVB (9488): A... |
54 55 56 |
}; #endif /* __OV772X_H__ */ |