Home | History | Annotate | Download | only in profile

Lines Matching full:atts

179 void ISVProfile::getConfigData(const char *name, const char **atts)
186 if (strcmp(atts[attIndex], "name") == 0) {
187 if (getFilterID(atts[attIndex + 1]) == 0) {
188 ALOGE("Couldn't parase the filter %s\n", atts[attIndex+1]);
195 if (!strcmp(atts[attIndex], "value") && !strcmp(atts[attIndex + 1], "true"))
201 if (mCurrentFilter && !strcmp(atts[attIndex], "value")) {
202 if (!strcmp(atts[attIndex + 1], "0"))
204 else if (!strcmp(atts[attIndex + 1], "FFFFFFFF"))
207 mConfigs[mCurrentFilter].minResolution = getResolution(atts[attIndex + 1]);
212 if (mCurrentFilter && !strcmp(atts[attIndex], "value")) {
213 if (!strcmp(atts[attIndex + 1], "0"))
215 else if (!strcmp(atts[attIndex + 1], "FFFFFFFF"))
218 mConfigs[mCurrentFilter].maxResolution = getResolution(atts[attIndex + 1]);
224 if (!strcmp(atts[attIndex], "input") && !strcmp(atts[attIndex + 2], "rate")) {
225 mFrcRates[mCurrentFrcTab].input_fps = atoi(atts[attIndex + 1]);
226 if (!strcmp(atts[attIndex + 3], "2"))
228 else if (!strcmp(atts[attIndex + 3], "2.5"))
230 else if (!strcmp(atts[attIndex + 3], "4"))
244 handleFilterParameter(name, atts);
247 handleCommonParameter(name, atts);
252 void ISVProfile::handleFilterParameter(const char *name, const char **atts)
261 if (strcmp(atts[attIndex], "name") || strcmp(atts[attIndex + 2], "value")) {
262 ALOGE("\"%s\" or \"%s\" couldn't match the %s format\n", atts[attIndex], atts[attIndex + 2], name);
268 void ISVProfile::handleCommonParameter(const char *name, const char **atts)
272 if (strcmp(atts[attIndex], "name") || strcmp(atts[attIndex + 2], "value")) {
273 ALOGE("\"%s\" or \"%s\" couldn't match the %s format\n", atts[attIndex], atts[attIndex + 2], name);
278 if (strcmp(atts[attIndex + 1], "DefaultVPPStatus") == 0)
279 mDefaultVPPStatus = atoi(atts[attIndex + 3]);
281 else if (strcmp(atts[attIndex + 1], "DefaultFRCStatus") == 0)
282 mDefaultFRCStatus = atoi(atts[attIndex + 3]);
285 void ISVProfile::startElement(void *userData, const char *name, const char **atts)
289 profile->getConfigData(name, atts);