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

Method Flt_GetInt

Source/VideoRenderer.cpp:1358–1380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1356}
1357
1358STDMETHODIMP CMpcVideoRenderer::Flt_GetInt(LPCSTR field, int* value)
1359{
1360 CheckPointer(value, E_POINTER);
1361
1362 if (!strcmp(field, "renderType")) {
1363 if (m_inputMT.IsValid()) {
1364 *value = m_VideoProcessor->Type();
1365 } else {
1366 *value = 0; // not initialized
1367 }
1368 return S_OK;
1369 }
1370 if (!strcmp(field, "playbackState")) {
1371 *value = m_filterState;
1372 return S_OK;
1373 }
1374 if (!strcmp(field, "rotation")) {
1375 *value = m_VideoProcessor->GetRotation();
1376 return S_OK;
1377 }
1378
1379 return E_INVALIDARG;
1380}
1381
1382STDMETHODIMP CMpcVideoRenderer::Flt_GetInt64(LPCSTR field, __int64 *value)
1383{

Callers

nothing calls this directly

Calls 2

GetRotationMethod · 0.80
TypeMethod · 0.45

Tested by

no test coverage detected