Pass framesInfo to the CallBack#42
Pass framesInfo to the CallBack#42Snelius30 wants to merge 3 commits intoscijs:masterfrom Snelius30:master
Conversation
|
@Snelius30 this looks good! Could you:
Thank you! |
|
OK, will do that. |
|
Please check. |
|
@Snelius30 this looks great! Sorry, one more request. I think the ordering of the docs is a bit funny now... it might be better if it looked like this: I think the note about the 4d array is more important than the frameInfo description, so this way it doesn't get pushed to the bottom. I also think it might be better to contribute the frameInfo table to the omggif documentation, but since omggif has no documentation at the moment, I think it's ok to commit it to this README. I'd suggest opening a pull request over there with some markdown documentation though, and updating this README to link to that doc once it's accepted. |
|
I opened an issue in omggif because I want to make sure it's safe to consume this API. |
|
OK, we have corrected ordering now. I just thought that we need to explain frameInfo as mention but u right this one correction is better. |
|
Aawesome, thanks! Looks great. ✔️ I want to wait a couple of days to see if there's a response in the omggif issue thread to make sure we're doing the right thing.. Otherwise I think this is pretty good to go. I also want to make sure we're doing the right thing adding an extra argument.. are there other arguments we might also want to add in the future? |
|
Sure, you can extend CB params as u wish in future. |
|
Right, but my main concern is that we don't start adding a long series of extra params in arbitrary order. It could potentially be a better idea to use a hash param if we think the list will grow. |
|
Well, we can use a some rule. For example If argc >= 3 then we should use a hash based args. Right now i think it's ok and it can be made in future with bump major version. |
benwiley4000
left a comment
There was a problem hiding this comment.
I'll go ahead and approve this. I'll wait on @mikolalysenko to merge and release since I don't think I have release privileges anyway. In the meantime we can publish a fork to use for gif-frames.
Get frames Info from the GifReader object and pass to the CB as additional param.