Lines Matching refs:cube_level
130 cube_level, in ReadCUBEImage() local
155 cube_level=0; in ReadCUBEImage()
177 cube_level=(size_t) StringToLong(value); in ReadCUBEImage()
179 cube_level=(size_t) ceil(pow((double) cube_level,1.0/3.0)); in ReadCUBEImage()
180 if ((cube_level < 2) || (cube_level > 256)) in ReadCUBEImage()
185 cube_info=AcquireVirtualMemory(cube_level*cube_level,cube_level* in ReadCUBEImage()
193 (void) memset(cube,0,cube_level*cube_level*cube_level*sizeof(*cube)); in ReadCUBEImage()
202 if (cube_level != 0) in ReadCUBEImage()
207 if (n >= (ssize_t) (cube_level*cube_level*cube_level)) in ReadCUBEImage()
220 if (cube_level == 0) in ReadCUBEImage()
275 r)*(cube_level-1.0); in ReadCUBEImage()
279 if ((size_t) index.r == (cube_level-1)) in ReadCUBEImage()
282 g)*(cube_level-1.0); in ReadCUBEImage()
286 if ((size_t) index.g == (cube_level-1)) in ReadCUBEImage()
289 b)*(cube_level-1.0); in ReadCUBEImage()
293 if ((size_t) index.b == (cube_level-1)) in ReadCUBEImage()
296 cube[FlattenCube(cube_level,index.b,index.g,index.r)].r+scale.r*( in ReadCUBEImage()
297 cube[FlattenCube(cube_level,index.b,index.g,next.r)].r- in ReadCUBEImage()
298 cube[FlattenCube(cube_level,index.b,index.g,index.r)].r))),q); in ReadCUBEImage()
300 cube[FlattenCube(cube_level,index.b,index.g,index.r)].g+scale.g*( in ReadCUBEImage()
301 cube[FlattenCube(cube_level,index.b,next.g,index.r)].g- in ReadCUBEImage()
302 cube[FlattenCube(cube_level,index.b,index.g,index.r)].g))),q); in ReadCUBEImage()
304 cube[FlattenCube(cube_level,index.b,index.g,index.r)].b+scale.b*( in ReadCUBEImage()
305 cube[FlattenCube(cube_level,next.b,index.g,index.r)].b- in ReadCUBEImage()
306 cube[FlattenCube(cube_level,index.b,index.g,index.r)].b))),q); in ReadCUBEImage()