Commit Graph

578 Commits

Author SHA1 Message Date
John Cupitt
d9883cbd8e cache fixups
fix various problems ... getting closer
2011-09-07 14:10:59 +01:00
John Cupitt
53b3018f41 add vipsobject cache
added the cache ... compiles, but not yet in use
2011-09-06 16:41:37 +01:00
John Cupitt
e99f6cc49e fix up VipsPool
vipspool working, test program in ~/try, passes valgrind
2011-09-06 10:37:00 +01:00
John Cupitt
b5cadc1815 move C API back to int operations
always return results through params
2011-09-05 21:28:35 +01:00
John Cupitt
b28cda68a7 TODO update 2011-09-05 18:21:21 +01:00
John Cupitt
ad016c53a2 C API supports optional output args
you can do stuff like

	int x;
	vips_min( fred, &min, "x", &x, NULL );

to get the x pos of the minimum
2011-09-05 18:16:32 +01:00
John Cupitt
4ce3346a4f VipsMin stops early if it can
if VipsMin sees a minimum value (eg. 0 for uchar) it'll stop searching
early
2011-09-05 14:10:56 +01:00
John Cupitt
7fe104fee6 support optional output args in the cli
the cli interface now supports optional output args ... C API next
2011-09-04 10:10:39 +01:00
John Cupitt
bbaef3dad1 sync 2011-09-02 18:21:28 +01:00
John Cupitt
958544e5cd sync 2011-09-02 09:10:33 +01:00
John Cupitt
07eb155462 allow optional output args
optional output args in C API startup ... need to fix up C API shutdown,
plus CLI, see TODO notes
2011-08-31 11:37:12 +01:00
John Cupitt
5b7de5e594 added VipsMin
though there's a problem with the cli interface, see TODO
2011-08-30 16:33:25 +01:00
John Cupitt
1a38d60efb check args more carefully
check input and output args have been supplied in different places ...
so ins can be all checked before outputs are made
2011-08-28 13:29:53 +01:00
John Cupitt
ac3ce8b010 add VIPS_ARGUMENT_APPEND
to give more control over arg ordering, fixes a problem in avg
2011-08-28 12:46:50 +01:00
John Cupitt
b26dcb284d sync 2011-08-27 14:03:52 +01:00
John Cupitt
7a392d4789 im_avg() is a class 2011-08-26 10:15:39 +01:00
John Cupitt
7111ff2433 version bump for next cycle
s Please enter the commit message for your changes. Lines starting
2011-08-21 18:06:19 +01:00
John Cupitt
a6255af981 sync 2011-08-17 09:25:11 +01:00
John Cupitt
11eb90cdb3 itest for C++ compiler
automatically disable C++ support if no compiler found
2011-08-16 13:26:57 +01:00
John Cupitt
3383344a31 TODO notes 2011-08-15 18:27:43 +01:00
John Cupitt
e5effaba94 oop debugging was enabled for disc write 2011-08-09 13:11:03 +01:00
John Cupitt
53589638d0 Merge remote-tracking branch 'origin/master'
Conflicts:
	TODO
2011-08-09 12:47:05 +01:00
John Cupitt
b494ce7a52 stuff! 2011-08-09 12:45:42 +01:00
John Cupitt
f5397a68af sync 2011-08-09 11:15:09 +01:00
John Cupitt
1bded6682e todo update 2011-07-29 13:24:52 +01:00
John Cupitt
8cc0d033ea allow <> enclosing argument lists 2011-07-28 12:55:54 +01:00
John Cupitt
e7dbd89938 bump version again, doc fixes 2011-07-26 22:37:03 +01:00
John Cupitt
1b5803af2e new man pages
restored and updated man.1 pages
2011-07-26 09:27:06 +01:00
John Cupitt
a92e500132 more CLI fixes
"vips add" shows output args, clearer display, spot too few args
2011-07-22 17:28:08 +01:00
John Cupitt
9627f889b0 reenable wrap7 for nicked vips7 ops
so now "vips im_subtract" gets you the old interface, "vips subtract"
the new one
2011-07-22 16:12:47 +01:00
John Cupitt
cfb076f726 make enum names work again
allow old names in enums, so edivips --format allows IM_BANDFMT_UCHAR,
VIPS_FORMAT_UCHAR and uchar
2011-07-22 15:56:31 +01:00
John Cupitt
0a4e314194 start fixing char->int enums use
oops was doing chart->int incorrectly for glib enums
2011-07-22 13:51:20 +01:00
John Cupitt
ed5cb531bd wrap7 works, for images at least
still need to add masks, doubles, strings, etc.
2011-07-18 17:10:41 +01:00
John Cupitt
681e3c893e update notes 2011-07-18 09:03:33 +01:00
John Cupitt
fde23c93ef vipsobject cleanups
vipsobject always goes via set_prop so it can work with subclasses
which override these funcs (eg. wrap7)
2011-07-17 14:36:57 +01:00
John Cupitt
e11fbbb23f move vips.c usage and nickname
wrap7 now has the old vips.c nickname maker and usage code
2011-07-16 13:33:20 +01:00
John Cupitt
03226f6f67 vips7 wrap runs
"vips list clases" now works, not tested actually supplying any args
2011-07-15 21:28:33 +01:00
John Cupitt
a9dc321afd add wrap7
add a thing to wrap vips7 functions as vips8 classes

in and in use, but not yet working
2011-07-15 14:37:20 +01:00
John Cupitt
5b97d5210a more vips7 wrapper hackery
small changes to vipsobject etc. as well ... warn on read of unset
props, for example, and dont pointlessly set the set/set ops in
subclasses
2011-07-13 14:51:02 +01:00
John Cupitt
2ee4fefa46 better temp files for im_vips2tiff() pyramids
im_vips2tiff() used to keep intermediate files in the same directory as
the destination file ... instead, make temp files using im__temp_name(),
see im_system_image().
2011-07-12 15:27:22 +01:00
John Cupitt
0f20f9152b icc import/export cast inputs 2011-07-12 14:56:58 +01:00
John Cupitt
e84640af58 im_falsecolour() does implicit conversion
convert input automatically to mono 8-bit in falsecolour
2011-07-12 13:30:25 +01:00
John Cupitt
c78e3382fc TODO notes
updated the TODO again
2011-07-08 14:28:08 +01:00
John Cupitt
6131388cc4 jpeg cmyk write was not inverting
the change to vips_sink_disc() for vips2jpeg make CMYK write fail, argh

thanks to Ole for the report
2011-07-08 11:34:26 +01:00
John Cupitt
b04daa4849 added deprecated wrapper for im_remainderconst_vec
forgot to add a dispatch wrapper for im_remainderconst_vec when we reanmed to
im_remainder_vec
2011-06-27 15:47:01 +01:00
John Cupitt
180fa919e2 blend does sizealike
added sizealike to im_blend()
2011-06-27 12:28:10 +01:00
John Cupitt
3628692799 add experimental ctypes Python binding
start hacking on a new Python interface
2011-06-17 14:50:14 +01:00
John Cupitt
3920f5dc7e get im_system_image() working again
chop stuff about to get system image working again.
2011-06-16 13:54:13 +01:00
John Cupitt
953a315755 more im_aconv() speedups
now uses rolling boxes for the vertical pass too
2011-06-09 17:53:53 +01:00
John Cupitt
ecf344ec0f more tweaks, still not working
argh, can't see the problem
2011-06-08 22:13:30 +01:00
John Cupitt
0aa9f81c30 started im_aconv()
started hacking non-separable version of im_aconvsep()
2011-06-06 17:35:32 +01:00
John Cupitt
7b6bc4267b better vips error msg
"vips mpouikh" makes a better error message
2011-06-06 12:31:12 +01:00
John Cupitt
710294f889 rename aconv as aconvsep 2011-06-04 17:44:54 +01:00
John Cupitt
56d8f75500 fix an edge problem in aconv
aconv no longer has tiling artifacts
2011-06-04 10:01:52 +01:00
John Cupitt
3fab0cbbd4 fix vips8 CLI
the vips8 CLI needed updating for the new refcount strategy
2011-06-02 15:53:30 +01:00
John Cupitt
35a7515e3f small bugfixes
various bugfixes ... nip2 runs reliably again now
2011-06-02 15:34:57 +01:00
John Cupitt
971615d6ae back to fixed refs, add a pool system instead
floating refs were very confusing and annoying, instead use simple fixed
refs and add a pool system to track refs for you

also fixed a couple of dumb errors in close callbacks
2011-06-02 12:23:56 +01:00
John Cupitt
6819919f0c im_aconv() works
got im_aconv() working, woo
2011-06-01 17:36:17 +01:00
John Cupitt
c0cbbbf415 free im_malloc() mem in postclose 2011-05-30 19:40:56 +01:00
John Cupitt
a9045c9ec3 oops vipsthumbnail needed updating 2011-05-30 11:41:02 +01:00
John Cupitt
47a3bd6689 TODO updates 2011-05-25 14:06:23 +01:00
John Cupitt
cba1ea0024 vipsobject fallback for new_from_string() as well 2011-05-25 13:43:53 +01:00
John Cupitt
1a75cf5be2 object new from string() is now a vfunc
and the inverse too ... interpolate and format need fixing still
2011-05-25 12:24:01 +01:00
John Cupitt
5492e0dbda TODO updates 2011-05-25 08:51:19 +01:00
John Cupitt
ff44680022 get the CLI working again
get the cli working with the new vfunc thing
2011-05-24 17:01:23 +01:00
John Cupitt
0b902bfbd4 make CLI arg handling into vfuncs
add vfuncs to vipsobject for the CLI interface
2011-05-24 14:44:23 +01:00
John Cupitt
26c0ce8fde fixed vips7 CLI
"vips im_add a b c" works again
2011-05-24 13:50:17 +01:00
John Cupitt
2ba39ebc23 notes 2011-05-23 21:27:33 +01:00
John Cupitt
9515c5cb06 more fixes for im_add
still getting some dangling region refs though argh
2011-05-23 18:19:20 +01:00
John Cupitt
8036dda5b7 vips8 CLI works
bugs fixed, leaks plugged, hooked up output write
2011-05-23 17:12:09 +01:00
John Cupitt
0514485fa6 functional API
make all output args created by operation, so operations are now true
functions ... means we can do memoisation

various cleanups as well
2011-05-22 17:32:57 +01:00
John Cupitt
1ad9c8a885 progress notes updated 2011-05-19 14:39:11 +01:00
John Cupitt
b6185af194 more new API hackery
added some notes ot the TODO on a more functional approach
2011-05-19 09:22:48 +01:00
John Cupitt
5b6ee532c4 oop TODO 2011-05-18 11:06:01 +01:00
John Cupitt
c4804b6fb3 argh 2011-05-17 14:45:51 +01:00
John Cupitt
dd6f0e8b4d sizealike everywhere
all ops now sizealike (I think) and docs are updated to match
2011-05-17 13:05:45 +01:00
John Cupitt
0c1034de44 vips7 has sizealike as well 2011-05-16 17:34:00 +01:00
John Cupitt
6cb6d2289b new CLI done
the new cli interface is done, try "vips add a.jpg b.jpg out.jpg", or
"vips add".
2011-05-16 17:10:08 +01:00
John Cupitt
8c6697c40a misc CLI hackery sync 2011-05-16 08:31:55 +01:00
John Cupitt
1f3f20ee4e new cli working
some final testing needed
2011-05-13 14:47:23 +01:00
John Cupitt
825280b365 more cli hackery
almost there now, parsing strings to standard types
2011-05-13 10:08:53 +01:00
John Cupitt
2a66c50410 mostly working 2011-05-11 22:07:30 +01:00
John Cupitt
db48961c46 todo updates 2011-05-09 18:28:21 +01:00
John Cupitt
e92f5ff353 README updates 2011-05-08 10:59:07 +01:00
John Cupitt
8b10aa2fe0 magick notes 2011-05-02 18:02:41 +01:00
John Cupitt
620c02a833 cleanups
small tidies
2011-04-21 09:57:04 +01:00
John Cupitt
c4f5c71507 add im_bufjpeg2vips()
add a thing to open a jpeg from a memory buffer, handy for processing
thumbnails from exif data
2011-04-20 15:23:34 +01:00
John Cupitt
efcc0c20de need private array in VipsBinary
oops
2011-04-13 17:55:58 +01:00
John Cupitt
e0d4ed89ff reorganise tools/ dir
The subdir in tools are no lonmger necessary. Also, remove ther old bin
links feature, not very useful anymore.
2011-04-06 12:06:32 +01:00
John Cupitt
8d367998c6 VipsAdd works
done VipsAdd class and made an im_add() stub for compat
2011-04-04 15:46:57 +01:00
John Cupitt
db41b6ac4e add VipsOperation
abstract base class for all operations goes in
2011-03-29 12:12:20 +01:00
John Cupitt
4120f7b296 cleanup util
just a few little things left, yay
2011-03-28 16:03:31 +01:00
John Cupitt
c7b74f620f yet more cleanups
just util.c left now, woo
2011-03-28 14:57:43 +01:00
John Cupitt
b13872f111 clean up sink
common up some stuff in the sinks
2011-03-28 14:08:42 +01:00
John Cupitt
59f88260d6 oops png gamma on save
the gamma on save was set to 1.0, incorrectly
2011-03-28 11:53:39 +01:00
John Cupitt
9c10f10eaf oops sense swapped in typeof
argh, nip2 passes test suite now
2011-03-28 11:38:26 +01:00
John Cupitt
5e8121321d written callbacks can fail
written callbacks now take a status return argument, so we can error for
"vips im_copy fred.jpg /jim.jpg", phew
2011-03-24 11:21:24 +00:00
John Cupitt
0b9189b2ef support old header names
vips_image_get_int() and friends let you use the old header names eg.
"Xsize"
2011-03-23 14:44:20 +00:00
John Cupitt
1135e553f3 fix up header stuff
clean up the main header functions
2011-03-23 14:25:34 +00:00
John Cupitt
9f3c8d468a better image header print
"header" now shows all fields
2011-03-22 14:52:12 +00:00