-
Notifications
You must be signed in to change notification settings - Fork 47
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
Implementation for SWS scale #33
Conversation
This reverts commit 760fb8c.
Let me know when your draft is done so that I know when to start reviewing it 👍 |
done it works for my application gg, hope its fit to your needs =) |
Change scaling example to an similar libav example Update readme Add func to UpdateScalingParameters Rename AllocSwsContext to SwsGetContext Using a type for scaling algos/flags
I did some improvments based on your feedback on my hw_context pr :) Br |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR! Here's my first review 👍
Now using sws context flags Restructer sws context and adding ned simpler methods to update the ctx Update the example Update the test
ok this was a lot, hope i dont miss anything |
Get/Set source w,h,pixfmt Get/Set dst w,h,pixfmt Get/Set sws flags
I think it would also be cool to have one setter for width and height, because most of time user would be change both, currently we would call updateContext twice. func (ssc *SoftwareScaleContext) SetSourceResolution(w int, h int) error {
ssc.srcW = C.int(w)
ssc.srcH = C.int(h)
return ssc.updateContext()
}
func (ssc *SoftwareScaleContext) SetDestinationResolution(w int, h int) error {
ssc.dstW = C.int(w)
ssc.dstH = C.int(h)
return ssc.updateContext()
} I think its better to have this and not calling it twice so i add it and let me know if this ok for you =) |
Reorder flags, and update them # Update Example Use renaming function to create sws context Clean up Use new framdata image funcs # Sws scale context New way to update the context Use sws_scale_frame instead of sws_scale Reordering funcs for get and set # Sws sclate context flag Add "Flag" for algo name # Update sws test
ok done lets go to next round ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost done! 👍
Simpfy sws update Use c.int for sws flags update test
Great, I'll merge the PR and make minor adjustments 👍 |
Perfect, thank you for letting me contribute =) |
Hi
I am starting with implementation sws scale, hope we can start here as a draft so that we add this to go-astiv =)
br