My Project
mmal_port.h File Reference
#include "mmal_types.h"
#include "mmal_format.h"
#include "mmal_buffer.h"
#include "mmal_parameters.h"

Go to the source code of this file.

Classes

struct  MMAL_PORT_T
 

Macros

Port capabilities

The following flags describe the capabilities advertised by a port

#define MMAL_PORT_CAPABILITY_PASSTHROUGH   0x01
 
#define MMAL_PORT_CAPABILITY_ALLOCATION   0x02
 
#define MMAL_PORT_CAPABILITY_SUPPORTS_EVENT_FORMAT_CHANGE   0x04
 

Typedefs

typedef struct MMAL_PORT_T MMAL_PORT_T
 
typedef void(* MMAL_PORT_BH_CB_T) (MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buffer)
 

Enumerations

enum  MMAL_PORT_TYPE_T {
  MMAL_PORT_TYPE_UNKNOWN = 0, MMAL_PORT_TYPE_CONTROL, MMAL_PORT_TYPE_INPUT, MMAL_PORT_TYPE_OUTPUT,
  MMAL_PORT_TYPE_CLOCK, MMAL_PORT_TYPE_INVALID = 0xffffffff
}
 

Functions

MMAL_STATUS_T mmal_port_format_commit (MMAL_PORT_T *port)
 
MMAL_STATUS_T mmal_port_enable (MMAL_PORT_T *port, MMAL_PORT_BH_CB_T cb)
 
MMAL_STATUS_T mmal_port_disable (MMAL_PORT_T *port)
 
MMAL_STATUS_T mmal_port_flush (MMAL_PORT_T *port)
 
MMAL_STATUS_T mmal_port_parameter_set (MMAL_PORT_T *port, const MMAL_PARAMETER_HEADER_T *param)
 
MMAL_STATUS_T mmal_port_parameter_get (MMAL_PORT_T *port, MMAL_PARAMETER_HEADER_T *param)
 
MMAL_STATUS_T mmal_port_send_buffer (MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T *buffer)
 
MMAL_STATUS_T mmal_port_connect (MMAL_PORT_T *port, MMAL_PORT_T *other_port)
 
MMAL_STATUS_T mmal_port_disconnect (MMAL_PORT_T *port)
 
uint8_t * mmal_port_payload_alloc (MMAL_PORT_T *port, uint32_t payload_size)
 
void mmal_port_payload_free (MMAL_PORT_T *port, uint8_t *payload)
 
MMAL_STATUS_T mmal_port_event_get (MMAL_PORT_T *port, MMAL_BUFFER_HEADER_T **buffer, uint32_t event)