Home | History | Annotate | Download | only in examples

Lines Matching refs:table

57 // Use a table of [integer, string] entries to map an integer to a string
64 const char *id_to_string(XAuint32 id, const id_to_string_t *table, size_t numEntries)
68 if (id == table[i].id) {
69 return table[i].string;
75 // Use a table of [integer, table] entries to map a pair of integers to a string
83 const char *id_pair_to_string(XAuint32 id1, XAuint32 id2, const id_pair_to_string_t *table,
88 if (id1 == table[i].id1) {
89 return id_to_string(id2, table[i].id2_table, table[i].id2_numEntries);
148 static const id_pair_to_string_t table[] = {
155 return id_pair_to_string(codec, profile, table, sizeof(table) / sizeof(table[0]));
212 static const id_pair_to_string_t table[] = {
219 return id_pair_to_string(codec, level, table, sizeof(table) / sizeof(table[0]));