VLC 4.0.0-dev
Loading...
Searching...
No Matches
meta.c File Reference
Include dependency graph for meta.c:

Data Structures

struct  vlc_meta_value
 
struct  vlc_meta_t
 

Functions

const char * vlc_meta_TypeToString (vlc_meta_type_t meta_type)
 
const char * vlc_meta_TypeToLocalizedString (vlc_meta_type_t meta_type)
 Returns a localizes string describing the meta.
 
vlc_meta_tvlc_meta_New (void)
 vlc_meta constructor.
 
static void vlc_meta_InsertExtra (vlc_meta_t *m, const char *psz_name, const char *psz_value, vlc_meta_priority_t priority)
 
static void vlc_meta_FreeExtraKey (void *p_data, void *p_obj)
 
void vlc_meta_Delete (vlc_meta_t *m)
 
void vlc_meta_SetWithPriority (vlc_meta_t *p_meta, vlc_meta_type_t meta_type, const char *psz_val, vlc_meta_priority_t priority)
 vlc_meta has two kinds of meta, the one in a table, and the one in a dictionary.
 
const char * vlc_meta_Get (const vlc_meta_t *p_meta, vlc_meta_type_t meta_type)
 
void vlc_meta_SetExtraWithPriority (vlc_meta_t *m, const char *psz_name, const char *psz_value, vlc_meta_priority_t priority)
 set the meta extra
 
const char * vlc_meta_GetExtra (const vlc_meta_t *m, const char *psz_name)
 
unsigned vlc_meta_GetExtraCount (const vlc_meta_t *m)
 
char ** vlc_meta_CopyExtraNames (const vlc_meta_t *m)
 Allocate a copy of all extra meta names and a table with it.
 
int vlc_meta_GetStatus (vlc_meta_t *m)
 vlc_meta status (see vlc_meta_status_e)
 
void vlc_meta_SetStatus (vlc_meta_t *m, int status)
 
void vlc_meta_Merge (vlc_meta_t *dst, const vlc_meta_t *src)
 Merging meta.
 
void input_ExtractAttachmentAndCacheArt (input_thread_t *p_input, const char *name)
 
int input_item_WriteMeta (vlc_object_t *obj, input_item_t *p_item)
 
void vlc_audio_replay_gain_MergeFromMeta (audio_replay_gain_t *p_dst, const vlc_meta_t *p_meta)
 

Function Documentation

◆ input_ExtractAttachmentAndCacheArt()

◆ input_item_WriteMeta()

◆ vlc_audio_replay_gain_MergeFromMeta()

◆ vlc_meta_CopyExtraNames()

char ** vlc_meta_CopyExtraNames ( const vlc_meta_t m)

Allocate a copy of all extra meta names and a table with it.

Be sure to free both the returned pointers and its name.

References vlc_meta_t::extra_tags, and vlc_dictionary_all_keys().

Referenced by EsOutProgramMeta(), EsOutUpdateInfo(), and input_item_GetMetaExtraNames().

◆ vlc_meta_Delete()

◆ vlc_meta_FreeExtraKey()

static void vlc_meta_FreeExtraKey ( void *  p_data,
void *  p_obj 
)
static

◆ vlc_meta_Get()

◆ vlc_meta_GetExtra()

◆ vlc_meta_GetExtraCount()

unsigned vlc_meta_GetExtraCount ( const vlc_meta_t m)

◆ vlc_meta_GetStatus()

int vlc_meta_GetStatus ( vlc_meta_t m)

◆ vlc_meta_InsertExtra()

static void vlc_meta_InsertExtra ( vlc_meta_t m,
const char *  psz_name,
const char *  psz_value,
vlc_meta_priority_t  priority 
)
static

◆ vlc_meta_Merge()

◆ vlc_meta_New()

◆ vlc_meta_SetExtraWithPriority()

void vlc_meta_SetExtraWithPriority ( vlc_meta_t m,
const char *  psz_name,
const char *  psz_value,
vlc_meta_priority_t  priority 
)

set the meta extra

Parameters
mvlc_meta_t
psz_namemeta extra name (nonnullable)
psz_valuemeta extra value (nullable) Removed from meta extra if set to NULL
prioritymetadata priority (in terms of vlc_meta_priority_t)

References vlc_meta_t::extra_tags, kVLCDictionaryNotFound, vlc_meta_value::priority, psz_name, psz_value, vlc_dictionary_remove_value_for_key(), vlc_dictionary_value_for_key(), vlc_meta_FreeExtraKey(), and vlc_meta_InsertExtra().

◆ vlc_meta_SetStatus()

void vlc_meta_SetStatus ( vlc_meta_t m,
int  status 
)

◆ vlc_meta_SetWithPriority()

void vlc_meta_SetWithPriority ( vlc_meta_t p_meta,
vlc_meta_type_t  meta_type,
const char *  psz_val,
vlc_meta_priority_t  priority 
)

vlc_meta has two kinds of meta, the one in a table, and the one in a dictionary.

FIXME - Why don't we merge those two?

References IsUTF8(), vlc_meta_t::meta, vlc_meta_value::priority, strdup(), and vlc_meta_value::value.

◆ vlc_meta_TypeToLocalizedString()

const char * vlc_meta_TypeToLocalizedString ( vlc_meta_type_t  meta_type)

Returns a localizes string describing the meta.

References vlc_gettext(), and vlc_meta_TypeToString().

Referenced by EsOutProgramEpg(), and EsOutProgramMeta().

◆ vlc_meta_TypeToString()