Other Parts Discussed in Thread: TVP5158
Tool/software: Linux
Hi,
I add cmem support to capturedisplay (leran from dual-camera)
I tried to let our board work like this:
camera ---YUYV---> vpe ---RGB24---> display
and then :
./capturevpedisplay 704 288 yuyv 704 576 rgb24 1 3 -s 31:1920x1080
output is :
vip: G_FMT(start): width = 704, height = 288, 4cc = YUYV
vpe i/p: G_FMT: width = 704, height = 288, 4cc = YUYV
vpe o/p: G_FMT: width = 704, height = 576, 4cc = RGB3
allocating cmem buffer of size 0xc6000
ERROR:alloc_buffer:175: drmModeAddFB2 failed: Invalid argument (-22)
ERROR:get_cmem_buffers:198: allocation failed
allocating cmem buffer of addr 0xb1467000
allocating display buffer failed
My question is :
1.I think vpe is works normally.So the issue is on third parameter of drmModeAddFB2
int drmModeAddFB2(int fd, uint32_t width, uint32_t height,
uint32_t pixel_format, uint32_t bo_handles[4],
uint32_t pitches[4], uint32_t offsets[4],
uint32_t *buf_id, uint32_t flags);
It 's not 0x33424752(RGB3).So what should it be?
2.My CMEM is default value :
40500000-405fffff : CMEM
a0000000-abffffff : CMEM
But why does the allocated cmem address is 0xb1467000.Is that right ?
Best regards