msm7627a Camera snapshot debug
framwork-> hal [libcamera.so] -> kernel driver
下面是logcat . HAL 调用
AudioSink( 87): setVolume(1.000000, 1.000000)
V/MediaPlayerService( 87): [3] setAuxEffectSendLevel(0.000000)V/AudioSink( 87): setAuxEffectSendLevel(0.000000)
V/MediaPlayerService( 87): [3] start
E/AwesomePlayer( 87): AudioPlayer created, Non-LPA mode mime audio/vorbis duration 554400
D/AudioSink( 87): flush
V/AudioSink( 87): open(44100, 1, 1, 4, 7)
D/AudioTrack( 87): Request AudioFlinger to create track
D/AudioFlinger( 87): createTrack() lSessionId: 7
D/AudioFlinger( 87): Track constructor name 4099, calling thread 87
V/AudioSink( 87): setVolume
D/AudioSink( 87): start
D/AudioTrack( 87): start 0x23d98
D/AudioFlinger( 87): start(4099), calling thread 87 session 7
V/QualcommCameraHardware( 87): receive_shutter_callback: X
V/camera ( 523): mShutterLag = 847ms
V/MediaPlayerService( 87): [3] notify (0x24ea0, 4, 0, 0)
V/MediaPlayerService( 87): [3] notify (0x24ea0, 2, 0, 0)
D/AudioSink( 87): stop
D/AudioTrack( 87): stop 0x23d98
D/AudioFlinger( 87): stop(4099), calling thread 87
W/AudioFlinger( 87): write blocked for 173 msecs, 2 delayed writes, thread 0xcd88
V/QualcommCameraHardware( 87): receive_event_callback: E
E/QualcommCameraHardware( 87): receiveRawPicture: E
V/QualcommCameraHardware( 87): getParameters: EX
V/QualcommCameraHardware( 87): getRawHeap
V/QualcommCameraHardware( 87): crop_test->in2_w = 0,crop_test->in2_h = 0
V/QualcommCameraHardware( 87): crop->in2_w = 0,crop->in2_h = 0
V/QualcommCameraHardware( 87): receiveRawPicture :mIszoom = 0
V/camera ( 523): mShutterToRawCallbackTime = 222ms
E/camera ( 523): <PROFILE> Snapshot to Thumb Latency = 1792 ms
V/QualcommCameraHardware( 87): mIsInterpolation=1.
V/QualcommCameraHardware( 87): FRAME: loading libmmipl at 0xb000e778
V/QualcommCameraHardware( 87): yOffsetSrc=0,CbCrOffsetSrc=4915200,mSrcSize=7372800
V/QualcommCameraHardware( 87): yOffsetSrc2=0,CbCrOffsetSrc2=7372800,mSrcSize2=11059200
V/QualcommCameraHardware( 87): before LINK_ipl_upsize
V/QualcommCameraHardware( 87): after LINK_ipl_upsize
V/QualcommCameraHardware( 87): dlclose(libmmipl.so)
V/QualcommCameraHardware( 87): receiveRawPicture: X
E/mm-camera( 87): PROFILE Snapshot enQ for encoding: 1325427489.898019980
E/mm-camera( 87): PROFILE snap got the image: 1325427489.898203313
E/mm-camera( 87): PROFILE snap config encoding: 1325427489.898234980
E/mm-camera( 87): PROFILE snapshot_start: Exit: 1325427489.898821646
V/QualcommCameraHardware( 87): runSnapshotThread: waiting for jpeg callback.
E/mm-camera( 87): +++++++++++++++++isCameraBack = 0
E/mm-camera( 87): PROFILE snap starting encoding: 1325427489.899806646
E/mm-camera( 87): PROFILE encoder configure: 1325427489.899831646
E/mm-camera( 87): PROFILE HW encoder starting encoding: 1325427489.901256646
I/DateAndBatteryView( 194): --------action = android.intent.action.BATTERY_CHANGED
I/DateAndBatteryView( 194): ACTION_BATTERY_CHANGED, status=2,plugged=2, level=97, health=2
I/DateAndBatteryView( 194): --------action = android.intent.action.BATTERY_CHANGED
I/DateAndBatteryView( 194): ACTION_BATTERY_CHANGED, status=2,plugged=2, level=97, health=2
V/DATA ( 302): [DCT ] intent received :android.intent.action.BATTERY_CHANGED
D/BatteryService( 194): updateBattery level:97 scale:100 status:2 health:2 present:true voltage: 4171 temperature: 170 technology: Li-ion AC powered:false USB powered:true icon:17302293
D/StatusBarPolicy( 279): updateBattery level=97 plugged=true mBatteryPlugged=true mBatteryLevel=97 mBatteryFirst=false
D/StatusBarPolicy( 279): plugged=true oldPlugged=true level=97
E/mm-camera( 87): PROFILE encoder done: 1325427492.042094978
V/QualcommCameraHardware( 87): receive_event_callback: E
V/QualcommCameraHardware( 87): receiveJpegPicture: E image (2137420 uint8_ts out of 14745600)
E/QualcommCameraHardware( 87): address of Jpeg 0 encoded buf 1135570944 Jpeg Heap base 1135570944
V/QualcommCameraHardware( 87): receiveJpegPicture: Index of Jpeg is 0
V/QualcommCameraHardware( 87): receiveJpegPicture: X callback done.
V/QualcommCameraHardware( 87): runSnapshotThread: jpeg callback received.
V/QualcommCameraHardware( 87): deinitRaw E
V/QualcommCameraHardware( 87): destroying MemPool jpeg
V/QualcommCameraHardware( 87): destroying MemPool jpeg completed
I/QualcommCameraHardware( 87): ~PmemPool: snapshot camera E
V/QualcommCameraHardware( 87): register_buf: reg = 1 buffer = 0x41dcf000
I/QualcommCameraHardware( 87): ~PmemPool: snapshot camera X
V/QualcommCameraHardware( 87): destroying MemPool snapshot camera
V/QualcommCameraHardware( 87): destroying MemPool snapshot camera completed
I/QualcommCameraHardware( 87): ~PmemPool: thumbnail E
V/QualcommCameraHardware( 87): register_buf: reg = 1 buffer = 0x400ce000
I/QualcommCameraHardware( 87): ~PmemPool: thumbnail X
V/QualcommCameraHardware( 87): destroying MemPool thumbnail
V/QualcommCameraHardware( 87): destroying MemPool thumbnail completed
V/QualcommCameraHardware( 87): destroying MemPool rawTemp
V/QualcommCameraHardware( 87): destroying MemPool rawTemp completed
V/QualcommCameraHardware( 87): deinitRaw X
I/QualcommCameraHardware( 87): runSnapshotThread X
V/camera ( 523): onPictureTaken: snapshot number received: 1
V/camera ( 523): onPictureTaken: snapshots pending: 0
V/camera ( 523): mPictureDisplayedToJpegCallbackTime = 4323ms
E/camera ( 523): <PROFILE> Snapshot to Snapshot Latency = 6115 ms
I/QualcommCameraHardware( 87): Found a matching camera info for ID 0
I/QualcommCameraHardware( 87): HAL_getCameraInfo: orientation = 90
I/QualcommCameraHardware( 87): HAL_getCameraInfo: modes supported = 5
V/QualcommCameraHardware( 87): getParameters: EX
E/Camera ( 523): getSupportedPictureSizes = 3200x2304,2592x1944,2048x1536,1920x1080,1600x1200,1280x960,1280x720,1024x768,800x600,800x480,640x480,352x288,320x240
E/Camera ( 523): setPictureSize v 3200x2304
I/QualcommCameraHardware( 87): Found a matching camera info for ID 0
I/QualcommCameraHardware( 87): HAL_getCameraInfo: orientation = 90
I/QualcommCameraHardware( 87): HAL_getCameraInfo: modes supported = 5
V/QualcommCameraHardware( 87): setParameters: E params = 0x40ea0d1c
V/QualcommCameraHardware( 87): requested preview size 384 x 288
V/QualcommCameraHardware( 87): No Record Size requested, use the preview dimensions
I/QualcommCameraHardware( 87): setRecordSize: preview dimensions: 384x288
I/QualcommCameraHardware( 87): setRecordSize: video dimensions: 384x288
V/QualcommCameraHardware( 87): requested picture size 3200 x 2304
V/QualcommCameraHardware( 87): requested jpeg thumbnail size 512 x 384
V/QualcommCameraHardware( 87): is_yuv_sensor? =0
V/QualcommCameraHardware( 87): setEffect value =0
V/QualcommCameraHardware( 87): native_set_parms status = 0
I/QualcommCameraHardware( 87): Parameter Rolloff is not supported for this sensor
I/QualcommCameraHardware( 87): Parameter MCE is not supported for this sensor
V/QualcommCameraHardware( 87): setting sharpness 10
V/QualcommCameraHardware( 87): Setting saturation 5
V/QualcommCameraHardware( 87): native_set_parms status = 0
V/QualcommCameraHardware( 87): setting contrast 5
V/QualcommCameraHardware( 87): strtextures = OFF
V/QualcommCameraHardware( 87): native_set_parms status = 0
I/QualcommCameraHardware( 87): Parameter Redeye Reduction is not supported for this sensor
E/QualcommCameraHardware( 87): FPS Range Values: 5000x31000
V/QualcommCameraHardware( 87): Zsl is not enabled
V/QualcommCameraHardware( 87): requested preview frame rate is 31
V/QualcommCameraHardware( 87): fps same as previous fps
V/QualcommCameraHardware( 87): frame rate mode same as previous mode frame-rate-auto
V/QualcommCameraHardware( 87): Exposure Compensation numerator = 1
V/QualcommCameraHardware( 87): Exposure Compensation value = 65542
V/QualcommCameraHardware( 87): native_set_parms status = 0
V/QualcommCameraHardware( 87): updateFocusDistances: IN
I/QualcommCameraHardware( 87): updateFocusDistances: setting KEY_FOCUS_DISTANCES as 3.413020,3.413157,3.413293
V/QualcommCameraHardware( 87): Continuous Auto Focus 0
I/QualcommCameraHardware( 87): Parameter HFR is not supported for this sensor
V/QualcommCameraHardware( 87): setParameters: X
D/camera ( 523): whiteBalance auto
D/camera ( 523): overrideColorEffectSettings null
D/camera ( 523): colorEffect none
V/QualcommCameraHardware( 87): setParameters: E params = 0xbea48aac
V/QualcommCameraHardware( 87): requested preview size 384 x 288
V/QualcommCameraHardware( 87): No Record Size requested, use the preview dimensions
I/QualcommCameraHardware( 87): setRecordSize: preview dimensions: 384x288
I/QualcommCameraHardware( 87): setRecordSize: video dimensions: 384x288
V/QualcommCameraHardware( 87): requested picture size 3200 x 2304
V/QualcommCameraHardware( 87): requested jpeg thumbnail size 512 x 384
V/QualcommCameraHardware( 87): is_yuv_sensor? =0
V/QualcommCameraHardware( 87): setEffect value =0
V/QualcommCameraHardware( 87): native_set_parms status = 0
I/QualcommCameraHardware( 87): Parameter Rolloff is not supported for this sensor
I/QualcommCameraHardware( 87): Parameter MCE is not supported for this sensor
V/QualcommCameraHardware( 87): setting sharpness 10
V/QualcommCameraHardware( 87): Setting saturation 5
V/QualcommCameraHardware( 87): native_set_parms status = 0
V/QualcommCameraHardware( 87): setting contrast 5
V/QualcommCameraHardware( 87): strtextures = OFF
V/QualcommCameraHardware( 87): native_set_parms status = 0
I/QualcommCameraHardware( 87): Parameter Redeye Reduction is not supported for this sensor
E/QualcommCameraHardware( 87): FPS Range Values: 5000x31000
V/QualcommCameraHardware( 87): Zsl is not enabled
V/QualcommCameraHardware( 87): requested preview frame rate is 31
V/QualcommCameraHardware( 87): fps same as previous fps
V/QualcommCameraHardware( 87): frame rate mode same as previous mode frame-rate-auto
V/QualcommCameraHardware( 87): Exposure Compensation numerator = 1
V/QualcommCameraHardware( 87): Exposure Compensation value = 65542
V/QualcommCameraHardware( 87): native_set_parms status = 0
V/QualcommCameraHardware( 87): updateFocusDistances: IN
I/QualcommCameraHardware( 87): updateFocusDistances: setting KEY_FOCUS_DISTANCES as 3.413020,3.413157,3.413293
V/QualcommCameraHardware( 87): Continuous Auto Focus 0
I/QualcommCameraHardware( 87): Parameter HFR is not supported for this sensor
V/QualcommCameraHardware( 87): setParameters: X
V/camera ( 523): startPreview
V/QualcommCameraHardware( 87): startPreview E
V/QualcommCameraHardware( 87): in startPreviewInternal : E
V/QualcommCameraHardware( 87): initPreview E: preview size=384x288 videosize = 384 x 288
V/QualcommCameraHardware( 87): mDimension.prev_format = 1
V/QualcommCameraHardware( 87): mDimension.display_luma_width = 384
V/QualcommCameraHardware( 87): mDimension.display_luma_height = 288
V/QualcommCameraHardware( 87): mDimension.display_chroma_width = 384
V/QualcommCameraHardware( 87): mDimension.display_chroma_height = 288
I/QualcommCameraHardware( 87): constructing MemPool preview backed by pmem pool /dev/pmem_adsp: 8 frames @ 165888 bytes, buffer size 165888
V/QualcommCameraHardware( 87): pmem pool /dev/pmem_adsp ioctl(fd = 45, PMEM_GET_SIZE) is 1343488
V/QualcommCameraHardware( 87): register_buf: reg = 0 buffer = 0x419a8000
V/QualcommCameraHardware( 87): register_buf: reg = 0 buffer = 0x419d1000
V/QualcommCameraHardware( 87): register_buf: reg = 0 buffer = 0x419fa000
V/QualcommCameraHardware( 87): register_buf: reg = 0 buffer = 0x41a23000
V/QualcommCameraHardware( 87): register_buf: reg = 0 buffer = 0x41a4c000
V/QualcommCameraHardware( 87): register_buf: reg = 0 buffer = 0x41a75000
I/QualcommCameraHardware( 87): PmemPool: (preview) X
V/QualcommCameraHardware( 87): initPreview X: 1
V/QualcommCameraHardware( 87): runFrameThread E
I/QualcommCameraHardware( 87): preview_thread E
V/QualcommCameraHardware( 87): startPreviewInternal X
V/QualcommCameraHardware( 87): getParameters: EX
V/QualcommCameraHardware( 87): getPreviewHeap
V/QualcommCameraHardware( 87): getParameters: EX
V/camera ( 523): storeImage: filename = IMG_20120101_221812_0.jpg
V/camera ( 523): mJpegCallbackFinishTime = 924ms
^C