summaryrefslogtreecommitdiff
path: root/subdev.h
diff options
context:
space:
mode:
authorTodor Tomov <ttomov@mm-sol.com>2011-01-25 17:46:48 +0200
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2011-02-07 15:37:56 +0100
commit14ddd592a6fcba2ceb751c0d4b0a3b5d46f2a59f (patch)
tree6feac7bd38680179ddfd51c7724989fd352c9a42 /subdev.h
parent9b546182a4707fb2afe891a3eaa5ae804aa90ec8 (diff)
Add v4l2_subdev_get_frame_interval()
Add function to get frame interval. Signed-off-by: Todor Tomov <ttomov@mm-sol.com>
Diffstat (limited to 'subdev.h')
-rw-r--r--subdev.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/subdev.h b/subdev.h
index 9451b12..b5772e0 100644
--- a/subdev.h
+++ b/subdev.h
@@ -125,6 +125,23 @@ int v4l2_subdev_set_crop(struct media_entity *entity, struct v4l2_rect *rect,
unsigned int pad, enum v4l2_subdev_format_whence which);
/**
+ * @brief Retrieve the frame interval on a sub-device.
+ * @param entity - subdev-device media entity.
+ * @param interval - frame interval to be filled.
+ *
+ * Retrieve the current frame interval on subdev @a entity and store it in the
+ * @a interval structure.
+ *
+ * Frame interval retrieving is usually supported only on devices at the
+ * beginning of video pipelines, such as sensors.
+ *
+ * @return 0 on success, or a negative error code on failure.
+ */
+
+int v4l2_subdev_get_frame_interval(struct media_entity *entity,
+ struct v4l2_fract *interval);
+
+/**
* @brief Set the frame interval on a sub-device.
* @param entity - subdev-device media entity.
* @param interval - frame interval.