My Project
mmal_common.h File Reference
#include <stdlib.h>
#include <string.h>
#include <stddef.h>
#include <assert.h>
#include <interface/vcos/vcos.h>

Go to the source code of this file.

Classes

struct  MMAL_CORE_STATISTICS_T
 
struct  MMAL_CORE_PORT_STATISTICS_T
 

Macros

#define INT64_C(value)   value##LL
 
#define UINT64_C(value)   value##ULL
 
#define MMAL_TSRING(s)   #s
 
#define MMAL_TO_STRING(s)   MMAL_TSRING(s)
 
#define MMAL_COUNTOF(x)   (sizeof((x))/sizeof((x)[0]))
 
#define MMAL_MIN(a, b)   ((a)<(b)?(a):(b))
 
#define MMAL_MAX(a, b)   ((a)<(b)?(b):(a))
 
#define MMAL_FOURCC(a, b, c, d)   ((a) | (b << 8) | (c << 16) | (d << 24))
 
#define MMAL_PARAM_UNUSED(a)   (void)(a)
 
#define MMAL_MAGIC   MMAL_FOURCC('m','m','a','l')
 
#define MMAL_FALSE   0
 
#define MMAL_TRUE   1
 

Typedefs

typedef int32_t MMAL_BOOL_T
 
typedef struct MMAL_CORE_STATISTICS_T MMAL_CORE_STATISTICS_T
 
typedef struct MMAL_CORE_PORT_STATISTICS_T MMAL_CORE_PORT_STATISTICS_T
 
typedef uint32_t MMAL_FIXED_16_16_T
 

Detailed Description

Multi-Media Abstraction Layer - Common definitions

Definition in file mmal_common.h.

Macro Definition Documentation

◆ INT64_C

#define INT64_C (   value)    value##LL

Definition at line 44 of file mmal_common.h.

◆ MMAL_COUNTOF

#define MMAL_COUNTOF (   x)    (sizeof((x))/sizeof((x)[0]))

Definition at line 51 of file mmal_common.h.

◆ MMAL_FALSE

#define MMAL_FALSE   0

Definition at line 61 of file mmal_common.h.

◆ MMAL_FOURCC

#define MMAL_FOURCC (   a,
  b,
  c,
 
)    ((a) | (b << 8) | (c << 16) | (d << 24))

Definition at line 56 of file mmal_common.h.

◆ MMAL_MAGIC

#define MMAL_MAGIC   MMAL_FOURCC('m','m','a','l')

Definition at line 58 of file mmal_common.h.

◆ MMAL_MAX

#define MMAL_MAX (   a,
 
)    ((a)<(b)?(b):(a))

Definition at line 53 of file mmal_common.h.

◆ MMAL_MIN

#define MMAL_MIN (   a,
 
)    ((a)<(b)?(a):(b))

Definition at line 52 of file mmal_common.h.

◆ MMAL_PARAM_UNUSED

#define MMAL_PARAM_UNUSED (   a)    (void)(a)

Definition at line 57 of file mmal_common.h.

◆ MMAL_TO_STRING

#define MMAL_TO_STRING (   s)    MMAL_TSRING(s)

Definition at line 49 of file mmal_common.h.

◆ MMAL_TRUE

#define MMAL_TRUE   1

Definition at line 62 of file mmal_common.h.

◆ MMAL_TSRING

#define MMAL_TSRING (   s)    #s

Definition at line 48 of file mmal_common.h.

◆ UINT64_C

#define UINT64_C (   value)    value##ULL

Definition at line 45 of file mmal_common.h.

Typedef Documentation

◆ MMAL_BOOL_T

typedef int32_t MMAL_BOOL_T

Definition at line 60 of file mmal_common.h.

◆ MMAL_CORE_PORT_STATISTICS_T

Statistics collected by the core on all ports, if enabled in the build.

◆ MMAL_CORE_STATISTICS_T

◆ MMAL_FIXED_16_16_T

typedef uint32_t MMAL_FIXED_16_16_T

Unsigned 16.16 fixed point value, also known as Q16.16

Definition at line 81 of file mmal_common.h.