mm_metadata_t

Media metadata

Synopsis:

#include <mm/types.h>

typedef struct mm_metadata {
    const char *strings[ MM_METADATA_NUM_STRINGS ];
    const char *reserved1[ MM_METADATA_TOTAL_STRINGS - MM_METADATA_NUM_STRINGS ];
    uint16_t   release_year;
    uint8_t    release_month;
    uint8_t    release_mday;
    uint16_t   track_num;
    uint16_t   disc_num;
    uint32_t   reserved2[ 4 ];
} mm_metadata_t;

Description:

The structure mm_metadata_t carries video metadata. Its members include at least those listed in the table below.

Member Type Description
*strings const char Array of pointers to video metadata; the number of pointers is set by the constant MM_METADATA_NUM_STRINGS. See mm_metadata_string_index_t below.
*reserved1 const char Reserved array size; the number of pointers is equal to MM_METADATA_TOTAL_STRINGS minus MM_METADATA_NUM_STRINGS. Reserved for future use.
release_year uint16_ The year the media content was released
release_month uint8_t The month the media content was released
release_mday uint8_t The day of the month the media content was released.
track_num uint16_t The track number on the mediastore.
disc_num uint16_t The disk number of the media store.
reserved2 uint32_t Reserved for future use.

mm_metadata_string_index_t

The enumerated type mm_metadata_string_index_t is used to index the strings inside the structure mm_metadata_t. Its values include:

The enumerated type mm_metadata_string_index_t is used when accessing the strings member of an mm_metadata_t type. For example:

mm_metadata_t metadata;
char *artist;
mme_version_of_get_metadata_function(&metadata);
// print out the artist...
printf ("Artist is %s\n", artist = metadata.strings[MM_METADATA_ARTIST]? artist, "Unknown");

Classification:

QNX Multimedia

See also:

mm_video_info_t, mm_video_audio_info_t