|
This value indicates an unknown encoding
|
#define | MMAL_ENCODING_UNKNOWN 0 |
|
|
This value indicates the default encoding variant is used
|
#define | MMAL_ENCODING_VARIANT_DEFAULT 0 |
|
Definition of an elementary stream format and its associated API
#define MMAL_ES_FORMAT_COMPARE_FLAG_BITRATE 0x04 |
#define MMAL_ES_FORMAT_COMPARE_FLAG_ENCODING 0x02 |
The encoding is different
#define MMAL_ES_FORMAT_COMPARE_FLAG_ES_OTHER 0x10000000 |
Other ES specific parameters are different
#define MMAL_ES_FORMAT_COMPARE_FLAG_EXTRADATA 0x10 |
The extradata is different
#define MMAL_ES_FORMAT_COMPARE_FLAG_FLAGS 0x08 |
#define MMAL_ES_FORMAT_COMPARE_FLAG_TYPE 0x01 |
#define MMAL_ES_FORMAT_COMPARE_FLAG_VIDEO_ASPECT_RATIO 0x0800 |
The video aspect ratio is different
#define MMAL_ES_FORMAT_COMPARE_FLAG_VIDEO_COLOR_SPACE 0x1000 |
The video color space is different
#define MMAL_ES_FORMAT_COMPARE_FLAG_VIDEO_CROPPING 0x0200 |
The video cropping is different
#define MMAL_ES_FORMAT_COMPARE_FLAG_VIDEO_FRAME_RATE 0x0400 |
The video frame rate is different
#define MMAL_ES_FORMAT_COMPARE_FLAG_VIDEO_RESOLUTION 0x0100 |
The video resolution is different
#define MMAL_ES_FORMAT_FLAG_FRAMED 0x1 |
The elementary stream will already be framed
Definition of an audio format. This describes the properties specific to an audio stream
Definition of an elementary stream format
Enumeration of the different types of elementary streams. This divides elementary streams into 4 big categories, plus an invalid type.
Enumerator |
---|
MMAL_ES_TYPE_UNKNOWN |
Unknown elementary stream type
|
MMAL_ES_TYPE_CONTROL |
Elementary stream of control commands
|
MMAL_ES_TYPE_AUDIO |
Audio elementary stream
|
MMAL_ES_TYPE_VIDEO |
Video elementary stream
|
MMAL_ES_TYPE_SUBPICTURE |
Sub-picture elementary stream (e.g. subtitles, overlays)
|
Compare 2 format structures and returns a set of flags describing the differences. The result will be zero if the structures are the same, or a combination of one or more of the Comparison flags if different.
- Parameters
-
- Returns
- set of flags describing the differences
Shallow copy a format structure. It is worth noting that the extradata buffer will not be copied in the new format.
- Parameters
-
Allocate the extradata buffer in MMAL_ES_FORMAT_T. This buffer will be freed automatically when the format is destroyed or another allocation is done.
- Parameters
-
format | format structure for which the extradata buffer will be allocated |
size | size of the extradata buffer to allocate |
- Returns
- MMAL_SUCCESS on success
Fully copy a format structure, including the extradata buffer.
- Parameters
-
- Returns
- MMAL_SUCCESS on success