support 48bpp tiffs
parent
001a3eb8f1
commit
3cf4c6fee2
|
@ -1,7 +1,8 @@
|
||||||
! Copyright (C) 2009 Doug Coleman.
|
! Copyright (C) 2009 Doug Coleman.
|
||||||
! See http://factorcode.org/license.txt for BSD license.
|
! See http://factorcode.org/license.txt for BSD license.
|
||||||
USING: kernel accessors grouping sequences combinators
|
USING: kernel accessors grouping sequences combinators
|
||||||
math specialized-arrays.direct.uint byte-arrays ;
|
math specialized-arrays.direct.uint byte-arrays
|
||||||
|
specialized-arrays.direct.ushort ;
|
||||||
IN: images
|
IN: images
|
||||||
|
|
||||||
SINGLETONS: BGR RGB BGRA RGBA ABGR ARGB RGBX XRGB BGRX XBGR
|
SINGLETONS: BGR RGB BGRA RGBA ABGR ARGB RGBX XRGB BGRX XBGR
|
||||||
|
@ -28,6 +29,13 @@ GENERIC: load-image* ( path tuple -- image )
|
||||||
>byte-array add-dummy-alpha
|
>byte-array add-dummy-alpha
|
||||||
] change-bitmap
|
] change-bitmap
|
||||||
] }
|
] }
|
||||||
|
{ R16G16B16 [
|
||||||
|
[
|
||||||
|
dup length 2 / <direct-ushort-array>
|
||||||
|
[ -8 shift ] map
|
||||||
|
>byte-array add-dummy-alpha
|
||||||
|
] change-bitmap
|
||||||
|
] }
|
||||||
{ BGRA [
|
{ BGRA [
|
||||||
[
|
[
|
||||||
4 <sliced-groups> dup [ [ 0 3 ] dip <slice> reverse-here ] each
|
4 <sliced-groups> dup [ [ 0 3 ] dip <slice> reverse-here ] each
|
||||||
|
|
Loading…
Reference in New Issue