Page 1 of 1

No callbacks from V3.0.6

Posted: 08 Feb 2019 18:44
by scott14468
Hi All,
I've copied the program from this post: https://stackoverflow.com/questions/264 ... ay-a-frame, made a few modifications for my camera. It compiles and runs OK, but there are no cbVideoPrerender or cbVideoPostrender call backs. I do get HandleEvent calls and there is a Direct3D11 output window with live video.

From cruising around the web, I suspect there shouldn't be the Direct3D11 window in favor of returning frames to opencv to display. Is this correct?


Thanks,
Scott

Re: No callbacks from V3.0.6

Posted: 10 Feb 2019 22:04
by Jean-Baptiste Kempf
What are you trying to do?

Re: No callbacks from V3.0.6

Posted: 11 Feb 2019 13:21
by scott14468
Hi Jean-Baptiste,

Thanks for your reply.

Here's the background. We have created a UVC camera using the Cypress CX3 chip. The sensor we're using cannot stream YUYV data, it only outputs a Bayer RGB pattern. To get the CX3 to transport this data, we must fool the system by setting the USB attributes to believe the stream is in YUY2 format. This gets the data across, but of course the system tries to decode the stream as if it is YUY2. Due to the clipping in the conversion the transform is not reversible so I cannot reconstruct the incoming Bayer pattern.

So what I'm trying to do is get the incoming (unaltered) Bayer-formatted stream and send it to an OpenCV window for color-correct rendering.

Thanks,
Scott

Re: No callbacks from V3.0.6

Posted: 16 Feb 2019 11:07
by Jean-Baptiste Kempf
You should use the API to get this, not set the callbacks on commandline.

Re: No callbacks from V3.0.6

Posted: 18 Feb 2019 13:21
by scott14468
A little detail would be great.

Scott

Re: No callbacks from V3.0.6

Posted: 18 Feb 2019 18:08
by Jean-Baptiste Kempf
See the libvlc_video_set_callbacks documentation