mfplat: Add some MFT-related attributes GUIDs.

Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Nikolay Sivov 2020-03-03 12:22:43 +03:00 committed by Alexandre Julliard
parent c0b1d7b593
commit 063e58fbab
4 changed files with 61 additions and 0 deletions

View File

@ -1475,16 +1475,24 @@ const char *debugstr_attr(const GUID *guid)
X(MF_SINK_WRITER_ENCODER_CONFIG),
X(MF_TOPOLOGY_NO_MARKIN_MARKOUT),
X(MF_SOURCE_READER_ENABLE_TRANSCODE_ONLY_TRANSFORMS),
X(MFT_PREFERRED_ENCODER_PROFILE),
X(MF_TOPOLOGY_DYNAMIC_CHANGE_NOT_ALLOWED),
X(MF_MT_ALPHA_MODE),
X(MF_PMP_SERVER_CONTEXT),
X(MFT_SUPPORT_DYNAMIC_FORMAT_CHANGE),
X(MFT_CODEC_MERIT_Attribute),
X(MF_TOPOLOGY_PLAYBACK_MAX_DIMS),
X(MF_LOW_LATENCY),
X(MF_READWRITE_ENABLE_HARDWARE_TRANSFORMS),
X(MF_MT_PIXEL_ASPECT_RATIO),
X(MF_TOPOLOGY_ENABLE_XVP_FOR_PLAYBACK),
X(MFT_CONNECTED_STREAM_ATTRIBUTE),
X(MF_MT_WRAPPED_TYPE),
X(MF_MT_AVG_BITRATE),
X(MFT_CONNECTED_TO_HW_STREAM),
X(MF_SA_D3D_AWARE),
X(MFT_TRANSFORM_CLSID_Attribute),
X(MFT_TRANSFORM_CLSID_Attribute),
X(MF_SOURCE_READER_ENABLE_ADVANCED_VIDEO_PROCESSING),
X(MF_SESSION_APPROX_EVENT_OCCURRENCE_TIME),
X(MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_MAX_BUFFERS),
@ -1502,14 +1510,17 @@ const char *debugstr_attr(const GUID *guid)
X(MF_MT_ALL_SAMPLES_INDEPENDENT),
X(MF_PD_PREFERRED_LANGUAGE),
X(MF_PD_PLAYBACK_BOUNDARY_TIME),
X(MF_ACTIVATE_MFT_LOCKED),
X(MF_SOURCE_READER_ENABLE_VIDEO_PROCESSING),
X(MF_MT_FRAME_SIZE),
X(MF_SINK_WRITER_ASYNC_CALLBACK),
X(MF_TOPOLOGY_START_TIME_ON_PRESENTATION_SWITCH),
X(MFT_DECODER_EXPOSE_OUTPUT_TYPES_IN_NATIVE_ORDER),
X(MF_TOPONODE_WORKQUEUE_MMCSS_PRIORITY),
X(MF_MT_FRAME_RATE_RANGE_MAX),
X(MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_PROVIDER_DEVICE_ID),
X(MF_TOPOLOGY_STATIC_PLAYBACK_OPTIMIZATIONS),
X(MF_TRANSFORM_CATEGORY_Attribute),
X(MF_MT_AUDIO_FLOAT_SAMPLES_PER_SECOND),
X(MFSampleExtension_ForwardedDecodeUnits),
X(MF_EVENT_SOURCE_TOPOLOGY_CANCELED),
@ -1525,6 +1536,7 @@ const char *debugstr_attr(const GUID *guid)
X(MFSampleExtension_Token),
X(MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE_VIDCAP_CATEGORY),
X(MF_MT_AUDIO_VALID_BITS_PER_SAMPLE),
X(MF_TRANSFORM_ASYNC_UNLOCK),
X(MF_TOPOLOGY_ENUMERATE_SOURCE_TYPES),
X(MF_MT_VIDEO_NO_FRAME_ORDERING),
X(MFSampleExtension_3DVideo_SampleFormat),
@ -1536,6 +1548,7 @@ const char *debugstr_attr(const GUID *guid)
X(MF_MT_AUDIO_FOLDDOWN_MATRIX),
X(MF_MT_AUDIO_WMADRC_PEAKREF),
X(MF_MT_AUDIO_WMADRC_PEAKTARGET),
X(MF_TRANSFORM_FLAGS_Attribute),
X(MF_PD_SAMI_STYLELIST),
X(MF_MT_AUDIO_WMADRC_AVGREF),
X(MF_MT_AUDIO_BITS_PER_SAMPLE),
@ -1546,6 +1559,8 @@ const char *debugstr_attr(const GUID *guid)
X(MF_SESSION_GLOBAL_TIME),
X(MF_SESSION_QUALITY_MANAGER),
X(MF_SESSION_CONTENT_PROTECTION_MANAGER),
X(MFT_REMUX_MARK_I_PICTURE_AS_CLEAN_POINT),
X(MFT_REMUX_MARK_I_PICTURE_AS_CLEAN_POINT),
X(MF_READWRITE_MMCSS_PRIORITY_AUDIO),
X(MF_BYTESTREAM_ORIGIN_NAME),
X(MF_BYTESTREAM_CONTENT_TYPE),
@ -1555,6 +1570,7 @@ const char *debugstr_attr(const GUID *guid)
X(MF_SD_SAMI_LANGUAGE),
X(MF_EVENT_OUTPUT_NODE),
X(MF_BYTESTREAM_LAST_MODIFIED_TIME),
X(MFT_ENUM_ADAPTER_LUID),
X(MF_MT_FRAME_RATE_RANGE_MIN),
X(MF_BYTESTREAM_IFO_FILE_URI),
X(MF_EVENT_TOPOLOGY_STATUS),
@ -1565,10 +1581,13 @@ const char *debugstr_attr(const GUID *guid)
X(MF_EVENT_SOURCE_CHARACTERISTICS_OLD),
X(MF_SESSION_SERVER_CONTEXT),
X(MF_MT_VIDEO_3D_FIRST_IS_LEFT),
X(MFT_DECODER_FINAL_VIDEO_RESOLUTION_HINT),
X(MF_PD_ADAPTIVE_STREAMING),
X(MFT_PREFERRED_OUTPUTTYPE_Attribute),
X(MFSampleExtension_Timestamp),
X(MF_TOPONODE_PRIMARYOUTPUT),
X(MF_MT_SUBTYPE),
X(MF_TRANSFORM_ASYNC),
X(MF_TOPONODE_STREAMID),
X(MF_TOPONODE_NOSHUTDOWN_ON_REMOVE),
X(MF_SD_MUTUALLY_EXCLUSIVE),
@ -1585,9 +1604,15 @@ const char *debugstr_attr(const GUID *guid)
X(MF_EVENT_SOURCE_PROJECTSTART),
X(MF_EVENT_SOURCE_ACTUAL_START),
X(MF_MT_AUDIO_SAMPLES_PER_BLOCK),
X(MFT_ENUM_HARDWARE_URL_Attribute),
X(MF_SOURCE_READER_ASYNC_CALLBACK),
X(MFT_ENCODER_SUPPORTS_CONFIG_EVENT),
X(MF_MT_AUDIO_FLAC_MAX_BLOCK_SIZE),
X(MFT_FRIENDLY_NAME_Attribute),
X(MF_MT_FIXED_SIZE_SAMPLES),
X(MFT_SUPPORT_3DVIDEO),
X(MFT_SUPPORT_3DVIDEO),
X(MFT_INPUT_TYPES_Attributes),
X(MF_EVENT_SCRUBSAMPLE_TIME),
X(MF_MT_INTERLACE_MODE),
X(MF_MT_VIDEO_RENDERER_EXTENSION_PROFILE),
@ -1601,6 +1626,8 @@ const char *debugstr_attr(const GUID *guid)
X(MF_TOPONODE_TRANSFORM_OBJECTID),
X(MF_DEVSOURCE_ATTRIBUTE_MEDIA_TYPE),
X(MF_EVENT_MFT_INPUT_STREAM_ID),
X(MFT_ENUM_HARDWARE_VENDOR_ID_Attribute),
X(MFT_ENUM_TRANSCODE_ONLY_ATTRIBUTE),
X(MF_READWRITE_MMCSS_PRIORITY),
X(MF_MT_VIDEO_3D),
X(MF_EVENT_START_PRESENTATION_TIME),
@ -1617,6 +1644,8 @@ const char *debugstr_attr(const GUID *guid)
X(MF_SOURCE_READER_DISABLE_CAMERA_PLUGINS),
X(MF_TOPOLOGY_RESOLUTION_STATUS),
X(MF_PD_AUDIO_ISVARIABLEBITRATE),
X(MFT_PROCESS_LOCAL_Attribute),
X(MFT_PROCESS_LOCAL_Attribute),
X(MF_MT_AAC_AUDIO_PROFILE_LEVEL_INDICATION),
X(MF_MT_AUDIO_SAMPLES_PER_SECOND),
X(MF_MT_FRAME_RATE),
@ -1635,6 +1664,7 @@ const char *debugstr_attr(const GUID *guid)
X(MF_EVENT_MFT_CONTEXT),
X(MF_MT_FORWARD_CUSTOM_SEI),
X(MF_TOPONODE_CONNECT_METHOD),
X(MFT_OUTPUT_TYPES_Attributes),
X(MF_SESSION_REMOTE_SOURCE_MODE),
X(MF_MT_DEPTH_VALUE_UNIT),
X(MF_MT_AUDIO_NUM_CHANNELS),
@ -1650,6 +1680,7 @@ const char *debugstr_attr(const GUID *guid)
X(MF_MT_FORWARD_CUSTOM_NALU),
X(MF_TOPONODE_ERROR_MAJORTYPE),
X(MF_MT_SECURE),
X(MFT_FIELDOFUSE_UNLOCK_Attribute),
X(MF_TOPONODE_ERROR_SUBTYPE),
X(MF_DEVSOURCE_ATTRIBUTE_SOURCE_TYPE),
X(MF_MT_VIDEO_3D_LEFT_IS_BASE),

View File

@ -274,6 +274,9 @@ DEFINE_GUID(MFT_CATEGORY_AUDIO_ENCODER, 0x91c64bd0, 0xf91e, 0x4d8c, 0x92, 0x76
DEFINE_GUID(MFT_CATEGORY_AUDIO_EFFECT, 0x11064c48, 0x3648, 0x4ed0, 0x93, 0x2e, 0x05, 0xce, 0x8a, 0xc8, 0x11, 0xb7);
DEFINE_GUID(MFT_CATEGORY_VIDEO_PROCESSOR, 0x302ea3fc, 0xaa5f, 0x47f9, 0x9f, 0x7a, 0xc2, 0x18, 0x8b, 0xb1, 0x63, 0x02);
DEFINE_GUID(MFT_CATEGORY_OTHER, 0x90175d57, 0xb7ea, 0x4901, 0xae, 0xb3, 0x93, 0x3a, 0x87, 0x47, 0x75, 0x6f);
DEFINE_GUID(MFT_ENUM_ADAPTER_LUID, 0x1d39518c, 0xe220, 0x4da8, 0xa0, 0x7f, 0xba, 0x17, 0x25, 0x52, 0xd6, 0xb1);
DEFINE_GUID(MFT_SUPPORT_DYNAMIC_FORMAT_CHANGE, 0x53476a11, 0x3f13, 0x49fb, 0xac, 0x42, 0xee, 0x27, 0x33, 0xc9, 0x67, 0x41);
DEFINE_GUID(MFMediaType_Audio, 0x73647561, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71);
DEFINE_GUID(MFMediaType_Binary, 0x72178c25, 0xe45b, 0x11d5, 0xbc, 0x2a, 0x00, 0xb0, 0xd0, 0xf3, 0xf4, 0xab);

View File

@ -834,6 +834,8 @@ cpp_quote(" return attributes->SetUINT64(key, ((UINT64)numerator << 32) | den
cpp_quote("}")
cpp_quote("#endif")
cpp_quote("EXTERN_GUID(MF_ACTIVATE_MFT_LOCKED, 0xc1f6093c, 0x7f65, 0x4fbd, 0x9e, 0x39, 0x5f, 0xae, 0xc3, 0xc4, 0xfb, 0xd7);")
cpp_quote("EXTERN_GUID(MF_SD_LANGUAGE, 0x00af2180, 0xbdc2, 0x423c, 0xab, 0xca, 0xf5, 0x03, 0x59, 0x3b, 0xc1, 0x21);")
cpp_quote("EXTERN_GUID(MF_SD_MUTUALLY_EXCLUSIVE, 0x023ef79c, 0x388d, 0x487f, 0xac, 0x17, 0x69, 0x6c, 0xd6, 0xe3, 0xc6, 0xf5);")
cpp_quote("EXTERN_GUID(MF_SD_PROTECTED, 0x00af2181, 0xbdc2, 0x423c, 0xab, 0xca, 0xf5, 0x03, 0x59, 0x3b, 0xc1, 0x21);")

View File

@ -123,3 +123,28 @@ interface IMFTransform : IUnknown
}
cpp_quote("HRESULT WINAPI MFCreateTransformActivate(IMFActivate **activate);")
cpp_quote("EXTERN_GUID(MF_SA_D3D_AWARE, 0xeaa35c29, 0x775e, 0x488e, 0x9b, 0x61, 0xb3, 0x28, 0x3e, 0x49, 0x58, 0x3b);")
cpp_quote("EXTERN_GUID(MF_TRANSFORM_ASYNC, 0xf81a699a, 0x649a, 0x497d, 0x8c, 0x73, 0x29, 0xf8, 0xfe, 0xd6, 0xad, 0x7a);")
cpp_quote("EXTERN_GUID(MF_TRANSFORM_ASYNC_UNLOCK, 0xe5666d6b, 0x3422, 0x4eb6, 0xa4, 0x21, 0xda, 0x7d, 0xb1, 0xf8, 0xe2, 0x07);")
cpp_quote("EXTERN_GUID(MF_TRANSFORM_CATEGORY_Attribute, 0xceabba49, 0x506d, 0x4757, 0xa6, 0xff, 0x66, 0xc1, 0x84, 0x98, 0x7e, 0x4e);")
cpp_quote("EXTERN_GUID(MF_TRANSFORM_FLAGS_Attribute, 0x9359bb7e, 0x6275, 0x46c4, 0xa0, 0x25, 0x1c, 0x01, 0xe4, 0x5f, 0x1a, 0x86);")
cpp_quote("EXTERN_GUID(MFT_CODEC_MERIT_Attribute, 0x88a7cb15, 0x7b07, 0x4a34, 0x91, 0x28, 0xe6, 0x4c, 0x67, 0x03, 0xc4, 0xd3);")
cpp_quote("EXTERN_GUID(MFT_CONNECTED_STREAM_ATTRIBUTE, 0x71eeb820, 0xa59f, 0x4de2, 0xbc, 0xec, 0x38, 0xdb, 0x1d, 0xd6, 0x11, 0xa4);")
cpp_quote("EXTERN_GUID(MFT_CONNECTED_TO_HW_STREAM, 0x34e6e728, 0x06d6, 0x4491, 0xa5, 0x53, 0x47, 0x95, 0x65, 0x0d, 0xb9, 0x12);")
cpp_quote("EXTERN_GUID(MFT_DECODER_EXPOSE_OUTPUT_TYPES_IN_NATIVE_ORDER, 0xef80833f, 0xf8fa, 0x44d9, 0x80, 0xd8, 0x41, 0xed, 0x62, 0x32, 0x67, 0x0c);")
cpp_quote("EXTERN_GUID(MFT_DECODER_FINAL_VIDEO_RESOLUTION_HINT, 0xdc2f8496, 0x15c4, 0x407a, 0xb6, 0xf0, 0x1b, 0x66, 0xab, 0x5f, 0xbf, 0x53);")
cpp_quote("EXTERN_GUID(MFT_ENCODER_SUPPORTS_CONFIG_EVENT, 0x86a355ae, 0x3a77, 0x4ec4, 0x9f, 0x31, 0x01, 0x14, 0x9a, 0x4e, 0x92, 0xde);")
cpp_quote("EXTERN_GUID(MFT_ENUM_HARDWARE_URL_Attribute, 0x2fb866ac, 0xb078, 0x4942, 0xab, 0x6c, 0x00, 0x3d, 0x05, 0xcd, 0xa6, 0x74);")
cpp_quote("EXTERN_GUID(MFT_ENUM_HARDWARE_VENDOR_ID_Attribute, 0x3aecb0cc, 0x035b, 0x4bcc, 0x81, 0x85, 0x2b, 0x8d, 0x55, 0x1e, 0xf3, 0xaf);")
cpp_quote("EXTERN_GUID(MFT_ENUM_TRANSCODE_ONLY_ATTRIBUTE, 0x111ea8cd, 0xb62a, 0x4bdb, 0x89, 0xf6, 0x67, 0xff, 0xcd, 0xc2, 0x45, 0x8b);")
cpp_quote("EXTERN_GUID(MFT_FIELDOFUSE_UNLOCK_Attribute, 0x8ec2e9fd, 0x9148, 0x410d, 0x83, 0x1e, 0x70, 0x24, 0x39, 0x46, 0x1a, 0x8e);")
cpp_quote("EXTERN_GUID(MFT_FRIENDLY_NAME_Attribute, 0x314ffbae, 0x5b41, 0x4c95, 0x9c, 0x19, 0x4e, 0x7d, 0x58, 0x6f, 0xac, 0xe3);")
cpp_quote("EXTERN_GUID(MFT_INPUT_TYPES_Attributes, 0x4276c9b1, 0x759d, 0x4bf3, 0x9c, 0xd0, 0x0d, 0x72, 0x3d, 0x13, 0x8f, 0x96);")
cpp_quote("EXTERN_GUID(MFT_OUTPUT_TYPES_Attributes, 0x8eae8cf3, 0xa44f, 0x4306, 0xba, 0x5c, 0xbf, 0x5d, 0xda, 0x24, 0x28, 0x18);")
cpp_quote("EXTERN_GUID(MFT_PREFERRED_ENCODER_PROFILE, 0x53004909, 0x1ef5, 0x46d7, 0xa1, 0x8e, 0x5a, 0x75, 0xf8, 0xb5, 0x90, 0x5f);")
cpp_quote("EXTERN_GUID(MFT_PREFERRED_OUTPUTTYPE_Attribute, 0x7e700499, 0x396a, 0x49ee, 0xb1, 0xb4, 0xf6, 0x28, 0x02, 0x1e, 0x8c, 0x9d);")
cpp_quote("EXTERN_GUID(MFT_PROCESS_LOCAL_Attribute, 0x543186e4, 0x4649, 0x4e65, 0xb5, 0x88, 0x4a, 0xa3, 0x52, 0xaf, 0xf3, 0x79);")
cpp_quote("EXTERN_GUID(MFT_REMUX_MARK_I_PICTURE_AS_CLEAN_POINT, 0x364e8f85, 0x3f2e, 0x436c, 0xb2, 0xa2, 0x44, 0x40, 0xa0, 0x12, 0xa9, 0xe8);")
cpp_quote("EXTERN_GUID(MFT_SUPPORT_3DVIDEO, 0x093f81b1, 0x4f2e, 0x4631, 0x81, 0x68, 0x79, 0x34, 0x03, 0x2a, 0x01, 0xd3);")
cpp_quote("EXTERN_GUID(MFT_TRANSFORM_CLSID_Attribute, 0x6821c42b, 0x65a4, 0x4e82, 0x99, 0xbc, 0x9a, 0x88, 0x20, 0x5e, 0xcd, 0x0c);")