Searched refs:pixel_weights (Results 1 – 2 of 2) sorted by relevance
60 PixelWeight& pixel_weights = *GetPixelWeight(dest_pixel); in Calc() local63 pixel_weights.m_SrcStart = in Calc()65 pixel_weights.m_SrcEnd = in Calc()67 pixel_weights.m_SrcStart = std::max(pixel_weights.m_SrcStart, src_min); in Calc()68 pixel_weights.m_SrcEnd = std::min(pixel_weights.m_SrcEnd, src_max - 1); in Calc()69 if (pixel_weights.m_SrcStart == pixel_weights.m_SrcEnd) { in Calc()70 pixel_weights.m_Weights[0] = 65536; in Calc()72 pixel_weights.m_Weights[1] = in Calc()74 src_pos - pixel_weights.m_SrcStart - 1.0f / 2) * in Calc()76 pixel_weights.m_Weights[0] = 65536 - pixel_weights.m_Weights[1]; in Calc()[all …]
70 PixelWeight& pixel_weights = *GetPixelWeight(dest_pixel); in Calc() local72 pixel_weights.m_SrcStart = (int)floor((float)src_pos - 1.0f / 2); in Calc()73 pixel_weights.m_SrcEnd = (int)floor((float)src_pos + 1.0f / 2); in Calc()74 if (pixel_weights.m_SrcStart < src_min) { in Calc()75 pixel_weights.m_SrcStart = src_min; in Calc()77 if (pixel_weights.m_SrcEnd >= src_max) { in Calc()78 pixel_weights.m_SrcEnd = src_max - 1; in Calc()80 if (pixel_weights.m_SrcStart == pixel_weights.m_SrcEnd) { in Calc()81 pixel_weights.m_Weights[0] = 65536; in Calc()83 pixel_weights.m_Weights[1] = FXSYS_round( in Calc()[all …]