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

D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT

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

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

フィールド

フィールドサイズx64x86説明
NodeIndexDWORD4+0+0対象とする物理アダプタノードのインデックス。
InputSampleD3D12_VIDEO_SAMPLE16+4+4入力サンプルの寸法と形式を示すD3D12_VIDEO_SAMPLE。
InputFieldTypeD3D12_VIDEO_FIELD_TYPE4+20+20入力のフィールド種別を示すD3D12_VIDEO_FIELD_TYPE。
InputStereoFormatD3D12_VIDEO_FRAME_STEREO_FORMAT4+24+24入力のステレオ3D形式を示すD3D12_VIDEO_FRAME_STEREO_FORMAT。
InputFrameRateDXGI_RATIONAL8+28+28入力のフレームレートを示すDXGI_RATIONAL。
OutputFormatD3D12_VIDEO_FORMAT8+36+36出力の形式と色空間を示すD3D12_VIDEO_FORMAT。
OutputStereoFormatD3D12_VIDEO_FRAME_STEREO_FORMAT4+44+44出力のステレオ3D形式を示すD3D12_VIDEO_FRAME_STEREO_FORMAT。
OutputFrameRateDXGI_RATIONAL8+48+48出力のフレームレートを示すDXGI_RATIONAL。
SupportFlagsD3D12_VIDEO_PROCESS_SUPPORT_FLAGS4+56+56ビデオ処理サポート可否を示すD3D12_VIDEO_PROCESS_SUPPORT_FLAGS(出力)。
ScaleSupportD3D12_VIDEO_SCALE_SUPPORT20+60+60スケーリングサポート情報を示すD3D12_VIDEO_SCALE_SUPPORT(出力)。
FeatureSupportD3D12_VIDEO_PROCESS_FEATURE_FLAGS4+80+80サポートされる処理機能を示すD3D12_VIDEO_PROCESS_FEATURE_FLAGS(出力)。
DeinterlaceSupportD3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS4+84+84サポートされるデインターレース方式を示すD3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS(出力)。
AutoProcessingSupportD3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS4+88+88自動処理サポートを示すD3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS(出力)。
FilterSupportD3D12_VIDEO_PROCESS_FILTER_FLAGS4+92+92サポートされるフィルタを示すD3D12_VIDEO_PROCESS_FILTER_FLAGS(出力)。
FilterRangeSupportD3D12_VIDEO_PROCESS_FILTER_RANGE512+96+96フィルタ値の範囲を示すD3D12_VIDEO_PROCESS_FILTER_RANGE(出力)。

各言語での定義

#include <windows.h>

// D3D12_VIDEO_FORMAT  (x64 8 / x86 8 バイト)
typedef struct D3D12_VIDEO_FORMAT {
    DXGI_FORMAT Format;
    DXGI_COLOR_SPACE_TYPE ColorSpace;
} D3D12_VIDEO_FORMAT;

// D3D12_VIDEO_SAMPLE  (x64 16 / x86 16 バイト)
typedef struct D3D12_VIDEO_SAMPLE {
    DWORD Width;
    DWORD Height;
    D3D12_VIDEO_FORMAT Format;
} D3D12_VIDEO_SAMPLE;

// DXGI_RATIONAL  (x64 8 / x86 8 バイト)
typedef struct DXGI_RATIONAL {
    DWORD Numerator;
    DWORD Denominator;
} DXGI_RATIONAL;

// D3D12_VIDEO_SIZE_RANGE  (x64 16 / x86 16 バイト)
typedef struct D3D12_VIDEO_SIZE_RANGE {
    DWORD MaxWidth;
    DWORD MaxHeight;
    DWORD MinWidth;
    DWORD MinHeight;
} D3D12_VIDEO_SIZE_RANGE;

// D3D12_VIDEO_SCALE_SUPPORT  (x64 20 / x86 20 バイト)
typedef struct D3D12_VIDEO_SCALE_SUPPORT {
    D3D12_VIDEO_SIZE_RANGE OutputSizeRange;
    D3D12_VIDEO_SCALE_SUPPORT_FLAGS Flags;
} D3D12_VIDEO_SCALE_SUPPORT;

// D3D12_VIDEO_PROCESS_FILTER_RANGE  (x64 16 / x86 16 バイト)
typedef struct D3D12_VIDEO_PROCESS_FILTER_RANGE {
    INT Minimum;
    INT Maximum;
    INT Default;
    FLOAT Multiplier;
} D3D12_VIDEO_PROCESS_FILTER_RANGE;

// D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT  (x64 608 / x86 608 バイト)
typedef struct D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT {
    DWORD NodeIndex;
    D3D12_VIDEO_SAMPLE InputSample;
    D3D12_VIDEO_FIELD_TYPE InputFieldType;
    D3D12_VIDEO_FRAME_STEREO_FORMAT InputStereoFormat;
    DXGI_RATIONAL InputFrameRate;
    D3D12_VIDEO_FORMAT OutputFormat;
    D3D12_VIDEO_FRAME_STEREO_FORMAT OutputStereoFormat;
    DXGI_RATIONAL OutputFrameRate;
    D3D12_VIDEO_PROCESS_SUPPORT_FLAGS SupportFlags;
    D3D12_VIDEO_SCALE_SUPPORT ScaleSupport;
    D3D12_VIDEO_PROCESS_FEATURE_FLAGS FeatureSupport;
    D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS DeinterlaceSupport;
    D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS AutoProcessingSupport;
    D3D12_VIDEO_PROCESS_FILTER_FLAGS FilterSupport;
    D3D12_VIDEO_PROCESS_FILTER_RANGE FilterRangeSupport[32];
} D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT;
using System;
using System.Runtime.InteropServices;

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct D3D12_VIDEO_FORMAT
{
    public int Format;
    public int ColorSpace;
}

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct D3D12_VIDEO_SAMPLE
{
    public uint Width;
    public uint Height;
    public D3D12_VIDEO_FORMAT Format;
}

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct DXGI_RATIONAL
{
    public uint Numerator;
    public uint Denominator;
}

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct D3D12_VIDEO_SIZE_RANGE
{
    public uint MaxWidth;
    public uint MaxHeight;
    public uint MinWidth;
    public uint MinHeight;
}

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct D3D12_VIDEO_SCALE_SUPPORT
{
    public D3D12_VIDEO_SIZE_RANGE OutputSizeRange;
    public int Flags;
}

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct D3D12_VIDEO_PROCESS_FILTER_RANGE
{
    public int Minimum;
    public int Maximum;
    public int Default;
    public float Multiplier;
}

[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT
{
    public uint NodeIndex;
    public D3D12_VIDEO_SAMPLE InputSample;
    public int InputFieldType;
    public int InputStereoFormat;
    public DXGI_RATIONAL InputFrameRate;
    public D3D12_VIDEO_FORMAT OutputFormat;
    public int OutputStereoFormat;
    public DXGI_RATIONAL OutputFrameRate;
    public int SupportFlags;
    public D3D12_VIDEO_SCALE_SUPPORT ScaleSupport;
    public int FeatureSupport;
    public uint DeinterlaceSupport;
    public uint AutoProcessingSupport;
    public int FilterSupport;
    [MarshalAs(UnmanagedType.ByValArray, SizeConst = 32)] public D3D12_VIDEO_PROCESS_FILTER_RANGE[] FilterRangeSupport;
}
Imports System.Runtime.InteropServices

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure D3D12_VIDEO_FORMAT
    Public Format As Integer
    Public ColorSpace As Integer
End Structure

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure D3D12_VIDEO_SAMPLE
    Public Width As UInteger
    Public Height As UInteger
    Public Format As D3D12_VIDEO_FORMAT
End Structure

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure DXGI_RATIONAL
    Public Numerator As UInteger
    Public Denominator As UInteger
End Structure

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure D3D12_VIDEO_SIZE_RANGE
    Public MaxWidth As UInteger
    Public MaxHeight As UInteger
    Public MinWidth As UInteger
    Public MinHeight As UInteger
End Structure

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure D3D12_VIDEO_SCALE_SUPPORT
    Public OutputSizeRange As D3D12_VIDEO_SIZE_RANGE
    Public Flags As Integer
End Structure

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure D3D12_VIDEO_PROCESS_FILTER_RANGE
    Public Minimum As Integer
    Public Maximum As Integer
    Public Default As Integer
    Public Multiplier As Single
End Structure

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT
    Public NodeIndex As UInteger
    Public InputSample As D3D12_VIDEO_SAMPLE
    Public InputFieldType As Integer
    Public InputStereoFormat As Integer
    Public InputFrameRate As DXGI_RATIONAL
    Public OutputFormat As D3D12_VIDEO_FORMAT
    Public OutputStereoFormat As Integer
    Public OutputFrameRate As DXGI_RATIONAL
    Public SupportFlags As Integer
    Public ScaleSupport As D3D12_VIDEO_SCALE_SUPPORT
    Public FeatureSupport As Integer
    Public DeinterlaceSupport As UInteger
    Public AutoProcessingSupport As UInteger
    Public FilterSupport As Integer
    <MarshalAs(UnmanagedType.ByValArray, SizeConst:=32)> Public FilterRangeSupport() As D3D12_VIDEO_PROCESS_FILTER_RANGE
End Structure
import ctypes
from ctypes import wintypes

class D3D12_VIDEO_FORMAT(ctypes.Structure):
    _fields_ = [
        ("Format", ctypes.c_int),
        ("ColorSpace", ctypes.c_int),
    ]

class D3D12_VIDEO_SAMPLE(ctypes.Structure):
    _fields_ = [
        ("Width", wintypes.DWORD),
        ("Height", wintypes.DWORD),
        ("Format", D3D12_VIDEO_FORMAT),
    ]

class DXGI_RATIONAL(ctypes.Structure):
    _fields_ = [
        ("Numerator", wintypes.DWORD),
        ("Denominator", wintypes.DWORD),
    ]

class D3D12_VIDEO_SIZE_RANGE(ctypes.Structure):
    _fields_ = [
        ("MaxWidth", wintypes.DWORD),
        ("MaxHeight", wintypes.DWORD),
        ("MinWidth", wintypes.DWORD),
        ("MinHeight", wintypes.DWORD),
    ]

class D3D12_VIDEO_SCALE_SUPPORT(ctypes.Structure):
    _fields_ = [
        ("OutputSizeRange", D3D12_VIDEO_SIZE_RANGE),
        ("Flags", ctypes.c_int),
    ]

class D3D12_VIDEO_PROCESS_FILTER_RANGE(ctypes.Structure):
    _fields_ = [
        ("Minimum", ctypes.c_int),
        ("Maximum", ctypes.c_int),
        ("Default", ctypes.c_int),
        ("Multiplier", ctypes.c_float),
    ]

class D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT(ctypes.Structure):
    _fields_ = [
        ("NodeIndex", wintypes.DWORD),
        ("InputSample", D3D12_VIDEO_SAMPLE),
        ("InputFieldType", ctypes.c_int),
        ("InputStereoFormat", ctypes.c_int),
        ("InputFrameRate", DXGI_RATIONAL),
        ("OutputFormat", D3D12_VIDEO_FORMAT),
        ("OutputStereoFormat", ctypes.c_int),
        ("OutputFrameRate", DXGI_RATIONAL),
        ("SupportFlags", ctypes.c_int),
        ("ScaleSupport", D3D12_VIDEO_SCALE_SUPPORT),
        ("FeatureSupport", ctypes.c_int),
        ("DeinterlaceSupport", wintypes.DWORD),
        ("AutoProcessingSupport", wintypes.DWORD),
        ("FilterSupport", ctypes.c_int),
        ("FilterRangeSupport", D3D12_VIDEO_PROCESS_FILTER_RANGE * 32),
    ]
#[repr(C)]
pub struct D3D12_VIDEO_FORMAT {
    pub Format: i32,
    pub ColorSpace: i32,
}

#[repr(C)]
pub struct D3D12_VIDEO_SAMPLE {
    pub Width: u32,
    pub Height: u32,
    pub Format: D3D12_VIDEO_FORMAT,
}

#[repr(C)]
pub struct DXGI_RATIONAL {
    pub Numerator: u32,
    pub Denominator: u32,
}

#[repr(C)]
pub struct D3D12_VIDEO_SIZE_RANGE {
    pub MaxWidth: u32,
    pub MaxHeight: u32,
    pub MinWidth: u32,
    pub MinHeight: u32,
}

#[repr(C)]
pub struct D3D12_VIDEO_SCALE_SUPPORT {
    pub OutputSizeRange: D3D12_VIDEO_SIZE_RANGE,
    pub Flags: i32,
}

#[repr(C)]
pub struct D3D12_VIDEO_PROCESS_FILTER_RANGE {
    pub Minimum: i32,
    pub Maximum: i32,
    pub Default: i32,
    pub Multiplier: f32,
}

#[repr(C)]
pub struct D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT {
    pub NodeIndex: u32,
    pub InputSample: D3D12_VIDEO_SAMPLE,
    pub InputFieldType: i32,
    pub InputStereoFormat: i32,
    pub InputFrameRate: DXGI_RATIONAL,
    pub OutputFormat: D3D12_VIDEO_FORMAT,
    pub OutputStereoFormat: i32,
    pub OutputFrameRate: DXGI_RATIONAL,
    pub SupportFlags: i32,
    pub ScaleSupport: D3D12_VIDEO_SCALE_SUPPORT,
    pub FeatureSupport: i32,
    pub DeinterlaceSupport: u32,
    pub AutoProcessingSupport: u32,
    pub FilterSupport: i32,
    pub FilterRangeSupport: [D3D12_VIDEO_PROCESS_FILTER_RANGE; 32],
}
import "golang.org/x/sys/windows"

type D3D12_VIDEO_FORMAT struct {
	Format int32
	ColorSpace int32
}

type D3D12_VIDEO_SAMPLE struct {
	Width uint32
	Height uint32
	Format D3D12_VIDEO_FORMAT
}

type DXGI_RATIONAL struct {
	Numerator uint32
	Denominator uint32
}

type D3D12_VIDEO_SIZE_RANGE struct {
	MaxWidth uint32
	MaxHeight uint32
	MinWidth uint32
	MinHeight uint32
}

type D3D12_VIDEO_SCALE_SUPPORT struct {
	OutputSizeRange D3D12_VIDEO_SIZE_RANGE
	Flags int32
}

type D3D12_VIDEO_PROCESS_FILTER_RANGE struct {
	Minimum int32
	Maximum int32
	Default int32
	Multiplier float32
}

type D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT struct {
	NodeIndex uint32
	InputSample D3D12_VIDEO_SAMPLE
	InputFieldType int32
	InputStereoFormat int32
	InputFrameRate DXGI_RATIONAL
	OutputFormat D3D12_VIDEO_FORMAT
	OutputStereoFormat int32
	OutputFrameRate DXGI_RATIONAL
	SupportFlags int32
	ScaleSupport D3D12_VIDEO_SCALE_SUPPORT
	FeatureSupport int32
	DeinterlaceSupport uint32
	AutoProcessingSupport uint32
	FilterSupport int32
	FilterRangeSupport [32]D3D12_VIDEO_PROCESS_FILTER_RANGE
}
type
  D3D12_VIDEO_FORMAT = record
    Format: Integer;
    ColorSpace: Integer;
  end;

  D3D12_VIDEO_SAMPLE = record
    Width: DWORD;
    Height: DWORD;
    Format: D3D12_VIDEO_FORMAT;
  end;

  DXGI_RATIONAL = record
    Numerator: DWORD;
    Denominator: DWORD;
  end;

  D3D12_VIDEO_SIZE_RANGE = record
    MaxWidth: DWORD;
    MaxHeight: DWORD;
    MinWidth: DWORD;
    MinHeight: DWORD;
  end;

  D3D12_VIDEO_SCALE_SUPPORT = record
    OutputSizeRange: D3D12_VIDEO_SIZE_RANGE;
    Flags: Integer;
  end;

  D3D12_VIDEO_PROCESS_FILTER_RANGE = record
    Minimum: Integer;
    Maximum: Integer;
    Default: Integer;
    Multiplier: Single;
  end;

  D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT = record
    NodeIndex: DWORD;
    InputSample: D3D12_VIDEO_SAMPLE;
    InputFieldType: Integer;
    InputStereoFormat: Integer;
    InputFrameRate: DXGI_RATIONAL;
    OutputFormat: D3D12_VIDEO_FORMAT;
    OutputStereoFormat: Integer;
    OutputFrameRate: DXGI_RATIONAL;
    SupportFlags: Integer;
    ScaleSupport: D3D12_VIDEO_SCALE_SUPPORT;
    FeatureSupport: Integer;
    DeinterlaceSupport: DWORD;
    AutoProcessingSupport: DWORD;
    FilterSupport: Integer;
    FilterRangeSupport: array[0..31] of D3D12_VIDEO_PROCESS_FILTER_RANGE;
  end;
const D3D12_VIDEO_FORMAT = extern struct {
    Format: i32,
    ColorSpace: i32,
};

const D3D12_VIDEO_SAMPLE = extern struct {
    Width: u32,
    Height: u32,
    Format: D3D12_VIDEO_FORMAT,
};

const DXGI_RATIONAL = extern struct {
    Numerator: u32,
    Denominator: u32,
};

const D3D12_VIDEO_SIZE_RANGE = extern struct {
    MaxWidth: u32,
    MaxHeight: u32,
    MinWidth: u32,
    MinHeight: u32,
};

const D3D12_VIDEO_SCALE_SUPPORT = extern struct {
    OutputSizeRange: D3D12_VIDEO_SIZE_RANGE,
    Flags: i32,
};

const D3D12_VIDEO_PROCESS_FILTER_RANGE = extern struct {
    Minimum: i32,
    Maximum: i32,
    Default: i32,
    Multiplier: f32,
};

const D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT = extern struct {
    NodeIndex: u32,
    InputSample: D3D12_VIDEO_SAMPLE,
    InputFieldType: i32,
    InputStereoFormat: i32,
    InputFrameRate: DXGI_RATIONAL,
    OutputFormat: D3D12_VIDEO_FORMAT,
    OutputStereoFormat: i32,
    OutputFrameRate: DXGI_RATIONAL,
    SupportFlags: i32,
    ScaleSupport: D3D12_VIDEO_SCALE_SUPPORT,
    FeatureSupport: i32,
    DeinterlaceSupport: u32,
    AutoProcessingSupport: u32,
    FilterSupport: i32,
    FilterRangeSupport: [32]D3D12_VIDEO_PROCESS_FILTER_RANGE,
};
type
  D3D12_VIDEO_FORMAT {.bycopy.} = object
    Format: int32
    ColorSpace: int32

  D3D12_VIDEO_SAMPLE {.bycopy.} = object
    Width: uint32
    Height: uint32
    Format: D3D12_VIDEO_FORMAT

  DXGI_RATIONAL {.bycopy.} = object
    Numerator: uint32
    Denominator: uint32

  D3D12_VIDEO_SIZE_RANGE {.bycopy.} = object
    MaxWidth: uint32
    MaxHeight: uint32
    MinWidth: uint32
    MinHeight: uint32

  D3D12_VIDEO_SCALE_SUPPORT {.bycopy.} = object
    OutputSizeRange: D3D12_VIDEO_SIZE_RANGE
    Flags: int32

  D3D12_VIDEO_PROCESS_FILTER_RANGE {.bycopy.} = object
    Minimum: int32
    Maximum: int32
    Default: int32
    Multiplier: float32

  D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT {.bycopy.} = object
    NodeIndex: uint32
    InputSample: D3D12_VIDEO_SAMPLE
    InputFieldType: int32
    InputStereoFormat: int32
    InputFrameRate: DXGI_RATIONAL
    OutputFormat: D3D12_VIDEO_FORMAT
    OutputStereoFormat: int32
    OutputFrameRate: DXGI_RATIONAL
    SupportFlags: int32
    ScaleSupport: D3D12_VIDEO_SCALE_SUPPORT
    FeatureSupport: int32
    DeinterlaceSupport: uint32
    AutoProcessingSupport: uint32
    FilterSupport: int32
    FilterRangeSupport: array[32, D3D12_VIDEO_PROCESS_FILTER_RANGE]
struct D3D12_VIDEO_FORMAT
{
    int Format;
    int ColorSpace;
}

struct D3D12_VIDEO_SAMPLE
{
    uint Width;
    uint Height;
    D3D12_VIDEO_FORMAT Format;
}

struct DXGI_RATIONAL
{
    uint Numerator;
    uint Denominator;
}

struct D3D12_VIDEO_SIZE_RANGE
{
    uint MaxWidth;
    uint MaxHeight;
    uint MinWidth;
    uint MinHeight;
}

struct D3D12_VIDEO_SCALE_SUPPORT
{
    D3D12_VIDEO_SIZE_RANGE OutputSizeRange;
    int Flags;
}

struct D3D12_VIDEO_PROCESS_FILTER_RANGE
{
    int Minimum;
    int Maximum;
    int Default;
    float Multiplier;
}

struct D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT
{
    uint NodeIndex;
    D3D12_VIDEO_SAMPLE InputSample;
    int InputFieldType;
    int InputStereoFormat;
    DXGI_RATIONAL InputFrameRate;
    D3D12_VIDEO_FORMAT OutputFormat;
    int OutputStereoFormat;
    DXGI_RATIONAL OutputFrameRate;
    int SupportFlags;
    D3D12_VIDEO_SCALE_SUPPORT ScaleSupport;
    int FeatureSupport;
    uint DeinterlaceSupport;
    uint AutoProcessingSupport;
    int FilterSupport;
    D3D12_VIDEO_PROCESS_FILTER_RANGE[32] FilterRangeSupport;
}

HSP用 定義

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

; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT サイズ: 608 バイト(x64)
dim st, 152    ; 4byte整数×152(構造体サイズ 608 / 4 切り上げ)
; NodeIndex : DWORD (+0, 4byte)  st.0 = 値  /  値 = st.0   (lpoke/lpeek も可)
; InputSample : D3D12_VIDEO_SAMPLE (+4, 16byte)  varptr(st)+4 を基点に操作(16byte:入れ子/配列)
; InputFieldType : D3D12_VIDEO_FIELD_TYPE (+20, 4byte)  st.5 = 値  /  値 = st.5   (lpoke/lpeek も可)
; InputStereoFormat : D3D12_VIDEO_FRAME_STEREO_FORMAT (+24, 4byte)  st.6 = 値  /  値 = st.6   (lpoke/lpeek も可)
; InputFrameRate : DXGI_RATIONAL (+28, 8byte)  varptr(st)+28 を基点に操作(8byte:入れ子/配列)
; OutputFormat : D3D12_VIDEO_FORMAT (+36, 8byte)  varptr(st)+36 を基点に操作(8byte:入れ子/配列)
; OutputStereoFormat : D3D12_VIDEO_FRAME_STEREO_FORMAT (+44, 4byte)  st.11 = 値  /  値 = st.11   (lpoke/lpeek も可)
; OutputFrameRate : DXGI_RATIONAL (+48, 8byte)  varptr(st)+48 を基点に操作(8byte:入れ子/配列)
; SupportFlags : D3D12_VIDEO_PROCESS_SUPPORT_FLAGS (+56, 4byte)  st.14 = 値  /  値 = st.14   (lpoke/lpeek も可)
; ScaleSupport : D3D12_VIDEO_SCALE_SUPPORT (+60, 20byte)  varptr(st)+60 を基点に操作(20byte:入れ子/配列)
; FeatureSupport : D3D12_VIDEO_PROCESS_FEATURE_FLAGS (+80, 4byte)  st.20 = 値  /  値 = st.20   (lpoke/lpeek も可)
; DeinterlaceSupport : D3D12_VIDEO_PROCESS_DEINTERLACE_FLAGS (+84, 4byte)  st.21 = 値  /  値 = st.21   (lpoke/lpeek も可)
; AutoProcessingSupport : D3D12_VIDEO_PROCESS_AUTO_PROCESSING_FLAGS (+88, 4byte)  st.22 = 値  /  値 = st.22   (lpoke/lpeek も可)
; FilterSupport : D3D12_VIDEO_PROCESS_FILTER_FLAGS (+92, 4byte)  st.23 = 値  /  値 = st.23   (lpoke/lpeek も可)
; FilterRangeSupport : D3D12_VIDEO_PROCESS_FILTER_RANGE (+96, 512byte)  varptr(st)+96 を基点に操作(512byte:入れ子/配列)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。
; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
; ※GUID・入れ子構造体はデフォルト型でないため、依存する #defstruct を先に定義(下記に同梱)。
#defstruct global D3D12_VIDEO_FORMAT
    #field int Format
    #field int ColorSpace
#endstruct

#defstruct global D3D12_VIDEO_SAMPLE
    #field int Width
    #field int Height
    #field D3D12_VIDEO_FORMAT Format
#endstruct

#defstruct global DXGI_RATIONAL
    #field int Numerator
    #field int Denominator
#endstruct

#defstruct global D3D12_VIDEO_SIZE_RANGE
    #field int MaxWidth
    #field int MaxHeight
    #field int MinWidth
    #field int MinHeight
#endstruct

#defstruct global D3D12_VIDEO_SCALE_SUPPORT
    #field D3D12_VIDEO_SIZE_RANGE OutputSizeRange
    #field int Flags
#endstruct

#defstruct global D3D12_VIDEO_PROCESS_FILTER_RANGE
    #field int Minimum
    #field int Maximum
    #field int Default
    #field float Multiplier
#endstruct

#defstruct global D3D12_FEATURE_DATA_VIDEO_PROCESS_SUPPORT
    #field int NodeIndex
    #field D3D12_VIDEO_SAMPLE InputSample
    #field int InputFieldType
    #field int InputStereoFormat
    #field DXGI_RATIONAL InputFrameRate
    #field D3D12_VIDEO_FORMAT OutputFormat
    #field int OutputStereoFormat
    #field DXGI_RATIONAL OutputFrameRate
    #field int SupportFlags
    #field D3D12_VIDEO_SCALE_SUPPORT ScaleSupport
    #field int FeatureSupport
    #field int DeinterlaceSupport
    #field int AutoProcessingSupport
    #field int FilterSupport
    #field D3D12_VIDEO_PROCESS_FILTER_RANGE FilterRangeSupport 32
#endstruct

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