Changeset 67 for trunk/Utilities/WindowsMediaCodecList/MainDialog.h
- Timestamp:
- May 25, 2012, 1:31:49 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Utilities/WindowsMediaCodecList/MainDialog.h
r66 r67 483 483 const CMediaType& pMediaType = reinterpret_cast<const CMediaType&>(m_pCodecFormatData->m_pMediaType); 484 484 //sText.AppendFormat(_T(" ...\r\n"), pMediaType->majortype); 485 sText.AppendFormat(_T(" subtype: %ls\r\n"), _PersistHelper::StringFromIdentifier(pMediaType->subtype)); 485 if(memcmp(&pMediaType->subtype.Data2, &MEDIASUBTYPE_MJPG.Data2, sizeof (GUID) - offsetof(GUID, Data2)) == 0) 486 sText.AppendFormat(_T(" subtype: %ls (%s)\r\n"), _PersistHelper::StringFromIdentifier(pMediaType->subtype), _FilterGraphHelper::GetFourccCodeString(pMediaType->subtype.Data1)); 487 else 488 sText.AppendFormat(_T(" subtype: %ls\r\n"), _PersistHelper::StringFromIdentifier(pMediaType->subtype)); 486 489 sText.AppendFormat(_T(" bFixedSizeSamples: %s\r\n"), _StringHelper::FormatNumber((LONG) pMediaType->bFixedSizeSamples)); 487 490 sText.AppendFormat(_T(" bTemporalCompression: %s\r\n"), _StringHelper::FormatNumber((LONG) pMediaType->bTemporalCompression)); 488 491 sText.AppendFormat(_T(" lSampleSize: %s\r\n"), _StringHelper::FormatNumber((LONG) pMediaType->lSampleSize)); 489 sText.AppendFormat(_T(" formattype: %ls\r\n"), _PersistHelper::StringFromIdentifier(pMediaType->formattype)); 492 #pragma region Format 493 static const struct 494 { 495 GUID formattype; 496 LPCTSTR pszTitle; 497 } g_pMap[] = 498 { 499 { FORMAT_VideoInfo, _T("FORMAT_VideoInfo") }, 500 { FORMAT_VideoInfo2, _T("FORMAT_VideoInfo2") }, 501 { FORMAT_MPEG2_VIDEO, _T("FORMAT_MPEG2_VIDEO") }, 502 { FORMAT_WaveFormatEx, _T("FORMAT_WaveFormatEx") }, 503 }; 504 BOOL bFound = FALSE; 505 for(SIZE_T nIndex = 0; nIndex < DIM(g_pMap); nIndex++) 506 if(pMediaType->formattype == g_pMap[nIndex].formattype) 507 { 508 sText.AppendFormat(_T(" formattype: %ls (%s)\r\n"), _PersistHelper::StringFromIdentifier(pMediaType->formattype), g_pMap[nIndex].pszTitle); 509 bFound = TRUE; 510 break; 511 } 512 if(!bFound) 513 sText.AppendFormat(_T(" formattype: %ls\r\n"), _PersistHelper::StringFromIdentifier(pMediaType->formattype)); 514 #pragma endregion 490 515 sText.AppendFormat(_T(" cbFormat: %s\r\n"), _StringHelper::FormatNumber((LONG) pMediaType->cbFormat)); 491 516 if(pMediaType->formattype == FORMAT_VideoInfo)
Note: See TracChangeset
for help on using the changeset viewer.