Home | History | Annotate | Download | only in libcameraservice

Lines Matching refs:params

612 void Camera2Client::setPreviewCallbackFlagL(Parameters &params, int flag) {
615 switch(params.state) {
625 "in state %d", __FUNCTION__, mCameraId, params.state);
632 params.previewCallbackOneShot = true;
634 if (params.previewCallbackFlags != (uint32_t)flag) {
635 params.previewCallbackFlags = flag;
637 if (params.state == Parameters::PREVIEW) {
638 res = startPreviewL(params, true);
642 Parameters::getStateName(params.state));
659 status_t Camera2Client::startPreviewL(Parameters &params, bool restart) {
663 ALOGV("%s: state == %d, restart = %d", __FUNCTION__, params.state, restart);
665 if ( (params.state == Parameters::PREVIEW ||
666 params.state == Parameters::RECORD ||
667 params.state == Parameters::VIDEO_SNAPSHOT)
674 if (params.state > Parameters::PREVIEW && !restart) {
677 Parameters::getStateName(params.state));
682 params.state = Parameters::WAITING_FOR_PREVIEW_WINDOW;
685 params.state = Parameters::STOPPED;
687 res = mStreamingProcessor->updatePreviewStream(params);
702 res = updateProcessorStream(mJpegProcessor, params);
711 bool callbacksEnabled = params.previewCallbackFlags &
734 res = mCallbackProcessor->updateStream(params);
742 if (params.zslMode && !params.recordingHint) {
743 res = updateProcessorStream(mZslProcessor, params);
754 if (!params.recordingHint) {
756 res = mStreamingProcessor->updatePreviewRequest(params);
768 res = mStreamingProcessor->updateRecordingRequest(params);
785 params.state = Parameters::PREVIEW;
887 status_t Camera2Client::startRecordingL(Parameters &params, bool restart) {
890 ALOGV("%s: state == %d, restart = %d", __FUNCTION__, params.state, restart);
892 switch (params.state) {
894 res = startPreviewL(params, false);
909 Parameters::getStateName(params.state));
913 if (!params.storeMetadataInBuffers) {
922 mStreamingProcessor->updateRecordingRequest(params);
951 params.previewCallbackFlags = 0;
956 params);
975 if (params.state < Parameters::RECORD) {
976 params.state = Parameters::RECORD;
1210 status_t Camera2Client::setParameters(const String8& params) {
1219 res = l.mParameters.set(params);
1369 status_t Camera2Client::commandStopFaceDetectionL(Parameters &params) {
1374 if (!params.enableFaceDetect) return OK;
1376 params.enableFaceDetect = false;
1378 if (params.state == Parameters::PREVIEW
1379 || params.state == Parameters::RECORD
1380 || params.state == Parameters::VIDEO_SNAPSHOT) {
1381 res = updateRequests(params);
1578 status_t Camera2Client::updateRequests(Parameters &params) {
1581 ALOGV("%s: Camera %d: state = %d", __FUNCTION__, getCameraId(), params.state);
1590 res = mStreamingProcessor->updatePreviewRequest(params);
1596 res = mStreamingProcessor->updateRecordingRequest(params);
1603 if (params.state == Parameters::PREVIEW) {
1604 res = startPreviewL(params, true);
1610 } else if (params.state == Parameters::RECORD ||
1611 params.state == Parameters::VIDEO_SNAPSHOT) {
1612 res = startRecordingL(params, true);
1672 camera2::Parameters params) {
1675 processor, params);
1681 Parameters params) {
1686 res = (processorPtr->*updateStreamF)(params);
1709 res = (processorPtr->*updateStreamF)(params);