imx6 android4.4.2 usb camera

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6 android4.4.2 usb camera

1,944 Views
佳杰吴
Contributor I

Now i use imx6d board with android4.4.2, when i take picture by usb camera,it shows like that:

IMG_2281.JPG

but preview is OK.

logcat says :

I/FslCameraHAL( 2416): device thread exit...

I/FslCameraHAL( 2416): StreamAdapter stop running

I/FslCameraHAL( 2416): stream thread received STREAM_STOP command

I/FslCameraHAL( 2416): StreamAdapter stop end

I/FslCameraHAL( 2416): PreviewStream release running

I/FslCameraHAL( 2416): StreamAdapter release running

I/FslCameraHAL( 2416): stream thread exiting...

E/BufferQueue( 3502): [unnamed-3502-2] cancelBuffer: slot 0 is not owned by the client (state=2)

E/BufferQueue( 3502): [unnamed-3502-2] cancelBuffer: slot 4 is not owned by the client (state=3)

I/FslCameraHAL( 2416): CaptureStream::configure

E/FslCameraHAL( 2416): getGpsCoordinates: error reading jpeg Coordinates tag

E/FslCameraHAL( 2416): getGpsTimeStamp: error reading jpeg TimeStamp tag

E/FslCameraHAL( 2416): getGpsProcessingMethod: error reading jpeg ProcessingMethod tag

I/FslCameraHAL( 2416): pixel format: 0x56595559

I/FslCameraHAL( 2416): Width * Height 640 x 480 format 0x56595559, fps: 15

I/FslCameraHAL( 2416): allocateBufferFromIon buffer num:2

I/FslCameraHAL( 2416): CaptureStream::start

I/FslCameraHAL( 2416): StreamAdapter start running

I/FslCameraHAL( 2416): stream thread received STREAM_START command

E/        ( 2416): g2d_open: fail with status -7

I/FslCameraHAL( 2416): Created device thread

I/FslCameraHAL( 2416): device thread exit...

E/FslCameraHAL( 2416): getGpsCoordinates: error reading jpeg Coordinates tag

E/FslCameraHAL( 2416): getGpsTimeStamp: error reading jpeg TimeStamp tag

E/FslCameraHAL( 2416): getGpsProcessingMethod: error reading jpeg ProcessingMethod tag

I/FslCameraHAL( 2416): pixel format: 0x3231564e

I/vpu-lib ( 2416): Product Info: i.MX6Q/D/S

I/FslCameraHAL( 2416): vpu lib version : major.minor.rel=5.4.25

I/FslCameraHAL( 2416): vpu fw version : major.minor.rel_rcode=3.1.1_r46058

I/vpu-lib ( 2416): <gpu> alloc handle: 0x40da5d48, paddr: 0x44416000, vaddr: 0x45a34000

I/vpu-lib ( 2416): <gpu> alloc handle: 0x40c35bc0, paddr: 0x428de000, vaddr: 0x43efc000

I/vpu-lib ( 2416): <gpu> alloc handle: 0x40c35bd8, paddr: 0x42d78000, vaddr: 0x44396000

I/vpu-lib ( 2416): <gpu> alloc handle: 0x40b45b28, paddr: 0x44598000, vaddr: 0x45bb6000

I/vpu-lib ( 2416): <gpu> alloc handle: 0x40f7d120, paddr: 0x43090000, vaddr: 0x446ae000

I/vpu-lib ( 2416): <gpu> free handle: 0x40c35bc0, paddr: 0x428de000, vaddr: 0x43efc000

I/vpu-lib ( 2416): <gpu> free handle: 0x40da5d48, paddr: 0x44416000, vaddr: 0x45a34000

I/vpu-lib ( 2416): <gpu> free handle: 0x40c35bd8, paddr: 0x42d78000, vaddr: 0x44396000

I/vpu-lib ( 2416): <gpu> free handle: 0x40b45b28, paddr: 0x44598000, vaddr: 0x45bb6000

I/vpu-lib ( 2416): <gpu> free handle: 0x40f7d120, paddr: 0x43090000, vaddr: 0x446ae000

I/FslCameraHAL( 2416): insertExifThumbnailImage. ReplaceThumbnail(). ret=1

E/FslCameraHAL( 2416): handleRequest:No more requests available

I/FslCameraHAL( 2416): handleRequest exiting

I/FslCameraHAL( 2416): stopAllStreams running

I/FslCameraHAL( 2416): CaptureStream::stop

I/FslCameraHAL( 2416): StreamAdapter stop running

I/FslCameraHAL( 2416): StreamAdapter stop end

I/FslCameraHAL( 2416): stream thread received STREAM_STOP command

W/Camera2-CaptureSequencer( 2416): Mismatched capture timestamps: Metadata frame 215139879694, captured buffer 215684377360

I/FslCameraHAL( 2416): CaptureStream::release

I/FslCameraHAL( 2416): StreamAdapter release running

I/FslCameraHAL( 2416): stream thread exiting...

I/FslCameraHAL( 2416): freeBufferToIon buffer num:2

I/FslCameraHAL( 2416): stopAllStreams end

I/FslCameraHAL( 2416): handleRequest end...

D/dalvikvm( 3502): GC_FOR_ALLOC freed 192K, 6% free 8484K/8968K, paused 16ms, total 16ms

V/CAM_PhotoModule( 3502): mPictureDisplayedToJpegCallbackTime = 625ms

V/CAM_PhotoModule( 3502): stopPreview

V/CAM_PhotoModule( 3502): Preview size is 640x480

V/CAM_PhotoModule( 3502): startPreview

Labels (4)
0 Kudos
Reply
3 Replies

1,134 Views
phuongtran
Contributor I

Hi Guys,

Do you have any solution for this issue?

0 Kudos
Reply

1,134 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi,

   Try to modify camera HAL like following

(1) Open UvcDevice.cpp

(2) find these code:

无标题.png

Then change "capCount < 2" to "capCount <10", then re-compile the HAL and try to capture image.

Regards,

Weidong

0 Kudos
Reply

1,134 Views
佳杰吴
Contributor I

Hi,

Thank you for your reply.

I can't find the code

pastedImage_0.png

in my UvcDevice.cpp,

0 Kudos
Reply