Go to the source code of this file.
|
MMAL_STATUS_T | mmal_clock_create (MMAL_CLOCK_T **clock) |
|
MMAL_STATUS_T | mmal_clock_destroy (MMAL_CLOCK_T *clock) |
|
MMAL_STATUS_T | mmal_clock_request_add (MMAL_CLOCK_T *clock, int64_t media_time, MMAL_CLOCK_REQUEST_CB cb, void *cb_data, MMAL_CLOCK_VOID_FP priv) |
|
MMAL_STATUS_T | mmal_clock_request_flush (MMAL_CLOCK_T *clock) |
|
MMAL_STATUS_T | mmal_clock_media_time_set (MMAL_CLOCK_T *clock, int64_t media_time) |
|
MMAL_STATUS_T | mmal_clock_scale_set (MMAL_CLOCK_T *clock, MMAL_RATIONAL_T scale) |
|
MMAL_STATUS_T | mmal_clock_active_set (MMAL_CLOCK_T *clock, MMAL_BOOL_T active) |
|
MMAL_RATIONAL_T | mmal_clock_scale_get (MMAL_CLOCK_T *clock) |
|
int64_t | mmal_clock_media_time_get (MMAL_CLOCK_T *clock) |
|
MMAL_BOOL_T | mmal_clock_is_active (MMAL_CLOCK_T *clock) |
|
MMAL_STATUS_T | mmal_clock_update_threshold_get (MMAL_CLOCK_T *clock, MMAL_CLOCK_UPDATE_THRESHOLD_T *update_threshold) |
|
MMAL_STATUS_T | mmal_clock_update_threshold_set (MMAL_CLOCK_T *clock, const MMAL_CLOCK_UPDATE_THRESHOLD_T *update_threshold) |
|
MMAL_STATUS_T | mmal_clock_discont_threshold_get (MMAL_CLOCK_T *clock, MMAL_CLOCK_DISCONT_THRESHOLD_T *discont) |
|
MMAL_STATUS_T | mmal_clock_discont_threshold_set (MMAL_CLOCK_T *clock, const MMAL_CLOCK_DISCONT_THRESHOLD_T *discont) |
|
MMAL_STATUS_T | mmal_clock_request_threshold_get (MMAL_CLOCK_T *clock, MMAL_CLOCK_REQUEST_THRESHOLD_T *req) |
|
MMAL_STATUS_T | mmal_clock_request_threshold_set (MMAL_CLOCK_T *clock, const MMAL_CLOCK_REQUEST_THRESHOLD_T *req) |
|
◆ MMAL_CLOCK_REQUEST_CB
◆ MMAL_CLOCK_T
◆ MMAL_CLOCK_VOID_FP
typedef void(* MMAL_CLOCK_VOID_FP) (void) |
Definition of a clock request callback. This is invoked when the media-time requested by the client is reached.
- Parameters
-
clock | The clock which serviced the request |
media_time | The current media-time |
cb_data | Client-supplied data |
priv | Function pointer used by the framework |
Definition at line 69 of file mmal_clock_private.h.
◆ mmal_clock_active_set()
Set the clock state.
- Parameters
-
clock | The clock |
active | TRUE -> clock is active and media-time is advancing |
- Returns
- MMAL_SUCCESS on success
◆ mmal_clock_create()
Create a new instance of a clock.
- Parameters
-
- Returns
- MMAL_SUCCESS on success
◆ mmal_clock_destroy()
Destroy a previously created clock.
- Parameters
-
clock | The clock to destroy |
- Returns
- MMAL_SUCCESS on success
◆ mmal_clock_discont_threshold_get()
Get the clock's discontinuity threshold values.
- Parameters
-
clock | The clock |
discont | Pointer to clock discontinuity threshold values to fill |
- Returns
- MMAL_SUCCESS on success
◆ mmal_clock_discont_threshold_set()
Set the clock's discontinuity threshold values.
- Parameters
-
clock | The clock |
discont | Pointer to new clock discontinuity threshold values |
- Returns
- MMAL_SUCCESS on success
◆ mmal_clock_is_active()
Get the clock's state.
- Parameters
-
- Returns
- TRUE if clock is running (i.e. local media-time is advancing)
◆ mmal_clock_media_time_get()
Get the clock's current media-time. This takes the clock scale and media-time offset into account.
- Parameters
-
- Returns
- Current media-time in microseconds
◆ mmal_clock_media_time_set()
Update the clock's media-time.
- Parameters
-
clock | The clock to update |
media_time | New media-time to be applied (microseconds) |
- Returns
- MMAL_SUCCESS on success
◆ mmal_clock_request_add()
Register a request with the clock. When the specified media-time is reached, the clock will invoke the supplied callback.
- Parameters
-
clock | The clock |
media_time | The media-time at which the callback should be invoked (microseconds) |
cb | Callback to invoke |
cb_data | Client-supplied callback data |
priv | Function pointer used by the framework |
- Returns
- MMAL_SUCCESS on success
◆ mmal_clock_request_flush()
Remove all previously registered clock requests.
- Parameters
-
- Returns
- MMAL_SUCCESS on success
◆ mmal_clock_request_threshold_get()
Get the clock's request threshold values.
- Parameters
-
clock | The clock |
future | Pointer to clock request threshold values to fill |
- Returns
- MMAL_SUCCESS on success
◆ mmal_clock_request_threshold_set()
Set the clock's request threshold values.
- Parameters
-
clock | The clock |
discont | Pointer to new clock request threshold values |
- Returns
- MMAL_SUCCESS on success
◆ mmal_clock_scale_get()
Get the clock's scale.
- Parameters
-
- Returns
- Current clock scale
◆ mmal_clock_scale_set()
Set the clock's scale.
- Parameters
-
clock | The clock |
scale | Scale factor |
- Returns
- MMAL_SUCCESS on success
◆ mmal_clock_update_threshold_get()
Get the clock's media-time update threshold values.
- Parameters
-
clock | The clock |
update_threshold | Pointer to clock update threshold values to fill |
- Returns
- MMAL_SUCCESS on success
◆ mmal_clock_update_threshold_set()
Set the clock's media-time update threshold values.
- Parameters
-
clock | The clock |
update_threshold | Pointer to new clock update threshold values |
- Returns
- MMAL_SUCCESS on success