bytedeco / javacv

Java interface to OpenCV, FFmpeg, and more
Other
7.39k stars 1.56k forks source link

The recorder should be designed with multiple ways to handle frames #2241

Open daodol opened 2 weeks ago

daodol commented 2 weeks ago

hi,The javacv framework should be a kind of wrapper for OpenCV.And off-heap memory should be used to the maximum image But in the diagram above, in order to adapt to the outputstream. JVM memory is used, which can put pressure on the JVM if the data stream is large

saudet commented 2 weeks ago

Contributions are welcome! Please open a pull request with your proposal

daodol commented 2 weeks ago

Contributions are welcome! Please open a pull request with your proposal

Make the callback method public and let the user decide what to do with the data, rather than binding the outputstream Wouldn't that make more sense?