| 263 | } |
| 264 | |
| 265 | static int CreateLineStrategyRequests(GDALDataset *poDS, int nMaxRequests, |
| 266 | Request *&psRequestList, |
| 267 | Request *&psRequestLast) |
| 268 | { |
| 269 | int nXSize = poDS->GetRasterXSize(); |
| 270 | int nYSize = poDS->GetRasterYSize(); |
| 271 | int nQueriedBands = std::min(4, poDS->GetRasterCount()); |
| 272 | int bStop = FALSE; |
| 273 | int nRequests = 0; |
| 274 | for (int iLoop = 0; !bStop && iLoop < nLoops; iLoop++) |
| 275 | { |
| 276 | for (int nYOff = 0; nYOff < nYSize; nYOff++) |
| 277 | { |
| 278 | if (nMaxRequests > 0 && nRequests == nMaxRequests) |
| 279 | { |
| 280 | bStop = TRUE; |
| 281 | break; |
| 282 | } |
| 283 | AddRequest(psRequestList, psRequestLast, 0, nYOff, nXSize, 1, |
| 284 | nQueriedBands); |
| 285 | nRequests++; |
| 286 | } |
| 287 | } |
| 288 | return nQueriedBands * nXSize; |
| 289 | } |
| 290 | |
| 291 | static int CreateBlockStrategyRequests(GDALDataset *poDS, int nMaxRequests, |
| 292 | Request *&psRequestList, |
no test coverage detected