Lines Matching refs:cameraId
324 static bool isCameraIdFound(int cameraId, const Vector<int>& cameraIds) { in isCameraIdFound() argument
326 if (cameraId == cameraIds[i]) { in isCameraIdFound()
334 MediaProfiles::createCamcorderProfile(int cameraId, const char **atts, Vector<int>& cameraIds) in createCamcorderProfile() argument
350 profile->mCameraId = cameraId; in createCamcorderProfile()
351 if (!isCameraIdFound(cameraId, cameraIds)) { in createCamcorderProfile()
352 cameraIds.add(cameraId); in createCamcorderProfile()
361 MediaProfiles::findImageEncodingQualityLevels(int cameraId) const in findImageEncodingQualityLevels()
366 if (levels->mCameraId == cameraId) { in findImageEncodingQualityLevels()
373 void MediaProfiles::addImageEncodingQualityLevel(int cameraId, const char** atts) in addImageEncodingQualityLevel() argument
377 ALOGV("%s: cameraId=%d, quality=%d", __func__, cameraId, quality); in addImageEncodingQualityLevel()
378 ImageEncodingQualityLevels *levels = findImageEncodingQualityLevels(cameraId); in addImageEncodingQualityLevel()
382 levels->mCameraId = cameraId; in addImageEncodingQualityLevel()
397 void MediaProfiles::addStartTimeOffset(int cameraId, const char** atts) in addStartTimeOffset() argument
405 ALOGV("%s: cameraId=%d, offset=%d ms", __func__, cameraId, offsetTimeMs); in addStartTimeOffset()
406 mStartTimeOffsets.replaceValueFor(cameraId, offsetTimeMs); in addStartTimeOffset()
475 int MediaProfiles::getRequiredProfileRefIndex(int cameraId) { in getRequiredProfileRefIndex() argument
477 if (mCameraIds[i] == cameraId) { in getRequiredProfileRefIndex()
496 int cameraId = mCamcorderProfiles[i]->mCameraId; in checkAndAddRequiredProfilesIfNecessary() local
498 int refIndex = getRequiredProfileRefIndex(cameraId); in checkAndAddRequiredProfilesIfNecessary()
542 index = getCamcorderProfileIndex(cameraId, refQuality); in checkAndAddRequiredProfilesIfNecessary()
554 for (size_t cameraId = 0; cameraId < mCameraIds.size(); ++cameraId) { in checkAndAddRequiredProfilesIfNecessary() local
556 int refIndex = getRequiredProfileRefIndex(cameraId); in checkAndAddRequiredProfilesIfNecessary()
585 int index = getCamcorderProfileIndex(cameraId, profile->mQuality); in checkAndAddRequiredProfilesIfNecessary()
588 profile->mQuality, cameraId); in checkAndAddRequiredProfilesIfNecessary()
596 profile->mQuality, cameraId); in checkAndAddRequiredProfilesIfNecessary()
1016 int MediaProfiles::getCamcorderProfileIndex(int cameraId, camcorder_quality quality) const in getCamcorderProfileIndex() argument
1020 if (mCamcorderProfiles[i]->mCameraId == cameraId && in getCamcorderProfileIndex()
1030 int cameraId, in getCamcorderProfileParamByName() argument
1034 name, cameraId, quality); in getCamcorderProfileParamByName()
1036 int index = getCamcorderProfileIndex(cameraId, quality); in getCamcorderProfileParamByName()
1039 cameraId, quality); in getCamcorderProfileParamByName()
1055 ALOGE("The given camcorder profile param id %d name %s is not found", cameraId, name); in getCamcorderProfileParamByName()
1059 bool MediaProfiles::hasCamcorderProfile(int cameraId, camcorder_quality quality) const in hasCamcorderProfile() argument
1061 return (getCamcorderProfileIndex(cameraId, quality) != -1); in hasCamcorderProfile()
1064 Vector<int> MediaProfiles::getImageEncodingQualityLevels(int cameraId) const in getImageEncodingQualityLevels()
1067 ImageEncodingQualityLevels *levels = findImageEncodingQualityLevels(cameraId); in getImageEncodingQualityLevels()
1074 int MediaProfiles::getStartTimeOffsetMs(int cameraId) const { in getStartTimeOffsetMs()
1076 ssize_t index = mStartTimeOffsets.indexOfKey(cameraId); in getStartTimeOffsetMs()
1078 offsetTimeMs = mStartTimeOffsets.valueFor(cameraId); in getStartTimeOffsetMs()
1080 ALOGV("offsetTime=%d ms and cameraId=%d", offsetTimeMs, cameraId); in getStartTimeOffsetMs()