Lines Matching defs:ret
111 int32_t ret = SUCCESS;
118 if ((ret = recorder->SetAudioSource(inputSource, audioSourceId)) != SUCCESS) {
119 cout << "SetAudioSource failed." << ret << endl;
122 if ((ret = recorder->SetAudioEncoder(audioSourceId, audioFormat)) != SUCCESS) {
123 cout << "SetAudioEncoder failed." << ret << endl;
126 if ((ret = recorder->SetAudioSampleRate(audioSourceId, sampleRate)) != SUCCESS) {
127 cout << "SetAudioSampleRate failed." << ret << endl;
130 if ((ret = recorder->SetAudioChannels(audioSourceId, channelCount)) != SUCCESS) {
131 cout << "SetAudioChannels failed." << ret << endl;
134 if ((ret = recorder->SetAudioEncodingBitRate(audioSourceId, audioEncodingBitRate)) != SUCCESS) {
135 cout << "SetAudioEncodingBitRate failed." << ret << endl;
146 int ret = 0;
156 if ((ret = recorder->SetVideoSource(source, sourceId)) != SUCCESS) {
157 cout << "SetVideoSource failed." << ret << endl;
161 if ((ret = recorder->SetVideoEncoder(sourceId, encoder)) != SUCCESS) {
162 cout << "SetVideoEncoder failed." << ret << endl;
166 if ((ret = recorder->SetVideoSize(sourceId, width, height)) != SUCCESS) {
167 cout << "SetVideoSize failed." << ret << endl;
171 if ((ret = recorder->SetVideoFrameRate(sourceId, frameRate)) != SUCCESS) {
172 cout << "SetVideoFrameRate failed." << ret << endl;
176 if ((ret = recorder->SetVideoEncodingBitRate(sourceId, rate)) != SUCCESS) {
177 cout << "SetVideoEncodingBitRate failed." << ret << endl;
181 if ((ret = recorder->SetCaptureRate(sourceId, fps)) != SUCCESS) {
182 cout << "SetCaptureRate failed." << ret << endl;
186 if ((ret = SetupAudioSource(*recorder) != SUCCESS)) {
243 int32_t ret = FileCheck(string(filename));
244 return ret;
324 int ret;
338 ret = recorder_->SetOutputPath(path);
339 if (ret != SUCCESS) {
340 cout << "SetOutputPath failed :" << ret << std::endl;
344 ret = recorder_->Prepare();
345 if (ret != SUCCESS) {
346 cout << "Prepare failed.=" << ret << endl;
355 ret = recorder_->Start();
356 if (ret != SUCCESS) {
357 cout << "recorder start failed. ret=" << ret << endl;
372 ret = cam_->TriggerLoopingCapture(*fc);
373 if (ret != 0) {
374 cout << "camera start recording failed. ret=" << ret << endl;
411 int32_t ret = cam_->TriggerLoopingCapture(*fc);
412 if (ret != 0) {
413 cout << "camera start preview failed. ret=" << ret << endl;
453 int32_t ret = recorder_->Stop(true);
454 if (ret != 0) {
455 cout << "recorder_ stop failed. ret=" << ret << endl;