MCPcopy Create free account
hub / github.com/Aleksoid1978/VideoRenderer / UpdateScalingStrings

Method UpdateScalingStrings

Source/DX11VideoProcessor.cpp:1163–1184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1161}
1162
1163void 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
1186void CDX11VideoProcessor::CalcStatsParams()
1187{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected