Go to the source code of this file.
|
void | mmal_port_buffer_header_callback (MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buffer) |
|
void | mmal_port_event_send (MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buffer) |
|
MMAL_PORT_T * | mmal_port_alloc (MMAL_COMPONENT_T *, MMAL_PORT_TYPE_T type, unsigned int extra_size) |
|
void | mmal_port_free (MMAL_PORT_T *port) |
|
MMAL_PORT_T ** | mmal_ports_alloc (MMAL_COMPONENT_T *, unsigned int ports_num, MMAL_PORT_TYPE_T type, unsigned int extra_size) |
|
void | mmal_ports_free (MMAL_PORT_T **ports, unsigned int ports_num) |
|
void | mmal_port_acquire (MMAL_PORT_T *port) |
|
MMAL_STATUS_T | mmal_port_release (MMAL_PORT_T *port) |
|
MMAL_STATUS_T | mmal_port_pause (MMAL_PORT_T *port, MMAL_BOOL_T pause) |
|
MMAL_BOOL_T | mmal_port_is_connected (MMAL_PORT_T *port) |
|
MMAL_PORT_T * | mmal_port_clock_alloc (MMAL_COMPONENT_T *component, unsigned int extra_size, MMAL_PORT_CLOCK_EVENT_CB event_cb) |
|
void | mmal_port_clock_free (MMAL_PORT_T *port) |
|
MMAL_PORT_T ** | mmal_ports_clock_alloc (MMAL_COMPONENT_T *component, unsigned int ports_num, unsigned int extra_size, MMAL_PORT_CLOCK_EVENT_CB event_cb) |
|
void | mmal_ports_clock_free (MMAL_PORT_T **ports, unsigned int ports_num) |
|
MMAL_STATUS_T | mmal_port_clock_request_add (MMAL_PORT_T *port, int64_t media_time, MMAL_PORT_CLOCK_REQUEST_CB cb, void *cb_data) |
|
MMAL_STATUS_T | mmal_port_clock_request_flush (MMAL_PORT_T *port) |
|
MMAL_STATUS_T | mmal_port_clock_reference_set (MMAL_PORT_T *port, MMAL_BOOL_T reference) |
|
MMAL_BOOL_T | mmal_port_clock_reference_get (MMAL_PORT_T *port) |
|
MMAL_STATUS_T | mmal_port_clock_active_set (MMAL_PORT_T *port, MMAL_BOOL_T active) |
|
MMAL_BOOL_T | mmal_port_clock_active_get (MMAL_PORT_T *port) |
|
MMAL_STATUS_T | mmal_port_clock_scale_set (MMAL_PORT_T *port, MMAL_RATIONAL_T scale) |
|
MMAL_RATIONAL_T | mmal_port_clock_scale_get (MMAL_PORT_T *port) |
|
MMAL_STATUS_T | mmal_port_clock_media_time_set (MMAL_PORT_T *port, int64_t media_time) |
|
int64_t | mmal_port_clock_media_time_get (MMAL_PORT_T *port) |
|
MMAL_STATUS_T | mmal_port_clock_update_threshold_set (MMAL_PORT_T *port, const MMAL_CLOCK_UPDATE_THRESHOLD_T *threshold) |
|
MMAL_STATUS_T | mmal_port_clock_update_threshold_get (MMAL_PORT_T *port, MMAL_CLOCK_UPDATE_THRESHOLD_T *threshold) |
|
MMAL_STATUS_T | mmal_port_clock_discont_threshold_set (MMAL_PORT_T *port, const MMAL_CLOCK_DISCONT_THRESHOLD_T *threshold) |
|
MMAL_STATUS_T | mmal_port_clock_discont_threshold_get (MMAL_PORT_T *port, MMAL_CLOCK_DISCONT_THRESHOLD_T *threshold) |
|
MMAL_STATUS_T | mmal_port_clock_request_threshold_set (MMAL_PORT_T *port, const MMAL_CLOCK_REQUEST_THRESHOLD_T *threshold) |
|
MMAL_STATUS_T | mmal_port_clock_request_threshold_get (MMAL_PORT_T *port, MMAL_CLOCK_REQUEST_THRESHOLD_T *threshold) |
|
void | mmal_port_clock_input_buffer_info (MMAL_PORT_T *port, const MMAL_CLOCK_BUFFER_INFO_T *info) |
|
void | mmal_port_clock_output_buffer_info (MMAL_PORT_T *port, const MMAL_CLOCK_BUFFER_INFO_T *info) |
|
◆ MMAL_PORT_CLOCK_EVENT_CB
Definition of a clock port event callback. Used to inform the client of a clock event that has occurred.
- Parameters
-
port | The clock port where the event occurred |
event | The event that has occurred |
Definition at line 103 of file mmal_port_private.h.
◆ MMAL_PORT_CLOCK_REQUEST_CB
typedef void(* MMAL_PORT_CLOCK_REQUEST_CB) (MMAL_PORT_T *port, int64_t media_time, void *cb_data) |
Definition of a clock port request callback. This is invoked when the media-time requested by the client is reached.
- Parameters
-
port | The clock port which serviced the request |
media_time | The current media-time |
cb_data | Client-supplied data |
Definition at line 148 of file mmal_port_private.h.
◆ MMAL_PORT_PRIVATE_T
◆ mmal_port_acquire()
Acquire a reference on a port
◆ mmal_port_alloc()
Allocate a port structure
◆ mmal_port_buffer_header_callback()
◆ mmal_port_clock_active_get()
◆ mmal_port_clock_active_set()
Get/set the clock port's active state
◆ mmal_port_clock_alloc()
Allocate a clock port.
- Parameters
-
component | The component requesting the alloc |
extra_size | Size of the port module |
event_cb | Clock event callback |
- Returns
- Pointer to new clock port or NULL on failure.
◆ mmal_port_clock_discont_threshold_get()
◆ mmal_port_clock_discont_threshold_set()
Get/set the clock port's discontinuity threshold
◆ mmal_port_clock_free()
Free a clock port.
- Parameters
-
port | The clock port to free |
◆ mmal_port_clock_input_buffer_info()
Provide information regarding a buffer received on the component's input/output port
◆ mmal_port_clock_media_time_get()
int64_t mmal_port_clock_media_time_get |
( |
MMAL_PORT_T * |
port | ) |
|
◆ mmal_port_clock_media_time_set()
Get/set the clock port's media-time
◆ mmal_port_clock_output_buffer_info()
◆ mmal_port_clock_reference_get()
◆ mmal_port_clock_reference_set()
Get/set the clock port's reference state
◆ mmal_port_clock_request_add()
Register a request with the clock port. When the specified media-time is reached, the clock port will invoke the supplied callback.
- Parameters
-
port | The clock port |
media_time | The media-time at which the callback should be invoked (microseconds) |
cb | Callback to invoke |
cb_data | Client-supplied callback data |
- Returns
- MMAL_SUCCESS on success
◆ mmal_port_clock_request_flush()
Remove all previously registered clock port requests.
- Parameters
-
- Returns
- MMAL_SUCCESS on success
◆ mmal_port_clock_request_threshold_get()
◆ mmal_port_clock_request_threshold_set()
Get/set the clock port's request threshold
◆ mmal_port_clock_scale_get()
◆ mmal_port_clock_scale_set()
Get/set the clock port's scale
◆ mmal_port_clock_update_threshold_get()
◆ mmal_port_clock_update_threshold_set()
Get/set the clock port's update threshold
◆ mmal_port_event_send()
Callback called by components when an event MMAL_BUFFER_HEADER_T needs to be sent to the user. Events differ from ordinary buffer headers because they originate from the component and do not return data from the client to the component.
◆ mmal_port_free()
◆ mmal_port_is_connected()
Returns whether a port is connected or not
◆ mmal_port_pause()
Pause processing on a port
◆ mmal_port_release()
Release a reference on a port
◆ mmal_ports_alloc()
Allocate an array of ports
◆ mmal_ports_clock_alloc()
Allocate an array of clock ports.
- Parameters
-
component | The component requesting the alloc |
ports_num | Number of ports to allocate |
extra_size | Size of the port module |
event_cb | Clock event callback |
- Returns
- Pointer to a new array of clock ports or NULL on failure.
◆ mmal_ports_clock_free()
void mmal_ports_clock_free |
( |
MMAL_PORT_T ** |
ports, |
|
|
unsigned int |
ports_num |
|
) |
| |
Free an array of clock ports.
- Parameters
-
ports | The clock ports to free |
ports_num | Number of ports to free |
◆ mmal_ports_free()
void mmal_ports_free |
( |
MMAL_PORT_T ** |
ports, |
|
|
unsigned int |
ports_num |
|
) |
| |