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


  • 追加された行はこの色です。
  • 削除された行はこの色です。
#code(nonumber){{
SwapUV(clip clip)
}}

#code(nonumber){{
UToY(clip clip)
}}

#code(nonumber){{
VToY(clip clip)
}}

#code(nonumber){{
YToUV(clip clipU, clip clipV [, clip clipY])
}}

These four filters are available starting from v2.5.
これら4つのフィルタは、v2.5から利用可能です。

SwapUV swaps chroma channels (U and V) of a clip. Sometimes the colors are distorted (faces blue instead of red, etc) when loading a DivX or MJPEG clip in AviSynth v2.5, due to a bug in the decoders. You can use this filter to correct it.
SwapUVは、クリップの色差チャンネル(UとV)を交換(Swap)します。AviSynth v2.5で[[DivX]]やMJPEGクリップを読み込むとき、デコーダのバグによって、色が歪められる(赤と青が入れ替わるなど)ことがあります。それを訂正するために、このフィルタを使用することができます。

UToY copies chroma U plane to Y plane, the resulting image is now half as big. All color (chroma) information is removed, so the image is now greyscale.
UToYは色差のUプレーン(plane)をYプレーンにコピーします。その結果として生じる画像は、大きさが半分になります。すべての色(色差)情報は取り除かれ、そのため、画像はグレースケールになります。

VToY copies chroma V plane to Y plane, the resulting image is now half as big. All color (chroma) information is removed, so the image is now greyscale.
VToYは色差のVプレーン(plane)をYプレーンにコピーします。その結果として生じる画像は、大きさが半分になります。すべての色(色差)情報は取り除かれ、そのため、画像はグレースケールになります。

YToUV puts the luma channels of the two clips as U and V channels. Image is now twice as big, and luma is 50% grey. Starting from v2.51 there is an optional argument clipY which puts the luma channel of this clip as the Y channel.
YToUVは、2つのクリップの輝度チャンネルを、UチャンネルとVチャンネルとして評価します。画像は、大きさが2倍になり、そして、輝度は50%のグレーになります。v2.51から、オプションの引数 clipY があります。このクリップの輝度チャンネルを、Yチャンネルとして評価します。

Starting from v2.53 they also work in YUY2.
v2.53から、これらのフィルタは、YUY2でも動作します。

**Example: [#y29480c9]
**例: [#y29480c9]

#code(nonumber){{
#Blurs the U chroma channel
# 色差のUチャンネルをぼかす
video = Colorbars(512, 512).ConvertToYV12
u_chroma = UToY(video).blur(1.5)
YtoUV(u_chroma, video.VToY)
MergeLuma(video)
}}

#br
#hr

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