Topic locked

Unsupported preview color format: yuv420sp on Android development board

July 23, 2014 - 8:50pm #1

i am using an android development board,the type is Tiny4412,here is some infomation about this board: http://www.armdevs.com/Tiny4412.html. and i am use Logitech USB camera on this board.

my program is use Unity ,that app run this board report error message: Unsupported preview color format:yuv420sp.

i don't know why this problem happend,is that board problem? or camera problem?  how to fix this?

the android version is 4.2.2,  QCAR version is 2.6.7

and logcat message:

02-01 10:07:54.350: I/CameraClient(1253): Opening camera 0
02-01 10:07:54.350: I/CameraHardwareSec(1253): int android::HAL_camera_device_open(const hw_module_t*, char const*, hw_device_t**): open camera 0
02-01 10:07:54.350: I/CameraHardwareSec(1253): ro.kernel.android.cam_def_size prop: 864x480
02-01 10:07:54.350: I/CameraHardwareSec(1253): ro.kernel.android.cam_s_sizes prop: 1280x720,1184x656,960x720,960x544,864x480,800x448,640x480,544x288,352x288,320x176
02-01 10:07:54.350: I/CameraHardwareSec(1253): ro.kernel.android.cam_yuy2 prop: y
02-01 10:07:54.350: I/CameraHardwareSec(1253): ===========    USB Camera Configure   ========
02-01 10:07:54.350: I/CameraHardwareSec(1253): =    Preivew/Picture Size: 864x480
02-01 10:07:54.350: I/CameraHardwareSec(1253): =    Supported Size: 1280x720,1184x656,960x720,960x544,864x480,800x448,640x480,544x288,352x288,320x176
02-01 10:07:54.350: I/CameraHardwareSec(1253): =    YUY2 Color: 1
02-01 10:07:54.350: E/SecCamera(1253): ######## open camera [/dev/video15]
02-01 10:07:54.350: I/SecCamera(1253): initCamera : initialized
02-01 10:07:54.350: I/CameraHardwareSec(1253): int android::CameraHardwareSec::previewThreadWrapper(): starting
02-01 10:07:54.350: I/CameraHardwareSec(1253): int android::HAL_camera_device_open(const hw_module_t*, char const*, hw_device_t**): opened camera 0 (0x41059018)
02-01 10:07:54.350: I/CameraHardwareSec(1253): int android::CameraHardwareSec::previewThreadWrapper(): calling mSecCamera->stopPreview() and waiting
02-01 10:07:54.350: W/SecCamera(1253): int android::SecCamera::stopPreview(): doing nothing because m_flag_camera_start is zero
02-01 10:07:54.350: D/dalvikvm(13797): GREF has increased to 201
02-01 10:07:54.355: E/CameraHardwareSec(1253): Unsupported preview color format: yuv420sp
02-01 10:07:54.360: D/dalvikvm(13797): Trying to load lib /data/app-lib/com.jia.tao-1/libQCARWrapper.so 0x41ee9088
02-01 10:07:54.360: D/dalvikvm(13797): Shared lib '/data/app-lib/com.jia.tao-1/libQCARWrapper.so' already loaded in same CL 0x41ee9088
02-01 10:07:54.360: D/QCAR(13797): cameraDeviceSelectVideoMode
02-01 10:07:54.365: E/CameraHardwareSec(1253): Unsupported preview color format: yuv420sp
02-01 10:07:54.370: D/dalvikvm(13797): Trying to load lib /data/app-lib/com.jia.tao-1/libQCARWrapper.so 0x41ee9088
02-01 10:07:54.370: D/dalvikvm(13797): Shared lib '/data/app-lib/com.jia.tao-1/libQCARWrapper.so' already loaded in same CL 0x41ee9088
02-01 10:07:54.370: D/QCAR(13797): cameraDeviceStartCamera
02-01 10:07:54.380: D/dalvikvm(13797): GC_FOR_ALLOC freed 86K, 14% free 4554K/5240K, paused 9ms, total 9ms
02-01 10:07:54.380: I/dalvikvm-heap(13797): Grow heap (frag case) to 5.506MB for 833552-byte allocation
02-01 10:07:54.390: D/dalvikvm(13797): GC_FOR_ALLOC freed <1K, 12% free 5367K/6056K, paused 10ms, total 10ms
02-01 10:07:54.400: D/dalvikvm(13797): GC_FOR_ALLOC freed 0K, 12% free 5368K/6056K, paused 9ms, total 9ms
02-01 10:07:54.400: I/dalvikvm-heap(13797): Grow heap (frag case) to 6.301MB for 833552-byte allocation
02-01 10:07:54.410: D/dalvikvm(13797): GC_FOR_ALLOC freed 0K, 11% free 6182K/6872K, paused 10ms, total 10ms
02-01 10:07:54.415: E/CameraHardwareSec(1253): ####### enableMsgType: CAMERA_MSG_PREVIEW_FRAME
02-01 10:07:54.425: D/dalvikvm(13797): GC_CONCURRENT freed <1K, 11% free 6181K/6872K, paused 2ms+1ms, total 11ms
02-01 10:07:54.425: D/dalvikvm(13797): WAIT_FOR_CONCURRENT_GC blocked 9ms
02-01 10:07:54.440: D/dalvikvm(13797): GC_EXPLICIT freed <1K, 11% free 6181K/6872K, paused 1ms+2ms, total 17ms
02-01 10:07:54.440: E/SecCamera(1253): ######## test camera format [0]
02-01 10:07:54.465: E/SecCamera(1253): ######## set format [0], V4L2_PIX_FMT_YUYV, w:864,h:480
02-01 10:07:54.485: E/SecCamera(1253): int android::fimc_v4l2_streamon(int) :
02-01 10:07:56.370: D/CameraHardwareSec(1253): mPreviewHeap(fd(36), size(829440), width(864), height(480))
02-01 10:07:56.375: D/CameraHardwareSec(1253): #### mGetMemoryCb for mPreviewHeap return: 0x4105a3a8
02-01 10:07:56.375: I/CameraHardwareSec(1253): int android::CameraHardwareSec::previewThreadWrapper(): return from wait
02-01 10:07:56.375: D/dalvikvm(13797): Trying to load lib /data/app-lib/com.jia.tao-1/libQCARWrapper.so 0x41ee9088
02-01 10:07:56.375: D/dalvikvm(13797): Shared lib '/data/app-lib/com.jia.tao-1/libQCARWrapper.so' already loaded in same CL 0x41ee9088
02-01 10:07:56.375: D/QCAR(13797): markerTrackerStart
02-01 10:07:56.380: D/dalvikvm(13797): Trying to load lib /data/app-lib/com.jia.tao-1/libQCARWrapper.so 0x41ee9088
02-01 10:07:56.380: D/dalvikvm(13797): Shared lib '/data/app-lib/com.jia.tao-1/libQCARWrapper.so' already loaded in same CL 0x41ee9088
02-01 10:07:56.380: D/QCAR(13797): imageTrackerStart
02-01 10:07:56.380: D/dalvikvm(13797): Trying to load lib /data/app-lib/com.jia.tao-1/libQCARWrapper.so 0x41ee9088
02-01 10:07:56.380: D/dalvikvm(13797): Shared lib '/data/app-lib/com.jia.tao-1/libQCARWrapper.so' already loaded in same CL 0x41ee9088
02-01 10:07:56.390: D/dalvikvm(13797): Trying to load lib /data/app-lib/com.jia.tao-1/libQCARWrapper.so 0x41ee9088
02-01 10:07:56.390: D/dalvikvm(13797): Shared lib '/data/app-lib/com.jia.tao-1/libQCARWrapper.so' already loaded in same CL 0x41ee9088
02-01 10:07:56.400: D/dalvikvm(13797): Trying to load lib /data/app-lib/com.jia.tao-1/libQCARWrapper.so 0x41ee9088
02-01 10:07:56.400: D/dalvikvm(13797): Shared lib '/data/app-lib/com.jia.tao-1/libQCARWrapper.so' already loaded in same CL 0x41ee9088
02-01 10:07:56.420: D/dalvikvm(13797): Trying to load lib /data/app-lib/com.jia.tao-1/libQCARWrapper.so 0x41ee9088
02-01 10:07:56.420: D/dalvikvm(13797): Shared lib '/data/app-lib/com.jia.tao-1/libQCARWrapper.so' already loaded in same CL 0x41ee9088
02-01 10:07:56.435: I/CameraHardwareSec(1253): ===========    First Camera Frame   ========
02-01 10:07:56.435: I/CameraHardwareSec(1253): =    Using YUYV Color
02-01 10:07:56.530: D/dalvikvm(13797): Trying to load lib /data/app-lib/com.jia.tao-1/libQCARWrapper.so 0x41ee9088
02-01 10:07:56.530: D/dalvikvm(13797): Shared lib '/data/app-lib/com.jia.tao-1/libQCARWrapper.so' already loaded in same CL 0x41ee9088
02-01 10:07:56.540: D/dalvikvm(13797): Trying to load lib /data/app-lib/com.jia.tao-1/libQCARWrapper.so 0x41ee9088
02-01 10:07:56.540: D/dalvikvm(13797): Shared lib '/data/app-lib/com.jia.tao-1/libQCARWrapper.so' already loaded in same CL 0x41ee9088
02-01 10:07:56.820: D/dalvikvm(13797): Trying to load lib /data/app-lib/com.jia.tao-1/libQCARWrapper.so 0x41ee9088
02-01 10:07:56.820: D/dalvikvm(13797): Shared lib '/data/app-lib/com.jia.tao-1/libQCARWrapper.so' already loaded in same CL 0x41ee9088
02-01 10:07:56.825: I/Unity(13797): Setting camera clear flags to depth only
02-01 10:07:56.825: I/Unity(13797):  
02-01 10:07:56.825: I/Unity(13797): (Filename: ./Runtime/ExportGenerated/AndroidManaged/UnityEngineDebug.cpp Line: 54)

 

PS:the program finaly report is using YUYV color,it's keep running ,but not display anything on screen .

Unsupported preview color format: yuv420sp on Android developmen

July 24, 2014 - 12:38am #2

Vuforia supports standard Android devices such as smartphones and tablets.

There is no support for development boards with connected usb cameras and similar hardware setups.

 

Topic locked