MMALIB User Guide
MMALIB_bufParams.h File Reference

Introduction

File to hold buffer parameter related info for MMALIB.

Version
0.1 - Jan 2018 : Initial Version with as a template [PKS]

Definition in file MMALIB_bufParams.h.

Go to the source code of this file.

Data Structures

struct  MMALIB_bufParams1D_t
 A structure for a 1 dimensional buffer descriptor. More...
 
struct  MMALIB_bufParams2D_t
 A structure for a 2 dimensional buffer descriptor. More...
 
struct  MMALIB_bufParams3D_t
 A structure for a 3 dimensional buffer descriptor. More...
 
struct  MMALIB_bufParamsND_t
 A structure for a N dimensional buffer descriptor. More...
 

Macros

#define MMALIB_ISSIGNED(type)   ((type) < MMALIB_UINT8 || (type) > MMALIB_UINT128)
 
#define MMALIB_SIGNEDNESS(type)   (MMALIB_ISSIGNED((type)) ? "signed" : "unsigned")
 

Enumerations

enum  MMALIB_data_type_e {
  MMALIB_INT8 = 0 , MMALIB_INT16 = 1 , MMALIB_INT32 = 2 , MMALIB_INT64 = 3 ,
  MMALIB_INT128 = 4 , MMALIB_UINT8 = 5 , MMALIB_UINT16 = 6 , MMALIB_UINT24 = 7 ,
  MMALIB_UINT32 = 8 , MMALIB_UINT64 = 9 , MMALIB_UINT128 = 10 , MMALIB_FLOAT16 = 11 ,
  MMALIB_FLOAT32 = 12 , MMALIB_FLOAT64 = 13
}
 The enumeration of all data types. More...
 
enum  MMALIB_dimension_e {
  MMALIB_2D = 0 , MMALIB_3D = 1 , MMALIB_4D = 2 , MMALIB_5D = 3 ,
  MMALIB_6D = 4
}
 The enumeration of multidimensional buffer types. More...
 

Functions

static int32_t MMALIB_sizeof (uint32_t type)
 Inline function returns number of bytes per element given a type of MMALIB_data_type_e. More...
 

Macro Definition Documentation

◆ MMALIB_ISSIGNED

#define MMALIB_ISSIGNED (   type)    ((type) < MMALIB_UINT8 || (type) > MMALIB_UINT128)

Definition at line 69 of file MMALIB_bufParams.h.

◆ MMALIB_SIGNEDNESS

#define MMALIB_SIGNEDNESS (   type)    (MMALIB_ISSIGNED((type)) ? "signed" : "unsigned")

Definition at line 70 of file MMALIB_bufParams.h.

Enumeration Type Documentation

◆ MMALIB_data_type_e

The enumeration of all data types.

Enumerator
MMALIB_INT8 

Signed 8-bit integer

MMALIB_INT16 

Signed 16-bit integer

MMALIB_INT32 

Signed 32-bit integer

MMALIB_INT64 

Signed 64-bit integer

MMALIB_INT128 

Signed 128-bit integer

MMALIB_UINT8 

Unsigned 8-bit integer

MMALIB_UINT16 

Unsigned 16-bit integer

MMALIB_UINT24 

Unsigned 24-bit integer

MMALIB_UINT32 

Unsigned 32-bit integer

MMALIB_UINT64 

Unsigned 64-bit integer

MMALIB_UINT128 

Unsigned 128-bit integer

MMALIB_FLOAT16 

16-bit floating point number

MMALIB_FLOAT32 

32-bit floating point number

MMALIB_FLOAT64 

32-bit floating point number

Definition at line 40 of file MMALIB_bufParams.h.

◆ MMALIB_dimension_e

The enumeration of multidimensional buffer types.

Enumerator
MMALIB_2D 

Two dimensional buffer

MMALIB_3D 

Three dimensional buffer

MMALIB_4D 

Four dimensional buffer

MMALIB_5D 

Five dimensional buffer

MMALIB_6D 

Six dimensional buffer

Definition at line 73 of file MMALIB_bufParams.h.

Function Documentation

◆ MMALIB_sizeof()

static int32_t MMALIB_sizeof ( uint32_t  type)
inlinestatic

Inline function returns number of bytes per element given a type of MMALIB_data_type_e.

Definition at line 145 of file MMALIB_bufParams.h.