1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
|
Constructing to be a writeable 320x240,4 UINT16:
resolution 320x240+0+0
untiled
4 channels: ('R', 'G', 'B', 'A')
format = uint16
alpha channel = 3
z channel = -1
deep = False
Resetting to be a writeable 640x480,3 Float:
resolution 640x480+0+0
untiled
3 channels: ('R', 'G', 'B')
format = float
alpha channel = -1
z channel = -1
deep = False
Testing read of ../common/textures/grid.tx:
subimage: 0 / 1
miplevel: 0 / 11
channels: 4
name: ../common/textures/grid.tx
file_format_name: tiff
deep: False
orientation: 1
oriented x,y,width,height: 0 0 1024 1024
oriented full x,y,width,height: 0 0 1024 1024
xyz beg/end: 0 1024 0 1024 0 1
xyz min/max: 0 1023 0 1023 0 0
setting full res...
roi = 0 1024 0 1024 0 1 0 4
full roi = 0 2048 0 2048 0 1 0 4
setting full roi again, as ROI...
Changing origin...
Printing the whole spec to be sure:
resolution 1024x1024+15+20
tile size 64x64x1
4 channels: ('R', 'G', 'B', 'A')
format = uint8
alpha channel = 3
z channel = -1
deep = False
oiio:BitsPerSample = 8
Orientation = 1
XResolution = 72.0
YResolution = 72.0
ResolutionUnit = "in"
Software = "OpenImageIO 1.5.7dev : maketx -filter lanczos3 --resize grid.tif -o grid.tx"
DateTime = "2014:11:29 23:20:23"
DocumentName = "g.tif"
textureformat = "Plain Texture"
wrapmodes = "black,black"
fovcot = 1.0
tiff:PhotometricInterpretation = 2
tiff:PlanarConfiguration = 1
planarconfig = "contig"
tiff:Compression = 8
compression = "zip"
PixelAspectRatio = 1.0
oiio:AverageColor = "0.608983,0.608434,0.608728,1"
oiio:SHA-1 = "233A1D3412A54A5F49814AB7BFFD04F56F46D3D7"
Resetting to a different MIP level:
resolution 256x256+0+0
tile size 64x64x1
4 channels: ('R', 'G', 'B', 'A')
format = uint8
alpha channel = 3
z channel = -1
deep = False
oiio:BitsPerSample = 8
Orientation = 1
XResolution = 72.0
YResolution = 72.0
ResolutionUnit = "in"
Software = "OpenImageIO 1.5.7dev : maketx -filter lanczos3 --resize grid.tif -o grid.tx"
DateTime = "2014:11:29 23:20:23"
DocumentName = "g.tif"
textureformat = "Plain Texture"
wrapmodes = "black,black"
fovcot = 1.0
tiff:PhotometricInterpretation = 2
tiff:PlanarConfiguration = 1
planarconfig = "contig"
tiff:Compression = 8
compression = "zip"
PixelAspectRatio = 1.0
oiio:AverageColor = "0.608983,0.608434,0.608728,1"
oiio:SHA-1 = "233A1D3412A54A5F49814AB7BFFD04F56F46D3D7"
Making 2x2 RGB image:
resolution 2x2+0+0
untiled
3 channels: ('R', 'G', 'B')
format = uint8
alpha channel = -1
z channel = -1
deep = False
Pixel 0,0 is (1.0, 0.0, 0.0)
Pixel 1,0 is (0.0, 1.0, 0.0)
Pixel 0,1 is (0.0, 0.0, 1.0)
Interpolating 1,0.5 -> (0.5, 0.5, 0.0)
Interpolating NDC 0.25,0.5 -> (0.5, 0.0, 0.5)
Interpolating bicubic 0.25,0.5 -> (0.319444477558136, 0.319444477558136, 0.0798611268401146)
Interpolating NDC bicubic 0.25,0.5 -> (0.319444477558136, 0.0798611268401146, 0.319444477558136)
The whole image is: [[[1. 0. 0.]
[0. 1. 0.]]
[[0. 0. 1.]
[0. 0. 0.]]]
Saving file...
Writing deep buffer...
Reading back deep buffer:
Pixel 0 1 had 3 samples
Sample 0
c 0 : 0.420
c 1 : 0.000
c 2 : 0.000
c 3 : 0.000
c 4 : 42.000
Sample 1
c 0 : 0.100
c 1 : 0.200
c 2 : 0.300
c 3 : 42.500
c 4 : 0.000
Sample 2
c 0 : 0.470
c 1 : 0.000
c 2 : 0.000
c 3 : 0.000
c 4 : 43.000
Done.
Comparing "out.tif" and "ref/out.tif"
PASS
Comparing "outtuple.tif" and "ref/outtuple.tif"
PASS
Comparing "outarray.tif" and "ref/outarray.tif"
PASS
Comparing "outarrayB.tif" and "ref/outarrayB.tif"
PASS
Comparing "outarrayH.tif" and "ref/outarrayH.tif"
PASS
|