15 const uint32 BufSize = 4096;
22 sizeof(buffer) /
sizeof(*buffer),
29 return TEXT(
"[cannot find error description]");
36#define CHECK_HR(COM_call)\
38 HRESULT Res = COM_call;\
41 UE_LOG(LogAVEncoder, Error, TEXT("`" #COM_call "` failed: 0x%X - %s"), Res, *GetComErrorDescription(Res));\
47#define CHECK_HR_DEFAULT(COM_call)\
49 HRESULT Res = COM_call;\
52 UE_LOG(LogAVEncoder, Error, TEXT("`" #COM_call "` failed: 0x%X - %s"), Res, *GetComErrorDescription(Res));\
58#define CHECK_HR_COM(COM_call)\
60 HRESULT Res = COM_call;\
63 UE_LOG(LogAVEncoder, Error, TEXT("`" #COM_call "` failed: 0x%X - %s"), Res, *GetComErrorDescription(Res));\
69#define CHECK_HR_VOID(COM_call)\
71 HRESULT Res = COM_call;\
74 UE_LOG(LogAVEncoder, Error, TEXT("`" #COM_call "` failed: 0x%X - %s"), Res, *GetComErrorDescription(Res));\
85const GUID CLSID_AACMFTEncoder = { 0x93AF0C51, 0x2275, 0x45d2, { 0xA3, 0x5B, 0xF2, 0xBA, 0x21, 0xCA, 0xED, 0x00 } };
86const GUID CLSID_MP3ACMCodecWrapper ={ 0x11103421, 0x354c, 0x4cca, { 0xa7, 0xa3, 0x1a, 0xff, 0x9a, 0x5b, 0x67, 0x01 } };
87const GUID CLSID_CMSH264EncoderMFT = { 0x6ca50344, 0x051a, 0x4ded, { 0x97, 0x79, 0xa4, 0x33, 0x05, 0x16, 0x5e, 0x35 } };
88const GUID CLSID_VideoProcessorMFT = { 0x88753b26, 0x5b24, 0x49bd, { 0xb2, 0xe7, 0xc, 0x44, 0x5c, 0x78, 0xc9, 0x82 } };
94#if (WINVER < _WIN32_WINNT_WIN8)
95 const GUID MF_LOW_LATENCY = { 0x9c27891a, 0xed7a, 0x40e1,{ 0x88, 0xe8, 0xb2, 0x27, 0x27, 0xa0, 0x24, 0xee } };
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
THIRD_PARTY_INCLUDES_START THIRD_PARTY_INCLUDES_END const FString GetComErrorDescription(HRESULT Res)
Definition WmfPrivate.h:24
Definition AudioEncoder.cpp:7
COREUOBJECT_API const FGuid GUID