ホーム › Graphics.Direct3D11 › D3D11_VIDEO_PROCESSOR_FILTER_RANGE
D3D11_VIDEO_PROCESSOR_FILTER_RANGE
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| Minimum | INT | 4 | +0 | +0 | フィルタ設定値の最小値。 |
| Maximum | INT | 4 | +4 | +4 | フィルタ設定値の最大値。 |
| Default | INT | 4 | +8 | +8 | フィルタ設定値の既定値。 |
| Multiplier | FLOAT | 4 | +12 | +12 | 整数設定値を実際の値に変換する乗数。 |
各言語での定義
#include <windows.h>
// D3D11_VIDEO_PROCESSOR_FILTER_RANGE (x64 16 / x86 16 バイト)
typedef struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE {
INT Minimum;
INT Maximum;
INT Default;
FLOAT Multiplier;
} D3D11_VIDEO_PROCESSOR_FILTER_RANGE;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
{
public int Minimum;
public int Maximum;
public int Default;
public float Multiplier;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure D3D11_VIDEO_PROCESSOR_FILTER_RANGE
Public Minimum As Integer
Public Maximum As Integer
Public Default As Integer
Public Multiplier As Single
End Structureimport ctypes
from ctypes import wintypes
class D3D11_VIDEO_PROCESSOR_FILTER_RANGE(ctypes.Structure):
_fields_ = [
("Minimum", ctypes.c_int),
("Maximum", ctypes.c_int),
("Default", ctypes.c_int),
("Multiplier", ctypes.c_float),
]#[repr(C)]
pub struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE {
pub Minimum: i32,
pub Maximum: i32,
pub Default: i32,
pub Multiplier: f32,
}import "golang.org/x/sys/windows"
type D3D11_VIDEO_PROCESSOR_FILTER_RANGE struct {
Minimum int32
Maximum int32
Default int32
Multiplier float32
}type
D3D11_VIDEO_PROCESSOR_FILTER_RANGE = record
Minimum: Integer;
Maximum: Integer;
Default: Integer;
Multiplier: Single;
end;const D3D11_VIDEO_PROCESSOR_FILTER_RANGE = extern struct {
Minimum: i32,
Maximum: i32,
Default: i32,
Multiplier: f32,
};type
D3D11_VIDEO_PROCESSOR_FILTER_RANGE {.bycopy.} = object
Minimum: int32
Maximum: int32
Default: int32
Multiplier: float32struct D3D11_VIDEO_PROCESSOR_FILTER_RANGE
{
int Minimum;
int Maximum;
int Default;
float Multiplier;
}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_FILTER_RANGE サイズ: 16 バイト(x64)
dim st, 4 ; 4byte整数×4(構造体サイズ 16 / 4 切り上げ)
; Minimum : INT (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; Maximum : INT (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; Default : INT (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; Multiplier : FLOAT (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global D3D11_VIDEO_PROCESSOR_FILTER_RANGE
#field int Minimum
#field int Maximum
#field int Default
#field float Multiplier
#endstruct
stdim st, D3D11_VIDEO_PROCESSOR_FILTER_RANGE ; NSTRUCT 変数を確保
st->Minimum = 100
mes "Minimum=" + st->Minimum