# HOW TO BUILD

1. Checkout z.lib into $(SolutionDir)zimg.
2. Checkout pinterf/AviSynthPlus MT branch into $(SolutionDir)AviSynthPlus
3. Use provided solution file.
4. ???
5. **Prophet**

# HOW TO USE
## AviSynth compatibility mode
- z_PointResize
- z_BilinearResize
- z_BicubicResize
- z_LanczosResize
- z_Lanczos4Resize
- z_BlackmanResize
- z_Spline16Resize
- z_Spline36Resize
- z_Spline64Resize
- z_GaussResize
- z_SincResize

Same semantics as AviSynth(+). Some functions are aliases.

## VapourSynth compatibility mode
    z_ConvertFormat(
        clip clip,
        int "width",
        int "height",
        str "pixel_type",
        str "colorspace_op",
        str "chromaloc_op",
        bool "interlaced",
        float "src_left",
        float "src_top",
        float "src_width",
        float "src_height",
        str "resample_filter",
        float "filter_param_a",
        float "filter_param_b",
        str "resample_filter_uv",
        float "filter_param_a_uv",
        float "filter_param_b_uv",
        str "dither_type")
        
    width:                  output width in pixels
    height:                 output height in pixels
    pixel_type:             output pixel type ("YV12", "YUV420P16", etc.)
    colorspace_op:          colorspace operation description
        Format is
			"matS[:transS[:primS[:rangeS]]]=>matD[:transD[:primD[:rangeD]]]"
        Example JPEG to MPEG: "170m:709:709:f=>709:709:709:l"
    chromaloc_op:           chroma location operation description
        Format is "[locS]=>[locD]"
        Example JPEG to MPEG2: "center=>left"
    interlaced:             whether to use interlaced mode (default: false)
    resample_filter:        resampling mode
    filter_param_a:         first parameter to resampler
    filter_param_b:         second parameter to resampler
        Example Bicubic (Mitchell-Netravali):
            resample_filter="bicubic", filter_param_a=0.333, filter_param_b=0.333
        Example 4-tap Lanczos: resample_filter="lanczos", filter_param_a=4
    resample_filter_uv:     resampling mode for chroma
    filter_param_a_uv:      first parameter to chroma resampler
    filter_param_b_uv:      second parameter to chroma resampler
    dither_type:            dithering type

See VapourSynth documentation for valid string constants.