AddBorders のバックアップ差分(No.2)


  • 追加された行はこの色です。
  • 削除された行はこの色です。
#code(nonumber){{
AddBorders(clip clip, int left, int top, int right, int bottom [, int color])
}}

AddBorders adds black (or specified color) borders around the image, with the specified widths (in pixels). YV12/YUY2 format only stores color information for every two pixels horizontally, so if you're processing in YV12/YUY2 mode, left and right must be even.
AddBordersは、画像の周りに黒色(または指定した色)の縁(ふち)を、指定された幅(ピクセル単位)で、追加します。YV12/YUY2フォーマットだけは、水平方向に2ピクセルごとに色情報を格納します。そのため、もしあなたがYV12/YUY2で処理しているのなら、leftとrightは偶数でなければなりません。

The color parameter is optional (added in v2.07), default=0 <black>, and is specified as an RGB value regardless of whether the clip format is RGB or YUV based.
colorパラメータはオプションで(v2.07で追加)、default=0 <黒>、そして、クリップのフォーマットがRGBベースであるかYUVベースであるかに関わらず、RGB値として指定されます。

Be aware that many lossy compression algorithms don't deal well with solid-color borders, unless the border width happens to be a multiple of the block size (16 pixels for MPEG).
多くの不可逆圧縮アルゴリズムは、縁の幅がたまたまブロックサイズ(MPEGの場合、16ピクセル)の倍数でない限り、単一色の縁を上手に処理しないということに気づいてください。

You can use this filter in combination with [[Crop]] to shift an image around without changing the frame size. For example:
このフィルタを[[Crop]]と連携して使用することにより、フレームサイズを変更することなく、画像をあちこちに移動させることができます。例えば:

#code(nonumber){{
# Shift a 352x240 image 2 pixels to the right
# 352x240の画像を2ピクセル右へ移動する
Crop(0, 0, 350, 240).AddBorders(2, 0, 0, 0)
}}

#br
#hr

//註: このページは、http://www.avisynth.org/AddBordersの日本語訳です。
註: このページは、http://www.avisynth.org/AddBordersの日本語訳です。