• Home
  • Raw
  • Download

Lines Matching refs:atts

164 MediaProfiles::createVideoCodec(const char **atts, MediaProfiles *profiles)  in createVideoCodec()  argument
166 CHECK(!strcmp("codec", atts[0]) && in createVideoCodec()
167 !strcmp("bitRate", atts[2]) && in createVideoCodec()
168 !strcmp("width", atts[4]) && in createVideoCodec()
169 !strcmp("height", atts[6]) && in createVideoCodec()
170 !strcmp("frameRate", atts[8])); in createVideoCodec()
173 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); in createVideoCodec()
178 atoi(atts[3]), atoi(atts[5]), atoi(atts[7]), atoi(atts[9])); in createVideoCodec()
188 MediaProfiles::createAudioCodec(const char **atts, MediaProfiles *profiles) in createAudioCodec() argument
190 CHECK(!strcmp("codec", atts[0]) && in createAudioCodec()
191 !strcmp("bitRate", atts[2]) && in createAudioCodec()
192 !strcmp("sampleRate", atts[4]) && in createAudioCodec()
193 !strcmp("channels", atts[6])); in createAudioCodec()
195 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); in createAudioCodec()
200 atoi(atts[3]), atoi(atts[5]), atoi(atts[7])); in createAudioCodec()
209 MediaProfiles::createAudioDecoderCap(const char **atts) in createAudioDecoderCap() argument
211 CHECK(!strcmp("name", atts[0]) && in createAudioDecoderCap()
212 !strcmp("enabled", atts[2])); in createAudioDecoderCap()
215 const int codec = findTagForName(sAudioDecoderNameMap, nMappings, atts[1]); in createAudioDecoderCap()
225 MediaProfiles::createVideoDecoderCap(const char **atts) in createVideoDecoderCap() argument
227 CHECK(!strcmp("name", atts[0]) && in createVideoDecoderCap()
228 !strcmp("enabled", atts[2])); in createVideoDecoderCap()
231 const int codec = findTagForName(sVideoDecoderNameMap, nMappings, atts[1]); in createVideoDecoderCap()
241 MediaProfiles::createVideoEncoderCap(const char **atts) in createVideoEncoderCap() argument
243 CHECK(!strcmp("name", atts[0]) && in createVideoEncoderCap()
244 !strcmp("enabled", atts[2]) && in createVideoEncoderCap()
245 !strcmp("minBitRate", atts[4]) && in createVideoEncoderCap()
246 !strcmp("maxBitRate", atts[6]) && in createVideoEncoderCap()
247 !strcmp("minFrameWidth", atts[8]) && in createVideoEncoderCap()
248 !strcmp("maxFrameWidth", atts[10]) && in createVideoEncoderCap()
249 !strcmp("minFrameHeight", atts[12]) && in createVideoEncoderCap()
250 !strcmp("maxFrameHeight", atts[14]) && in createVideoEncoderCap()
251 !strcmp("minFrameRate", atts[16]) && in createVideoEncoderCap()
252 !strcmp("maxFrameRate", atts[18])); in createVideoEncoderCap()
255 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); in createVideoEncoderCap()
260 atoi(atts[5]), atoi(atts[7]), atoi(atts[9]), atoi(atts[11]), atoi(atts[13]), in createVideoEncoderCap()
261 atoi(atts[15]), atoi(atts[17]), atoi(atts[19])); in createVideoEncoderCap()
267 MediaProfiles::createAudioEncoderCap(const char **atts) in createAudioEncoderCap() argument
269 CHECK(!strcmp("name", atts[0]) && in createAudioEncoderCap()
270 !strcmp("enabled", atts[2]) && in createAudioEncoderCap()
271 !strcmp("minBitRate", atts[4]) && in createAudioEncoderCap()
272 !strcmp("maxBitRate", atts[6]) && in createAudioEncoderCap()
273 !strcmp("minSampleRate", atts[8]) && in createAudioEncoderCap()
274 !strcmp("maxSampleRate", atts[10]) && in createAudioEncoderCap()
275 !strcmp("minChannels", atts[12]) && in createAudioEncoderCap()
276 !strcmp("maxChannels", atts[14])); in createAudioEncoderCap()
279 const int codec = findTagForName(sAudioEncoderNameMap, nMappings, atts[1]); in createAudioEncoderCap()
283 …new MediaProfiles::AudioEncoderCap(static_cast<audio_encoder>(codec), atoi(atts[5]), atoi(atts[7]), in createAudioEncoderCap()
284 atoi(atts[9]), atoi(atts[11]), atoi(atts[13]), in createAudioEncoderCap()
285 atoi(atts[15])); in createAudioEncoderCap()
291 MediaProfiles::createEncoderOutputFileFormat(const char **atts) in createEncoderOutputFileFormat() argument
293 CHECK(!strcmp("name", atts[0])); in createEncoderOutputFileFormat()
296 const int format = findTagForName(sFileFormatMap, nMappings, atts[1]); in createEncoderOutputFileFormat()
312 MediaProfiles::createCamcorderProfile(int cameraId, const char **atts, Vector<int>& cameraIds) in createCamcorderProfile() argument
314 CHECK(!strcmp("quality", atts[0]) && in createCamcorderProfile()
315 !strcmp("fileFormat", atts[2]) && in createCamcorderProfile()
316 !strcmp("duration", atts[4])); in createCamcorderProfile()
319 const int quality = findTagForName(sCamcorderQualityNameMap, nProfileMappings, atts[1]); in createCamcorderProfile()
323 const int fileFormat = findTagForName(sFileFormatMap, nFormatMappings, atts[3]); in createCamcorderProfile()
333 profile->mDuration = atoi(atts[5]); in createCamcorderProfile()
350 void MediaProfiles::addImageEncodingQualityLevel(int cameraId, const char** atts) in addImageEncodingQualityLevel() argument
352 CHECK(!strcmp("quality", atts[0])); in addImageEncodingQualityLevel()
353 int quality = atoi(atts[1]); in addImageEncodingQualityLevel()
367 MediaProfiles::getCameraId(const char** atts) in getCameraId() argument
369 if (!atts[0]) return 0; // default cameraId = 0 in getCameraId()
370 CHECK(!strcmp("cameraId", atts[0])); in getCameraId()
371 return atoi(atts[1]); in getCameraId()
374 void MediaProfiles::addStartTimeOffset(int cameraId, const char** atts) in addStartTimeOffset() argument
377 if (atts[2]) { in addStartTimeOffset()
378 CHECK(!strcmp("startOffsetMs", atts[2])); in addStartTimeOffset()
379 offsetTimeMs = atoi(atts[3]); in addStartTimeOffset()
386 MediaProfiles::createExportVideoProfile(const char **atts) in createExportVideoProfile() argument
388 CHECK(!strcmp("name", atts[0]) && in createExportVideoProfile()
389 !strcmp("profile", atts[2]) && in createExportVideoProfile()
390 !strcmp("level", atts[4])); in createExportVideoProfile()
394 const int codec = findTagForName(sVideoEncoderNameMap, nMappings, atts[1]); in createExportVideoProfile()
399 codec, atoi(atts[3]), atoi(atts[5])); in createExportVideoProfile()
404 MediaProfiles::createVideoEditorCap(const char **atts, MediaProfiles *profiles) in createVideoEditorCap() argument
406 CHECK(!strcmp("maxInputFrameWidth", atts[0]) && in createVideoEditorCap()
407 !strcmp("maxInputFrameHeight", atts[2]) && in createVideoEditorCap()
408 !strcmp("maxOutputFrameWidth", atts[4]) && in createVideoEditorCap()
409 !strcmp("maxOutputFrameHeight", atts[6]) && in createVideoEditorCap()
410 !strcmp("maxPrefetchYUVFrames", atts[8])); in createVideoEditorCap()
413 new MediaProfiles::VideoEditorCap(atoi(atts[1]), atoi(atts[3]), in createVideoEditorCap()
414 atoi(atts[5]), atoi(atts[7]), atoi(atts[9])); in createVideoEditorCap()
423 MediaProfiles::startElementHandler(void *userData, const char *name, const char **atts) in startElementHandler() argument
427 createVideoCodec(atts, profiles); in startElementHandler()
429 createAudioCodec(atts, profiles); in startElementHandler()
431 strcmp("true", atts[3]) == 0) { in startElementHandler()
432 profiles->mVideoEncoders.add(createVideoEncoderCap(atts)); in startElementHandler()
434 strcmp("true", atts[3]) == 0) { in startElementHandler()
435 profiles->mAudioEncoders.add(createAudioEncoderCap(atts)); in startElementHandler()
437 strcmp("true", atts[3]) == 0) { in startElementHandler()
438 profiles->mVideoDecoders.add(createVideoDecoderCap(atts)); in startElementHandler()
440 strcmp("true", atts[3]) == 0) { in startElementHandler()
441 profiles->mAudioDecoders.add(createAudioDecoderCap(atts)); in startElementHandler()
443 profiles->mEncoderOutputFileFormats.add(createEncoderOutputFileFormat(atts)); in startElementHandler()
445 profiles->mCurrentCameraId = getCameraId(atts); in startElementHandler()
446 profiles->addStartTimeOffset(profiles->mCurrentCameraId, atts); in startElementHandler()
449 createCamcorderProfile(profiles->mCurrentCameraId, atts, profiles->mCameraIds)); in startElementHandler()
451 profiles->addImageEncodingQualityLevel(profiles->mCurrentCameraId, atts); in startElementHandler()
453 createVideoEditorCap(atts, profiles); in startElementHandler()
455 profiles->mVideoEditorExportProfiles.add(createExportVideoProfile(atts)); in startElementHandler()