-
-
Notifications
You must be signed in to change notification settings - Fork 646
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
Fix for --disable-deprecated (#1273) #1593
Conversation
This PR is almost done, the whole mosaicing folder was converted to vips8 with commit 2105b76. I'm still working out a few kinks, but feel free to review/comment. Possible further improvements has been preceded by There's now a unit test for I also added a new vips8 class named |
Fixed with 5b1b8cd. |
This comment has been minimized.
This comment has been minimized.
Ignore my previous comment, it looks like non-assigned inputs (i.e. input that is not explicitly assigned by the user) are automatically finalized, TIL. So for example the libvips/libvips/resample/resize.c Lines 267 to 271 in e1baf66
Is correct, but not necessary if you do this in |
Hello Kleis, yes, I think the verb form is usually better, so Actually, we have |
b35e05c
to
3836492
Compare
OK, I cleaned up the commits and renamed it to This is now ready for reviewing. The mosaic changes are very large, so I think it's wise to fuzz it for a few days before the 8.10 release. As an aside, I noticed that the
|
Ooop, you're fight, it was missing minimise support. It should be fixed now. Well done on getting all this refactoring sorted out Kleis! I'll try to read it all next week, then perhaps we can aim for July for the 8.10 release. |
@@ -43,26 +43,29 @@ | |||
#include <vips/internal.h> | |||
#include <vips/transform.h> | |||
|
|||
/* DBL_MIN is smallest *normalized* double precision float */ | |||
#define TOO_SMALL 2.0 * DBL_MIN |
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.
Should be (2.0 * DBL_MIN)
@@ -24,7 +24,7 @@ SUBDIRS = \ | |||
iofuncs \ | |||
morphology \ | |||
mosaicing \ | |||
create | |||
create \ | |||
. |
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.
That's weird, I wonder why "." was here? Let's remove this later.
/* Older glibs were showing G_LOG_LEVEL_{INFO,DEBUG} messages | ||
* by default | ||
*/ | ||
#if GLIB_CHECK_VERSION ( 2, 31, 0 ) |
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.
Oh, nice!
/*NOTEACHED*/ | ||
} | ||
|
||
return( 0 ); | ||
} | ||
|
||
static int | ||
vips__transposematrix( VipsImage *in, VipsImage **out ) |
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.
Perhaps should be matrixtranspose, though it doesn't really matter in a static.
OK, I read the whole thing, nice work! You found a lot of useful small fixes too, and even fixed some spelling. I wonder how useful some of that old mosaicing stuff is. Nicos wrote most it back in the early 90s. Perhaps it should be moved out of the core library? That's another question I suppose. Anyway, it looks great, let's merge. |
- move matrixinvert to mosaicing, fix a leak - add note to changelog - small fixes see #1593
I moved matrixinvert to mosaicing ( |
Thanks! The mosaicing stuff could still be useful for museums, but I'm not sure if it's often used. Perhaps Operation Night Watch uses this? Could the libvips/libvips/create/create.c Line 172 in e3a5002
The Line 212 in 5540fa9
(It should be much easier with these instructions now) |
OK, done! |
I had a go to check the ABI compatibility after this PR, see the I guess we still have to write some vips7 compat wrappers for the |
If you have time, that would be great! We'll need to make |
OK, I started to rework I'm not sure if I should rework |
Ah I'd actually forgotten about them, heh. That was a while ago. Yes, you're right, Shall I do this? I wonder if |
Off-topic: I had a go at a first draft of "what's new in 8.10": https://github.com/libvips/libvips/blob/whatsnew-8.10/_posts/2020-06-18-What's-new-in-8.10.md Any comments very welcome etc. |
I agree, lets make I've already prepared the vips7 compat wrapper functions, see: master...kleisauke:mosaicing-vips8. ABI compatibility looks OK now, only some internal API symbols have been removed. Feel free to mark those mosaicing functions as internal, I can do a rebase after that. |
OK, I'll shift them to internal-only. Thanks for the note about the changelog, I've fixed that too. |
If the Windows release will default to libspng for loading PNGs it would mean a lot if it was mentioned in the changelog or blogpost. |
Good idea @randy408, I'll add a note. |
Marked this PR as draft since the whole mosaicing folder has yet to be converted to vips8.This PR resolves #1273 and #798.