摄像头无法获取图像
-
root@TinaLinux:~# camerademo [CAMERA]********************************************************** [CAMERA]* * [CAMERA]* this is camera test. * [CAMERA]* * [CAMERA]********************************************************** [CAMERA]********************************************************** [CAMERA] open /dev/video0! [CAMERA]********************************************************** [CAMERA]********************************************************** [CAMERA] The path to data saving is /tmp. [CAMERA] The number of captured photos is 5. [CAMERA] save bmp format [ 2985.150296] [VIN_ERR]vin is not support this pixelformat [ 2985.156416] [VIN_ERR]vin is not support this pixelformat [ 2985.162582] [VIN_ERR]vin is not support this pixelformat [ 2985.168735] [VIN_ERR]vin is not support this pixelformat [ 2985.174843] [VIN_ERR]vin is not support this pixelformat [ 2985.181081] [VIN_ERR]vin is not support this pixelformat [ 2985.187206] [VIN_ERR]vin is not support this pixelformat [ 2985.193347] [VIN_ERR]vin is not support this pixelformat [ 2985.199479] [VIN_ERR]vin is not support this pixelformat [ 2985.205593] [VIN_ERR]vin is not support this pixelformat [ 2985.211718] [VIN_ERR]vin is not support this pixelformat [ 2985.217827] [VIN_ERR]vin is not support this pixelformat [CAMERA]********************************************************** [CAMERA] Using format parameters NV21. [CAMERA_ERR] sensor not support 640 * 480 [CAMERA] use support for the first resolution [CAMERA] camera pixelformat: NV21 [CAMERA] Resolution size : 1920 * 1088 [CAMERA] The photo save path is /tmp. [CAMERA] The number of photos taken is 5. begin ion_alloc_open pid: 1121, g_alloc_context = 0x2ecd0 [CAMERA] Camera capture framerate is 20/1 [CAMERA] VIDIOC_S_FMT succeed [CAMERA] fmt.type = 9 [CAMERA] fmt.fmt.pix_mp.width = 1920 [CAMERA] fmt.fmt.pix_mp.height = 1088 [CAMERA] fmt.fmt.pix_mp.pixelformat = NV21 [CAMERA] fmt.fmt.pix_mp.field = 1 [CAMERA] stream on succeed [CAMERA] camera0 capture num is [0] [CAMERA_PROMPT] the time interval from the start to the first frame is 264 ms [ 2985.769031] camerademo invoked oom-killer: gfp_mask=0x24200ca(GFP_HIGHUSER_MOVABLE), nodemask=0, order=0, oom_score_adj=0 [ 2985.781473] CPU: 0 PID: 1121 Comm: camerademo Not tainted 4.9.191 #1 [ 2985.788614] Hardware name: sun8iw21 [ 2985.792588] [<c010d5a0>] (unwind_backtrace) from [<c010a694>] (show_stack+0x10/0x14) [ 2985.801689] [<c010a694>] (show_stack) from [<c01b36b0>] (dump_header+0x7c/0x1cc) [ 2985.810032] [<c01b36b0>] (dump_header) from [<c0176bd4>] (oom_kill_process+0xe4/0x4dc) [ 2985.818946] [<c0176bd4>] (oom_kill_process) from [<c017741c>] (out_of_memory+0x2d0/0x3fc) [ 2985.828111] [<c017741c>] (out_of_memory) from [<c017b694>] (__alloc_pages_nodemask+0x8a8/0x954) [ 2985.837963] [<c017b694>] (__alloc_pages_nodemask) from [<c0198bf4>] (handle_mm_fault+0x1cc/0xbb4) [ 2985.848165] [<c0198bf4>] (handle_mm_fault) from [<c0111188>] (do_page_fault+0x1a4/0x314) [ 2985.857282] [<c0111188>] (do_page_fault) from [<c01012d0>] (do_DataAbort+0x34/0xb4) [ 2985.865882] [<c01012d0>] (do_DataAbort) from [<c010b35c>] (__dabt_usr+0x3c/0x40) [ 2985.874183] Exception stack(0xc1b7bfb0 to 0xc1b7bff8) [ 2985.879917] bfa0: b6571990 b6de3880 00000780 00000440 [ 2985.889105] bfc0: 00000036 000003bf b6571fff 00000225 00000034 b6de3aa6 00001685 00056040 [ 2985.898483] bfe0: 00000048 bef9b4f8 00000040 00015294 80000010 ffffffff [ 2985.905920] Mem-Info: [ 2985.908478] active_anon:1460 inactive_anon:3760 isolated_anon:0 [ 2985.908478] active_file:280 inactive_file:329 isolated_file:0 [ 2985.908478] unevictable:0 dirty:0 writeback:0 unstable:0 [ 2985.908478] slab_reclaimable:293 slab_unreclaimable:1268 [ 2985.908478] mapped:254 shmem:3760 pagetables:30 bounce:0 [ 2985.908478] free:220 free_pcp:1 free_cma:0 [ 2985.944554] Node 0 active_anon:5840kB inactive_anon:15040kB active_file:1120kB inactive_file:1316kB unevictable:0kB isolated(anon):0kB isolated(file):0kB mapped:1016kB dirty:0kB writeback:0kB shmem:15040kB writeback_tmp:0kB unstable:0kB pages_scanned:28303 all_unreclaimable? yes [ 2985.972479] Normal free:880kB min:880kB low:1100kB high:1320kB active_anon:5840kB inactive_anon:15040kB active_file:1120kB inactive_file:1316kB unevictable:0kB writepending:0kB present:60928kB managed:51188kB mlocked:0kB slab_reclaimable:1172kB slab_unreclaimable:5072kB kernel_stack:480kB pagetables:120kB bounce:0kB free_pcp:4kB local_pcp:4kB free_cma:0kB [ 2986.007995] lowmem_reserve[]: 0 0 0 [ 2986.011949] Normal: 38*4kB (UME) 5*8kB (UE) 11*16kB (U) 16*32kB (UM) 0*64kB 0*128kB 0*256kB 0*512kB 0*1024kB 0*2048kB 0*4096kB = 880kB [ 2986.025648] 4369 total pagecache pages [ 2986.029861] 0 pages in swap cache [ 2986.033581] Swap cache stats: add 0, delete 0, find 0/0 [ 2986.039442] Free swap = 0kB [ 2986.042662] Total swap = 0kB [ 2986.045884] 15232 pages RAM [ 2986.049285] 0 pages HighMem/MovableOnly [ 2986.053598] 2435 pages reserved [ 2986.057112] 0 pages cma reserved [ 2986.060745] [ pid ] uid tgid total_vm rss nr_ptes nr_pmds swapents oom_score_adj name [ 2986.070433] [ 966] 0 966 280 59 4 0 0 0 adbd [ 2986.080014] [ 972] 0 972 334 123 5 0 0 0 wifi_daemon [ 2986.090271] [ 985] 0 985 237 111 4 0 0 0 sh [ 2986.099940] [ 997] 0 997 578 200 4 0 0 0 wpa_supplicant [ 2986.110501] [ 1121] 0 1121 3986 1461 10 0 0 0 camerademo [ 2986.120658] Out of memory: Kill process 1121 (camerademo) score 111 or sacrifice child [ 2986.129552] Killed process 1121 (camerademo) total-vm:15944kB, anon-rss:5440kB, file-rss:404kB, shmem-rss:0kB [ 2986.143015] oom_reaper: reaped process 1121 (camerademo), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
-
-
@awwwwa 我配置小的,camerademo 320 320,提示不支持。你之前测试过那个可以用的分辨率吗
-
@lynnl4 1920 1088
Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号