libvips/libvips/iofuncs
John Cupitt 25c3c49d1c better handling of cast+shift for non-int formats
before, im.cast(uchar, shift = true) where im was float and tagged as
rgb16 would not shift the image, since it's unclear how much to shift a float
type by

now we do two casts: first, we guess the numeric range from the
interpretation, so rgb16 would be ushort, so we cast float->ushort;
second, we cast to the target type and do the shift on the way

see https://github.com/jcupitt/libvips/issues/397

thanks apacheark
2016-03-01 11:31:54 +00:00
..
Makefile.am mask builders take prec, not integer 2014-12-16 20:48:11 +00:00
base64.c fix some cppcheck warnings 2015-09-28 22:01:15 +01:00
base64.h Update address for Free Software Foundation 2013-03-07 00:40:19 -05:00
buf.c fix a few coverity issues 2015-09-30 09:54:50 +01:00
buffer.c add a stub for compat 2016-01-01 10:58:53 +00:00
cache.c small doc fix 2015-07-10 14:57:45 +01:00
enumtemplate more image to object hackery 2011-02-14 18:23:01 +00:00
enumtypes.c boilerplate for hsv colourspace 2015-06-09 10:18:30 +01:00
error.c compiles 2015-11-16 14:58:51 +00:00
gate.c doc cleanups 2015-04-24 12:49:50 +01:00
generate.c fix the bg render thread in sinkscreen 2015-12-02 15:51:25 +00:00
header.c better handling of cast+shift for non-int formats 2016-03-01 11:31:54 +00:00
image.c use g_assert_not_reached() 2016-01-24 13:21:53 +00:00
init.c better leak reporting 2015-05-01 16:42:23 +01:00
mapfile.c many more const decls 2015-10-23 11:45:11 +01:00
memory.c use g_assert_not_reached() 2016-01-24 13:21:53 +00:00
object.c much better handling of arrayimage cli args 2016-02-27 20:37:20 +00:00
operation.c clear up tiny docs issue 2016-01-22 15:02:18 +00:00
rect.c fix all docs warnings 2014-11-17 10:32:40 +00:00
region.c use g_assert_not_reached() 2016-01-24 13:21:53 +00:00
semaphore.c add lots of instrumentation 2013-11-26 14:57:56 +00:00
sink.c more docs work 2014-08-19 16:57:37 +01:00
sink.h Update address for Free Software Foundation 2013-03-07 00:40:19 -05:00
sinkdisc.c more docs work 2014-08-19 16:57:37 +01:00
sinkmemory.c more docs work 2014-08-19 16:57:37 +01:00
sinkscreen.c fix the bg render thread in sinkscreen 2015-12-02 15:51:25 +00:00
system.c doc cleanups 2015-04-24 12:49:50 +01:00
threadpool.c fix more compiler warnings 2016-01-26 16:41:03 +00:00
type.c much better handling of arrayimage cli args 2016-02-27 20:37:20 +00:00
util.c Merge branch '8.2' 2016-02-26 12:44:54 +00:00
vector.c fix with orc-0.4.11 2015-12-08 15:33:57 +00:00
vips.c more docs work 2014-08-19 16:57:37 +01:00
vipsmarshal.c vips_system() allows many input images 2014-04-09 11:42:03 +01:00
vipsmarshal.h vips_system() allows many input images 2014-04-09 11:42:03 +01:00
vipsmarshal.list vips_system() allows many input images 2014-04-09 11:42:03 +01:00
window.c now compiles cleanly with -Wstrict-prototypes 2015-01-21 09:02:56 +00:00