ホーム › Graphics.Direct3D11 › D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| PastFrames | DWORD | 4 | +0 | +0 | レート変換に必要な過去フレームの数。 |
| FutureFrames | DWORD | 4 | +4 | +4 | レート変換に必要な未来フレームの数。 |
| ProcessorCaps | DWORD | 4 | +8 | +8 | 対応する逆インターレース等の処理を示すD3D11_VIDEO_PROCESSOR_PROCESSOR_CAPSビットフラグ。 |
| ITelecineCaps | DWORD | 4 | +12 | +12 | 逆テレシネ(プルダウン除去)処理の対応を示すD3D11_VIDEO_PROCESSOR_ITELECINE_CAPSビットフラグ。 |
| CustomRateCount | DWORD | 4 | +16 | +16 | 対応するカスタムフレームレートの数。 |
各言語での定義
#include <windows.h>
// D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS (x64 20 / x86 20 バイト)
typedef struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS {
DWORD PastFrames;
DWORD FutureFrames;
DWORD ProcessorCaps;
DWORD ITelecineCaps;
DWORD CustomRateCount;
} D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
{
public uint PastFrames;
public uint FutureFrames;
public uint ProcessorCaps;
public uint ITelecineCaps;
public uint CustomRateCount;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
Public PastFrames As UInteger
Public FutureFrames As UInteger
Public ProcessorCaps As UInteger
Public ITelecineCaps As UInteger
Public CustomRateCount As UInteger
End Structureimport ctypes
from ctypes import wintypes
class D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS(ctypes.Structure):
_fields_ = [
("PastFrames", wintypes.DWORD),
("FutureFrames", wintypes.DWORD),
("ProcessorCaps", wintypes.DWORD),
("ITelecineCaps", wintypes.DWORD),
("CustomRateCount", wintypes.DWORD),
]#[repr(C)]
pub struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS {
pub PastFrames: u32,
pub FutureFrames: u32,
pub ProcessorCaps: u32,
pub ITelecineCaps: u32,
pub CustomRateCount: u32,
}import "golang.org/x/sys/windows"
type D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS struct {
PastFrames uint32
FutureFrames uint32
ProcessorCaps uint32
ITelecineCaps uint32
CustomRateCount uint32
}type
D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS = record
PastFrames: DWORD;
FutureFrames: DWORD;
ProcessorCaps: DWORD;
ITelecineCaps: DWORD;
CustomRateCount: DWORD;
end;const D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS = extern struct {
PastFrames: u32,
FutureFrames: u32,
ProcessorCaps: u32,
ITelecineCaps: u32,
CustomRateCount: u32,
};type
D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS {.bycopy.} = object
PastFrames: uint32
FutureFrames: uint32
ProcessorCaps: uint32
ITelecineCaps: uint32
CustomRateCount: uint32struct D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
{
uint PastFrames;
uint FutureFrames;
uint ProcessorCaps;
uint ITelecineCaps;
uint CustomRateCount;
}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_RATE_CONVERSION_CAPS サイズ: 20 バイト(x64)
dim st, 5 ; 4byte整数×5(構造体サイズ 20 / 4 切り上げ)
; PastFrames : DWORD (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; FutureFrames : DWORD (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; ProcessorCaps : DWORD (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; ITelecineCaps : DWORD (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; CustomRateCount : DWORD (+16, 4byte) st.4 = 値 / 値 = st.4 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS
#field int PastFrames
#field int FutureFrames
#field int ProcessorCaps
#field int ITelecineCaps
#field int CustomRateCount
#endstruct
stdim st, D3D11_VIDEO_PROCESSOR_RATE_CONVERSION_CAPS ; NSTRUCT 変数を確保
st->PastFrames = 100
mes "PastFrames=" + st->PastFrames