Commit Graph

397 Commits

Author SHA1 Message Date
John Cupitt 2d30264840 redo boolean as a class 2011-11-12 14:11:46 +00:00
John Cupitt 3c608233e5 moved remainder over to a class 2011-11-12 13:29:32 +00:00
John Cupitt 827e5311c1 finish unaryconst, move relational to it 2011-11-11 21:54:45 +00:00
John Cupitt d9e2920cf8 started adding unaryconst operators 2011-11-11 14:44:35 +00:00
John Cupitt 26ae049d91 redo binary relational as a class 2011-11-11 13:45:12 +00:00
John Cupitt 8fe50220d5 move mask/ to deprecated, add VipsRound 2011-11-10 13:53:58 +00:00
John Cupitt f79bb525f5 rewrite im_recomb() as a class 2011-11-09 14:48:38 +00:00
John Cupitt 6631fab25c small bugfixes 2011-11-09 12:33:57 +00:00
John Cupitt 7a42449868 finish VipsMeasure
plus a fix to operation.c
2011-11-09 10:17:40 +00:00
John Cupitt 13d90ef660 started redoing im_measure
added a convenience fn to get the 'assigned' state of an arg
2011-11-09 07:12:50 +00:00
John Cupitt 62859facd4 VipsStats tracks minpos/maxpos
plus some small bugfixes
2011-11-08 21:50:19 +00:00
John Cupitt cb5f199f1c misc big fixes 2011-11-08 18:36:33 +00:00
John Cupitt ff2e7b26de im_stats() redone as a class 2011-11-08 18:18:42 +00:00
John Cupitt 90849a44c5 sync 2011-11-08 14:46:50 +00:00
John Cupitt 9493ea7e29 sync 2011-11-08 09:06:13 +00:00
John Cupitt 844ee2c13f add stats.c 2011-11-07 14:53:18 +00:00
John Cupitt cb753e16fa oops, dropped im__value() 2011-11-07 14:21:26 +00:00
John Cupitt cb6bd4f85f small improvement to avg/deviate 2011-11-07 10:48:38 +00:00
John Cupitt c80a19747f im_multiply() redone, fixes to max/min 2011-11-07 09:42:44 +00:00
John Cupitt e5b5bed428 im_divide() -> VipsDivide 2011-11-06 22:24:42 +00:00
John Cupitt 1fd1559bb5 redo im_deviate() as a class 2011-11-06 17:59:07 +00:00
John Cupitt 77d386cdaf redo im_max()/im_maxpos() as classes 2011-11-06 17:00:44 +00:00
John Cupitt 18a969c2f8 redo im_sign() as a class 2011-11-06 12:57:13 +00:00
John Cupitt 11d0a28ccb redo im_abs as a class 2011-11-06 11:54:52 +00:00
John Cupitt b668879856 remove the old vips7 trig operations 2011-11-04 18:28:22 +00:00
John Cupitt 020073606f add classes for all the math functions 2011-11-04 17:55:06 +00:00
John Cupitt 4c74266017 remove 1-ary path in VipsLinear
the many-constant path is no slower, just keep that
2011-11-01 12:14:35 +00:00
John Cupitt 5a73f0dede vector to ink is all new-style
final bit of vips7 api use removed from vips8 ops
2011-11-01 09:43:15 +00:00
John Cupitt c673bd139b oops, double/object confusion
C API to VipsLinear was broken
2011-11-01 09:24:43 +00:00
John Cupitt 735749a4a2 add VipsLinear
remove im_lintra*(), redone as a class
2011-10-31 14:25:27 +00:00
John Cupitt 55aab0236f started VipsLinear 2011-10-31 09:23:43 +00:00
John Cupitt c2efba5162 invert works for all formats 2011-10-31 09:04:59 +00:00
John Cupitt b4531ff24b add unary and invert
add a base class for unary operators, try it out with VipsInvert
2011-10-30 21:45:18 +00:00
John Cupitt 12a13d3e39 oops, forgot a _ref() 2011-10-30 21:20:16 +00:00
John Cupitt e14c5607b1 refactor ready for unary arithmetic
move most of the logic in binary.c into arithmetic.c ready to share with
unary
2011-10-30 18:31:45 +00:00
John Cupitt 441ae2305e sync 2011-10-28 17:36:20 +01:00
John Cupitt 5ad2861b30 initial insert hack 2011-10-20 11:22:49 +01:00
John Cupitt 26792ed4e1 bugfixes
get the new arg system working
2011-10-16 17:48:28 +01:00
John Cupitt 8dfb3056ac added VipsEmbed
added VipsEmbed class, new macros for arg boilerplate, new priority
thing for arg ordering
2011-10-16 14:48:47 +01:00
John Cupitt 4d63d5a359 VipsCopy can byteswap 2011-09-30 18:51:36 +01:00
John Cupitt 952199e92a add VipsCopy
add a basic VipsCopy operation, also demand_hint is now void
2011-09-29 13:34:14 +01:00
John Cupitt ae8faf6597 remove dmalloc support
we never used it and valgrind etc. is better anyway
2011-09-23 17:12:47 +01:00
John Cupitt 9c84b0dfd9 add vips_tracked_malloc()
new malloc()/free() pair do tracked allocations ... use g_new()/g_free()
everywhere else
2011-09-21 14:50:32 +01:00
John Cupitt 774d86234c oops bad varargs use 2011-09-06 10:35:49 +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 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 5b7de5e594 added VipsMin
though there's a problem with the cli interface, see TODO
2011-08-30 16:33:25 +01:00
John Cupitt 2909cb93a4 add a 'stop' param to generate
generate now has a 'stop' param, set this to indicate early successful
termination

this will be used by VipsMin and friends to stop scanning early for
conditions like seen a 0 in a uchar image while searching for min
2011-08-29 14:29:33 +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 7a392d4789 im_avg() is a class 2011-08-26 10:15:39 +01:00
John Cupitt ae016dd408 turn im_subtract() into a class 2011-08-23 20:56:35 +01:00
John Cupitt eda7a9d9d7 fixes to get win32 building 2011-07-26 16:40:26 +01:00
John Cupitt 580536e412 indent class lists
"vips list classes" now indents the class lists by structure
2011-07-16 11:26:24 +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 f69168fc04 gobject-introspection compiles
we now mostly compile cleanly, woo
2011-06-22 12:17:43 +01:00
John Cupitt f94541ba64 more introspection hackery 2011-06-21 14:41:38 +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 77caf201f1 vipsobject has floating refs
derive from GInitiallyUnused to get floating refs
2011-05-19 14:35:51 +01:00
John Cupitt efe1a19598 functional vipsoperation
vipsoperation now mostly creates output objects for you
2011-05-19 13:48:09 +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 79a7a37d71 create output images in _build()
new idea: output image get made in _build(), we copy them out after
calling the operation's build, see TODO

vips_image_new() param removed, it just always makes "p" images now
2011-05-18 11:03:31 +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 9afe09a68f better bool CLI options 2011-05-17 11:35:29 +01:00
John Cupitt bc4accfc48 added sizealike
binary.c now does sizealike, so images no longer have to match exactly
in size for binary operations
2011-05-16 17:25:26 +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 860a04a882 add optional args for testing
arithmetic now has optional bool and im args for testing operation
interfaces
2011-05-12 11:02:19 +01:00
John Cupitt 81b68ec979 rename arith args
args should be nmaed without hypens, since they may become variable names
2011-05-12 10:36:28 +01:00
John Cupitt efcc0c20de need private array in VipsBinary
oops
2011-04-13 17:55:58 +01:00
John Cupitt 42a9b2c3d0 rename arith header to avoid confusion 2011-04-05 21:36:00 +01:00
John Cupitt e3f18fb9d1 compiles phew 2011-04-05 17:02:12 +01:00
John Cupitt 75d209fd2c hackery
ops, half-done
2011-04-05 14:46:17 +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 ce03da8c71 now compiles with new add.c
compiles, but not tested
2011-04-02 16:39:20 +01:00
John Cupitt 370641d25b stuff
oops argh
2011-04-01 15:11:59 +01:00
John Cupitt 3e112602f2 vector im_add was broken for int/uint
oops, im_add() with Orc was broken for uint and uint. Added more tests
to nip2 to pick this up earlier in future.
2011-02-28 11:15:09 +00:00
John Cupitt 1aea6a1347 gtkdoc for mosaicing 2011-01-25 13:12:22 +00:00
John Cupitt ceb3a6ec5c morph done phew 2010-11-12 11:47:24 +00:00
John Cupitt 379f9ad4c9 disable orc for im_add uint/int 2010-11-06 17:44:20 +00:00
John Cupitt a52d9736d2 enable vec for 16/32-bit int add 2010-11-05 14:48:44 +00:00
John Cupitt 526590d244 fix vector stuff 2010-11-05 10:52:29 +00:00
John Cupitt 3dfc8d8ee2 stuff 2010-11-04 17:30:49 +00:00
John Cupitt 5bedec65da argh 2010-11-04 14:54:23 +00:00
John Cupitt f930fe061b use names less in orc 2010-11-04 13:50:20 +00:00
John Cupitt f3b5bfde80 merge orc branch 2010-11-01 17:46:47 +00:00
John Cupitt 0d2bdac332 gtk-doc fixes 2010-10-22 13:49:36 +00:00
John Cupitt 60280aa318 various cleanups, remove liboil 2010-07-31 10:35:57 +00:00
John Cupitt 030a567f79 stuff 2010-07-29 08:39:04 +00:00
John Cupitt 75fdc5ae4e moreconst fixes, sinkdisc fixes, constant vector clip added 2010-06-23 15:45:43 +00:00
John Cupitt b4925940fb add German translation 2010-05-24 10:05:59 +00:00
John Cupitt 3a9f0d50fa remove im_iterate() uses 2010-04-19 11:00:28 +00:00
John Cupitt e79555000b im_ri2c() gtkdoc 2010-02-01 17:25:27 +00:00
John Cupitt d5a4ecb767 gtkdoc im_extract 2010-01-29 13:40:27 +00:00
John Cupitt 14516e72d3 conversion gtkdocs 2010-01-28 16:05:57 +00:00
John Cupitt 79c050c814 added vips_bandfmt_*() 2010-01-26 21:28:33 +00:00
John Cupitt 6d05b16923 7.16 compat whoops 2009-12-08 09:27:24 +00:00
John Cupitt c2a4908d43 stuff 2009-11-07 21:33:07 +00:00
John Cupitt ba0d928885 stuff 2009-11-04 12:49:10 +00:00
John Cupitt f18a3ccdc7 added im__colour_binary 2009-10-30 18:39:58 +00:00
John Cupitt 3fdee44694 stuff 2009-10-03 14:15:24 +00:00
John Cupitt ce4ed9d2bf added im_flood_other(), better check() functions 2009-09-28 17:03:52 +00:00
John Cupitt 150865045f stuff 2009-09-24 16:20:12 +00:00
John Cupitt eae80d2bb4 arith_binary_const whoops 2009-09-22 16:51:04 +00:00
John Cupitt 0b94dc67bd vector whoops 2009-09-22 12:44:43 +00:00
John Cupitt f9556d7198 stuff 2009-09-22 08:19:04 +00:00
John Cupitt af1cb6e7ad stuff 2009-09-21 16:39:41 +00:00
John Cupitt b628642f4a fix im_errormsg() calls 2009-09-21 15:50:29 +00:00
John Cupitt ea2285f315 stuff 2009-09-20 16:42:08 +00:00
John Cupitt 8d7071c0a2 add power.c replacing im_powtra.c/im_expntra.c 2009-09-20 16:23:14 +00:00
John Cupitt 4ee4fe13a9 common up round operations 2009-09-19 11:13:28 +00:00
John Cupitt 86dd11880d math.c tidies 2009-09-19 10:59:20 +00:00
John Cupitt 2d9ba8422c stuff 2009-09-19 10:58:25 +00:00
John Cupitt 9a7d34fb10 stuff 2009-09-19 10:38:17 +00:00
John Cupitt 5b4c56c53f stuff 2009-09-19 10:36:34 +00:00
John Cupitt f9fcb97fd4 boolean revised 2009-09-17 16:03:25 +00:00
John Cupitt 4e2cb87524 boolean revised 2009-09-17 15:47:40 +00:00
John Cupitt c6418893eb stuff 2009-09-17 08:51:37 +00:00
John Cupitt 21ec53fda9 stuff 2009-09-09 16:09:21 +00:00
John Cupitt 6026a0282d stuff 2009-09-09 13:57:17 +00:00
John Cupitt e319f251b0 stuff 2009-09-09 13:41:14 +00:00
John Cupitt f705d28a66 im_rint(), im_sign() done 2009-09-09 09:54:02 +00:00
John Cupitt 1c8434e51b oops2
2
2009-09-09 09:37:09 +00:00
John Cupitt ad6bb5d67f add im_point() 2009-09-09 08:54:10 +00:00
John Cupitt 94eaae68ef new im_maxpos_avg() 2009-09-08 20:32:24 +00:00
John Cupitt 6bd95a7db2 im_min() fix 2009-09-08 18:31:53 +00:00
John Cupitt ffea411943 im_minpos() and im_min() rewrite 2009-09-08 16:57:34 +00:00
John Cupitt 155cf95543 partial im_maxpos 2009-09-08 16:32:55 +00:00
John Cupitt 5901a7ca87 im_stats() and im_deviate() done 2009-09-08 11:25:38 +00:00
John Cupitt f302d023db stuff 2009-09-07 22:15:48 +00:00
John Cupitt 42dbc81827 stuff 2009-09-07 17:05:19 +00:00
John Cupitt 616bb9ab7f stuff 2009-09-07 08:06:53 +00:00
John Cupitt 3a8a264578 more 2009-09-02 20:37:40 +00:00
John Cupitt e443f53b97 added deprecated package 2009-09-02 20:15:15 +00:00
John Cupitt 72e9094048 more gtkdoc 2009-09-02 15:34:21 +00:00
John Cupitt 6e2679ba5b gtkdoc stuff 2009-09-01 15:52:11 +00:00
John Cupitt b5f2c3e86d im_stats fix 2009-09-01 14:16:32 +00:00
John Cupitt b2fc33313e stuff 2009-08-31 19:59:11 +00:00
John Cupitt f0bbbbaf77 stuff 2009-08-27 13:07:58 +00:00
John Cupitt 876a7ff2af stuff 2009-08-22 09:41:37 +00:00
John Cupitt 641c7fa430 stuff 2009-08-20 08:06:25 +00:00
John Cupitt 0660bd1400 more stuff 2009-08-18 15:24:56 +00:00
John Cupitt af3489558e doc fixes, new im_subtract 2009-08-18 14:12:12 +00:00
John Cupitt 97f1c38bef patch im_check_ back 2009-08-18 11:30:47 +00:00
John Cupitt ec73347f59 more gtkdoc 2009-08-17 16:16:31 +00:00
John Cupitt 4e76695e19 merge gtkdoc branch 2009-08-16 15:00:08 +00:00