My Project
mmal_format.h File Reference
#include "mmal_types.h"
#include "mmal_encodings.h"

Go to the source code of this file.

Classes

struct  MMAL_VIDEO_FORMAT_T
 
struct  MMAL_AUDIO_FORMAT_T
 
struct  MMAL_SUBPICTURE_FORMAT_T
 
union  MMAL_ES_SPECIFIC_FORMAT_T
 
struct  MMAL_ES_FORMAT_T
 

Macros

Elementary stream flags

The following flags describe properties of an elementary stream

#define MMAL_ES_FORMAT_FLAG_FRAMED   0x1
 
Undefined encoding value.

This value indicates an unknown encoding

#define MMAL_ENCODING_UNKNOWN   0
 
Default encoding variant value.

This value indicates the default encoding variant is used

#define MMAL_ENCODING_VARIANT_DEFAULT   0
 
Comparison flags

The following flags describe the differences between 2 format structures

#define MMAL_ES_FORMAT_COMPARE_FLAG_TYPE   0x01
 
#define MMAL_ES_FORMAT_COMPARE_FLAG_ENCODING   0x02
 
#define MMAL_ES_FORMAT_COMPARE_FLAG_BITRATE   0x04
 
#define MMAL_ES_FORMAT_COMPARE_FLAG_FLAGS   0x08
 
#define MMAL_ES_FORMAT_COMPARE_FLAG_EXTRADATA   0x10
 
#define MMAL_ES_FORMAT_COMPARE_FLAG_VIDEO_RESOLUTION   0x0100
 
#define MMAL_ES_FORMAT_COMPARE_FLAG_VIDEO_CROPPING   0x0200
 
#define MMAL_ES_FORMAT_COMPARE_FLAG_VIDEO_FRAME_RATE   0x0400
 
#define MMAL_ES_FORMAT_COMPARE_FLAG_VIDEO_ASPECT_RATIO   0x0800
 
#define MMAL_ES_FORMAT_COMPARE_FLAG_VIDEO_COLOR_SPACE   0x1000
 
#define MMAL_ES_FORMAT_COMPARE_FLAG_ES_OTHER   0x10000000
 

Typedefs

typedef struct MMAL_AUDIO_FORMAT_T MMAL_AUDIO_FORMAT_T
 
typedef struct MMAL_ES_FORMAT_T MMAL_ES_FORMAT_T
 

Enumerations

enum  MMAL_ES_TYPE_T {
  MMAL_ES_TYPE_UNKNOWN, MMAL_ES_TYPE_CONTROL, MMAL_ES_TYPE_AUDIO, MMAL_ES_TYPE_VIDEO,
  MMAL_ES_TYPE_SUBPICTURE
}
 

Functions

MMAL_ES_FORMAT_Tmmal_format_alloc (void)
 
void mmal_format_free (MMAL_ES_FORMAT_T *format)
 
MMAL_STATUS_T mmal_format_extradata_alloc (MMAL_ES_FORMAT_T *format, unsigned int size)
 
void mmal_format_copy (MMAL_ES_FORMAT_T *format_dest, MMAL_ES_FORMAT_T *format_src)
 
MMAL_STATUS_T mmal_format_full_copy (MMAL_ES_FORMAT_T *format_dest, MMAL_ES_FORMAT_T *format_src)
 
uint32_t mmal_format_compare (MMAL_ES_FORMAT_T *format_1, MMAL_ES_FORMAT_T *format_2)