| 180 | } |
| 181 | |
| 182 | long FrameMetaInfo::elementToFieldIdx(long _element, long *_arrIdx) const |
| 183 | { |
| 184 | int i; |
| 185 | int lN=0, _prevN = 0; |
| 186 | for(i=0; i<N; i++) { |
| 187 | lN += field[i].N; |
| 188 | if (lN > _element) { |
| 189 | if (_arrIdx != NULL) *_arrIdx = field[i].N - (lN - _element); |
| 190 | return i; |
| 191 | } |
| 192 | } |
| 193 | if (_arrIdx != NULL) *_arrIdx = 0; |
| 194 | return -1; |
| 195 | } |
| 196 | |
| 197 | void FrameMetaInfo::printFieldNames() const { |
| 198 | SMILE_PRINT(" Field name & dimension:"); |