/*static*/ void MediaProfiles::startElementHandler(void *userData, const char *name, const char **atts) { MediaProfiles *profiles = (MediaProfiles *) userData; if (strcmp("Video", name) == 0) { createVideoCodec(atts, profiles); } else if (strcmp("Audio", name) == 0) { createAudioCodec(atts, profiles); } else if (strcmp("VideoEncoderCap", name) == 0 && strcmp("true", atts[3]) == 0) { profiles->mVideoEncoders.add(createVideoEncoderCap(atts)); } else if (strcmp("AudioEncoderCap", name) == 0 && strcmp("true", atts[3]) == 0) { profiles->mAudioEncoders.add(createAudioEncoderCap(atts)); } else if (strcmp("VideoDecoderCap", name) == 0 && strcmp("true", atts[3]) == 0) { profiles->mVideoDecoders.add(createVideoDecoderCap(atts)); } else if (strcmp("AudioDecoderCap", name) == 0 && strcmp("true", atts[3]) == 0) { profiles->mAudioDecoders.add(createAudioDecoderCap(atts)); } else if (strcmp("EncoderOutputFileFormat", name) == 0) { profiles->mEncoderOutputFileFormats.add(createEncoderOutputFileFormat(atts)); } else if (strcmp("CamcorderProfiles", name) == 0) { profiles->mCurrentCameraId = getCameraId(atts); profiles->addStartTimeOffset(profiles->mCurrentCameraId, atts); } else if (strcmp("EncoderProfile", name) == 0) { profiles->mCamcorderProfiles.add( createCamcorderProfile(profiles->mCurrentCameraId, atts, profiles->mCameraIds)); } else if (strcmp("ImageEncoding", name) == 0) { profiles->addImageEncodingQualityLevel(profiles->mCurrentCameraId, atts); } }