diff options
author | Sylwester Nawrocki <sylvester.nawrocki@gmail.com> | 2012-12-20 13:03:14 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-02-05 11:59:41 -0500 |
commit | af9bb33aa33d4beb5d0ac505d48530a56856f66c (patch) | |
tree | 778efe7dc2d2721209f6def2710cfd25fdb47463 /include/media | |
parent | f1927479554bf19d2ac54c4b1a38538e54e1881b (diff) |
[media] V4L: Add header file defining standard image sizes
Add common header file defining standard image sizes, so we can
avoid redefining those in each driver.
Signed-off-by: Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include/media')
-rw-r--r-- | include/media/v4l2-image-sizes.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/include/media/v4l2-image-sizes.h b/include/media/v4l2-image-sizes.h new file mode 100644 index 000000000000..10daf92ff1ab --- /dev/null +++ b/include/media/v4l2-image-sizes.h | |||
@@ -0,0 +1,34 @@ | |||
1 | /* | ||
2 | * Standard image size definitions | ||
3 | * | ||
4 | * Copyright (C) 2013, Sylwester Nawrocki <sylvester.nawrocki@gmail.com> | ||
5 | * | ||
6 | * This program is free software; you can redistribute it and/or modify | ||
7 | * it under the terms of the GNU General Public License version 2 as | ||
8 | * published by the Free Software Foundation. | ||
9 | */ | ||
10 | #ifndef _IMAGE_SIZES_H | ||
11 | #define _IMAGE_SIZES_H | ||
12 | |||
13 | #define CIF_WIDTH 352 | ||
14 | #define CIF_HEIGHT 288 | ||
15 | |||
16 | #define QCIF_WIDTH 176 | ||
17 | #define QCIF_HEIGHT 144 | ||
18 | |||
19 | #define QQCIF_WIDTH 88 | ||
20 | #define QQCIF_HEIGHT 72 | ||
21 | |||
22 | #define QQVGA_WIDTH 160 | ||
23 | #define QQVGA_HEIGHT 120 | ||
24 | |||
25 | #define QVGA_WIDTH 320 | ||
26 | #define QVGA_HEIGHT 240 | ||
27 | |||
28 | #define SXGA_WIDTH 1280 | ||
29 | #define SXGA_HEIGHT 1024 | ||
30 | |||
31 | #define VGA_WIDTH 640 | ||
32 | #define VGA_HEIGHT 480 | ||
33 | |||
34 | #endif /* _IMAGE_SIZES_H */ | ||