Lines Matching refs:ret

74     int ret = 0;

90 if ((ret = recorder->SetVideoSource(source, sourceId)) != SUCCESS) {
91 cout << "SetVideoSource failed." << ret << endl;
94 if ((ret = recorder->SetVideoEncoder(sourceId, encoder)) != SUCCESS) {
95 cout << "SetVideoEncoder failed." << ret << endl;
98 if ((ret = recorder->SetVideoSize(sourceId, width, height)) != SUCCESS) {
99 cout << "SetVideoSize failed." << ret << endl;
102 if ((ret = recorder->SetVideoFrameRate(sourceId, frameRate)) != SUCCESS) {
103 cout << "SetVideoFrameRate failed." << ret << endl;
106 if ((ret = recorder->SetVideoEncodingBitRate(sourceId, rate)) != SUCCESS) {
107 cout << "SetVideoEncodingBitRate failed." << ret << endl;
110 if ((ret = recorder->SetCaptureRate(sourceId, fps)) != SUCCESS) {
111 cout << "SetCaptureRate failed." << ret << endl;
114 if ((ret = recorder->SetAudioSource(inputSource, audioSourceId)) != SUCCESS) {
115 cout << "SetAudioSource failed." << ret << endl;
118 if ((ret = recorder->SetAudioEncoder(audioSourceId, audioFormat)) != SUCCESS) {
119 cout << "SetAudioEncoder failed." << ret << endl;
122 if ((ret = recorder->SetAudioSampleRate(audioSourceId, sampleRate)) != SUCCESS) {
123 cout << "SetAudioSampleRate failed." << ret << endl;
126 if ((ret = recorder->SetAudioChannels(audioSourceId, channelCount)) != SUCCESS) {
127 cout << "SetAudioChannels failed." << ret << endl;
130 if ((ret = recorder->SetAudioEncodingBitRate(audioSourceId, audioEncodingBitRate)) != SUCCESS) {
131 cout << "SetAudioEncodingBitRate failed." << ret << endl;
134 if ((ret = recorder->SetMaxDuration(36000)) != SUCCESS) { // 36000s=10h
135 cout << "SetAudioEncodingBitRate failed." << ret << endl;
236 int ret = PrepareRecorder();
237 if (ret != SUCCESS) {
242 ret = recorder_->SetOutputFile(recordFd_);
243 if (ret != SUCCESS) {
244 cout << "SetOutputPath failed. ret=" << ret << endl;
248 ret = recorder_->Prepare();
249 if (ret != SUCCESS) {
250 cout << "Prepare failed. ret=" << ret << endl;
254 ret = recorder_->Start();
255 if (ret != SUCCESS) {
256 cout << "recorder start failed. ret=" << ret << endl;
270 ret = cam_->TriggerLoopingCapture(*fc);
271 if (ret != 0) {
274 cout << "camera start recording failed. ret=" << ret << endl;
304 int32_t ret = cam_->TriggerLoopingCapture(*fc);
305 if (ret != 0) {
307 cout << "camera start preview failed. ret=" << ret << endl;