This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Capture port: FVID2_dequeue question

Other Parts Discussed in Thread: TVP5158

Dear Sirs,

I have referred VPSS sample code and understood that FVID2_dequeue could get frameList including all of channel image (channel0~3, using tvp5158).

Now, I use tvp5158 and want to get separate channel image with difference frameList.

For example:

FVID2_dequeue(channel0_Handle, &frameList0, 0, BIOS_NO_WAIT ) to get only channel0 image.

FVID2_dequeue(channel1_Handle, &frameList1, 0, BIOS_NO_WAIT ) to get only channel1 image

FVID2_dequeue(channel2_Handle, &frameList2, 0, BIOS_NO_WAIT ) to get only channel2 image

FVID2_dequeue(channel3_Handle, &frameList3, 0, BIOS_NO_WAIT ) to get only channel3 image

Does it work? If it does, how to do it?

(When FVID2_create, to set createArgs. How to set it?)

Thank you.

Kuve

  • Hi,

    This is true, when you call FVID2_dequeue for a specific handle, it will dequeue frames for that handle only.

    Call FVID2_create for each instance and get the separate handles for each instance.

    Thanks,

    Brijesh Jadav

  • Hi Brijesh,

    I know I can use one handle to get 4 camera streams for VIP0-A.

    But now I want to use 4 handle to get 4 camera stream to conveniently arrange different camera streams on my application.

    Because I don't want to sort frame's channel number in one frameList, I just use different frameist to get different camera stream.

    Finally, I think it is not possible to achieve my goal. (I can't use 4 frameList to get 4 camera streams with one tvp5158 on VIP port0.)

    Thank you for your reply.

    Kuve

    Ps. I observe FVID2_dequeue frameList from capture driver and it isn't necessarily containing 4 frames(channel0~3). This frameList sometime only contain 3 frames, then 1 frame.

  • Hi,

    You should be parsing framelist->frames[x]->channelNum to get the frame channel. There is no way you can get frames in sequence of all frames from same port in single dequeue call. This is because frames from different source may not be synchronized.

    Regards,

    Hardik Shah