Expand Minimize

MF_SOURCE_READER_FLAG enumeration

Contains flags that indicate the status of the IMFSourceReader::ReadSample method.

Syntax


typedef enum MF_SOURCE_READER_FLAG { 
  MF_SOURCE_READERF_ERROR                    = 0x00000001,
  MF_SOURCE_READERF_ENDOFSTREAM              = 0x00000002,
  MF_SOURCE_READERF_NEWSTREAM                = 0x00000004,
  MF_SOURCE_READERF_NATIVEMEDIATYPECHANGED   = 0x00000010,
  MF_SOURCE_READERF_CURRENTMEDIATYPECHANGED  = 0x00000020,
  MF_SOURCE_READERF_STREAMTICK               = 0x00000100,
  MF_SOURCE_READERF_ALLEFFECTSREMOVED        = 0x00000200
} MF_SOURCE_READER_FLAG;

Constants

MF_SOURCE_READERF_ERROR

An error occurred. If you receive this flag, do not make any further calls to IMFSourceReader methods.

MF_SOURCE_READERF_ENDOFSTREAM

The source reader reached the end of the stream.

MF_SOURCE_READERF_NEWSTREAM

One or more new streams were created. Respond to this flag by doing at least one of the following:

  • Set the output types on the new streams.
  • Update the stream selection by selecting or deselecting streams.
MF_SOURCE_READERF_NATIVEMEDIATYPECHANGED

The native format has changed for one or more streams. The native format is the format delivered by the media source before any decoders are inserted.

MF_SOURCE_READERF_CURRENTMEDIATYPECHANGED

The current media has type changed for one or more streams. To get the current media type, call the IMFSourceReader::GetCurrentMediaType method.

MF_SOURCE_READERF_STREAMTICK

There is a gap in the stream. This flag corresponds to an MEStreamTick event from the media source.

MF_SOURCE_READERF_ALLEFFECTSREMOVED

All transforms inserted by the application have been removed for a particular stream. This could be due to a dynamic format change from a source or decoder that prevents custom transforms from being used because they cannot handle the new media type.

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

Mfreadwrite.h

See also

Media Foundation Enumerations
IMFSourceReader

 

 

Community Additions

ADD
Show:
© 2014 Microsoft