Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update HDRImage class #9

Open
RenatoUtsch opened this issue Apr 26, 2016 · 4 comments
Open

Update HDRImage class #9

RenatoUtsch opened this issue Apr 26, 2016 · 4 comments

Comments

@RenatoUtsch
Copy link
Member

Update HDRImage class on the compiler, because a new constructor and a new toBitmap() functions were added to the source.

@wcmjunior
Copy link
Member

It should be a rule for all user library collections: a method that allows the user to use an existing object in output bind operations would help increasing user application performance. BitmapImage and Array classes should be refactored (and also the compiler) to support such feature.

@RenatoUtsch
Copy link
Member Author

+1

@wcmjunior
Copy link
Member

wcmjunior commented Aug 1, 2016

Feature added in one of my many commits last week. It is now possible to provide an existing array of primitives or Bitmap object and output bind operations will fill this existing object like in the following example:

int[] foo = new int[10];
// once array represents a 10 element array, this method call will only fill foo array
array.toJavaArray(foo); 
int[] foo = new int[10];
// this call will subscribe foo array with a fresh memory allocation
foo = array.toJavaArray(); 
// this call will create foo array
int[] foo = array.toJavaArray(); 

Even though this implementation is done in the compiler, we must check if the user library supports all these features for sequential code.

@wcmjunior
Copy link
Member

wcmjunior commented Aug 1, 2016

Anyone willing to test the examples in previous comment in the user library pure java (sequential) version is welcome.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants