Searched refs:pixel_weights (Results 1 – 2 of 2) sorted by relevance
62 PixelWeight& pixel_weights = *GetPixelWeight(dest_pixel); in Calc() local65 pixel_weights.m_SrcStart = in Calc()67 pixel_weights.m_SrcEnd = in Calc()69 pixel_weights.m_SrcStart = std::max(pixel_weights.m_SrcStart, src_min); in Calc()70 pixel_weights.m_SrcEnd = std::min(pixel_weights.m_SrcEnd, src_max - 1); in Calc()71 if (pixel_weights.m_SrcStart == pixel_weights.m_SrcEnd) { in Calc()72 pixel_weights.m_Weights[0] = 65536; in Calc()74 pixel_weights.m_Weights[1] = in Calc()76 src_pos - pixel_weights.m_SrcStart - 1.0f / 2) * in Calc()78 pixel_weights.m_Weights[0] = 65536 - pixel_weights.m_Weights[1]; in Calc()[all …]
67 PixelWeight& pixel_weights = *GetPixelWeight(dest_pixel); in Calc() local69 pixel_weights.m_SrcStart = (int)floor((float)src_pos - 1.0f / 2); in Calc()70 pixel_weights.m_SrcEnd = (int)floor((float)src_pos + 1.0f / 2); in Calc()71 pixel_weights.m_SrcStart = std::max(pixel_weights.m_SrcStart, 0); in Calc()72 pixel_weights.m_SrcEnd = std::min(pixel_weights.m_SrcEnd, src_len - 1); in Calc()73 if (pixel_weights.m_SrcStart == pixel_weights.m_SrcEnd) { in Calc()74 pixel_weights.m_Weights[0] = 65536; in Calc()76 pixel_weights.m_Weights[1] = FXSYS_roundf( in Calc()77 (float)(src_pos - pixel_weights.m_SrcStart - 1.0f / 2) * 65536); in Calc()78 pixel_weights.m_Weights[0] = 65536 - pixel_weights.m_Weights[1]; in Calc()[all …]