Lines Matching refs:params

41 CameraParameters params;  variable
777 printf("\n\r\tSupported Cameras: %s", params.get("camera-indexes")); in printSupportedParams()
778 …printf("\n\r\tSupported Picture Sizes: %s", params.get(CameraParameters::KEY_SUPPORTED_PICTURE_SIZ… in printSupportedParams()
779 …printf("\n\r\tSupported Picture Formats: %s", params.get(CameraParameters::KEY_SUPPORTED_PICTURE_F… in printSupportedParams()
780 …printf("\n\r\tSupported Preview Sizes: %s", params.get(CameraParameters::KEY_SUPPORTED_PREVIEW_SIZ… in printSupportedParams()
781 …printf("\n\r\tSupported Preview Formats: %s", params.get(CameraParameters::KEY_SUPPORTED_PREVIEW_F… in printSupportedParams()
782 …printf("\n\r\tSupported Preview Frame Rates: %s", params.get(CameraParameters::KEY_SUPPORTED_PREVI… in printSupportedParams()
783 …printf("\n\r\tSupported Thumbnail Sizes: %s", params.get(CameraParameters::KEY_SUPPORTED_JPEG_THUM… in printSupportedParams()
784 …printf("\n\r\tSupported Whitebalance Modes: %s", params.get(CameraParameters::KEY_SUPPORTED_WHITE_… in printSupportedParams()
785 printf("\n\r\tSupported Effects: %s", params.get(CameraParameters::KEY_SUPPORTED_EFFECTS)); in printSupportedParams()
786 …printf("\n\r\tSupported Scene Modes: %s", params.get(CameraParameters::KEY_SUPPORTED_SCENE_MODES)); in printSupportedParams()
787 …printf("\n\r\tSupported Focus Modes: %s", params.get(CameraParameters::KEY_SUPPORTED_FOCUS_MODES)); in printSupportedParams()
788 …printf("\n\r\tSupported Antibanding Options: %s", params.get(CameraParameters::KEY_SUPPORTED_ANTIB… in printSupportedParams()
789 …printf("\n\r\tSupported Flash Modes: %s", params.get(CameraParameters::KEY_SUPPORTED_FLASH_MODES)); in printSupportedParams()
790 …printf("\n\r\tSupported Focus Areas: %d", params.getInt(CameraParameters::KEY_MAX_NUM_FOCUS_AREAS)… in printSupportedParams()
792 if ( NULL != params.get(CameraParameters::KEY_FOCUS_DISTANCES) ) { in printSupportedParams()
793 printf("\n\r\tFocus Distances: %s \n", params.get(CameraParameters::KEY_FOCUS_DISTANCES)); in printSupportedParams()
1035 params = camera->getParameters(); in openCamera()
1036 camera->setParameters(params.flatten()); in openCamera()
1085 params.setPreviewSize(previewWidth, previewHeight); in startPreview()
1086params.setPictureSize(captureSize[captureSizeIDX].width, captureSize[captureSizeIDX].height); in startPreview()
1088 camera->setParameters(params.flatten()); in startPreview()
1166 params.setPreviewSize(previewSize[previewSizeIDX].width, previewSize[previewSizeIDX].height); in initDefaults()
1167 params.setPictureSize(captureSize[captureSizeIDX].width, captureSize[captureSizeIDX].height); in initDefaults()
1168 params.set(CameraParameters::KEY_ROTATION, rotation); in initDefaults()
1169 params.set(KEY_COMPENSATION, (int) (compensation * 10)); in initDefaults()
1170 params.set(params.KEY_WHITE_BALANCE, strawb_mode[awb_mode]); in initDefaults()
1171 params.set(KEY_MODE, (capture[capture_mode])); in initDefaults()
1172 params.set(params.KEY_SCENE_MODE, scene[scene_mode]); in initDefaults()
1173 params.set(KEY_CAF, caf_mode); in initDefaults()
1174 params.set(KEY_ISO, iso_mode); in initDefaults()
1175 params.set(KEY_GBCE, gbce[gbceIDX]); in initDefaults()
1176 params.set(KEY_GLBCE, gbce[glbceIDX]); in initDefaults()
1177 params.set(KEY_SHARPNESS, sharpness); in initDefaults()
1178 params.set(KEY_CONTRAST, contrast); in initDefaults()
1179 params.set(CameraParameters::KEY_ZOOM, zoom[zoomIDX].idx); in initDefaults()
1180 params.set(KEY_EXPOSURE, exposure[exposure_mode]); in initDefaults()
1181 params.set(KEY_BRIGHTNESS, brightness); in initDefaults()
1182 params.set(KEY_SATURATION, saturation); in initDefaults()
1183 params.set(params.KEY_EFFECT, effects[effects_mode]); in initDefaults()
1184 params.setPreviewFrameRate(frameRate[ARRAY_SIZE(frameRate) - 1].fps); in initDefaults()
1185 params.set(params.KEY_ANTIBANDING, antibanding[antibanding_mode]); in initDefaults()
1186 params.set(params.KEY_FOCUS_MODE, focus[focus_mode]); in initDefaults()
1187 params.set(KEY_IPP, ipp_mode[ippIDX]); in initDefaults()
1188 params.set(CameraParameters::KEY_JPEG_QUALITY, jpegQuality); in initDefaults()
1189 params.setPreviewFormat(pixelformat[previewFormat].pixformat); in initDefaults()
1190 params.setPictureFormat(codingformat[pictureFormat]); in initDefaults()
1191 params.set(KEY_BUFF_STARV, bufferStarvationTest); //enable buffer starvation in initDefaults()
1192 params.set(KEY_METERING_MODE, metering[meter_mode]); in initDefaults()
1193 params.set(CameraParameters::KEY_JPEG_THUMBNAIL_WIDTH, previewSize[thumbSizeIDX].width); in initDefaults()
1194 params.set(CameraParameters::KEY_JPEG_THUMBNAIL_HEIGHT, previewSize[thumbSizeIDX].height); in initDefaults()
1196 params.set(KEY_MANUALCONVERGENCE_VALUES, manualconvergencevalues[ManualConvergenceValuesIDX]); in initDefaults()
1197 params.set(KEY_S3D2D_PREVIEW_MODE, "off"); in initDefaults()
1198 params.set(KEY_STEREO_CAMERA, "false"); in initDefaults()
1199 params.set(KEY_EXIF_MODEL, MODEL); in initDefaults()
1200 params.set(KEY_EXIF_MAKE, MAKE); in initDefaults()
1233 params.set(params.KEY_GPS_LATITUDE, coord_str); in menu_gps()
1236 camera->setParameters(params.flatten()); in menu_gps()
1248 params.set(params.KEY_GPS_LONGITUDE, coord_str); in menu_gps()
1251 camera->setParameters(params.flatten()); in menu_gps()
1263 params.set(params.KEY_GPS_ALTITUDE, coord_str); in menu_gps()
1266 camera->setParameters(params.flatten()); in menu_gps()
1315 printf(" {. 2D Preview in 3D Stereo Mode: %s\n", params.get(KEY_S3D2D_PREVIEW_MODE)); in functional_menu()
1395 params.set(KEY_AUTOCONVERGENCE, autoconvergencemode[AutoConvergenceModeIDX]); in functional_menu()
1397params.set(KEY_MANUALCONVERGENCE_VALUES, manualconvergencevalues[ManualConvergenceValuesIDX]); in functional_menu()
1400params.set(KEY_MANUALCONVERGENCE_VALUES, manualconvergencevalues[ManualConvergenceDefaultValueIDX]… in functional_menu()
1403 camera->setParameters(params.flatten()); in functional_menu()
1410params.set(KEY_MANUALCONVERGENCE_VALUES, manualconvergencevalues[ManualConvergenceValuesIDX]); in functional_menu()
1411 camera->setParameters(params.flatten()); in functional_menu()
1418 params.set(KEY_STEREO_CAMERA, "true"); in functional_menu()
1420 params.set(KEY_STEREO_CAMERA, "false"); in functional_menu()
1427 params.setPreviewFrameRate(30); in functional_menu()
1429 params.setPreviewFrameRate(27); in functional_menu()
1436 camera->setParameters(params.flatten()); in functional_menu()
1477 camera->setParameters(params.flatten()); in functional_menu()
1486 params.set(CameraParameters::KEY_ROTATION, rotation); in functional_menu()
1488 camera->setParameters(params.flatten()); in functional_menu()
1495 if ( NULL != params.get(KEY_STEREO_CAMERA) ) { in functional_menu()
1496 if ( strcmp(params.get(KEY_STEREO_CAMERA), "false") == 0 ) { in functional_menu()
1497params.setPreviewSize(previewSize[previewSizeIDX].width, previewSize[previewSizeIDX].height); in functional_menu()
1499params.setPreviewSize(previewSize[previewSizeIDX].width, previewSize[previewSizeIDX].height*2); in functional_menu()
1506 camera->setParameters(params.flatten()); in functional_menu()
1509 camera->setParameters(params.flatten()); in functional_menu()
1517params.setPictureSize(captureSize[captureSizeIDX].width, captureSize[captureSizeIDX].height); in functional_menu()
1520 camera->setParameters(params.flatten()); in functional_menu()
1576 params.set(KEY_COMPENSATION, (int) (compensation * 10)); in functional_menu()
1579 camera->setParameters(params.flatten()); in functional_menu()
1586 params.set(params.KEY_WHITE_BALANCE, strawb_mode[awb_mode]); in functional_menu()
1589 camera->setParameters(params.flatten()); in functional_menu()
1600 params.setPreviewFormat(pixelformat[previewFormat].pixformat); in functional_menu()
1603 camera->setParameters(params.flatten()); in functional_menu()
1608 if ( NULL != params.get(KEY_STEREO_CAMERA) ) { in functional_menu()
1609 if ( strcmp(params.get(KEY_STEREO_CAMERA), "false") == 0 && pictureFormat > 4 ) in functional_menu()
1613 params.setPictureFormat(codingformat[pictureFormat]); in functional_menu()
1615 camera->setParameters(params.flatten()); in functional_menu()
1621 params.set(KEY_MODE, 3); in functional_menu()
1622 params.set(KEY_VNF, 1); in functional_menu()
1623 params.set(KEY_VSTAB, 1); in functional_menu()
1629 params.set(CameraParameters::KEY_JPEG_THUMBNAIL_WIDTH, previewSize[thumbSizeIDX].width); in functional_menu()
1630params.set(CameraParameters::KEY_JPEG_THUMBNAIL_HEIGHT, previewSize[thumbSizeIDX].height); in functional_menu()
1633 camera->setParameters(params.flatten()); in functional_menu()
1644 params.set(CameraParameters::KEY_JPEG_THUMBNAIL_QUALITY, thumbQuality); in functional_menu()
1646 camera->setParameters(params.flatten()); in functional_menu()
1652 params.set(KEY_VNF, vnf_mode); in functional_menu()
1655 camera->setParameters(params.flatten()); in functional_menu()
1661 params.set(KEY_VSTAB, vstab_mode); in functional_menu()
1664 camera->setParameters(params.flatten()); in functional_menu()
1669 params.unflatten(camera->getParameters()); in functional_menu()
1685 params.set(CameraParameters::KEY_JPEG_QUALITY, jpegQuality); in functional_menu()
1687 camera->setParameters(params.flatten()); in functional_menu()
1692 params.set(KEY_MEASUREMENT, measurement[measurementIdx]); in functional_menu()
1694 camera->setParameters(params.flatten()); in functional_menu()
1699 params.set(KEY_METERING_MODE, metering[meter_mode]); in functional_menu()
1701 camera->setParameters(params.flatten()); in functional_menu()
1710 params.set(KEY_IPP, ipp_mode[ippIDX]); in functional_menu()
1713 camera->setParameters(params.flatten()); in functional_menu()
1720 params.set(KEY_GBCE, gbce[gbceIDX]); in functional_menu()
1723 camera->setParameters(params.flatten()); in functional_menu()
1729 params.set(KEY_GLBCE, gbce[glbceIDX]); in functional_menu()
1732 camera->setParameters(params.flatten()); in functional_menu()
1767 params.set(KEY_BURST, burst); in functional_menu()
1770 camera->setParameters(params.flatten()); in functional_menu()
1777 params.set(CameraParameters::KEY_FLASH_MODE, (flashModes[flashIdx])); in functional_menu()
1780 camera->setParameters(params.flatten()); in functional_menu()
1793 params.set(KEY_IPP, ipp_mode[ippIDX]); in functional_menu()
1798 params.set(KEY_MODE, (capture[capture_mode])); in functional_menu()
1801 camera->setParameters(params.flatten()); in functional_menu()
1808 params.set(KEY_TEMP_BRACKETING, tempBracketing[tempBracketIdx]); in functional_menu()
1811 camera->setParameters(params.flatten()); in functional_menu()
1819 params.set(KEY_EXP_BRACKETING_RANGE, expBracketingRange[expBracketIdx]); in functional_menu()
1822 camera->setParameters(params.flatten()); in functional_menu()
1833 params.set(KEY_TEMP_BRACKETING_NEG, tempBracketRange); in functional_menu()
1834 params.set(KEY_TEMP_BRACKETING_POS, tempBracketRange); in functional_menu()
1837 camera->setParameters(params.flatten()); in functional_menu()
1844 params.set(params.KEY_SCENE_MODE, scene[scene_mode]); in functional_menu()
1847 camera->setParameters(params.flatten()); in functional_menu()
1854 params.set(KEY_ISO, iso[iso_mode]); in functional_menu()
1857 camera->setParameters(params.flatten()); in functional_menu()
1866 params.set(KEY_SHARPNESS, sharpness); in functional_menu()
1868 camera->setParameters(params.flatten()); in functional_menu()
1888 params.set(CameraParameters::KEY_ZOOM, zoom[zoomIDX].idx); in functional_menu()
1891 camera->setParameters(params.flatten()); in functional_menu()
1898 params.set(KEY_EXPOSURE, exposure[exposure_mode]); in functional_menu()
1901 camera->setParameters(params.flatten()); in functional_menu()
1911 params.set(KEY_CONTRAST, contrast); in functional_menu()
1913 camera->setParameters(params.flatten()); in functional_menu()
1922 params.set(KEY_BRIGHTNESS, brightness); in functional_menu()
1925 camera->setParameters(params.flatten()); in functional_menu()
1937 params.set(KEY_SATURATION, saturation); in functional_menu()
1940 camera->setParameters(params.flatten()); in functional_menu()
1947 params.set(params.KEY_EFFECT, effects[effects_mode]); in functional_menu()
1950 camera->setParameters(params.flatten()); in functional_menu()
1960params.set(CameraParameters::KEY_PREVIEW_FPS_RANGE, fpsConstRanges[frameRateIDX].range); in functional_menu()
1965params.set(CameraParameters::KEY_PREVIEW_FPS_RANGE, fpsConstRangesSec[frameRateIDXSec].range); in functional_menu()
1971 camera->setParameters(params.flatten()); in functional_menu()
1979 params.set(CameraParameters::KEY_PREVIEW_FPS_RANGE, fpsRanges[fpsRangeIdx].range); in functional_menu()
1982 camera->setParameters(params.flatten()); in functional_menu()
1990 params.set(params.KEY_ANTIBANDING, antibanding[antibanding_mode]); in functional_menu()
1993 camera->setParameters(params.flatten()); in functional_menu()
2000 params.set(params.KEY_FOCUS_MODE, focus[focus_mode]); in functional_menu()
2003 camera->setParameters(params.flatten()); in functional_menu()
2009 params.set(CameraParameters::KEY_FOCUS_AREAS, TEST_FOCUS_AREA); in functional_menu()
2012 camera->setParameters(params.flatten()); in functional_menu()
2014 params.remove(CameraParameters::KEY_FOCUS_AREAS); in functional_menu()
2042 if ( strcmp(params.get(KEY_S3D2D_PREVIEW_MODE), "off") == 0 ) in functional_menu()
2044 params.set(KEY_S3D2D_PREVIEW_MODE, "on"); in functional_menu()
2048 params.set(KEY_S3D2D_PREVIEW_MODE, "off"); in functional_menu()
2051 camera->setParameters(params.flatten()); in functional_menu()
2087 params.set(KEY_AUTO_EXPOSURE_LOCK, lock[elockidx]); in functional_menu()
2089 camera->setParameters(params.flatten()); in functional_menu()
2095 params.set(KEY_AUTO_WHITEBALANCE_LOCK, lock[wblockidx]); in functional_menu()
2097 camera->setParameters(params.flatten()); in functional_menu()
2147 params.set(KEY_BUFF_STARV, bufferStarvationTest); //enable buffer starvation in error_scenario()
2245 params.setPictureFormat("invalid-format"); in error_scenario()
2246 params.setPreviewFormat("invalid-format"); in error_scenario()
2248 stat = camera->setParameters(params.flatten()); in error_scenario()
2266 params.setPictureSize(-1, -1); in error_scenario()
2267 params.setPreviewSize(-1, -1); in error_scenario()
2269 stat = camera->setParameters(params.flatten()); in error_scenario()
2287 params.setPreviewFrameRate(-1); in error_scenario()
2289 stat = camera->setParameters(params.flatten()); in error_scenario()