| 1025 | } |
| 1026 | |
| 1027 | BOOL CDX9VideoProcessor::VerifyMediaType(const CMediaType* pmt) |
| 1028 | { |
| 1029 | const auto& FmtParams = GetFmtConvParams(pmt); |
| 1030 | if (FmtParams.DXVA2Format == D3DFMT_UNKNOWN && FmtParams.D3DFormat == D3DFMT_UNKNOWN) { |
| 1031 | return FALSE; |
| 1032 | } |
| 1033 | |
| 1034 | const BITMAPINFOHEADER* pBIH = GetBIHfromVIHs(pmt); |
| 1035 | if (!pBIH) { |
| 1036 | return FALSE; |
| 1037 | } |
| 1038 | |
| 1039 | if (pBIH->biWidth <= 0 || !pBIH->biHeight) { |
| 1040 | return FALSE; |
| 1041 | } |
| 1042 | |
| 1043 | return TRUE; |
| 1044 | } |
| 1045 | |
| 1046 | BOOL CDX9VideoProcessor::GetAlignmentSize(const CMediaType& mt, SIZE& Size) |
| 1047 | { |
no test coverage detected