Win32 API 日本語リファレンス
ホームMedia.MediaFoundation › MFSampleAllocatorUsage

MFSampleAllocatorUsage

列挙型
基底型i4

メンバー 3

名前10進16進説明
MFSampleAllocatorUsage_UsesProvidedAllocator00x0出力ストリームは、カメラ パイプラインのサンプル アロケーターを使用して新しいメディア サンプルを割り当てます。出力ストリームが CPU メモリ内でサンプルを生成する場合は、クロスコンテナーのシナリオで使用したときに一貫したパフォーマンスを確保するため、このモードを使用することをお勧めします。
MFSampleAllocatorUsage_UsesCustomAllocator10x1出力ストリームは、出力サンプルに対してカスタム アロケーターを使用します。カメラ パイプラインから提供されるサンプル アロケーターは使用しません。
MFSampleAllocatorUsage_DoesNotAllocate20x2出力ストリームは、出力サンプルのために新しいサンプルを割り当てません。カメラ パイプラインからサンプル アロケーターが提供されることもありません。

公式ドキュメント

IMFSampleAllocatorControl インターフェイスを実装するコンポーネントのアロケーターの使用方法を指定します。

解説(Remarks)

コンポーネントは、システム提供のアロケーターを使用するかどうかをシステムに知らせるため、IMFSampleAllocatorControl::GetAllocatorUsage の実装からこの列挙型の値を返す必要があります。

出典・ライセンス: 上記「公式ドキュメント」の内容は Microsoft の Win32 API ドキュメント(MicrosoftDocs/sdk-api)を日本語に翻訳・改変したものです。© Microsoft Corporation. CC BY 4.0 で提供。
Microsoft 公式リファレンス: 英語 (en-us) · 日本語 (ja-jp) · 原文ソース (GitHub)

各言語での定義

列挙メンバーの定義。HSP タブは #define global(値は16進)。

typedef enum MFSampleAllocatorUsage : int {
    MFSampleAllocatorUsage_UsesProvidedAllocator = 0,
    MFSampleAllocatorUsage_UsesCustomAllocator = 1,
    MFSampleAllocatorUsage_DoesNotAllocate = 2
} MFSampleAllocatorUsage;
public enum MFSampleAllocatorUsage : int
{
    MFSampleAllocatorUsage_UsesProvidedAllocator = 0,
    MFSampleAllocatorUsage_UsesCustomAllocator = 1,
    MFSampleAllocatorUsage_DoesNotAllocate = 2,
}
Public Enum MFSampleAllocatorUsage As Integer
    MFSampleAllocatorUsage_UsesProvidedAllocator = 0
    MFSampleAllocatorUsage_UsesCustomAllocator = 1
    MFSampleAllocatorUsage_DoesNotAllocate = 2
End Enum
import enum

class MFSampleAllocatorUsage(enum.IntEnum):
    MFSampleAllocatorUsage_UsesProvidedAllocator = 0
    MFSampleAllocatorUsage_UsesCustomAllocator = 1
    MFSampleAllocatorUsage_DoesNotAllocate = 2
// MFSampleAllocatorUsage
pub const MFSampleAllocatorUsage_UsesProvidedAllocator: i32 = 0;
pub const MFSampleAllocatorUsage_UsesCustomAllocator: i32 = 1;
pub const MFSampleAllocatorUsage_DoesNotAllocate: i32 = 2;
// MFSampleAllocatorUsage
const (
	MFSampleAllocatorUsage_UsesProvidedAllocator int32 = 0
	MFSampleAllocatorUsage_UsesCustomAllocator int32 = 1
	MFSampleAllocatorUsage_DoesNotAllocate int32 = 2
)
const
  MFSampleAllocatorUsage_UsesProvidedAllocator = 0;
  MFSampleAllocatorUsage_UsesCustomAllocator = 1;
  MFSampleAllocatorUsage_DoesNotAllocate = 2;
// MFSampleAllocatorUsage
pub const MFSampleAllocatorUsage_UsesProvidedAllocator: i32 = 0;
pub const MFSampleAllocatorUsage_UsesCustomAllocator: i32 = 1;
pub const MFSampleAllocatorUsage_DoesNotAllocate: i32 = 2;
const
  MFSampleAllocatorUsage_UsesProvidedAllocator* = 0
  MFSampleAllocatorUsage_UsesCustomAllocator* = 1
  MFSampleAllocatorUsage_DoesNotAllocate* = 2
enum MFSampleAllocatorUsage : int {
    MFSampleAllocatorUsage_UsesProvidedAllocator = 0,
    MFSampleAllocatorUsage_UsesCustomAllocator = 1,
    MFSampleAllocatorUsage_DoesNotAllocate = 2,
}
#define global MFSampleAllocatorUsage_UsesProvidedAllocator 0x0
#define global MFSampleAllocatorUsage_UsesCustomAllocator   0x1
#define global MFSampleAllocatorUsage_DoesNotAllocate       0x2