leadedge / ofxNDI

An Openframeworks addon to allow sending and receiving images over a network using the NewTek Network Device Protocol.
GNU General Public License v3.0
134 stars 48 forks source link

Default case #31

Closed dimitre closed 2 years ago

dimitre commented 2 years ago

so it doesn't complain about missing NDIlib_frame_type_max in switch

leadedge commented 2 years ago

Mistakenly omitted. Easy fix.

leadedge commented 2 years ago

I have updated the "Testing" branch with revised code that covers all these suggestions.

Due to increased interest in 4K images I have restored conversion by shader from RGBA to YUV422 which improves sender performance significantly.

There are no compiler errors or other issues for Windows, so it would be a great help if you you are able to try this to find any issues before commit to Master.

dimitre commented 2 years ago

I've finally checked out Testing branch, thank you for all your effort. I'm now commenting out io.h and changing _access to

        if (ofFile::doesFileExist(shaderpath.c_str())) {

to test it here

leadedge commented 2 years ago

OK no problem. I have used _access forever. If I understand it correctly, we don't need to create the full path and should be able to have -

if (ofFile::doesFileExist("/shaders/rgba2yuv/")) {

leadedge commented 2 years ago

Changes made and checked