Home | History | Annotate | Download | only in CameraHal

Lines Matching refs:recorder

37 sp<MediaRecorder> recorder;
818 recorder = new MediaRecorder();
820 if ( NULL == recorder.get() ) {
830 if ( NULL == recorder.get() ) {
831 printf("invalid recorder reference\n");
836 if ( recorder->init() < 0 ) {
837 printf("recorder failed to initialize\n");
842 if ( recorder->close() < 0 ) {
843 printf("recorder failed to close\n");
848 if ( recorder->release() < 0 ) {
849 printf("error while releasing recorder\n");
854 recorder.clear();
864 if ( ( NULL == recorder.get() ) || ( NULL == camera.get() ) ) {
865 printf("invalid recorder and/or camera references\n");
874 if ( recorder->setParameters(bit_rate) < 0 ) {
880 if ( recorder->setCamera(camera->remote(), camera->getRecordingProxy()) < 0 ) {
886 if ( recorder->setVideoSource(VIDEO_SOURCE_CAMERA) < 0 ) {
894 if ( recorder->setAudioSource(AUDIO_SOURCE_DEFAULT) < 0 ) {
901 if ( recorder->setOutputFormat(outputFormat[outputFormatIDX].type) < 0 ) {
919 if ( recorder->setOutputFile(videoFd, 0, 0) < 0 ) {
928 if ( recorder->setVideoFrameRate(fpsConstRanges[frameRateIDX].constFramerate) < 0 ) {
934 if ( recorder->setVideoFrameRate(fpsConstRangesSec[frameRateIDXSec].constFramerate) < 0 ) {
940 if ( recorder->setVideoSize(VcaptureSize[VcaptureSizeIDX].width, VcaptureSize[VcaptureSizeIDX].height) < 0 ) {
946 if ( recorder->setVideoEncoder(videoCodecs[videoCodecIDX].type) < 0 ) {
953 if ( recorder->setAudioEncoder(audioCodecs[audioCodecIDX].type) < 0 ) {
960 if ( recorder->setPreviewSurface( surfaceControl->getSurface() ) < 0 ) {
970 if ( ( NULL == recorder.get() ) || ( NULL == camera.get() ) ) {
971 printf("invalid recorder and/or camera references\n");
978 if ( recorder->prepare() < 0 ) {
979 printf("recorder prepare failed\n");
984 if ( recorder->start() < 0 ) {
985 printf("recorder start failed\n");
994 if ( NULL == recorder.get() ) {
995 printf("invalid recorder reference\n");
1000 if ( recorder->stop() < 0 ) {
1001 printf("recorder failed to stop\n");
1538 printf("Error while openning video recorder\n");
1544 printf("Error while configuring video recorder\n");
2148 printf("Error while openning video recorder\n");
2154 printf("Error while configuring video recorder\n");