Home | History | Annotate | Download | only in include
      1 /**
      2  * This file has no copyright assigned and is placed in the Public Domain.
      3  * This file is part of the mingw-w64 runtime package.
      4  * No warranty is given; refer to the file DISCLAIMER.PD within this package.
      5  */
      6 
      7 #ifndef _MFERROR_H
      8 #define _MFERROR_H
      9 
     10 #define STATUS_SEVERITY(hr) (((hr) >> 30) & 0x3)
     11 #define _HRESULT_TYPEDEF_(_sc) ((HRESULT)_sc)
     12 
     13 #define FACILITY_MF_WIN32  0x7
     14 #define FACILITY_MF        0xd
     15 
     16 #define STATUS_SEVERITY_SUCCESS        0x0
     17 #define STATUS_SEVERITY_INFORMATIONAL  0x1
     18 #define STATUS_SEVERITY_WARNING        0x2
     19 #define STATUS_SEVERITY_ERROR          0x3
     20 
     21 #define MF_E_PLATFORM_NOT_INITIALIZED  _HRESULT_TYPEDEF_(0xc00d36b0)
     22 #define MF_E_BUFFERTOOSMALL            _HRESULT_TYPEDEF_(0xc00d36b1)
     23 #define MF_E_INVALIDREQUEST            _HRESULT_TYPEDEF_(0xc00d36b2)
     24 #define MF_E_INVALIDSTREAMNUMBER       _HRESULT_TYPEDEF_(0xc00d36b3)
     25 #define MF_E_INVALIDMEDIATYPE          _HRESULT_TYPEDEF_(0xc00d36b4)
     26 #define MF_E_NOTACCEPTING              _HRESULT_TYPEDEF_(0xc00d36b5)
     27 #define MF_E_NOT_INITIALIZED           _HRESULT_TYPEDEF_(0xc00d36b6)
     28 #define MF_E_UNSUPPORTED_REPRESENTATION  _HRESULT_TYPEDEF_(0xc00d36b7)
     29 #define MF_E_NO_MORE_TYPES             _HRESULT_TYPEDEF_(0xc00d36b9)
     30 #define MF_E_UNSUPPORTED_SERVICE       _HRESULT_TYPEDEF_(0xc00d36ba)
     31 #define MF_E_UNEXPECTED                _HRESULT_TYPEDEF_(0xc00d36bb)
     32 #define MF_E_INVALIDNAME               _HRESULT_TYPEDEF_(0xc00d36bc)
     33 #define MF_E_INVALIDTYPE               _HRESULT_TYPEDEF_(0xc00d36bd)
     34 #define MF_E_INVALID_FILE_FORMAT       _HRESULT_TYPEDEF_(0xc00d36be)
     35 #define MF_E_INVALIDINDEX              _HRESULT_TYPEDEF_(0xc00d36bf)
     36 #define MF_E_INVALID_TIMESTAMP         _HRESULT_TYPEDEF_(0xc00d36c0)
     37 #define MF_E_UNSUPPORTED_SCHEME        _HRESULT_TYPEDEF_(0xc00d36c3)
     38 #define MF_E_UNSUPPORTED_BYTESTREAM_TYPE  _HRESULT_TYPEDEF_(0xc00d36c4)
     39 #define MF_E_UNSUPPORTED_TIME_FORMAT   _HRESULT_TYPEDEF_(0xc00d36c5)
     40 #define MF_E_NO_SAMPLE_TIMESTAMP       _HRESULT_TYPEDEF_(0xc00d36c8)
     41 #define MF_E_NO_SAMPLE_DURATION        _HRESULT_TYPEDEF_(0xc00d36c9)
     42 #define MF_E_INVALID_STREAM_DATA       _HRESULT_TYPEDEF_(0xc00d36cb)
     43 #define MF_E_RT_UNAVAILABLE            _HRESULT_TYPEDEF_(0xc00d36cf)
     44 #define MF_E_UNSUPPORTED_RATE          _HRESULT_TYPEDEF_(0xc00d36d0)
     45 #define MF_E_THINNING_UNSUPPORTED      _HRESULT_TYPEDEF_(0xc00d36d1)
     46 #define MF_E_REVERSE_UNSUPPORTED       _HRESULT_TYPEDEF_(0xc00d36d2)
     47 #define MF_E_UNSUPPORTED_RATE_TRANSITION  _HRESULT_TYPEDEF_(0xc00d36d3)
     48 #define MF_E_RATE_CHANGE_PREEMPTED     _HRESULT_TYPEDEF_(0xc00d36d4)
     49 #define MF_E_NOT_FOUND                 _HRESULT_TYPEDEF_(0xc00d36d5)
     50 #define MF_E_NOT_AVAILABLE             _HRESULT_TYPEDEF_(0xc00d36d6)
     51 #define MF_E_NO_CLOCK                  _HRESULT_TYPEDEF_(0xc00d36d7)
     52 #define MF_S_MULTIPLE_BEGIN            _HRESULT_TYPEDEF_(0x000d36d8)
     53 #define MF_E_MULTIPLE_BEGIN            _HRESULT_TYPEDEF_(0xc00d36d9)
     54 #define MF_E_MULTIPLE_SUBSCRIBERS      _HRESULT_TYPEDEF_(0xc00d36da)
     55 #define MF_E_TIMER_ORPHANED            _HRESULT_TYPEDEF_(0xc00d36db)
     56 #define MF_E_STATE_TRANSITION_PENDING      _HRESULT_TYPEDEF_(0xc00d36dc)
     57 #define MF_E_UNSUPPORTED_STATE_TRANSITION  _HRESULT_TYPEDEF_(0xc00d36dd)
     58 #define MF_E_UNRECOVERABLE_ERROR_OCCURRED  _HRESULT_TYPEDEF_(0xc00d36de)
     59 #define MF_E_SAMPLE_HAS_TOO_MANY_BUFFERS   _HRESULT_TYPEDEF_(0xc00d36df)
     60 #define MF_E_SAMPLE_NOT_WRITABLE       _HRESULT_TYPEDEF_(0xc00d36e0)
     61 #define MF_E_INVALID_KEY               _HRESULT_TYPEDEF_(0xc00d36e2)
     62 #define MF_E_BAD_STARTUP_VERSION       _HRESULT_TYPEDEF_(0xc00d36e3)
     63 #define MF_E_UNSUPPORTED_CAPTION       _HRESULT_TYPEDEF_(0xc00d36e4)
     64 #define MF_E_INVALID_POSITION          _HRESULT_TYPEDEF_(0xc00d36e5)
     65 #define MF_E_ATTRIBUTENOTFOUND         _HRESULT_TYPEDEF_(0xc00d36e6)
     66 #define MF_E_PROPERTY_TYPE_NOT_ALLOWED _HRESULT_TYPEDEF_(0xc00d36e7)
     67 
     68 #define MF_E_TOPO_INVALID_OPTIONAL_NODE    _HRESULT_TYPEDEF_(0xc00d520e)
     69 #define MF_E_TOPO_CANNOT_FIND_DECRYPTOR    _HRESULT_TYPEDEF_(0xc00d5211)
     70 #define MF_E_TOPO_CODEC_NOT_FOUND      _HRESULT_TYPEDEF_(0xc00d5212)
     71 #define MF_E_TOPO_CANNOT_CONNECT       _HRESULT_TYPEDEF_(0xc00d5213)
     72 #define MF_E_TOPO_UNSUPPORTED          _HRESULT_TYPEDEF_(0xc00d5214)
     73 #define MF_E_TOPO_INVALID_TIME_ATTRIBUTES  _HRESULT_TYPEDEF_(0xc00d5215)
     74 #define MF_E_TOPO_LOOPS_IN_TOPOLOGY    _HRESULT_TYPEDEF_(0xC00d5216)
     75 #define MF_E_TOPO_MISSING_PRESENTATION_DESCRIPTOR  _HRESULT_TYPEDEF_(0xc00d5217)
     76 #define MF_E_TOPO_MISSING_STREAM_DESCRIPTOR        _HRESULT_TYPEDEF_(0xc00d5218)
     77 #define MF_E_TOPO_STREAM_DESCRIPTOR_NOT_SELECTED   _HRESULT_TYPEDEF_(0xc00d5219)
     78 #define MF_E_TOPO_MISSING_SOURCE       _HRESULT_TYPEDEF_(0xc00d521a)
     79 #define MF_E_TOPO_SINK_ACTIVATES_UNSUPPORTED       _HRESULT_TYPEDEF_(0xc00d521b)
     80 
     81 #endif /* _MFERROR_H */
     82