MF_SOURCE_READER_FLAG enumeration (mfreadwrite.h)

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

Syntax

typedef enum MF_SOURCE_READER_FLAG {
  MF_SOURCE_READERF_ERROR = 0x1,
  MF_SOURCE_READERF_ENDOFSTREAM = 0x2,
  MF_SOURCE_READERF_NEWSTREAM = 0x4,
  MF_SOURCE_READERF_NATIVEMEDIATYPECHANGED = 0x10,
  MF_SOURCE_READERF_CURRENTMEDIATYPECHANGED = 0x20,
  MF_SOURCE_READERF_STREAMTICK = 0x100,
  MF_SOURCE_READERF_ALLEFFECTSREMOVED = 0x200
} ;

Constants

 
MF_SOURCE_READERF_ERROR
Value: 0x1
An error occurred. If you receive this flag, do not make any further calls to IMFSourceReader methods.
MF_SOURCE_READERF_ENDOFSTREAM
Value: 0x2
The source reader reached the end of the stream.
MF_SOURCE_READERF_NEWSTREAM
Value: 0x4
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
Value: 0x10
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
Value: 0x20
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
Value: 0x100
There is a gap in the stream. This flag corresponds to an MEStreamTick event from the media source.
MF_SOURCE_READERF_ALLEFFECTSREMOVED
Value: 0x200
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

Requirement Value
Minimum supported client Windows 7 [desktop apps | UWP apps]
Minimum supported server Windows Server 2008 R2 [desktop apps | UWP apps]
Header mfreadwrite.h

See also

IMFSourceReader

Media Foundation Enumerations