MCPcopy Create free account
hub / github.com/defold/defold / get_line

Method get_line

engine/dlib/src/basis/encoder/basisu_resampler.cpp:530–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers 1

image_resampleFunction · 0.80

Calls 1

resampler_range_checkFunction · 0.85

Tested by

no test coverage detected