MfxAttribute

This document currently is a largely undocumented draft so it is more informational to refer to the C API at the moment: OpenMfx API Reference.

struct MfxAttribute : public MfxBase

Public Functions

void FetchProperties(MfxAttributeProps &props)

Populate the provided props structure with this attribute’s properties

void SetProperties(const MfxAttributeProps &props)

Set attribute properties according to provided props structure

void CopyFrom(MfxAttribute &other, int start, int count)

Copy attribute data, casting if necessary

void ForwardFrom(MfxAttribute &other)

Forward attribute data, pointing to existing buffers instead of copying. Note that the buffer in source attribute must already be allocated.

Public Static Functions

MfxAttributeType attributeTypeAsEnum(const char *mfxType)

Convert a type string from MeshEffect API to its local enum counterpart

const char *attributeTypeAsString(MfxAttributeType type)

Convert local typestring enum to a type string from MeshEffect API

MfxAttributeAttachment attributeAttachmentAsEnum(const char *mfxAttachment)

Convert an attachment string from MeshEffect API to its local enum counterpart

const char *attributeAttachmentAsString(MfxAttributeAttachment attachment)

Convert local attachment enum to an attachment string from MeshEffect API

MfxAttributeSemantic attributeSemanticAsEnum(const char *mfxSemantic)

Convert a semantic string from MeshEffect API to its local enum counterpart

const char *attributeSemanticAsString(MfxAttributeSemantic semantic)

Convert local semantic enum to a semantic string from MeshEffect API