◆ capture_cb
This callback is called by capturer stream when it has captured the whole packet worth of video samples.
- Parameters
-
stream | The video stream. |
user_data | User data associated with the stream. |
frame | Captured frame. |
- Returns
- Returning non-PJ_SUCCESS will cause the video stream to stop
◆ render_cb
This callback is called by renderer stream when it needs additional data to be rendered by the device. Application must fill in the whole of output buffer with video samples.
The frame argument contains the following values:
- timestamp Rendering timestamp, in samples.
- buf Buffer to be filled out by application.
- size The size requested in bytes, which will be equal to the size of one whole packet.
- Parameters
-
stream | The video stream. |
user_data | User data associated with the stream. |
frame | Video frame, which buffer is to be filled in by the application. |
- Returns
- Returning non-PJ_SUCCESS will cause the video stream to stop
The documentation for this struct was generated from the following file: