ホーム › Media.MediaFoundation › D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES
D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES
構造体サイズ=各フィールドのバイト数(x64/x86 で異なる場合は x64/x86 と併記)。x64/x86 列=フィールドのバイトオフセット(HSPで dupptr / lpoke / wpoke 等に使用)。
フィールド
| フィールド | 型 | サイズ | x64 | x86 | 説明 |
|---|---|---|---|---|---|
| RowCount | ULONGLONG | 8 | +0 | +0 | タイル分割の行数。 |
| ColCount | ULONGLONG | 8 | +8 | +8 | タイル分割の列数。 |
| RowHeights | ULONGLONG | 512 | +16 | +16 | 各タイル行の高さ(スーパーブロック単位)を示す配列の先頭。 |
| ColWidths | ULONGLONG | 512 | +528 | +528 | 各タイル列の幅(スーパーブロック単位)を示す配列の先頭。 |
| ContextUpdateTileId | ULONGLONG | 8 | +1040 | +1040 | エントロピーコンテキストを更新する対象タイルのID。 |
各言語での定義
#include <windows.h>
// D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES (x64 1048 / x86 1048 バイト)
typedef struct D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES {
ULONGLONG RowCount;
ULONGLONG ColCount;
ULONGLONG RowHeights[64];
ULONGLONG ColWidths[64];
ULONGLONG ContextUpdateTileId;
} D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES;using System;
using System.Runtime.InteropServices;
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
public struct D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES
{
public ulong RowCount;
public ulong ColCount;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)] public ulong[] RowHeights;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 64)] public ulong[] ColWidths;
public ulong ContextUpdateTileId;
}Imports System.Runtime.InteropServices
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)>
Public Structure D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES
Public RowCount As ULong
Public ColCount As ULong
<MarshalAs(UnmanagedType.ByValArray, SizeConst:=64)> Public RowHeights() As ULong
<MarshalAs(UnmanagedType.ByValArray, SizeConst:=64)> Public ColWidths() As ULong
Public ContextUpdateTileId As ULong
End Structureimport ctypes
from ctypes import wintypes
class D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES(ctypes.Structure):
_fields_ = [
("RowCount", ctypes.c_ulonglong),
("ColCount", ctypes.c_ulonglong),
("RowHeights", ctypes.c_ulonglong * 64),
("ColWidths", ctypes.c_ulonglong * 64),
("ContextUpdateTileId", ctypes.c_ulonglong),
]#[repr(C)]
pub struct D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES {
pub RowCount: u64,
pub ColCount: u64,
pub RowHeights: [u64; 64],
pub ColWidths: [u64; 64],
pub ContextUpdateTileId: u64,
}import "golang.org/x/sys/windows"
type D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES struct {
RowCount uint64
ColCount uint64
RowHeights [64]uint64
ColWidths [64]uint64
ContextUpdateTileId uint64
}type
D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES = record
RowCount: UInt64;
ColCount: UInt64;
RowHeights: array[0..63] of UInt64;
ColWidths: array[0..63] of UInt64;
ContextUpdateTileId: UInt64;
end;const D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES = extern struct {
RowCount: u64,
ColCount: u64,
RowHeights: [64]u64,
ColWidths: [64]u64,
ContextUpdateTileId: u64,
};type
D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES {.bycopy.} = object
RowCount: uint64
ColCount: uint64
RowHeights: array[64, uint64]
ColWidths: array[64, uint64]
ContextUpdateTileId: uint64struct D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES
{
ulong RowCount;
ulong ColCount;
ulong[64] RowHeights;
ulong[64] ColWidths;
ulong ContextUpdateTileId;
}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_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES サイズ: 1048 バイト(x64)
dim st, 262 ; 4byte整数×262(構造体サイズ 1048 / 4 切り上げ)
; RowCount : ULONGLONG (+0, 8byte) qpoke st,0,値 / qpeek(st,0) ※IronHSPのみ。3.7/3.8は lpoke st,0,下位 : lpoke st,4,上位
; ColCount : ULONGLONG (+8, 8byte) qpoke st,8,値 / qpeek(st,8) ※IronHSPのみ。3.7/3.8は lpoke st,8,下位 : lpoke st,12,上位
; RowHeights : ULONGLONG (+16, 512byte) varptr(st)+16 を基点に操作(512byte:入れ子/配列)
; ColWidths : ULONGLONG (+528, 512byte) varptr(st)+528 を基点に操作(512byte:入れ子/配列)
; ContextUpdateTileId : ULONGLONG (+1040, 8byte) qpoke st,1040,値 / qpeek(st,1040) ※IronHSPのみ。3.7/3.8は lpoke st,1040,下位 : lpoke st,1044,上位
; ※4byte境界の整数は添字 st.N(N=オフセット/4)で読み書き可。それ以外は peek/poke 系を使用。; IronHSP は NSTRUCT(構造体)をサポート。32bit/64bit どちらでも同じコードで動作します。
#defstruct global D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES
#field int64 RowCount
#field int64 ColCount
#field int64 RowHeights 64
#field int64 ColWidths 64
#field int64 ContextUpdateTileId
#endstruct
stdim st, D3D12_VIDEO_ENCODER_AV1_PICTURE_CONTROL_SUBREGIONS_LAYOUT_DATA_TILES ; NSTRUCT 変数を確保
st->RowCount = 100
mes "RowCount=" + st->RowCount