Lines Matching refs:caps
305 status_t OMXCameraAdapter::encodeVFramerateCap(OMX_TI_CAPTYPE &caps, in encodeVFramerateCap() argument
322 if(caps.ulPrvVarFPSModesCount < 1) { in encodeVFramerateCap()
327 minVFR = caps.tPrvVarFPSModes[caps.ulPrvVarFPSModesCount-1].nVarFPSMin >> VFR_OFFSET; in encodeVFramerateCap()
328 maxVFR = caps.tPrvVarFPSModes[caps.ulPrvVarFPSModesCount-1].nVarFPSMax >> VFR_OFFSET; in encodeVFramerateCap()
458 …_t OMXCameraAdapter::insertImageSizes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertImageSizes() argument
466 ret = encodeSizeCap(caps.tImageResRange, in insertImageSizes()
484 … OMXCameraAdapter::insertPreviewSizes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertPreviewSizes() argument
492 ret = encodeSizeCap(caps.tPreviewResRange, in insertPreviewSizes()
510 …_t OMXCameraAdapter::insertVideoSizes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertVideoSizes() argument
518 ret = encodeSizeCap(caps.tPreviewResRange, in insertVideoSizes()
536 …_t OMXCameraAdapter::insertThumbSizes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertThumbSizes() argument
544 ret = encodeSizeCap(caps.tThumbResRange, in insertThumbSizes()
563 …us_t OMXCameraAdapter::insertZoomStages(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) in insertZoomStages() argument
573 zoomStageCount = encodeZoomCap(caps.xMaxWidthZoom, in insertZoomStages()
595 … OMXCameraAdapter::insertImageFormats(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertImageFormats() argument
603 for ( int i = 0 ; i < caps.ulImageFormatCount ; i++ ) { in insertImageFormats()
604 ret = encodePixelformatCap(caps.eImageFormats[i], in insertImageFormats()
626 …MXCameraAdapter::insertPreviewFormats(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertPreviewFormats() argument
634 for ( int i = 0 ; i < caps.ulPreviewFormatCount; i++ ) { in insertPreviewFormats()
635 ret = encodePixelformatCap(caps.ePreviewFormats[i], in insertPreviewFormats()
658 …_t OMXCameraAdapter::insertFramerates(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertFramerates() argument
666 ret = encodeFramerateCap(caps.xFramerateMax >> VFR_OFFSET, in insertFramerates()
667 caps.xFramerateMin >> VFR_OFFSET, in insertFramerates()
684 …t OMXCameraAdapter::insertVFramerates(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertVFramerates() argument
693 ret = encodeVFramerateCap(caps, in insertVFramerates()
716 status_t OMXCameraAdapter::insertEVs(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertEVs() argument
724 snprintf(supported, MAX_PROP_VALUE_LENGTH, "%d", ( int ) ( caps.xEVCompensationMin * 10 )); in insertEVs()
727 snprintf(supported, MAX_PROP_VALUE_LENGTH, "%d", ( int ) ( caps.xEVCompensationMax * 10 )); in insertEVs()
735 …us_t OMXCameraAdapter::insertISOModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertISOModes() argument
743 ret = encodeISOCap(caps.nSensitivityMax, in insertISOModes()
759 …us_t OMXCameraAdapter::insertIPPModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertIPPModes() argument
771 if ( caps.bLensDistortionCorrectionSupported ) { in insertIPPModes()
776 if ( caps.bISONoiseFilterSupported ) { in insertIPPModes()
781 if ( caps.bISONoiseFilterSupported && caps.bLensDistortionCorrectionSupported ) { in insertIPPModes()
794 status_t OMXCameraAdapter::insertWBModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps… in insertWBModes() argument
803 for ( unsigned int i = 0 ; i < caps.ulWhiteBalanceCount ; i++ ) { in insertWBModes()
804 p = getLUTvalue_OMXtoHAL(caps.eWhiteBalanceModes[i], WBalLUT); in insertWBModes()
818 status_t OMXCameraAdapter::insertEffects(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps… in insertEffects() argument
827 for ( unsigned int i = 0 ; i < caps.ulColorEffectCount; i++ ) { in insertEffects()
828 p = getLUTvalue_OMXtoHAL(caps.eColorEffects[i], EffLUT); in insertEffects()
842 …us_t OMXCameraAdapter::insertExpModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertExpModes() argument
851 for ( unsigned int i = 0 ; i < caps.ulExposureModeCount; i++ ) { in insertExpModes()
852 p = getLUTvalue_OMXtoHAL(caps.eExposureModes[i], ExpLUT); in insertExpModes()
866 …_t OMXCameraAdapter::insertFlashModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertFlashModes() argument
875 for ( unsigned int i = 0 ; i < caps.ulFlashCount; i++ ) { in insertFlashModes()
876 p = getLUTvalue_OMXtoHAL(caps.eFlashModes[i], FlashLUT); in insertFlashModes()
891 …_t OMXCameraAdapter::insertSceneModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertSceneModes() argument
900 for ( unsigned int i = 0 ; i < caps.ulSceneCount; i++ ) { in insertSceneModes()
901 p = getLUTvalue_OMXtoHAL(caps.eSceneModes[i], SceneLUT); in insertSceneModes()
916 …_t OMXCameraAdapter::insertFocusModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertFocusModes() argument
925 for ( unsigned int i = 0 ; i < caps.ulFocusModeCount; i++ ) { in insertFocusModes()
926 p = getLUTvalue_OMXtoHAL(caps.eFocusModes[i], FocusLUT); in insertFocusModes()
934 if (caps.ulFocusModeCount == 1 && in insertFocusModes()
935 caps.eFocusModes[0] == OMX_IMAGE_FocusControlOff) { in insertFocusModes()
952 … OMXCameraAdapter::insertFlickerModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertFlickerModes() argument
961 for ( unsigned int i = 0 ; i < caps.ulFlickerCount; i++ ) { in insertFlickerModes()
962 p = getLUTvalue_OMXtoHAL(caps.eFlicker[i], FlickerLUT); in insertFlickerModes()
976 status_t OMXCameraAdapter::insertAreas(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertAreas() argument
985 sprintf(supported, "%d", caps.ulAlgoAreasFocusCount); in insertAreas()
990 sprintf(supported, "%d", caps.ulAlgoAreasExposureCount); in insertAreas()
999 status_t OMXCameraAdapter::insertLocks(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertLocks() argument
1012 …us_t OMXCameraAdapter::insertDefaults(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertDefaults() argument
1060 if(caps.tSenMounting.nSenId == 305) { in insertDefaults()
1076 …us_t OMXCameraAdapter::insertSenMount(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertSenMount() argument
1088 if(mSensorNames[i].num == caps.tSenMounting.nSenId) { in insertSenMount()
1102 params->set(CameraProperties::ORIENTATION_INDEX, caps.tSenMounting.nRotation); in insertSenMount()
1109 … OMXCameraAdapter::insertCapabilities(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) { in insertCapabilities() argument
1116 ret = insertImageSizes(params, caps); in insertCapabilities()
1120 ret = insertPreviewSizes(params, caps); in insertCapabilities()
1124 ret = insertThumbSizes(params, caps); in insertCapabilities()
1128 ret = insertZoomStages(params, caps); in insertCapabilities()
1132 ret = insertImageFormats(params, caps); in insertCapabilities()
1136 ret = insertPreviewFormats(params, caps); in insertCapabilities()
1140 ret = insertFramerates(params, caps); in insertCapabilities()
1144 ret = insertVFramerates(params, caps); in insertCapabilities()
1148 ret = insertEVs(params, caps); in insertCapabilities()
1152 ret = insertISOModes(params, caps); in insertCapabilities()
1156 ret = insertIPPModes(params, caps); in insertCapabilities()
1160 ret = insertWBModes(params, caps); in insertCapabilities()
1164 ret = insertEffects(params, caps); in insertCapabilities()
1168 ret = insertExpModes(params, caps); in insertCapabilities()
1172 ret = insertFlashModes(params, caps); in insertCapabilities()
1176 ret = insertSceneModes(params, caps); in insertCapabilities()
1180 ret = insertFocusModes(params, caps); in insertCapabilities()
1184 ret = insertFlickerModes(params, caps); in insertCapabilities()
1188 ret = insertSenMount(params, caps); in insertCapabilities()
1192 ret = insertLocks(params, caps); in insertCapabilities()
1195 ret = insertAreas(params, caps); in insertCapabilities()
1203 ret = insertVideoSizes(params, caps); in insertCapabilities()
1207 ret = insertDefaults(params, caps); in insertCapabilities()
1225 OMX_TI_CAPTYPE** caps = NULL;; in getCaps() local
1233 caps = (OMX_TI_CAPTYPE**) memMgr.allocateBuffer(0, 0, NULL, caps_size, 1); in getCaps()
1235 if (!caps) { in getCaps()
1242 OMX_INIT_STRUCT_PTR (caps[0], OMX_TI_CAPTYPE); in getCaps()
1243 caps[0]->nPortIndex = OMX_ALL; in getCaps()
1248 sharedBuffer.pSharedBuff = (OMX_U8 *) caps[0]; in getCaps()
1262 ret = insertCapabilities(params, *caps[0]); in getCaps()
1265 CAMHAL_LOGDB("sen mount id=%u", (unsigned int)caps[0]->tSenMounting.nSenId); in getCaps()
1269 if (caps) { in getCaps()
1270 memMgr.freeBuffer((void*) caps); in getCaps()
1271 caps = NULL; in getCaps()