Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 29th October 2016, 21:23   #1  |  Link
Stephen R. Savage
Registered User
 
Stephen R. Savage's Avatar
 
Join Date: Nov 2009
Posts: 322
z.lib resizers for AviSynth+

Code:
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
Also has all the AviSynth resizers, but with "z_" prefix.

Download: r1a

Last edited by Stephen R. Savage; 6th November 2016 at 01:55.
Stephen R. Savage is offline   Reply With Quote
Old 30th October 2016, 14:43   #2  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,079
Thanks twc, are you planning on adding support for colorspace and bit depth conversions?
Reel.Deel is offline   Reply With Quote
Old 30th October 2016, 19:51   #3  |  Link
Stephen R. Savage
Registered User
 
Stephen R. Savage's Avatar
 
Join Date: Nov 2009
Posts: 322
Quote:
Originally Posted by Reel.Deel View Post
Thanks twc, are you planning on adding support for colorspace and bit depth conversions?
In r1.
Stephen R. Savage is offline   Reply With Quote
Old 4th November 2016, 10:44   #4  |  Link
pinterf
Registered User
 
Join Date: Jan 2014
Posts: 782
Thanks, I will look try it later it when I have time, just looked at the source.

A remark: Planar RGB plane order is PLANAR_G, PLANAR_B, PLANAR_R
Question: AVS+ default alignment is 32. Is the 64 byte alignment is a requirement for zimg?
pinterf is offline   Reply With Quote
Old 5th November 2016, 17:06   #5  |  Link
Stephen R. Savage
Registered User
 
Stephen R. Savage's Avatar
 
Join Date: Nov 2009
Posts: 322
Quote:
Originally Posted by pinterf View Post
Thanks, I will look try it later it when I have time, just looked at the source.

A remark: Planar RGB plane order is PLANAR_G, PLANAR_B, PLANAR_R
Question: AVS+ default alignment is 32. Is the 64 byte alignment is a requirement for zimg?
z.lib plane order is RGB. It matters for colorspace operations. 64B alignment was a mistake.
Stephen R. Savage is offline   Reply With Quote
Old 6th November 2016, 01:20   #6  |  Link
davidhorman
I'm the Doctor
 
Join Date: Jan 2004
Posts: 1,331
Just curious, but what does "z.lib" refer to in this context? It's too close to zlib to Google for it...
__________________
My AviSynth filters / I'm the Doctor
davidhorman is offline   Reply With Quote
Old 6th November 2016, 01:46   #7  |  Link
Reel.Deel
Registered User
 
Join Date: Mar 2012
Location: Texas
Posts: 1,079
Quote:
Originally Posted by davidhorman View Post
Just curious, but what does "z.lib" refer to in this context? It's too close to zlib to Google for it...
See here: https://github.com/sekrit-twc/zimg#zlib
Reel.Deel is offline   Reply With Quote
Old 6th November 2016, 02:02   #8  |  Link
TheFluff
Excessively jovial fellow
 
Join Date: Jun 2004
Location: rude
Posts: 974
I'm pretty sure he named it that just to be obnoxious. It's what he does.
TheFluff is offline   Reply With Quote
Old 6th November 2016, 03:04   #9  |  Link
filler56789
SuperVirus
 
filler56789's Avatar
 
Join Date: Jun 2012
Location: Antarctic Japan
Posts: 795
Quote:
Originally Posted by TheFluff View Post
I'm pretty sure he named it that just to be obnoxious. It's what he does.
lol LoL LOL

filler56789 is offline   Reply With Quote
Old 6th November 2016, 08:37   #10  |  Link
MysteryX
Soul Architect
 
MysteryX's Avatar
 
Join Date: Apr 2014
Posts: 2,003
Does this provide 16-bit support for AviSynth+?
MysteryX is offline   Reply With Quote
Old 15th December 2017, 11:39   #11  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Location: Planet Express, Inc.
Posts: 789
Any updates on this?
__________________
Win10 (x64) | GPU Caps Viewer v1.32.0.0
Crucial M500 240GB SSD | Kingston SSDNow V300 (Marvell) 120GB | NVIDIA GeForce GTX 750 Ti | R375.95 (Nov 18, 2016)
NTSC | DVD: R1 | BD: A
Sparktank is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 02:01.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2017, vBulletin Solutions Inc.