diff options
| author | kkitayam <[email protected]> | 2021-09-25 16:59:17 +0900 |
|---|---|---|
| committer | kkitayam <[email protected]> | 2021-09-29 21:23:17 +0900 |
| commit | d88cc23ca5eced51167edad00ea43c86038ee481 (patch) | |
| tree | 476b7567dc0445a22e25619efea10ce666c35ad0 /src/class/video/video_device.h | |
| parent | a978828c3abdf864f9806cec6aa73a36f9209cc3 (diff) | |
Refactor packet handling
Diffstat (limited to 'src/class/video/video_device.h')
| -rw-r--r-- | src/class/video/video_device.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/class/video/video_device.h b/src/class/video/video_device.h index a1b13b9af..acf4c4d2b 100644 --- a/src/class/video/video_device.h +++ b/src/class/video/video_device.h @@ -42,10 +42,12 @@ extern "C" { bool tud_video_n_streaming(uint8_t itf); -int tud_video_n_frame_xfer(uint8_t itf, uint32_t pts, void *buffer, size_t bufsize); +/* itf instance number of streaming interface */ +bool tud_video_n_frame_xfer(uint8_t itf, uint32_t pts, void *buffer, size_t bufsize); /*------------- Optional callbacks -------------*/ -TU_ATTR_WEAK int tud_video_frame_xfer_complete_cb(void); +/* itf instance number of streaming interface */ +TU_ATTR_WEAK int tud_video_frame_xfer_complete_cb(unsigned itf); //--------------------------------------------------------------------+ // Application Callback API (weak is optional) |
