예제 #1
0
        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// The MFT defines a list of available media types for each input stream
        /// and orders them by preference. This method enumerates the available
        /// media types for an input stream.
        ///
        /// Many clients will just "try it on" with their preferred media type
        /// and if/when that gets rejected will start enumerating the types the
        /// transform prefers in order to see if they have one in common
        ///
        /// An override of the virtual version in TantaMFTBase_Sync.
        /// </summary>
        /// <param name="dwTypeIndex">The (zero-based) index of the type.</param>
        /// <param name="pInputType">The input type supported by the MFT.</param>
        /// <returns>S_Ok unless error.</returns>
        /// <history>
        ///    01 Nov 18  Cynic - Ported In
        /// </history>
        protected override HResult OnEnumInputTypes(int dwTypeIndex, out IMFMediaType pInputType)
        {
            // MF.Net Sample comments...
            // I'd like to skip implementing this, but while some clients
            // don't require it (PlaybackFX), some do (MEPlayer/IMFMediaEngine).
            // Although frame counting should be able to run against any type,
            // we must at a minimum provide a major type.

            return(TantaWMFUtils.CreatePartialMediaType(dwTypeIndex, MFMediaType.Video, m_MediaSubtypes, out pInputType));
        }
예제 #2
0
 /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
 /// <summary>
 /// The MFT defines a list of available media types for each input stream
 /// and orders them by preference. This method enumerates the available
 /// media types for an input stream.
 ///
 /// Many clients will just "try it on" with their preferred media type
 /// and if/when that gets rejected will start enumerating the types the
 /// transform prefers in order to see if they have one in common
 ///
 /// An override of the virtual version in TantaMFTBase_Async.
 /// </summary>
 /// <param name="dwTypeIndex">The (zero-based) index of the type.</param>
 /// <param name="pInputType">The input type supported by the MFT.</param>
 /// <returns>S_Ok unless error.</returns>
 /// <history>
 ///    01 Nov 18  Cynic - Ported In
 /// </history>
 override protected HResult OnEnumInputTypes(int dwTypeIndex, out IMFMediaType pInputType)
 {
     return(TantaWMFUtils.CreatePartialMediaType(dwTypeIndex, MFMediaType.Video, m_MediaSubtypes, out pInputType));
 }