- Timestamp:
- 25 Apr 2014, 00:33:51 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/SHM-6-dev/source/Lib/TLibCommon/TCom3DAsymLUT.h
r677 r738 100 100 p[0] = new T*[xSize*ySize]; 101 101 for( Int x = 1 ; x < xSize ; x++ ) 102 { 102 103 p[x] = p[x-1] + ySize; 104 } 103 105 p[0][0] = new T[xSize*ySize*zSize]; 104 106 for( Int x = 0 ; x < xSize ; x++ ) 105 107 { 106 108 for( Int y = 0 ; y < ySize ; y++ ) 109 { 107 110 p[x][y] = p[0][0] + x * ySize * zSize + y * zSize; 111 } 108 112 } 109 113 } … … 117 121 { 118 122 if( p[0][0] != NULL ) 123 { 119 124 delete [] p[0][0]; 125 } 120 126 delete [] p[0]; 121 127 }
Note: See TracChangeset for help on using the changeset viewer.