Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Hello,
I am recently working on GPU jpeg encoding and this library offered me some great tools to accomplish my goal.
With some sort of digging on the source code, I realized there is no helper method that load image already in the memory. I would like to contribute my code to help encode raw data that already in the memory.
Notes that my method modified based on gpu_image_load_from_file, however, some of the parameters are not working exactly the same as load_from_file. But this should provide a similar way to load data into CUDA host buffer. I have tested this method on my own code and it works as I desired.
Please let me know if there is anything need to improve on this pull request, and I would like to hear your feedback.
Best,
Xuhui