ホーム › Graphics.Direct3D11 › D3D11_VIDEO_PROCESSOR_CAPS
D3D11_VIDEO_PROCESSOR_CAPS
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| DeviceCaps | DWORD | 4 | +0 | +0 | ビデオプロセッサーデバイスの機能を示すD3D11_VIDEO_PROCESSOR_DEVICE_CAPSビットフラグ。 |
| FeatureCaps | DWORD | 4 | +4 | +4 | 対応する各種機能を示すD3D11_VIDEO_PROCESSOR_FEATURE_CAPSビットフラグ。 |
| FilterCaps | DWORD | 4 | +8 | +8 | 対応するフィルタを示すD3D11_VIDEO_PROCESSOR_FILTER_CAPSビットフラグ。 |
| InputFormatCaps | DWORD | 4 | +12 | +12 | 対応する入力フォーマット機能を示すD3D11_VIDEO_PROCESSOR_FORMAT_CAPSビットフラグ。 |
| AutoStreamCaps | DWORD | 4 | +16 | +16 | 自動ストリーム処理の対応を示すD3D11_VIDEO_PROCESSOR_AUTO_STREAM_CAPSビットフラグ。 |
| StereoCaps | DWORD | 4 | +20 | +20 | ステレオ(立体視)処理の対応を示すD3D11_VIDEO_PROCESSOR_STEREO_CAPSビットフラグ。 |
| RateConversionCapsCount | DWORD | 4 | +24 | +24 | 対応するフレームレート変換機能セットの数。 |
| MaxInputStreams | DWORD | 4 | +28 | +28 | 同時に処理可能な入力ストリームの最大数。 |
| MaxStreamStates | DWORD | 4 | +32 | +32 | 設定可能なストリーム状態の最大数。 |
各言語での定義
#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 Structureimport 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: uint32struct 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