| 528 | } |
| 529 | |
| 530 | const Resampler::Sample* Resampler::get_line() |
| 531 | { |
| 532 | int i; |
| 533 | |
| 534 | /* If all the destination lines have been |
| 535 | * generated, then always return NULL. |
| 536 | */ |
| 537 | |
| 538 | if (m_cur_dst_y == m_resample_dst_y) |
| 539 | return NULL; |
| 540 | |
| 541 | /* Check to see if all the required |
| 542 | * contributors are present, if not, |
| 543 | * return NULL. |
| 544 | */ |
| 545 | |
| 546 | for (i = 0; i < m_Pclist_y[m_cur_dst_y].n; i++) |
| 547 | if (!m_Psrc_y_flag[resampler_range_check(m_Pclist_y[m_cur_dst_y].p[i].pixel, m_resample_src_y)]) |
| 548 | return NULL; |
| 549 | |
| 550 | resample_y(m_Pdst_buf); |
| 551 | |
| 552 | m_cur_dst_y++; |
| 553 | |
| 554 | return m_Pdst_buf; |
| 555 | } |
| 556 | |
| 557 | Resampler::~Resampler() |
| 558 | { |
no test coverage detected