| 1469 | } |
| 1470 | |
| 1471 | STDMETHODIMP CMpcVideoRenderer::Flt_SetInt(LPCSTR field, int value) |
| 1472 | { |
| 1473 | if (!strcmp(field, "rotation")) { |
| 1474 | // Allowed angles are multiples of 90. |
| 1475 | if (value % 90 == 0) { |
| 1476 | // The allowed rotation angle is reduced to 0, 90, 180, 270. |
| 1477 | value %= 360; |
| 1478 | if (value < 0) { |
| 1479 | value += 360; |
| 1480 | } |
| 1481 | |
| 1482 | CAutoLock cRendererLock(&m_RendererLock); |
| 1483 | |
| 1484 | m_VideoProcessor->SetRotation(value); |
| 1485 | return S_OK; |
| 1486 | } |
| 1487 | } |
| 1488 | |
| 1489 | if (!strcmp(field, "stereo3dTransform")) { |
| 1490 | if (value == STEREO3D_AsIs || value == STEREO3D_HalfOverUnder_to_Interlace) { |
| 1491 | CAutoLock cRendererLock(&m_RendererLock); |
| 1492 | |
| 1493 | m_VideoProcessor->SetStereo3dTransform(value); |
| 1494 | return S_OK; |
| 1495 | } |
| 1496 | } |
| 1497 | |
| 1498 | return E_INVALIDARG; |
| 1499 | } |
| 1500 | |
| 1501 | STDMETHODIMP CMpcVideoRenderer::Flt_SetBin(LPCSTR field, LPVOID value, int size) |
| 1502 | { |
nothing calls this directly
no test coverage detected