Lines Matching refs:atts
233 MediaProfiles::createVideoCodec(const char **atts, MediaProfiles *profiles) in createVideoCodec() argument
235 CHECK(!strcmp("codec", atts[0]) && in createVideoCodec()
236 !strcmp("bitRate", atts[2]) && in createVideoCodec()
237 !strcmp("width", atts[4]) && in createVideoCodec()
238 !strcmp("height", atts[6]) && in createVideoCodec()
239 !strcmp("frameRate", atts[8])); in createVideoCodec()
242 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); in createVideoCodec()
247 atoi(atts[3]), atoi(atts[5]), atoi(atts[7]), atoi(atts[9])); in createVideoCodec()
257 MediaProfiles::createAudioCodec(const char **atts, MediaProfiles *profiles) in createAudioCodec() argument
259 CHECK(!strcmp("codec", atts[0]) && in createAudioCodec()
260 !strcmp("bitRate", atts[2]) && in createAudioCodec()
261 !strcmp("sampleRate", atts[4]) && in createAudioCodec()
262 !strcmp("channels", atts[6])); in createAudioCodec()
264 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); in createAudioCodec()
269 atoi(atts[3]), atoi(atts[5]), atoi(atts[7])); in createAudioCodec()
278 MediaProfiles::createAudioDecoderCap(const char **atts) in createAudioDecoderCap() argument
280 CHECK(!strcmp("name", atts[0]) && in createAudioDecoderCap()
281 !strcmp("enabled", atts[2])); in createAudioDecoderCap()
284 const int codec = findTagForName(sAudioDecoderNameMap, nMappings, atts[1]); in createAudioDecoderCap()
294 MediaProfiles::createVideoDecoderCap(const char **atts) in createVideoDecoderCap() argument
296 CHECK(!strcmp("name", atts[0]) && in createVideoDecoderCap()
297 !strcmp("enabled", atts[2])); in createVideoDecoderCap()
300 const int codec = findTagForName(sVideoDecoderNameMap, nMappings, atts[1]); in createVideoDecoderCap()
310 MediaProfiles::createVideoEncoderCap(const char **atts) in createVideoEncoderCap() argument
312 CHECK(!strcmp("name", atts[0]) && in createVideoEncoderCap()
313 !strcmp("enabled", atts[2]) && in createVideoEncoderCap()
314 !strcmp("minBitRate", atts[4]) && in createVideoEncoderCap()
315 !strcmp("maxBitRate", atts[6]) && in createVideoEncoderCap()
316 !strcmp("minFrameWidth", atts[8]) && in createVideoEncoderCap()
317 !strcmp("maxFrameWidth", atts[10]) && in createVideoEncoderCap()
318 !strcmp("minFrameHeight", atts[12]) && in createVideoEncoderCap()
319 !strcmp("maxFrameHeight", atts[14]) && in createVideoEncoderCap()
320 !strcmp("minFrameRate", atts[16]) && in createVideoEncoderCap()
321 !strcmp("maxFrameRate", atts[18])); in createVideoEncoderCap()
324 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); in createVideoEncoderCap()
329 atoi(atts[5]), atoi(atts[7]), atoi(atts[9]), atoi(atts[11]), atoi(atts[13]), in createVideoEncoderCap()
330 atoi(atts[15]), atoi(atts[17]), atoi(atts[19])); in createVideoEncoderCap()
336 MediaProfiles::createAudioEncoderCap(const char **atts) in createAudioEncoderCap() argument
338 CHECK(!strcmp("name", atts[0]) && in createAudioEncoderCap()
339 !strcmp("enabled", atts[2]) && in createAudioEncoderCap()
340 !strcmp("minBitRate", atts[4]) && in createAudioEncoderCap()
341 !strcmp("maxBitRate", atts[6]) && in createAudioEncoderCap()
342 !strcmp("minSampleRate", atts[8]) && in createAudioEncoderCap()
343 !strcmp("maxSampleRate", atts[10]) && in createAudioEncoderCap()
344 !strcmp("minChannels", atts[12]) && in createAudioEncoderCap()
345 !strcmp("maxChannels", atts[14])); in createAudioEncoderCap()
348 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); in createAudioEncoderCap()
352 new MediaProfiles::AudioEncoderCap(static_cast<audio_encoder>(codec), atoi(atts[5]), in createAudioEncoderCap()
353 atoi(atts[7]), atoi(atts[9]), atoi(atts[11]), atoi(atts[13]), atoi(atts[15])); in createAudioEncoderCap()
359 MediaProfiles::createEncoderOutputFileFormat(const char **atts) in createEncoderOutputFileFormat() argument
361 CHECK(!strcmp("name", atts[0])); in createEncoderOutputFileFormat()
364 const int format = findTagForName(sFileFormatMap, nMappings, atts[1]); in createEncoderOutputFileFormat()
380 MediaProfiles::createCamcorderProfile(int cameraId, const char **atts, Vector<int>& cameraIds) in createCamcorderProfile() argument
382 CHECK(!strcmp("quality", atts[0]) && in createCamcorderProfile()
383 !strcmp("fileFormat", atts[2]) && in createCamcorderProfile()
384 !strcmp("duration", atts[4])); in createCamcorderProfile()
388 const int quality = findTagForName(sCamcorderQualityNameMap, nProfileMappings, atts[1]); in createCamcorderProfile()
392 const int fileFormat = findTagForName(sFileFormatMap, nFormatMappings, atts[3]); in createCamcorderProfile()
402 profile->mDuration = atoi(atts[5]); in createCamcorderProfile()
419 void MediaProfiles::addImageEncodingQualityLevel(int cameraId, const char** atts) in addImageEncodingQualityLevel() argument
421 CHECK(!strcmp("quality", atts[0])); in addImageEncodingQualityLevel()
422 int quality = atoi(atts[1]); in addImageEncodingQualityLevel()
436 MediaProfiles::getCameraId(const char** atts) in getCameraId() argument
438 if (!atts[0]) return 0; // default cameraId = 0 in getCameraId()
439 CHECK(!strcmp("cameraId", atts[0])); in getCameraId()
440 return atoi(atts[1]); in getCameraId()
443 void MediaProfiles::addStartTimeOffset(int cameraId, const char** atts) in addStartTimeOffset() argument
446 if (atts[2]) { in addStartTimeOffset()
447 CHECK(!strcmp("startOffsetMs", atts[2])); in addStartTimeOffset()
448 offsetTimeMs = atoi(atts[3]); in addStartTimeOffset()
456 MediaProfiles::startElementHandler(void *userData, const char *name, const char **atts) in startElementHandler() argument
460 createVideoCodec(atts, profiles); in startElementHandler()
462 createAudioCodec(atts, profiles); in startElementHandler()
464 strcmp("true", atts[3]) == 0) { in startElementHandler()
465 profiles->mVideoEncoders.add(createVideoEncoderCap(atts)); in startElementHandler()
467 strcmp("true", atts[3]) == 0) { in startElementHandler()
468 profiles->mAudioEncoders.add(createAudioEncoderCap(atts)); in startElementHandler()
470 strcmp("true", atts[3]) == 0) { in startElementHandler()
471 profiles->mVideoDecoders.add(createVideoDecoderCap(atts)); in startElementHandler()
473 strcmp("true", atts[3]) == 0) { in startElementHandler()
474 profiles->mAudioDecoders.add(createAudioDecoderCap(atts)); in startElementHandler()
476 profiles->mEncoderOutputFileFormats.add(createEncoderOutputFileFormat(atts)); in startElementHandler()
478 profiles->mCurrentCameraId = getCameraId(atts); in startElementHandler()
479 profiles->addStartTimeOffset(profiles->mCurrentCameraId, atts); in startElementHandler()
482 createCamcorderProfile(profiles->mCurrentCameraId, atts, profiles->mCameraIds)); in startElementHandler()
484 profiles->addImageEncodingQualityLevel(profiles->mCurrentCameraId, atts); in startElementHandler()