My Project
mmal_buffer_private.h File Reference

Go to the source code of this file.

Classes

struct  MMAL_BUFFER_HEADER_PRIVATE_T
 

Macros

#define MMAL_DRIVER_BUFFER_SIZE   32
 

Typedefs

typedef struct MMAL_DRIVER_BUFFER_T MMAL_DRIVER_BUFFER_T
 
typedef struct MMAL_BUFFER_HEADER_PRIVATE_T MMAL_BUFFER_HEADER_PRIVATE_T
 

Functions

unsigned int mmal_buffer_header_size (MMAL_BUFFER_HEADER_T *header)
 
MMAL_BUFFER_HEADER_Tmmal_buffer_header_initialise (void *mem, unsigned int length)
 
MMAL_DRIVER_BUFFER_Tmmal_buffer_header_driver_data (MMAL_BUFFER_HEADER_T *)
 
MMAL_BUFFER_HEADER_Tmmal_buffer_header_reference (MMAL_BUFFER_HEADER_T *header)
 

Macro Definition Documentation

◆ MMAL_DRIVER_BUFFER_SIZE

#define MMAL_DRIVER_BUFFER_SIZE   32

Size of the private area the framework reserves for the driver / communication layer

Definition at line 35 of file mmal_buffer_private.h.

Typedef Documentation

◆ MMAL_BUFFER_HEADER_PRIVATE_T

Typedef for the framework's private area in the buffer header

◆ MMAL_DRIVER_BUFFER_T

Typedef for the private area the framework reserves for the driver / communication layer

Definition at line 32 of file mmal_buffer_private.h.

Function Documentation

◆ mmal_buffer_header_driver_data()

MMAL_DRIVER_BUFFER_T* mmal_buffer_header_driver_data ( MMAL_BUFFER_HEADER_T )

Return a pointer to the area reserved for the driver.

◆ mmal_buffer_header_initialise()

MMAL_BUFFER_HEADER_T* mmal_buffer_header_initialise ( void *  mem,
unsigned int  length 
)

Initialise a MMAL_BUFFER_HEADER_T

◆ mmal_buffer_header_reference()

MMAL_BUFFER_HEADER_T* mmal_buffer_header_reference ( MMAL_BUFFER_HEADER_T header)

Return a pointer to a referenced buffer header. It is the caller's responsibility to ensure that the reference is still valid when using it.

◆ mmal_buffer_header_size()

unsigned int mmal_buffer_header_size ( MMAL_BUFFER_HEADER_T header)

Get the size in bytes of a fully initialised MMAL_BUFFER_HEADER_T