diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2012-04-02 05:40:19 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2012-05-14 13:02:23 -0400 |
commit | 6491d1adfbf0e2ffbdfcda8cef60edc01b6700b3 (patch) | |
tree | 3b9202569659aa28b49d6a90e83363c95bdefa84 /include/linux/videodev2.h | |
parent | 6fd522a6d12d0ebac528f2d4553c4bf51c0c3275 (diff) |
[media] V4L: Extend V4L2_CID_COLORFX with more image effects
This patch adds definition of additional color effects:
- V4L2_COLORFX_AQUA,
- V4L2_COLORFX_ART_FREEZE,
- V4L2_COLORFX_SILHOUETTE,
- V4L2_COLORFX_SOLARIZATION,
- V4L2_COLORFX_ANTIQUE,
- V4L2_COLORFX_SET_CBCR.
The new V4L2_COLORFX_CBCR control is added to allow setting
the fixed Cb, Cr values that replace chroma Cb/Cr coefficients
in case of V4L2_COLORFX_SET_CBCR effect.
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/linux/videodev2.h')
-rw-r--r-- | include/linux/videodev2.h | 29 |
1 files changed, 18 insertions, 11 deletions
diff --git a/include/linux/videodev2.h b/include/linux/videodev2.h index 7f75846a4a0c..07bce86f3548 100644 --- a/include/linux/videodev2.h +++ b/include/linux/videodev2.h | |||
@@ -1248,16 +1248,22 @@ enum v4l2_power_line_frequency { | |||
1248 | #define V4L2_CID_COLOR_KILLER (V4L2_CID_BASE+30) | 1248 | #define V4L2_CID_COLOR_KILLER (V4L2_CID_BASE+30) |
1249 | #define V4L2_CID_COLORFX (V4L2_CID_BASE+31) | 1249 | #define V4L2_CID_COLORFX (V4L2_CID_BASE+31) |
1250 | enum v4l2_colorfx { | 1250 | enum v4l2_colorfx { |
1251 | V4L2_COLORFX_NONE = 0, | 1251 | V4L2_COLORFX_NONE = 0, |
1252 | V4L2_COLORFX_BW = 1, | 1252 | V4L2_COLORFX_BW = 1, |
1253 | V4L2_COLORFX_SEPIA = 2, | 1253 | V4L2_COLORFX_SEPIA = 2, |
1254 | V4L2_COLORFX_NEGATIVE = 3, | 1254 | V4L2_COLORFX_NEGATIVE = 3, |
1255 | V4L2_COLORFX_EMBOSS = 4, | 1255 | V4L2_COLORFX_EMBOSS = 4, |
1256 | V4L2_COLORFX_SKETCH = 5, | 1256 | V4L2_COLORFX_SKETCH = 5, |
1257 | V4L2_COLORFX_SKY_BLUE = 6, | 1257 | V4L2_COLORFX_SKY_BLUE = 6, |
1258 | V4L2_COLORFX_GRASS_GREEN = 7, | 1258 | V4L2_COLORFX_GRASS_GREEN = 7, |
1259 | V4L2_COLORFX_SKIN_WHITEN = 8, | 1259 | V4L2_COLORFX_SKIN_WHITEN = 8, |
1260 | V4L2_COLORFX_VIVID = 9, | 1260 | V4L2_COLORFX_VIVID = 9, |
1261 | V4L2_COLORFX_AQUA = 10, | ||
1262 | V4L2_COLORFX_ART_FREEZE = 11, | ||
1263 | V4L2_COLORFX_SILHOUETTE = 12, | ||
1264 | V4L2_COLORFX_SOLARIZATION = 13, | ||
1265 | V4L2_COLORFX_ANTIQUE = 14, | ||
1266 | V4L2_COLORFX_SET_CBCR = 15, | ||
1261 | }; | 1267 | }; |
1262 | #define V4L2_CID_AUTOBRIGHTNESS (V4L2_CID_BASE+32) | 1268 | #define V4L2_CID_AUTOBRIGHTNESS (V4L2_CID_BASE+32) |
1263 | #define V4L2_CID_BAND_STOP_FILTER (V4L2_CID_BASE+33) | 1269 | #define V4L2_CID_BAND_STOP_FILTER (V4L2_CID_BASE+33) |
@@ -1274,9 +1280,10 @@ enum v4l2_colorfx { | |||
1274 | #define V4L2_CID_MIN_BUFFERS_FOR_OUTPUT (V4L2_CID_BASE+40) | 1280 | #define V4L2_CID_MIN_BUFFERS_FOR_OUTPUT (V4L2_CID_BASE+40) |
1275 | 1281 | ||
1276 | #define V4L2_CID_ALPHA_COMPONENT (V4L2_CID_BASE+41) | 1282 | #define V4L2_CID_ALPHA_COMPONENT (V4L2_CID_BASE+41) |
1283 | #define V4L2_CID_COLORFX_CBCR (V4L2_CID_BASE+42) | ||
1277 | 1284 | ||
1278 | /* last CID + 1 */ | 1285 | /* last CID + 1 */ |
1279 | #define V4L2_CID_LASTP1 (V4L2_CID_BASE+42) | 1286 | #define V4L2_CID_LASTP1 (V4L2_CID_BASE+43) |
1280 | 1287 | ||
1281 | /* MPEG-class control IDs defined by V4L2 */ | 1288 | /* MPEG-class control IDs defined by V4L2 */ |
1282 | #define V4L2_CID_MPEG_BASE (V4L2_CTRL_CLASS_MPEG | 0x900) | 1289 | #define V4L2_CID_MPEG_BASE (V4L2_CTRL_CLASS_MPEG | 0x900) |