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