ホーム › Media.MediaFoundation › D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT
D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| PredictionMode | D3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE | 4 | +0 | +0 | サポートされる予測モードを示すD3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE。 |
| MaxUniqueReferencesPerFrame | DWORD | 4 | +4 | +4 | 1フレームで使用可能な一意参照フレームの最大数。 |
| SupportedFrameTypes | D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAGS | 4 | +8 | +8 | サポートされるフレーム種別を示すD3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAGS。 |
| SupportedReferenceWarpedMotionFlags | D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAGS | 4 | +12 | +12 | サポートされるワープ動き変換を示すD3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAGS。 |
各言語での定義
#include <windows.h>
// D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT (x64 16 / x86 16 バイト)
typedef struct D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT {
D3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE PredictionMode;
DWORD MaxUniqueReferencesPerFrame;
D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAGS SupportedFrameTypes;
D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAGS SupportedReferenceWarpedMotionFlags;
} D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT
{
public int PredictionMode;
public uint MaxUniqueReferencesPerFrame;
public int SupportedFrameTypes;
public int SupportedReferenceWarpedMotionFlags;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT
Public PredictionMode As Integer
Public MaxUniqueReferencesPerFrame As UInteger
Public SupportedFrameTypes As Integer
Public SupportedReferenceWarpedMotionFlags As Integer
End Structureimport ctypes
from ctypes import wintypes
class D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT(ctypes.Structure):
_fields_ = [
("PredictionMode", ctypes.c_int),
("MaxUniqueReferencesPerFrame", wintypes.DWORD),
("SupportedFrameTypes", ctypes.c_int),
("SupportedReferenceWarpedMotionFlags", ctypes.c_int),
]#[repr(C)]
pub struct D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT {
pub PredictionMode: i32,
pub MaxUniqueReferencesPerFrame: u32,
pub SupportedFrameTypes: i32,
pub SupportedReferenceWarpedMotionFlags: i32,
}import "golang.org/x/sys/windows"
type D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT struct {
PredictionMode int32
MaxUniqueReferencesPerFrame uint32
SupportedFrameTypes int32
SupportedReferenceWarpedMotionFlags int32
}type
D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT = record
PredictionMode: Integer;
MaxUniqueReferencesPerFrame: DWORD;
SupportedFrameTypes: Integer;
SupportedReferenceWarpedMotionFlags: Integer;
end;const D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT = extern struct {
PredictionMode: i32,
MaxUniqueReferencesPerFrame: u32,
SupportedFrameTypes: i32,
SupportedReferenceWarpedMotionFlags: i32,
};type
D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT {.bycopy.} = object
PredictionMode: int32
MaxUniqueReferencesPerFrame: uint32
SupportedFrameTypes: int32
SupportedReferenceWarpedMotionFlags: int32struct D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT
{
int PredictionMode;
uint MaxUniqueReferencesPerFrame;
int SupportedFrameTypes;
int SupportedReferenceWarpedMotionFlags;
}HSP用 定義
HSP3.7/3.8 は構造体機能が無いため4byte整数配列(dim)+peek/poke で操作(32/64bitでサイズ・位置が異なる場合はタブで分割)。IronHSP は NSTRUCT(#defstruct/stdim/->)で32/64bit共通。
; HSP3.7/3.8 は構造体機能が無いため、4byte整数の配列変数で操作します。(x64 レイアウト)
; D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT サイズ: 16 バイト(x64)
dim st, 4 ; 4byte整数×4(構造体サイズ 16 / 4 切り上げ)
; PredictionMode : D3D12_VIDEO_ENCODER_AV1_COMP_PREDICTION_TYPE (+0, 4byte) st.0 = 値 / 値 = st.0 (lpoke/lpeek も可)
; MaxUniqueReferencesPerFrame : DWORD (+4, 4byte) st.1 = 値 / 値 = st.1 (lpoke/lpeek も可)
; SupportedFrameTypes : D3D12_VIDEO_ENCODER_AV1_FRAME_TYPE_FLAGS (+8, 4byte) st.2 = 値 / 値 = st.2 (lpoke/lpeek も可)
; SupportedReferenceWarpedMotionFlags : D3D12_VIDEO_ENCODER_AV1_REFERENCE_WARPED_MOTION_TRANSFORMATION_FLAGS (+12, 4byte) st.3 = 値 / 値 = st.3 (lpoke/lpeek も可)
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT
#field int PredictionMode
#field int MaxUniqueReferencesPerFrame
#field int SupportedFrameTypes
#field int SupportedReferenceWarpedMotionFlags
#endstruct
stdim st, D3D12_VIDEO_ENCODER_CODEC_AV1_PICTURE_CONTROL_SUPPORT ; NSTRUCT 変数を確保
st->PredictionMode = 100
mes "PredictionMode=" + st->PredictionMode