Dafang-Hacks / Main

140 stars 63 forks source link

How does getimage work? #64

Closed tachang closed 4 years ago

tachang commented 4 years ago

I am having a really hard time trying to figure out how getimage works. It kinda looks like you've patched the v4l2 code so it puts the image into the shared memory region.

And then getimage just reads it.

However the key you use is "/usr/include","x" while the getimage is just "/usr/","1" which I find odd.

Is this correct or am I missing something?

nik0 commented 4 years ago

/usr/include is used when the whole stream is outputed in memory (When the output file is set to "memory", not sure this option still exists). Anyway the image is set to shared memory in line 379 of file ImpEncoder.cpp

tachang commented 4 years ago

Thanks managed to figure it out. I am attempting to build a new project based on this and openfang to try and move things forward. Cheers.