I'm trying to connect a V4L2 capture port to OMX components for h.264 encode.
Looking at gstreamer 0.4 for an example what steps are required to connect these systems?
So far the steps I see are:
1. OMX_Init()
2. pHeap = SharedRegion_getHeap(2);
3. for num_v4l2_buffs, virtual_address[i++] = Memory_alloc(pHeap, MAX_BUFFER_SIZE, ALIGNMENT, NULL);
4. Setup V4L2 for user pointers
5. Queue buffers in V4L2 using virtual addresses from step 3
6. create OMX buffer headers the input of the component and assign pBuffer the virtual addresses from step 3
7. OMX transition to loaded and idle
8. V4L2 Stream On, and OMX transition to Execute
9. Pass buffers from V4L2 buffer dequeue to OMX empty this buffer using matching buffer header from step 6
Is there anything I missed? I currently can't get past step 5.
This is for 8168 on EZSDK 5.3.1.15