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

Method VerifyMediaType

Source/DX11VideoProcessor.cpp:1569–1586  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1567}
1568
1569BOOL CDX11VideoProcessor::VerifyMediaType(const CMediaType* pmt)
1570{
1571 const auto& FmtParams = GetFmtConvParams(pmt);
1572 if (FmtParams.VP11Format == DXGI_FORMAT_UNKNOWN && FmtParams.DX11Format == DXGI_FORMAT_UNKNOWN) {
1573 return FALSE;
1574 }
1575
1576 const BITMAPINFOHEADER* pBIH = GetBIHfromVIHs(pmt);
1577 if (!pBIH) {
1578 return FALSE;
1579 }
1580
1581 if (pBIH->biWidth <= 0 || !pBIH->biHeight) {
1582 return FALSE;
1583 }
1584
1585 return TRUE;
1586}
1587
1588bool CDX11VideoProcessor::HandleHDRToggle()
1589{

Callers

nothing calls this directly

Calls 1

GetBIHfromVIHsFunction · 0.85

Tested by

no test coverage detected