summaryrefslogtreecommitdiffstats
path: root/include/media/v4l2-dv-timings.h
diff options
context:
space:
mode:
authorPrashant Laddha <prladdha@cisco.com>2015-06-10 12:51:42 -0400
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>2015-07-06 07:25:49 -0400
commit5fea1bb703c360f323c62f6d34b5e947d0590e80 (patch)
tree4e642dc86404ba2441f412d6e5d9d035a5052c3d /include/media/v4l2-dv-timings.h
parent30533ad10b7c3d7c05b757382aee28458167ab75 (diff)
[media] v4l2-dv-timings: add support for reduced blanking v2
Added support for reduced blanking version 2 (RB v2) in cvt timings. Standard specifies a fixed vsync pulse of 8 lines to indicate RB v2 timings. Vertical back porch is fixed at 6 lines and vertical front porch is remainder of vertical blanking time. For RB v2, horizontal blanking is fixed at 80 pixels. Horizontal sync is fixed at 32. All horizontal timing counts (active pixels, front, back porches) can be specified upto a precision of 1. RB v2 allows for non standard aspect ratios. In RB v2 vsync does not indicate aspect ratio. In absence of aspect ratio v4l2_detect_cvt() cannot calculate image width from image height. Hence extending the v4l2_detect_cvt() to pass image width in case of RB v2. Signed-off-by: Prashant Laddha <prladdha@cisco.com> Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'include/media/v4l2-dv-timings.h')
-rw-r--r--include/media/v4l2-dv-timings.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/media/v4l2-dv-timings.h b/include/media/v4l2-dv-timings.h
index eecd3102a618..e18a653549cd 100644
--- a/include/media/v4l2-dv-timings.h
+++ b/include/media/v4l2-dv-timings.h
@@ -115,6 +115,9 @@ void v4l2_print_dv_timings(const char *dev_prefix, const char *prefix,
115 * @frame_height - the total height of the frame (including blanking) in lines. 115 * @frame_height - the total height of the frame (including blanking) in lines.
116 * @hfreq - the horizontal frequency in Hz. 116 * @hfreq - the horizontal frequency in Hz.
117 * @vsync - the height of the vertical sync in lines. 117 * @vsync - the height of the vertical sync in lines.
118 * @active_width - active width of image (does not include blanking). This
119 * information is needed only in case of version 2 of reduced blanking.
120 * In other cases, this parameter does not have any effect on timings.
118 * @polarities - the horizontal and vertical polarities (same as struct 121 * @polarities - the horizontal and vertical polarities (same as struct
119 * v4l2_bt_timings polarities). 122 * v4l2_bt_timings polarities).
120 * @interlaced - if this flag is true, it indicates interlaced format 123 * @interlaced - if this flag is true, it indicates interlaced format
@@ -125,7 +128,8 @@ void v4l2_print_dv_timings(const char *dev_prefix, const char *prefix,
125 * in with the found CVT timings. 128 * in with the found CVT timings.
126 */ 129 */
127bool v4l2_detect_cvt(unsigned frame_height, unsigned hfreq, unsigned vsync, 130bool v4l2_detect_cvt(unsigned frame_height, unsigned hfreq, unsigned vsync,
128 u32 polarities, bool interlaced, struct v4l2_dv_timings *fmt); 131 unsigned active_width, u32 polarities, bool interlaced,
132 struct v4l2_dv_timings *fmt);
129 133
130/** v4l2_detect_gtf - detect if the given timings follow the GTF standard 134/** v4l2_detect_gtf - detect if the given timings follow the GTF standard
131 * @frame_height - the total height of the frame (including blanking) in lines. 135 * @frame_height - the total height of the frame (including blanking) in lines.