Home | History | Annotate | Download | only in CameraHal

Lines Matching defs:recorder

53 sp<MediaRecorder> recorder;
973 recorder = new MediaRecorder();
975 if ( NULL == recorder.get() ) {
985 if ( NULL == recorder.get() ) {
986 printf("invalid recorder reference\n");
991 if ( recorder->init() < 0 ) {
992 printf("recorder failed to initialize\n");
997 if ( recorder->close() < 0 ) {
998 printf("recorder failed to close\n");
1003 if ( recorder->release() < 0 ) {
1004 printf("error while releasing recorder\n");
1009 recorder.clear();
1021 if ( ( NULL == recorder.get() ) || ( NULL == camera.get() ) ) {
1022 printf("invalid recorder and/or camera references\n");
1031 if ( recorder->setParameters(bit_rate) < 0 ) {
1037 if ( recorder->setCamera(camera->remote(), camera->getRecordingProxy()) < 0 ) {
1043 if ( recorder->setVideoSource(VIDEO_SOURCE_CAMERA) < 0 ) {
1051 if ( recorder->setAudioSource(AUDIO_SOURCE_DEFAULT) < 0 ) {
1058 if ( recorder->setOutputFormat(outputFormat[outputFormatIDX].type) < 0 ) {
1074 if ( recorder->setOutputFile(videoFd, 0, 0) < 0 ) {
1083 if ( recorder->setVideoSize(Vcapture_Array[VcaptureSizeIDX]->height, Vcapture_Array[VcaptureSizeIDX]->width) < 0 ) {
1088 if ( recorder->setVideoSize(Vcapture_Array[VcaptureSizeIDX]->width, Vcapture_Array[VcaptureSizeIDX]->height) < 0 ) {
1094 if ( recorder->setVideoEncoder(videoCodecs[videoCodecIDX].type) < 0 ) {
1101 if ( recorder->setAudioEncoder(audioCodecs[audioCodecIDX].type) < 0 ) {
1108 if ( recorder->setPreviewSurface( surfaceControl->getSurface()->getIGraphicBufferProducer() ) < 0 ) {
1118 if ( ( NULL == recorder.get() ) || ( NULL == camera.get() ) ) {
1119 printf("invalid recorder and/or camera references\n");
1126 if ( recorder->prepare() < 0 ) {
1127 printf("recorder prepare failed\n");
1132 if ( recorder->start() < 0 ) {
1133 printf("recorder start failed\n");
1142 if ( NULL == recorder.get() ) {
1143 printf("invalid recorder reference\n");
1148 if ( recorder->stop() < 0 ) {
1149 printf("recorder failed to stop\n");
2865 printf("Error while openning video recorder\n");
2871 printf("Error while configuring video recorder\n");
3746 printf("Error while openning video recorder\n");
3752 printf("Error while configuring video recorder\n");