libvips/TODO

263 lines
7.1 KiB
Plaintext
Raw Normal View History

- started adding
2008-11-17 23:56:16 +01:00
#define IM_TYPE_GOBJECT "gobject" /* A GObject of a specified class */
2008-11-28 17:26:33 +01:00
2008-11-20 13:04:45 +01:00
- make a "deprecated" package too
- im_affinei and im_affinei_all need docs
2008-11-28 23:38:40 +01:00
- all the interpolators
2008-11-17 23:56:16 +01:00
want bicubic args to be
IM_GOBJECT( "VipsInterpolate", "interpolate" );
ie. pass a gobject which is a sub-type of VipsInterpolate in an arg called
"interpolate"
then we need to create an object of that class, get the param list, set from
any args, call object_init, and pass
on return, unref the object
so
im_affinei_all in.v out.v "yafrsmooth(2.4)" 0.9 0 0 0.9 0 0
creates a yafrsmooth, sets the param,
in nip2,
2008-11-17 23:56:16 +01:00
inter = g_object_new "VipsInterpolateBicubic" [$sharpness => 2.4];
2008-11-17 23:56:16 +01:00
also need something to return a list of GTypes below a name etc., find class
description:w
need k
- make a new package for "resample"? im_shrink & friends could go in there too
- how to expose things like yafrsmooth's "sharpening" parameter to
nip2/C++/Python?
2008-11-20 13:04:45 +01:00
can we write a find-by-nickname function? eg.
2008-11-17 23:56:16 +01:00
2008-11-20 13:04:45 +01:00
GType vips_get_type (const char *base, const char *nickname)
2008-11-17 23:56:16 +01:00
2008-11-20 13:04:45 +01:00
then
2008-11-17 23:56:16 +01:00
2008-11-20 13:04:45 +01:00
vips_get_type ("VipsInterpolator", "bicubic")
2008-11-17 23:56:16 +01:00
2008-11-20 13:04:45 +01:00
would get us the GType for VipsInterpolatorBicubic
2008-11-17 23:56:16 +01:00
2008-11-20 13:04:45 +01:00
- redo the format system in this way too?
2008-11-17 23:56:16 +01:00
2008-11-20 13:04:45 +01:00
need a way to init a package: the init would register all the types that
package uses to they appear to introspection
2008-11-17 23:56:16 +01:00
2008-11-20 13:04:45 +01:00
- how to expose things like yafrsmooth's "sharpening" parameter to
nip2/C++/Python?
2008-11-17 23:56:16 +01:00
2008-11-20 13:04:45 +01:00
look at vips8, can we use the parameter code there?
2008-11-17 23:56:16 +01:00
2008-11-20 13:04:45 +01:00
would need to be added to VipsObject I guess
2008-11-17 23:56:16 +01:00
2008-10-20 19:10:40 +02:00
- vips_object_print, set_name etc. need writing
2008-10-20 23:42:46 +02:00
- im_buf_t -> VipsBuf
now always included in vips.h
2008-10-20 19:10:40 +02:00
- build nip2
- check mosaic1, global_balance, similarity etc. use of im__affine
how can we move them to im_affinei ?
- rename Transformation -> Transform
2008-10-11 23:29:16 +02:00
- update the Portfiles on the mac and on the website from the macports ones
2008-08-21 10:32:24 +02:00
2008-10-19 22:25:48 +02:00
- im_render should use a hash for tile lookup ... or+shift x/y together
- bilinear should be a true subclass of interpolate ... and put the tables
into the base class
- add 'name' to vipsobbject, and vips_object_print() ... handy for debugging
make 'print' into a virtual method so subclasses can add stuff if they want
2008-10-11 23:29:16 +02:00
WONTFIX for 7.16
================
2008-08-21 10:32:24 +02:00
2008-10-11 23:29:16 +02:00
- we shouldn't need to call im_invalidate() in gtkdisp4 :( how can we fix
this?
2008-08-21 10:32:24 +02:00
2008-10-11 23:29:16 +02:00
will im_invalidate() trash the render cache too?
2008-08-21 10:32:24 +02:00
2008-10-11 23:29:16 +02:00
- we should wrap the format API, also im_render*(), see gtkdisp.cc for sample
code
2008-08-21 10:32:24 +02:00
2008-10-11 23:29:16 +02:00
- have a base VObject class and put the ref stuff in there ... share between
VMask, VDisplay, VImage
2008-08-19 10:01:23 +02:00
2008-10-11 23:29:16 +02:00
- need an im_init_world() for C++ which does cmd-line args too, so C++ progs
can get --vips-progress and stuff automatically
2008-08-19 10:01:23 +02:00
2008-10-11 23:29:16 +02:00
- examine yafr and add as another interpolation option for im_affine
2008-08-16 19:03:45 +02:00
2008-10-11 23:29:16 +02:00
- how much slower wouuld we get if we did a function call + switch for
interpolate in im_affine()? it would let us break out the interpolation
stuff from the transformer
2008-08-15 23:45:18 +02:00
2008-10-11 23:29:16 +02:00
- we need another version of im_affine() with an 'interpolate' option :-(
2008-08-15 10:40:05 +02:00
2008-10-11 23:29:16 +02:00
or maybe have im_interpolate_t as another object which we pass to
im_affine()
2008-08-15 10:40:05 +02:00
- more cleanups to the handling of vips format images, esp. we have vips write
spread across many files atm
- could remove a lot of crappy old API
- it'd be nice to handle vips format images in the same im_format system, but
it's not clear if this is possible
2008-08-24 11:46:10 +02:00
- add new type names, eg. im_region_t, im_image_t etc. and deprecate old
2008-08-17 13:28:52 +02:00
names?
2008-05-12 20:16:38 +02:00
- try
libsrc/convolution$ grep -l offsets *.c
could we do the don't calc offsets thing unless bpl; changes thing in more
places?
2008-06-24 12:37:54 +02:00
- unsharp should work on GREY16? should be easy to add GREY16->LABS
2008-02-29 19:37:05 +01:00
no, labs is signed short, ranges are all differrent, and the scaling will be
wrong anyway
correct: import with ICC to labs, then process, then export to RGB, take
green?
yuk, can we add a 16bit path to vips's lab <--> rgb converter?
2008-04-02 20:19:35 +02:00
use TIFF RGB16 as the 16bit RGB target
im_XYZ2disp() would be easy to 16bit ... just need the 1,500 element table
table->t_Yr2r[i] expanded
im_disp2XYZ() uses im_col_rgb2XYZ() in a loop ... again, need
the 1,500 element table table->t_r2Yr[i] expanded
usually these three tables (t_r2Yr, t_g2Yg, t_b2Yb) will be identical, can
we common them up? same for t_Yr2r etc.
how big should the table be for 16 bits? 256 times larger? too big!
2008-04-23 14:17:26 +02:00
we really just need a LUT for pow() with the right exponent, eg. 2.4 for
2008-04-02 20:19:35 +02:00
sRGBs, and one for 1/2.4 ... see what calcul_tables does:
table->t_r2Yr[i] = yo + a * pow( i * table->ristep / f + c, ga );
see
- test maxpos_avg, quite a few changes
2008-02-17 08:53:02 +01:00
- HAVE_HYPOT could define a hypot() macro?
2007-10-31 18:13:22 +01:00
2008-02-17 08:53:02 +01:00
- im_exr2vips can now use c++ api
2007-08-29 18:23:50 +02:00
2008-10-11 23:29:16 +02:00
see TODO notes in openexr read (though they all need more openexr C API)
consider openexr write
2007-08-29 18:23:50 +02:00
- python startup fails with plugins in vipslib:
Fatal Python error: can't initialise module vips
plugin: unable to open plugin "/home/john/vips/lib/resample.plg"
plugin: /home/john/vips/lib/resample.plg: undefined symbol: im_start_one
do we need to build plugins with -rpath etc. and more libs?
or do we need to make sure our python modules export all their im_ symbols?
2008-01-16 16:18:21 +01:00
check:
http://www.swig.org/Doc1.3/SWIGDocumentation.html#Python_nn8
http://docs.python.org/dist/dist.html
2008-02-17 08:53:02 +01:00
- write our own python extension to call a vips operation by name
result = vips_call ("name", args)
then call that from VImage_method
- do we really need VImage_method? Can't we write
__getattr__ (self, name) = lambda (obj_to_call, arguments):
or something like that?
2007-08-29 18:23:50 +02:00
- TIFF load/save should use meta system for unknown tags
- balance should use new meta stuff
- magick2vips should spot ICC profiles and attach them as meta
2008-03-31 19:51:24 +02:00
- also png2vips?
2007-08-29 18:23:50 +02:00
- magick should set some header field for n_frames and frame_height? see also
analyze
- im_csv2vips() could use "-" for filename to mean stdin
but then we'd have to read to a malloced buffer of some sort rather than an
image, since we might need to grow it during the read, since we couldn't
then seek
- add erode/dilate 3x3 special case using a 512-bit LUT
... nope, actually slower :-( we end up doing an inner loop like
for( i = 0; i < 9; i++ )
bits |= (p[o[i]] != 0) << i;
which is horrible. Maybe if we had a one band true 1 bit image it'd be
quicker since we could get bits out in parallel and wouldn't have to worry
about converting non-zero to 1
could have a Coding type for bitpack? eg. relational produces a bitpack
image by default, boolean & morph can work on bitpack etc
maybe something for vips8 ... we could have a flag on operations for the
coding types they can accept, and if they are passed other type, they are
automatically converted
- non-linear sharpen: replace each pixel by the lightest or darkest neighbour
depending on which is closer in value
- can wrap other inplace funcs which use ink now we have vector_to_ink() in
inplace_dispatch.c
see also comments in nip2 TODO ... we could auto-wrap in vips_call.c
cleaner!
- on win32, should not write matrix files in binary mode, we want CR/LF chars
so we can load into excel etc easily
how odd, we're doing
if( !(fp = fopen( name, "w" )) ) {
shouldn't be binary ... hmm