Lines Matching refs:caps
64 /**** look up tables to translate OMX Caps to Parameter ****/
351 /**** Utility functions to help translate OMX Caps to Parameter ****/
416 const OMX_TI_CAPTYPE & caps, const CapFramerate * const fixedFrameRates,
431 for ( int i = 0; i < static_cast<int>(caps.ulPrvVarFPSModesCount); ++i ) {
433 max(androidFromDucatiFrameRate(caps.tPrvVarFPSModes[i].nVarFPSMin), minFrameRate),
434 min(androidFromDucatiFrameRate(caps.tPrvVarFPSModes[i].nVarFPSMax), maxFrameRate));
598 status_t OMXCameraAdapter::insertImageSizes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
608 for ( unsigned int i = 0 ; i < caps.ulCapFrameLayoutCount; i++ ) {
609 if (caps.eCapFrameLayout[i] == OMX_TI_StereoFrameLayoutTopBottom)
613 else if (caps.eCapFrameLayout[i] == OMX_TI_StereoFrameLayoutLeftRight)
617 else if ( (caps.eCapFrameLayout[i] == OMX_TI_StereoFrameLayoutTopBottomSubsample)
618 || (caps.eCapFrameLayout[i] == OMX_TI_StereoFrameLayoutLeftRightSubsample) )
629 ret = encodeSizeCap(caps.tImageResRange,
640 params->set(CameraProperties::MAX_PICTURE_WIDTH, caps.tImageResRange.nWidthMax);
641 params->set(CameraProperties::MAX_PICTURE_HEIGHT, caps.tImageResRange.nHeightMax);
647 ret = encodeSizeCap3D(caps.tImageResRange,
668 ret = encodeSizeCap3D(caps.tImageResRange,
689 ret = encodeSizeCap3D(caps.tImageResRange,
710 status_t OMXCameraAdapter::insertPreviewSizes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
720 for ( unsigned int i = 0 ; i < caps.ulPrvFrameLayoutCount; i++ ) {
721 if (caps.ePrvFrameLayout[i] == OMX_TI_StereoFrameLayoutTopBottom)
725 else if (caps.ePrvFrameLayout[i] == OMX_TI_StereoFrameLayoutLeftRight)
729 else if ( (caps.ePrvFrameLayout[i] == OMX_TI_StereoFrameLayoutTopBottomSubsample)
730 || (caps.ePrvFrameLayout[i] == OMX_TI_StereoFrameLayoutLeftRightSubsample) )
741 ret = encodeSizeCap(caps.tPreviewResRange,
753 ret = encodeSizeCap(caps.tRotatedPreviewResRange,
769 ret = encodeSizeCap3D(caps.tPreviewResRange,
790 ret = encodeSizeCap3D(caps.tPreviewResRange,
811 ret = encodeSizeCap3D(caps.tPreviewResRange,
835 status_t OMXCameraAdapter::insertVideoSizes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
844 ret = encodeSizeCap(caps.tPreviewResRange,
861 status_t OMXCameraAdapter::insertThumbSizes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
870 ret = encodeSizeCap(caps.tThumbResRange,
892 status_t OMXCameraAdapter::insertZoomStages(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
902 zoomStageCount = encodeZoomCap(caps.xMaxWidthZoom,
924 status_t OMXCameraAdapter::insertImageFormats(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
933 for ( int i = 0 ; i < caps.ulImageFormatCount ; i++ ) {
934 ret = encodePixelformatCap(caps.eImageFormats[i],
946 for (int i = 0; i < caps.ulImageCodingFormatCount ; i++) {
947 ret = encodeImageCodingFormatCap(caps.eImageCodingFormat[i],
967 status_t OMXCameraAdapter::insertPreviewFormats(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
976 for ( int i = 0 ; i < caps.ulPreviewFormatCount; i++ ) {
977 ret = encodePixelformatCap(caps.ePreviewFormats[i],
1003 status_t OMXCameraAdapter::insertFramerates(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1010 androidFromDucatiFrameRate(caps.xFramerateMin));
1012 androidFromDucatiFrameRate(caps.xFramerateMax));
1015 CAMHAL_LOGE("Invalid frame rate range: [%d .. %d]", caps.xFramerateMin, caps.xFramerateMax);
1019 encodeFrameRates(minFrameRate, maxFrameRate, caps, mFramerates, ARRAY_SIZE(mFramerates), fpsRanges);
1074 androidFromDucatiFrameRate(caps.xFramerateMin));
1076 androidFromDucatiFrameRate(caps.xFramerateMax));
1078 encodeFrameRates(minFrameRate, maxFrameRate, caps, mFramerates, ARRAY_SIZE(mFramerates), fpsRanges);
1115 status_t OMXCameraAdapter::insertEVs(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1124 snprintf(supported, MAX_PROP_VALUE_LENGTH, "%d", ( int ) ( caps.xEVCompensationMin * 10 ));
1127 snprintf(supported, MAX_PROP_VALUE_LENGTH, "%d", ( int ) ( caps.xEVCompensationMax * 10 ));
1135 status_t OMXCameraAdapter::insertISOModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1144 ret = encodeISOCap(caps.nSensitivityMax,
1160 status_t OMXCameraAdapter::insertIPPModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1172 if ( caps.bLensDistortionCorrectionSupported ) {
1177 if ( caps.bISONoiseFilterSupported ) {
1182 if ( caps.bISONoiseFilterSupported && caps.bLensDistortionCorrectionSupported ) {
1194 status_t OMXCameraAdapter::insertWBModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1204 for ( unsigned int i = 0 ; i < caps.ulWhiteBalanceCount ; i++ ) {
1205 p = getLUTvalue_OMXtoHAL(caps.eWhiteBalanceModes[i], WBalLUT);
1221 status_t OMXCameraAdapter::insertEffects(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1231 for ( unsigned int i = 0 ; i < caps.ulColorEffectCount; i++ ) {
1232 p = getLUTvalue_OMXtoHAL(caps.eColorEffects[i], EffLUT);
1248 status_t OMXCameraAdapter::insertExpModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1258 for ( unsigned int i = 0 ; i < caps.ulExposureModeCount; i++ ) {
1259 p = getLUTvalue_OMXtoHAL(caps.eExposureModes[i], ExpLUT);
1275 status_t OMXCameraAdapter::insertManualExpRanges(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) {
1281 if (caps.nManualExpMin > caps.nManualExpMax) {
1291 snprintf(supported, MAX_PROP_VALUE_LENGTH, "%d", (int) caps.nManualExpMin);
1294 snprintf(supported, MAX_PROP_VALUE_LENGTH, "%d", (int) caps.nManualExpMax);
1301 if (MANUAL_GAIN_ISO_MIN > caps.nSensitivityMax) {
1314 snprintf(supported, MAX_PROP_VALUE_LENGTH, "%d", (int) caps.nSensitivityMax);
1326 status_t OMXCameraAdapter::insertFlashModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1336 for ( unsigned int i = 0 ; i < caps.ulFlashCount; i++ ) {
1337 p = getLUTvalue_OMXtoHAL(caps.eFlashModes[i], FlashLUT);
1357 status_t OMXCameraAdapter::insertSceneModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1367 for ( unsigned int i = 0 ; i < caps.ulSceneCount; i++ ) {
1368 p = getLUTvalue_OMXtoHAL(caps.eSceneModes[i], SceneLUT);
1384 status_t OMXCameraAdapter::insertFocusModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1393 for ( unsigned int i = 0 ; i < caps.ulFocusModeCount; i++ ) {
1394 getMultipleLUTvalue_OMXtoHAL(caps.eFocusModes[i], FocusLUT, supported);
1398 if (caps.ulFocusModeCount == 1 &&
1399 caps.eFocusModes[0] == OMX_IMAGE_FocusControlOff) {
1415 status_t OMXCameraAdapter::insertFlickerModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1425 for ( unsigned int i = 0 ; i < caps.ulFlickerCount; i++ ) {
1426 p = getLUTvalue_OMXtoHAL(caps.eFlicker[i], FlickerLUT);
1442 status_t OMXCameraAdapter::insertAreas(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1452 sprintf(supported, "%d", caps.ulAlgoAreasFocusCount);
1457 sprintf(supported, "%d", caps.ulAlgoAreasExposureCount);
1466 status_t OMXCameraAdapter::insertVNFSupported(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) {
1471 if ( OMX_TRUE == caps.bVideoNoiseFilterSupported ) {
1482 status_t OMXCameraAdapter::insertVSTABSupported(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) {
1487 if ( OMX_TRUE == caps.bVideoStabilizationSupported ) {
1498 status_t OMXCameraAdapter::insertLocks(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1504 if ( caps.bAELockSupported ) {
1510 if ( caps.bAWBLockSupported ) {
1521 status_t OMXCameraAdapter::insertSenMount(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1534 if(mSensorNames[i].num == caps.tSenMounting.nSenId) {
1546 params->set(CameraProperties::CAMERA_SENSOR_ID, caps.tSenMounting.nSenId);
1549 params->set(CameraProperties::ORIENTATION_INDEX, caps.tSenMounting.nRotation);
1556 status_t OMXCameraAdapter::insertRaw(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps) {
1565 sprintf(supported,"%d",int(caps.uSenNativeResWidth));
1569 if (caps.bMechanicalMisalignmentSupported) {
1570 sprintf(supported,"%d",int(caps.uSenNativeResHeight) * 2);
1572 sprintf(supported,"%d",int(caps.uSenNativeResHeight));
1581 status_t OMXCameraAdapter::insertFacing(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1593 if((OMX_TI_SENFACING_TYPE)mFacing[i].num == caps.tSenMounting.eFacing) {
1610 status_t OMXCameraAdapter::insertFocalLength(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1619 sprintf(supported, "%d", caps.nFocalLength / 100);
1621 sprintf(supported+(strlen(supported)*sizeof(char)), "%d", caps.nFocalLength % 100);
1630 status_t OMXCameraAdapter::insertAutoConvergenceModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1641 for ( unsigned int i = 0 ; i < caps.ulAutoConvModesCount; i++ ) {
1642 p = getLUTvalue_OMXtoHAL(caps.eAutoConvModes[i], mAutoConvergenceLUT);
1657 status_t OMXCameraAdapter::insertManualConvergenceRange(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1664 snprintf(supported, MAX_PROP_VALUE_LENGTH, "%d", ( int ) ( caps.nManualConvMin ));
1667 snprintf(supported, MAX_PROP_VALUE_LENGTH, "%d", ( int ) ( caps.nManualConvMax ));
1670 snprintf(supported, MAX_PROP_VALUE_LENGTH, "%d", ( int ) ( caps.nManualConvMax != caps.nManualConvMin ));
1678 status_t OMXCameraAdapter::insertMechanicalMisalignmentCorrection(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1683 caps.bMechanicalMisalignmentSupported == OMX_TRUE ?
1689 status_t OMXCameraAdapter::insertCaptureModes(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1700 if (caps.bMechanicalMisalignmentSupported)
1727 for ( unsigned int i = 0 ; i < caps.ulBracketingModesCount; i++ ) {
1728 p = getLUTvalue_OMXtoHAL(caps.eBracketingModes[i], mBracketingModesLUT);
1744 status_t OMXCameraAdapter::insertLayout(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1754 for ( unsigned int i = 0 ; i < caps.ulPrvFrameLayoutCount; i++ ) {
1755 p = getLUTvalue_OMXtoHAL(caps.ePrvFrameLayout[i], mLayoutLUT);
1766 for ( unsigned int i = 0 ; i < caps.ulCapFrameLayoutCount; i++ ) {
1767 p = getLUTvalue_OMXtoHAL(caps.eCapFrameLayout[i], mLayoutLUT);
1782 status_t OMXCameraAdapter::insertVideoSnapshotSupported(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
1788 if (caps.bStillCapDuringVideoSupported)
1803 const OMX_TI_CAPTYPE &caps)
1809 if (caps.bGbceSupported) {
1823 const OMX_TI_CAPTYPE &caps)
1829 if (caps.bGlbceSupported) {
1842 status_t OMXCameraAdapter::insertDefaults(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
2000 status_t OMXCameraAdapter::insertCapabilities(CameraProperties::Properties* params, OMX_TI_CAPTYPE &caps)
2007 ret = insertImageSizes(params, caps);
2011 ret = insertPreviewSizes(params, caps);
2015 ret = insertThumbSizes(params, caps);
2019 ret = insertZoomStages(params, caps);
2023 ret = insertImageFormats(params, caps);
2027 ret = insertPreviewFormats(params, caps);
2031 ret = insertFramerates(params, caps);
2035 ret = insertEVs(params, caps);
2039 ret = insertISOModes(params, caps);
2043 ret = insertIPPModes(params, caps);
2047 ret = insertWBModes(params, caps);
2051 ret = insertEffects(params, caps);
2055 ret = insertExpModes(params, caps);
2059 ret = insertManualExpRanges(params, caps);
2063 ret = insertFlashModes(params, caps);
2067 ret = insertSceneModes(params, caps);
2071 ret = insertFocusModes(params, caps);
2075 ret = insertFlickerModes(params, caps);
2079 ret = insertSenMount(params, caps);
2083 ret = insertLocks(params, caps);
2087 ret = insertAreas(params, caps);
2091 ret = insertFacing(params, caps);
2095 ret = insertFocalLength(params, caps);
2099 ret = insertAutoConvergenceModes(params, caps);
2103 ret = insertManualConvergenceRange(params, caps);
2107 ret = insertMechanicalMisalignmentCorrection(params, caps);
2111 ret = insertRaw(params, caps);
2115 ret = insertCaptureModes(params, caps);
2119 ret = insertLayout(params, caps);
2123 ret = insertVideoSnapshotSupported(params, caps);
2127 ret = insertVSTABSupported(params, caps);
2131 ret = insertVNFSupported(params, caps);
2138 ret = insertVideoSizes(params, caps);
2142 ret = insertGBCESupported(params, caps);
2146 ret = insertGLBCESupported(params, caps);
2150 ret = insertDefaults(params, caps);
2159 bool OMXCameraAdapter::_checkOmxTiCap(const OMX_TI_CAPTYPE & caps)
2163 const int count = static_cast<int>(caps.countVar); \
2164 const int maxSize = CAMHAL_SIZE_OF_ARRAY(caps.arrayVar); \
2198 bool OMXCameraAdapter::_dumpOmxTiCap(const int sensorId, const OMX_TI_CAPTYPE & caps)
2200 if ( !_checkOmxTiCap(caps) )
2210 CAMHAL_LOGD("ulPreviewFormatCount = %d", int(caps.ulPreviewFormatCount));
2211 for ( int i = 0; i < int(caps.ulPreviewFormatCount); ++i )
2212 CAMHAL_LOGD(" ePreviewFormats[%2d] = %d", i, int(caps.ePreviewFormats[i]));
2215 CAMHAL_LOGD("ulImageFormatCount = %d", int(caps.ulImageFormatCount));
2216 for ( int i = 0; i < int(caps.ulImageFormatCount); ++i )
2217 CAMHAL_LOGD(" eImageFormats[%2d] = %d", i, int(caps.eImageFormats[i]));
2220 CAMHAL_LOGD("tPreviewResRange.nWidthMin = %d", int(caps.tPreviewResRange.nWidthMin));
2221 CAMHAL_LOGD("tPreviewResRange.nHeightMin = %d", int(caps.tPreviewResRange.nHeightMin));
2222 CAMHAL_LOGD("tPreviewResRange.nWidthMax = %d", int(caps.tPreviewResRange.nWidthMax));
2223 CAMHAL_LOGD("tPreviewResRange.nHeightMax = %d", int(caps.tPreviewResRange.nHeightMax));
2224 CAMHAL_LOGD("tPreviewResRange.nMaxResInPixels = %d", int(caps.tPreviewResRange.nMaxResInPixels));
2227 CAMHAL_LOGD("tRotatedPreviewResRange.nWidthMin = %d", int(caps.tRotatedPreviewResRange.nWidthMin));
2228 CAMHAL_LOGD("tRotatedPreviewResRange.nHeightMin = %d", int(caps.tRotatedPreviewResRange.nHeightMin));
2229 CAMHAL_LOGD("tRotatedPreviewResRange.nWidthMax = %d", int(caps.tRotatedPreviewResRange.nWidthMax));
2230 CAMHAL_LOGD("tRotatedPreviewResRange.nHeightMax = %d", int(caps.tRotatedPreviewResRange.nHeightMax));
2231 CAMHAL_LOGD("tRotatedPreviewResRange.nMaxResInPixels = %d", int(caps.tRotatedPreviewResRange.nMaxResInPixels));
2234 CAMHAL_LOGD("tImageResRange.nWidthMin = %d", int(caps.tImageResRange.nWidthMin));
2235 CAMHAL_LOGD("tImageResRange.nHeightMin = %d", int(caps.tImageResRange.nHeightMin));
2236 CAMHAL_LOGD("tImageResRange.nWidthMax = %d", int(caps.tImageResRange.nWidthMax));
2237 CAMHAL_LOGD("tImageResRange.nHeightMax = %d", int(caps.tImageResRange.nHeightMax));
2238 CAMHAL_LOGD("tImageResRange.nMaxResInPixels = %d", int(caps.tImageResRange.nMaxResInPixels));
2241 CAMHAL_LOGD("tThumbResRange.nWidthMin = %d", int(caps.tThumbResRange.nWidthMin));
2242 CAMHAL_LOGD("tThumbResRange.nHeightMin = %d", int(caps.tThumbResRange.nHeightMin));
2243 CAMHAL_LOGD("tThumbResRange.nWidthMax = %d", int(caps.tThumbResRange.nWidthMax));
2244 CAMHAL_LOGD("tThumbResRange.nHeightMax = %d", int(caps.tThumbResRange.nHeightMax));
2245 CAMHAL_LOGD("tThumbResRange.nMaxResInPixels = %d", int(caps.tThumbResRange.nMaxResInPixels));
2248 CAMHAL_LOGD("ulWhiteBalanceCount = %d", int(caps.ulWhiteBalanceCount));
2249 for ( int i = 0; i < int(caps.ulWhiteBalanceCount); ++i )
2250 CAMHAL_LOGD(" eWhiteBalanceModes[%2d] = 0x%08x", i, int(caps.eWhiteBalanceModes[i]));
2253 CAMHAL_LOGD("ulColorEffectCount = %d", int(caps.ulColorEffectCount));
2254 for ( int i = 0; i < int(caps.ulColorEffectCount); ++i )
2255 CAMHAL_LOGD(" eColorEffects[%2d] = 0x%08x", i, int(caps.eColorEffects[i]));
2258 CAMHAL_LOGD("xMaxWidthZoom = %d", int(caps.xMaxWidthZoom));
2259 CAMHAL_LOGD("xMaxHeightZoom = %d", int(caps.xMaxHeightZoom));
2262 CAMHAL_LOGD("ulFlickerCount = %d", int(caps.ulFlickerCount));
2263 for ( int i = 0; i < int(caps.ulFlickerCount); ++i )
2264 CAMHAL_LOGD(" eFlicker[%2d] = %d", i, int(caps.eFlicker[i]));
2267 CAMHAL_LOGD("ulExposureModeCount = %d", int(caps.ulExposureModeCount));
2268 for ( int i = 0; i < int(caps.ulExposureModeCount); ++i )
2269 CAMHAL_LOGD(" eExposureModes[%2d] = 0x%08x", i, int(caps.eExposureModes[i]));
2272 CAMHAL_LOGD("bLensDistortionCorrectionSupported = %d", int(caps.bLensDistortionCorrectionSupported));
2273 CAMHAL_LOGD("bISONoiseFilterSupported = %d", int(caps.bISONoiseFilterSupported));
2274 CAMHAL_LOGD("xEVCompensationMin = %d", int(caps.xEVCompensationMin));
2275 CAMHAL_LOGD("xEVCompensationMax = %d", int(caps.xEVCompensationMax));
2276 CAMHAL_LOGD("nSensitivityMax = %d", int(caps.nSensitivityMax));
2279 CAMHAL_LOGD("ulFocusModeCount = %d", int(caps.ulFocusModeCount));
2280 for ( int i = 0; i < int(caps.ulFocusModeCount); ++i )
2281 CAMHAL_LOGD(" eFocusModes[%2d] = 0x%08x", i, int(caps.eFocusModes[i]));
2284 CAMHAL_LOGD("ulSceneCount = %d", int(caps.ulSceneCount));
2285 for ( int i = 0; i < int(caps.ulSceneCount); ++i )
2286 CAMHAL_LOGD(" eSceneModes[%2d] = %d", i, int(caps.eSceneModes[i]));
2289 CAMHAL_LOGD("ulFlashCount = %d", int(caps.ulFlashCount));
2290 for ( int i = 0; i < int(caps.ulFlashCount); ++i )
2291 CAMHAL_LOGD(" eFlashModes[%2d] = %d", i, int(caps.eFlashModes[i]));
2293 CAMHAL_LOGD("xFramerateMin = %d", int(caps.xFramerateMin));
2294 CAMHAL_LOGD("xFramerateMax = %d", int(caps.xFramerateMax));
2295 CAMHAL_LOGD("bContrastSupported = %d", int(caps.bContrastSupported));
2296 CAMHAL_LOGD("bSaturationSupported = %d", int(caps.bSaturationSupported));
2297 CAMHAL_LOGD("bBrightnessSupported = %d", int(caps.bBrightnessSupported));
2298 CAMHAL_LOGD("bProcessingLevelSupported = %d", int(caps.bProcessingLevelSupported));
2299 CAMHAL_LOGD("bQFactorSupported = %d", int(caps.bQFactorSupported));
2302 CAMHAL_LOGD("ulPrvVarFPSModesCount = %d", int(caps.ulPrvVarFPSModesCount));
2303 for ( int i = 0; i < int(caps.ulPrvVarFPSModesCount); ++i )
2305 CAMHAL_LOGD(" tPrvVarFPSModes[%d].nVarFPSMin = %d", i, int(caps.tPrvVarFPSModes[i].nVarFPSMin));
2306 CAMHAL_LOGD(" tPrvVarFPSModes[%d].nVarFPSMax = %d", i, int(caps.tPrvVarFPSModes[i].nVarFPSMax));
2310 CAMHAL_LOGD("ulCapVarFPSModesCount = %d", int(caps.ulCapVarFPSModesCount));
2311 for ( int i = 0; i < int(caps.ulCapVarFPSModesCount); ++i )
2313 CAMHAL_LOGD(" tCapVarFPSModes[%d].nVarFPSMin = %d", i, int(caps.tCapVarFPSModes[i].nVarFPSMin));
2314 CAMHAL_LOGD(" tCapVarFPSModes[%d].nVarFPSMax = %d", i, int(caps.tCapVarFPSModes[i].nVarFPSMax));
2318 CAMHAL_LOGD("tSenMounting.nSenId = %d", int(caps.tSenMounting.nSenId));
2319 CAMHAL_LOGD("tSenMounting.nRotation = %d", int(caps.tSenMounting.nRotation));
2320 CAMHAL_LOGD("tSenMounting.bMirror = %d", int(caps.tSenMounting.bMirror));
2321 CAMHAL_LOGD("tSenMounting.bFlip = %d", int(caps.tSenMounting.bFlip));
2322 CAMHAL_LOGD("tSenMounting.eFacing = %d", int(caps.tSenMounting.eFacing));
2325 CAMHAL_LOGD("ulAutoConvModesCount = %d", int(caps.ulAutoConvModesCount));
2326 for ( int i = 0; i < int(caps.ulAutoConvModesCount); ++i )
2327 CAMHAL_LOGD(" eAutoConvModes[%2d] = %d", i, int(caps.eAutoConvModes[i]));
2330 CAMHAL_LOGD("ulBracketingModesCount = %d", int(caps.ulBracketingModesCount));
2331 for ( int i = 0; i < int(caps.ulBracketingModesCount); ++i )
2332 CAMHAL_LOGD(" eBracketingModes[%2d] = %d", i, int(caps.eBracketingModes[i]));
2335 CAMHAL_LOGD("bGbceSupported = %d", int(caps.bGbceSupported));
2336 CAMHAL_LOGD("bRawJpegSupported = %d", int(caps.bRawJpegSupported));
2339 CAMHAL_LOGD("ulImageCodingFormatCount = %d", int(caps.ulImageCodingFormatCount));
2340 for ( int i = 0; i < int(caps.ulImageCodingFormatCount); ++i )
2341 CAMHAL_LOGD(" eImageCodingFormat[%2d] = %d", i, int(caps.eImageCodingFormat[i]));
2344 CAMHAL_LOGD("uSenNativeResWidth = %d", int(caps.uSenNativeResWidth));
2345 CAMHAL_LOGD("uSenNativeResHeight = %d", int(caps.uSenNativeResHeight));
2346 CAMHAL_LOGD("ulAlgoAreasFocusCount = %d", int(caps.ulAlgoAreasFocusCount));
2347 CAMHAL_LOGD("ulAlgoAreasExposureCount = %d", int(caps.ulAlgoAreasExposureCount));
2348 CAMHAL_LOGD("bAELockSupported = %d", int(caps.bAELockSupported));
2349 CAMHAL_LOGD("bAWBLockSupported = %d", int(caps.bAWBLockSupported));
2350 CAMHAL_LOGD("bAFLockSupported = %d", int(caps.bAFLockSupported));
2351 CAMHAL_LOGD("nFocalLength = %d", int(caps.nFocalLength));
2354 CAMHAL_LOGD("ulPrvFrameLayoutCount = %d", int(caps.ulPrvFrameLayoutCount));
2355 for ( int i = 0; i < int(caps.ulPrvFrameLayoutCount); ++i )
2356 CAMHAL_LOGD(" ePrvFrameLayout[%2d] = %d", i, int(caps.ePrvFrameLayout[i]));
2359 CAMHAL_LOGD("ulCapFrameLayoutCount = %d", int(caps.ulCapFrameLayoutCount));
2360 for ( int i = 0; i < int(caps.ulCapFrameLayoutCount); ++i )
2361 CAMHAL_LOGD(" eCapFrameLayout[%2d] = %d", i, int(caps.eCapFrameLayout[i]));
2364 CAMHAL_LOGD("bVideoNoiseFilterSupported = %d", int(caps.bVideoNoiseFilterSupported ));
2365 CAMHAL_LOGD("bVideoStabilizationSupported = %d", int(caps.bVideoStabilizationSupported ));
2366 CAMHAL_LOGD("bStillCapDuringVideoSupported = %d", int(caps.bStillCapDuringVideoSupported ));
2367 CAMHAL_LOGD("bMechanicalMisalignmentSupported = %d", int(caps.bMechanicalMisalignmentSupported));
2368 caps.bFacePrioritySupported ));
2369 CAMHAL_LOGD("bRegionPrioritySupported = %d", int(caps.bRegionPrioritySupported ));
2370 CAMHAL_LOGD("bGlbceSupported = %d", int(caps.bGlbceSupported));
2373 CAMHAL_LOGD("nManualConvMin = %d", int(caps.nManualConvMin ));
2374 CAMHAL_LOGD("nManualConvMax = %d", int(caps.nManualConvMax ));
2375 CAMHAL_LOGD("nManualExpMin = %d", int(caps.nManualExpMin ));
2376 CAMHAL_LOGD("nManualExpMax = %d", int(caps.nManualExpMax ));
2377 CAMHAL_LOGD("nBrightnessMin = %d", int(caps.nBrightnessMin ));
2378 CAMHAL_LOGD("nBrightnessMax = %d", int(caps.nBrightnessMax ));
2379 CAMHAL_LOGD("nContrastMin = %d", int(caps.nContrastMin ));
2380 CAMHAL_LOGD("nContrastMax = %d", int(caps.nContrastMax ));
2381 CAMHAL_LOGD("nSharpnessMin = %d", int(caps.nSharpnessMin ));
2382 CAMHAL_LOGD("nSharpnessMax = %d", int(caps.nSharpnessMax ));
2383 CAMHAL_LOGD("nSaturationMin = %d", int(caps.nSaturationMin ));
2384 CAMHAL_LOGD("nSaturationMax = %d", int(caps.nSaturationMax ));
2403 OMX_TI_CAPTYPE* caps;
2415 // allocate tiler (or ion) buffer for caps (size is always a multiple of 4K)
2418 caps = (OMX_TI_CAPTYPE*) bufferlist[0].opaque;
2420 if (!caps) {
2421 CAMHAL_LOGEB("Error allocating buffer for caps %d", eError);
2427 OMX_INIT_STRUCT_PTR (caps, OMX_TI_CAPTYPE);
2428 caps->nPortIndex = OMX_ALL;
2446 _dumpOmxTiCap(sensorId, *caps);
2451 ret = insertCapabilities(params, *caps);
2454 CAMHAL_LOGDB("sen mount id=%u", (unsigned int)caps->tSenMounting.nSenId);
2455 CAMHAL_LOGDB("facing id=%u", (unsigned int)caps->tSenMounting.eFacing);