| 729 | |
| 730 | #if _DEBUG |
| 731 | std::wstring PropSetAndIdToString(REFGUID PropSet, ULONG Id) |
| 732 | { |
| 733 | #define UNPACK_VALUE(VALUE) case VALUE: str += L#VALUE; break; |
| 734 | std::wstring str; |
| 735 | if (PropSet == AM_KSPROPSETID_CopyProt) { |
| 736 | str.assign(L"AM_KSPROPSETID_CopyProt, "); |
| 737 | switch (Id) { |
| 738 | UNPACK_VALUE(AM_PROPERTY_COPY_MACROVISION); |
| 739 | UNPACK_VALUE(AM_PROPERTY_COPY_ANALOG_COMPONENT); |
| 740 | UNPACK_VALUE(AM_PROPERTY_COPY_DIGITAL_CP); |
| 741 | default: |
| 742 | str += std::to_wstring(Id); |
| 743 | }; |
| 744 | } |
| 745 | else if (PropSet == AM_KSPROPSETID_FrameStep) { |
| 746 | str.assign(L"AM_KSPROPSETID_FrameStep, "); |
| 747 | switch (Id) { |
| 748 | UNPACK_VALUE(AM_PROPERTY_FRAMESTEP_STEP); |
| 749 | UNPACK_VALUE(AM_PROPERTY_FRAMESTEP_CANCEL); |
| 750 | UNPACK_VALUE(AM_PROPERTY_FRAMESTEP_CANSTEP); |
| 751 | UNPACK_VALUE(AM_PROPERTY_FRAMESTEP_CANSTEPMULTIPLE); |
| 752 | default: |
| 753 | str += std::to_wstring(Id); |
| 754 | }; |
| 755 | } |
| 756 | else { |
| 757 | str.assign(GUIDtoWString(PropSet) + L", " + std::to_wstring(Id)); |
| 758 | } |
| 759 | return str; |
| 760 | #undef UNPACK_VALUE |
| 761 | } |
| 762 | |
| 763 | #endif |
| 764 |
no test coverage detected