Changeset 39233 for trunk/Ohana/src/opihi/lib.shell/BufferOps.c
- Timestamp:
- Dec 5, 2015, 2:07:56 PM (11 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/lib.shell/BufferOps.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/lib.shell/BufferOps.c
r38062 r39233 92 92 gfits_free_matrix (&buf[0].matrix); 93 93 gfits_free_header (&buf[0].header); 94 CreateBuffer (buf, Nx, Ny, bitpix, bzero, bscale);94 if (!CreateBuffer (buf, Nx, Ny, bitpix, bzero, bscale)) return FALSE; 95 95 return TRUE; 96 96 } 97 97 98 98 int CreateBuffer (Buffer *buf, int Nx, int Ny, int bitpix, float bzero, float bscale) { 99 100 if (Nx < 0) { gprint (GP_ERR, "invalid negative matrix size Nx : %d\n", Nx); return FALSE; } 101 if (Ny < 0) { gprint (GP_ERR, "invalid negative matrix size Ny : %d\n", Ny); return FALSE; } 99 102 100 103 /* store the default output values */ … … 123 126 // buffer[x + Nx*y + Nx*Ny*z + ...] 124 127 int CreateBuffer3D (Buffer *buf, int Nx, int Ny, int Nz, int bitpix, float bzero, float bscale) { 128 129 if (Nx < 0) { gprint (GP_ERR, "invalid negative matrix size Nx : %d\n", Nx); return FALSE; } 130 if (Ny < 0) { gprint (GP_ERR, "invalid negative matrix size Ny : %d\n", Ny); return FALSE; } 131 if (Nz < 0) { gprint (GP_ERR, "invalid negative matrix size Nz : %d\n", Nz); return FALSE; } 125 132 126 133 /* store the default output values */
Note:
See TracChangeset
for help on using the changeset viewer.
