zjlyou / openjpeg

Automatically exported from code.google.com/p/openjpeg
Other
0 stars 0 forks source link

Add buffer stream interface #504

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
This needs to be done inside the library, rather than be left up to the user, 
for performance reasons:

File based stream interface keeps a small buffer that it copies bytes into/ 
writes bytes out of. If we are streaming from a buffer, then there is no need 
for this small buffer - we can use the input buffer itself
for this, and save a memcpy.

This should reduce some of the memory traffic.

Original issue reported on code.google.com by boxe...@gmail.com on 7 Jun 2015 at 11:40

GoogleCodeExporter commented 8 years ago
HI Aaron, 

If I'm not mistaken, you've got an implementation in one of your GitHub branch ?
So do I but only for input stream at the moment.

I'm waiting for a full transition to GitHub to do more on this. 

Original comment by m.darb...@gmail.com on 8 Jun 2015 at 7:59

GoogleCodeExporter commented 8 years ago
Yes, I have an implementation. Let's discuss further when Github transition is 
complete.

Aaron

Original comment by boxe...@gmail.com on 9 Jun 2015 at 2:14