/// <summary> /// Currently no flags are defined. Instead, metadata for samples is defined using /// attributes. To get attibutes from a sample, use the <see cref="MFAttributes"/> object, which /// <see cref="MFSample"/> inherits. /// </summary> /// <param name="sampleFlags">Receives the value <see cref="MFSampleFlags.None"/>.</param> /// <returns>HRESULT</returns> public unsafe int GetSampleFlagsNative(out MFSampleFlags sampleFlags) { fixed(void *ptr = &sampleFlags) { return(InteropCalls.CalliMethodPtr(UnsafeBasePtr, ptr, ((void **)(*(void **)UnsafeBasePtr))[33])); } }
/// <summary> /// Currently no flags are defined. Instead, metadata for samples is defined using /// attributes. To set attibutes on a sample, use the IMFAttributes interface, which /// IMFSample inherits. /// </summary> /// <param name="flags">must be zero</param> /// <returns>HRESULT</returns> public unsafe int SetSampleFlagsNative(MFSampleFlags flags) { return InteropCalls.CalliMethodPtr(_basePtr, flags, ((void**)(*(void**)_basePtr))[34]); }
/// <summary> /// Currently no flags are defined. Instead, metadata for samples is defined using /// attributes. To set attibutes on a sample, use the IMFAttributes interface, which /// IMFSample inherits. /// </summary> /// <param name="flags">must be zero</param> public void SetSampleFlags(MFSampleFlags flags) { MediaFoundationException.Try(SetSampleFlagsNative(flags), c, "SetSampleFlags"); }
/// <summary> /// Currently no flags are defined. Instead, metadata for samples is defined using /// attributes. To get attibutes from a sample, use the IMFAttributes interface, which /// IMFSample inherits. /// </summary> /// <returns>HRESULT</returns> public unsafe int GetSampleFlagsNative(out MFSampleFlags sampleFlags) { fixed (void* ptr = &sampleFlags) { return InteropCalls.CalliMethodPtr(_basePtr, ptr, ((void**)(*(void**)_basePtr))[33]); } }
internal static unsafe int CalliMethodPtr(void *_basePtr, MFSampleFlags flags, void *p) { throw new NotImplementedException(); }
internal static unsafe int CalliMethodPtr(void* _basePtr, MFSampleFlags flags, void* p) { throw new NotImplementedException(); }
/// <summary> /// Currently no flags are defined. Instead, metadata for samples is defined using /// attributes. To set attibutes on a sample, use the <see cref="MFAttributes"/> object, which /// IMFSample inherits. /// </summary> /// <param name="flags">Must be <see cref="MFSampleFlags.None"/>.</param> public void SetSampleFlags(MFSampleFlags flags) { MediaFoundationException.Try(SetSampleFlagsNative(flags), InterfaceName, "SetSampleFlags"); }
/// <summary> /// Currently no flags are defined. Instead, metadata for samples is defined using /// attributes. To set attibutes on a sample, use the <see cref="MFAttributes"/> object, which /// IMFSample inherits. /// </summary> /// <param name="flags">Must be <see cref="MFSampleFlags.None"/>.</param> /// <returns>HRESULT</returns> public unsafe int SetSampleFlagsNative(MFSampleFlags flags) { return(InteropCalls.CalliMethodPtr(UnsafeBasePtr, flags, ((void **)(*(void **)UnsafeBasePtr))[34])); }