summaryrefslogtreecommitdiff
path: root/src/class/video/video_device.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/class/video/video_device.h')
-rw-r--r--src/class/video/video_device.h15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/class/video/video_device.h b/src/class/video/video_device.h
index e5012ca7e..ee2fcb9d5 100644
--- a/src/class/video/video_device.h
+++ b/src/class/video/video_device.h
@@ -39,11 +39,15 @@ extern "C" {
// Application API (Multiple Ports)
// CFG_TUD_VIDEO > 1
//--------------------------------------------------------------------+
-/* ctl_idx instance number of control interface
- * stm_idx instance number of streaming interface */
+
+/** Return true if streaming
+ *
+ * @param[in] ctl_idx Destination control interface index
+ * @param[in] stm_idx Destination streaming interface index */
bool tud_video_n_streaming(uint_fast8_t ctl_idx, uint_fast8_t stm_idx);
-/**
+/** Transfer a frame
+ *
* @param[in] ctl_idx Destination control interface index
* @param[in] stm_idx Destination streaming interface index
* @param[in] buffer Frame buffer. The caller must not use this buffer until the operation is completed.
@@ -70,8 +74,9 @@ TU_ATTR_WEAK int tud_video_power_mode_cb(uint_fast8_t ctl_idx, uint8_t power_mod
/** Invoked when VS_COMMIT_CONTROL(SET_CUR) request received
*
- * @param[in] ctl_idx Destination control interface index
- * @param[in] stm_idx Destination streaming interface index
+ * @param[in] ctl_idx Destination control interface index
+ * @param[in] stm_idx Destination streaming interface index
+ * @param[in] parameters Video streaming parameters
* @return video_error_code_t */
TU_ATTR_WEAK int tud_video_commit_cb(uint_fast8_t ctl_idx, uint_fast8_t stm_idx,
video_probe_and_commit_control_t const *parameters);