Lines Matching defs:tag
57 static void microdvd_set_tag(struct microdvd_tag *tags, struct microdvd_tag tag)
59 int tag_index = indexof(MICRODVD_TAGS, tag.key);
63 memcpy(&tags[tag_index], &tag, sizeof(tag));
74 struct microdvd_tag tag = {0};
84 tag.persistent = MICRODVD_PERSISTENT_ON;
90 tag.data1 |= (1 << style_index);
97 tag.key = tag_char;
102 tag.persistent = MICRODVD_PERSISTENT_ON;
106 tag.data1 = strtol(s, &s, 16) & 0x00ffffff;
109 tag.key = 'c';
114 tag.persistent = MICRODVD_PERSISTENT_ON;
119 tag.data_string = s;
120 tag.data_string_len = len;
122 tag.key = 'f';
128 tag.persistent = MICRODVD_PERSISTENT_ON;
130 tag.data1 = strtol(s, &s, 10);
133 tag.key = 's';
142 tag.data_string = s;
143 tag.data_string_len = len;
145 tag.key = 'h';
151 tag.persistent = MICRODVD_PERSISTENT_ON;
152 tag.data1 = (*s++ == '1');
155 tag.key = 'p';
160 tag.persistent = MICRODVD_PERSISTENT_ON;
161 tag.data1 = strtol(s, &s, 10);
165 tag.data2 = strtol(s, &s, 10);
168 tag.key = 'o';
171 default: /* Unknown tag, we consider it's text */
175 if (tag.key == 0)
178 microdvd_set_tag(tags, tag);