パディングサイズの設定

Namespace: fvalgcli
Assembly: fvalgcli_fga (in fvalgcli_fga.dll) Version: 3.1.0.0 (3.1.0.3)

Syntax

C#
public static int fnFGA_img_set_padding_size(
	int exp
)
Visual Basic
Public Shared Function fnFGA_img_set_padding_size ( 
	exp As Integer
) As Integer

Parameters

exp
Type: System..::..Int32
ステップサイズ 2^n の乗数n (0≦n≦10) デフォルト=4

Return Value

Type: Int32
fnFGA_img_root_alloc() 又は fnFGA_img_root_realloc() 時に、ステップ(画像メモリ幅)を 何バイト単位にするかを 2^n の指数nで設定します。 画像幅がこの倍数で無い場合は、 適切なパディングが挿入され、ステップは 2^n の倍数バイトになります。 但し、1画素のバイト数が 2^n よりも大きい場合、ステップは1画素のバイト数の倍数になります。 本関数を1度も呼ばなかった場合のデフォルト値は n=4 です。 特別な理由が無い限りデフォルトの n=4 のまま使用することを推奨します。

Examples

C# Copy imageCopy
//    $Revision: 1.2 $

using System;
using System.Collections.Generic;
using System.Text;
using System.Diagnostics;
using fvalgcli;

namespace TC
{
    public partial class FIE
    {
        [FvPluginExecute]
        public void fnFGA_img_set_padding_size()
        {
            // fnFGA_img_get_params 参照.
        }
    }
}

Exceptions

ExceptionCondition
System.IO..::..FileNotFoundException 実行環境に NVIDIA CUDA Runtime が存在しない場合、FGA ライブラリのロードが失敗し、この例外が発行されます。
必要な環境については FGA ライブラリ説明書 をご参照ください。
例外メッセージの例 (32bit 日本語 O/S の場合):
DLL 'fgamt.x86.3.0.0.dll' を読み込めません: 指定されたモジュールが見つかりません。 (HRESULT からの例外: 0x8007007E)

See Also