IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 17, 2015, 6:11:34 AM (12 years ago)
Author:
eugene
Message:

allow dvomath to handle 3D (and higher) buffers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20150112/Ohana/src/opihi/lib.shell/check_stack.c

    r36375 r37857  
    66int check_stack (StackVar *stack, int Nstack, int validsize) {
    77
    8   int i, Nx, Ny, Nv, size;
     8  int i, Nx, Ny, Nz, Nv, size;
    99  char *c1, *c2;
    1010
    11   Nv = Nx = Ny = -1;
     11  Nv = Nx = Ny = Nz = -1;
    1212
    1313  for (i = 0; i < Nstack; i++) {
     
    4646          Nx = stack[i].buffer[0].matrix.Naxis[0];
    4747          Ny = stack[i].buffer[0].matrix.Naxis[1];
     48          Nz = stack[i].buffer[0].matrix.Naxis[2];
    4849        }
    49         if ((Nx != stack[i].buffer[0].matrix.Naxis[0]) && (Ny != stack[i].buffer[0].matrix.Naxis[1])) {
     50        if ((Nx != stack[i].buffer[0].matrix.Naxis[0]) &&
     51            (Ny != stack[i].buffer[0].matrix.Naxis[1]) &&
     52            (Nz != stack[i].buffer[0].matrix.Naxis[2])) {
    5053          push_error ("dimensions don't match");
    5154          return (-1);
Note: See TracChangeset for help on using the changeset viewer.