IMFFrame Interface Methods

For a list of all members of this type, see IMFFrame members.

Public Methods
 NameDescription
 MethodMFAddToStreamAdd a frame to a stream  
 MethodMFAllGetGets all frame's properties  
 MethodMFAudioAllocAllocates frame's audio data  
 MethodMFAudioChannelGetBytesGets audio channel's data pointer.
 Warning: For 20, 24, 32 integer this method returns 32 bit float data. The changes are applied only after a call of MFAudioChannelsUpdate() method  
 MethodMFAudioChannelsUpdateUpdate frame's audio channel's data or number of channels. Call this method after modification of memory that is returned by MFAudioChannelGetBytes() method.  
 MethodMFAudioCopyToCopies audio channels, the bits conversion can be also performed  
 MethodMFAudioGainGets audio gain in dB.  
 MethodMFAudioGetBytesGets audio data pointer and data size  
 MethodMFAudioLoadFromFileLoads audio data from a WAV file  
 MethodMFAudioMixMixes audio data  
 MethodMFAudioMixDirectDirectly mixes audio data (audio data of source frame and of the mixed frame should have equal frequency)  
 MethodMFAudioSaveToFileSave audio to file (WAV format is used). If the file is exist and have WAV format then audio will be added to the end of the file.
Note: format is not checked.  
 MethodMFAudioSetSets frame's audio data  
 MethodMFAVPropsGetGets media properties of the frame  
 MethodMFAVPropsSetSets media properties for the frame.
Note that width, height, row-bytes can't be changed with this method. To change them you should convert a frame.  
 MethodMFCloneGets a clone of the frame. See eMFrameClone for more information about clone types.  
 MethodMFConvertConverts the frame's format (include frame rate conversion) or just scale the video frame.  
 MethodMFCutCuts out part of video frame without memory copy. nFeild <= 0->both, nField=1 -> first field, nField=2 -> second field  
 MethodMFDataGetGets ancillary data by four char code e.g. 'C608'.  
 MethodMFDataGetByIndexGets ancillary data by its index  
 MethodMFDataSetSets ancillary data by four char code e.g. 'C608'.  
 MethodMFFlagCheckChecks a frame's flag  
 MethodMFGetProcessIDGets frame's process ID  
 MethodMFLoadLoads a full copy of all data (used internally for transfer data between process)  
 MethodMFLoadFromStreamLoads a frame from a stream  
 MethodMFObjGetGets an attached object by its ID  
 MethodMFObjGetByIndexGets an attached object by its index.  
 MethodMFObjSetSets an attached object by its ID  
 MethodMFOverlayMixes frames: overlays _pFrameOverlay frame over this frame. By default audio gain is calculated based on overlay size and transparency or can be specified via 'audio_gain' property.  
 MethodMFOverlayRectMixes frames - overlays _pFrameOverlay frame over this frame, the position is from top-left corner, for 4:2:2 images (e.g. UYVY) horizontal position is aligned by two (e.g. 21->20). By default audio gain is calculated based on overlay size and transparency or can be specified via 'audio_gain' props.  
 MethodMFPrintTypes a text overlay on a frame  
 MethodMFResizeResizes the frame (just scale video frame).  
 MethodMFSaveSaves a full copy of all data (used internally for transfer data between process)  
 MethodMFSaveToStreamSaves a frame to a stream  
 MethodMFStrGetGets a string by its ID  
 MethodMFStrGetByIndexGets a string by its index.  
 MethodMFStrSetSets a string by its ID.  
 MethodMFTimeGetGets a frame's time  
 MethodMFTimeSetSets a frame's time  
 MethodMFTransitionMakes a transition between frames  
 MethodMFVideoGetBytesGets frame's video data pointer  
 MethodMFVideoGetBytesExExtended method to get video bytes of a frame  
 MethodMFVideoGetHbitmapGets a HBitmap for a frame  
 MethodMFVideoSaveToFileSaves frame's video to a file. Supported formats are: PNG, JPG, BMP, TGA, TIFF  
 MethodMFWaitAsyncWaits until asynchronous procedure is finished  
Top
See Also

Reference

IMFFrame Interface
MFORMATSDSLib Namespace