Win32 API 日本語リファレンス
ホームGraphics.Direct3D11 › D3D11_VIDEO_PROCESSOR_CAPS

D3D11_VIDEO_PROCESSOR_CAPS

構造体
サイズx64: 36 バイト / x86: 36 バイト

サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。

フィールド

フィールドサイズx64x86説明
DeviceCapsDWORD4+0+0D3D11_VIDEO_PROCESSOR_DEVICE_CAPS 列挙型の 0 個以上のフラグのビット単位の OR です。
FeatureCapsDWORD4+4+4D3D11_VIDEO_PROCESSOR_FEATURE_CAPS 列挙型の 0 個以上のフラグのビット単位の OR です。
FilterCapsDWORD4+8+8D3D11_VIDEO_PROCESSPR_FILTER_CAPS 列挙型の 0 個以上のフラグのビット単位の OR です。
InputFormatCapsDWORD4+12+12D3D11_VIDEO_PROCESSOR_FORMAT_CAPS 列挙型の 0 個以上のフラグのビット単位の OR です。
AutoStreamCapsDWORD4+16+16D3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPS 列挙型の 0 個以上のフラグのビット単位の OR です。
StereoCapsDWORD4+20+20D3D11_VIDEO_PROCESSOR_STEREO_CAPS 列挙型の 0 個以上のフラグのビット単位の OR です。
RateConversionCapsCountDWORD4+24+24フレームレート変換機能の数です。フレームレート変換機能を列挙するには、ID3D11VideoProcessorEnumerator::GetVideoProcessorRateConversionCaps メソッドを呼び出します。
MaxInputStreamsDWORD4+28+28同時に有効にできる入力ストリームの最大数です。
MaxStreamStatesDWORD4+32+32デバイスが状態データを保存できる入力ストリームの最大数です。

公式ドキュメント

Microsoft Direct3D 11 ビデオプロセッサーの機能を記述します。

解説(Remarks)

ビデオプロセッサーは、各入力ストリームの状態情報を保存します。これらの状態はブリット間で保持されます。アプリケーションはブリットごとに、どのストリームを有効または無効にするかを選択します。ストリームを無効にしても、そのストリームの状態情報には影響しません。

MaxStreamStates メンバーは、保存できるストリーム状態の最大数を示します。MaxInputStreams メンバーは、ブリット中に有効にできるストリームの最大数を示します。これら 2 つの値は異なる場合があります。

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

各言語での定義

#include <windows.h>

// D3D11_VIDEO_PROCESSOR_CAPS  (x64 36 / x86 36 バイト)
typedef struct D3D11_VIDEO_PROCESSOR_CAPS {
    DWORD DeviceCaps;
    DWORD FeatureCaps;
    DWORD FilterCaps;
    DWORD InputFormatCaps;
    DWORD AutoStreamCaps;
    DWORD StereoCaps;
    DWORD RateConversionCapsCount;
    DWORD MaxInputStreams;
    DWORD MaxStreamStates;
} D3D11_VIDEO_PROCESSOR_CAPS;
using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct D3D11_VIDEO_PROCESSOR_CAPS
{
    public uint DeviceCaps;
    public uint FeatureCaps;
    public uint FilterCaps;
    public uint InputFormatCaps;
    public uint AutoStreamCaps;
    public uint StereoCaps;
    public uint RateConversionCapsCount;
    public uint MaxInputStreams;
    public uint MaxStreamStates;
}
Imports System.Runtime.InteropServices

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure D3D11_VIDEO_PROCESSOR_CAPS
    Public DeviceCaps As UInteger
    Public FeatureCaps As UInteger
    Public FilterCaps As UInteger
    Public InputFormatCaps As UInteger
    Public AutoStreamCaps As UInteger
    Public StereoCaps As UInteger
    Public RateConversionCapsCount As UInteger
    Public MaxInputStreams As UInteger
    Public MaxStreamStates As UInteger
End Structure
import ctypes
from ctypes import wintypes

class D3D11_VIDEO_PROCESSOR_CAPS(ctypes.Structure):
    _fields_ = [
        ("DeviceCaps", wintypes.DWORD),
        ("FeatureCaps", wintypes.DWORD),
        ("FilterCaps", wintypes.DWORD),
        ("InputFormatCaps", wintypes.DWORD),
        ("AutoStreamCaps", wintypes.DWORD),
        ("StereoCaps", wintypes.DWORD),
        ("RateConversionCapsCount", wintypes.DWORD),
        ("MaxInputStreams", wintypes.DWORD),
        ("MaxStreamStates", wintypes.DWORD),
    ]
#[repr(C)]
pub struct D3D11_VIDEO_PROCESSOR_CAPS {
    pub DeviceCaps: u32,
    pub FeatureCaps: u32,
    pub FilterCaps: u32,
    pub InputFormatCaps: u32,
    pub AutoStreamCaps: u32,
    pub StereoCaps: u32,
    pub RateConversionCapsCount: u32,
    pub MaxInputStreams: u32,
    pub MaxStreamStates: u32,
}
import "golang.org/x/sys/windows"

type D3D11_VIDEO_PROCESSOR_CAPS struct {
	DeviceCaps uint32
	FeatureCaps uint32
	FilterCaps uint32
	InputFormatCaps uint32
	AutoStreamCaps uint32
	StereoCaps uint32
	RateConversionCapsCount uint32
	MaxInputStreams uint32
	MaxStreamStates uint32
}
type
  D3D11_VIDEO_PROCESSOR_CAPS = record
    DeviceCaps: DWORD;
    FeatureCaps: DWORD;
    FilterCaps: DWORD;
    InputFormatCaps: DWORD;
    AutoStreamCaps: DWORD;
    StereoCaps: DWORD;
    RateConversionCapsCount: DWORD;
    MaxInputStreams: DWORD;
    MaxStreamStates: DWORD;
  end;
const D3D11_VIDEO_PROCESSOR_CAPS = extern struct {
    DeviceCaps: u32,
    FeatureCaps: u32,
    FilterCaps: u32,
    InputFormatCaps: u32,
    AutoStreamCaps: u32,
    StereoCaps: u32,
    RateConversionCapsCount: u32,
    MaxInputStreams: u32,
    MaxStreamStates: u32,
};
type
  D3D11_VIDEO_PROCESSOR_CAPS {.bycopy.} = object
    DeviceCaps: uint32
    FeatureCaps: uint32
    FilterCaps: uint32
    InputFormatCaps: uint32
    AutoStreamCaps: uint32
    StereoCaps: uint32
    RateConversionCapsCount: uint32
    MaxInputStreams: uint32
    MaxStreamStates: uint32
struct D3D11_VIDEO_PROCESSOR_CAPS
{
    uint DeviceCaps;
    uint FeatureCaps;
    uint FilterCaps;
    uint InputFormatCaps;
    uint AutoStreamCaps;
    uint StereoCaps;
    uint RateConversionCapsCount;
    uint MaxInputStreams;
    uint MaxStreamStates;
}

HSP用 定義

HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。

; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; D3D11_VIDEO_PROCESSOR_CAPS サイズ: 36 バイト(x64)
dim st, 9    ; 4byte整数×9(構造体サイズ 36 / 4 切り上げ)
; DeviceCaps : DWORD (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; FeatureCaps : DWORD (+4, 4byte)  st.1 = 値  /  値 = st.1   (lpoke/lpeek も可)
; FilterCaps : DWORD (+8, 4byte)  st.2 = 値  /  値 = st.2   (lpoke/lpeek も可)
; InputFormatCaps : DWORD (+12, 4byte)  st.3 = 値  /  値 = st.3   (lpoke/lpeek も可)
; AutoStreamCaps : DWORD (+16, 4byte)  st.4 = 値  /  値 = st.4   (lpoke/lpeek も可)
; StereoCaps : DWORD (+20, 4byte)  st.5 = 値  /  値 = st.5   (lpoke/lpeek も可)
; RateConversionCapsCount : DWORD (+24, 4byte)  st.6 = 値  /  値 = st.6   (lpoke/lpeek も可)
; MaxInputStreams : DWORD (+28, 4byte)  st.7 = 値  /  値 = st.7   (lpoke/lpeek も可)
; MaxStreamStates : DWORD (+32, 4byte)  st.8 = 値  /  値 = st.8   (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global D3D11_VIDEO_PROCESSOR_CAPS
    #field int DeviceCaps
    #field int FeatureCaps
    #field int FilterCaps
    #field int InputFormatCaps
    #field int AutoStreamCaps
    #field int StereoCaps
    #field int RateConversionCapsCount
    #field int MaxInputStreams
    #field int MaxStreamStates
#endstruct

stdim st, D3D11_VIDEO_PROCESSOR_CAPS        ; NSTRUCT 変数を確保
st->DeviceCaps = 100
mes "DeviceCaps=" + st->DeviceCaps