| 1161 | } |
| 1162 | |
| 1163 | void CDX11VideoProcessor::UpdateScalingStrings() |
| 1164 | { |
| 1165 | const int w2 = m_videoRect.Width(); |
| 1166 | const int h2 = m_videoRect.Height(); |
| 1167 | const int k = m_bInterpolateAt50pct ? 2 : 1; |
| 1168 | int w1, h1; |
| 1169 | if (m_iRotation == 90 || m_iRotation == 270) { |
| 1170 | w1 = m_srcRectHeight; |
| 1171 | h1 = m_srcRectWidth; |
| 1172 | } else { |
| 1173 | w1 = m_srcRectWidth; |
| 1174 | h1 = m_srcRectHeight; |
| 1175 | } |
| 1176 | m_strShaderX = (w1 == w2) ? nullptr |
| 1177 | : (w1 > k * w2) |
| 1178 | ? s_Downscaling11ResIDs[m_iDownscaling].description |
| 1179 | : s_Upscaling11ResIDs[m_iUpscaling].description; |
| 1180 | m_strShaderY = (h1 == h2) ? nullptr |
| 1181 | : (h1 > k * h2) |
| 1182 | ? s_Downscaling11ResIDs[m_iDownscaling].description |
| 1183 | : s_Upscaling11ResIDs[m_iUpscaling].description; |
| 1184 | } |
| 1185 | |
| 1186 | void CDX11VideoProcessor::CalcStatsParams() |
| 1187 | { |
nothing calls this directly
no outgoing calls
no test coverage detected