Home | History | Annotate | Download | only in CameraHal

Lines Matching defs:recorder

37 sp<MediaRecorder> recorder;
820 recorder = new MediaRecorder();
822 if ( NULL == recorder.get() ) {
832 if ( NULL == recorder.get() ) {
833 printf("invalid recorder reference\n");
838 if ( recorder->init() < 0 ) {
839 printf("recorder failed to initialize\n");
844 if ( recorder->close() < 0 ) {
845 printf("recorder failed to close\n");
850 if ( recorder->release() < 0 ) {
851 printf("error while releasing recorder\n");
856 recorder.clear();
866 if ( ( NULL == recorder.get() ) || ( NULL == camera.get() ) ) {
867 printf("invalid recorder and/or camera references\n");
876 if ( recorder->setParameters(bit_rate) < 0 ) {
882 if ( recorder->setCamera(camera->remote(), camera->getRecordingProxy()) < 0 ) {
888 if ( recorder->setVideoSource(VIDEO_SOURCE_CAMERA) < 0 ) {
896 if ( recorder->setAudioSource(AUDIO_SOURCE_DEFAULT) < 0 ) {
903 if ( recorder->setOutputFormat(outputFormat[outputFormatIDX].type) < 0 ) {
921 if ( recorder->setOutputFile(videoFd, 0, 0) < 0 ) {
930 if ( recorder->setVideoFrameRate(fpsConstRanges[frameRateIDX].constFramerate) < 0 ) {
936 if ( recorder->setVideoFrameRate(fpsConstRangesSec[frameRateIDXSec].constFramerate) < 0 ) {
942 if ( recorder->setVideoSize(VcaptureSize[VcaptureSizeIDX].width, VcaptureSize[VcaptureSizeIDX].height) < 0 ) {
948 if ( recorder->setVideoEncoder(videoCodecs[videoCodecIDX].type) < 0 ) {
955 if ( recorder->setAudioEncoder(audioCodecs[audioCodecIDX].type) < 0 ) {
962 if ( recorder->setPreviewSurface( surfaceControl->getSurface()->getIGraphicBufferProducer() ) < 0 ) {
972 if ( ( NULL == recorder.get() ) || ( NULL == camera.get() ) ) {
973 printf("invalid recorder and/or camera references\n");
980 if ( recorder->prepare() < 0 ) {
981 printf("recorder prepare failed\n");
986 if ( recorder->start() < 0 ) {
987 printf("recorder start failed\n");
996 if ( NULL == recorder.get() ) {
997 printf("invalid recorder reference\n");
1002 if ( recorder->stop() < 0 ) {
1003 printf("recorder failed to stop\n");
1548 printf("Error while openning video recorder\n");
1554 printf("Error while configuring video recorder\n");
2158 printf("Error while openning video recorder\n");
2164 printf("Error while configuring video recorder\n");