Menu

#77 Resize as a callable function

AviSynth 2.5
closed
Internals (20)
5
2004-10-26
2004-09-22
No

In many plugins part of the image needs to be resized
(enlarged or reduced). One has to code in each plugin
this function. In case Avisynth provides a callable
function that can take vi, input h,w output h,w and
type eg point, bilinear, bicubic, lancoz it will be very
useful. As the coding by avisynth team will be optimized
assembler version it will be fast.

Discussion

  • Klaus Post

    Klaus Post - 2004-10-07
    • labels: --> Internals
    • milestone: 219383 --> AviSynth 2.5
    • assigned_to: nobody --> sh0dan
    • status: open --> closed
     
  • Klaus Post

    Klaus Post - 2004-10-07

    Logged In: YES
    user_id=578300

    All available functions are available through the
    env->Invoke() function. Have a look at:

    http://www.avisynth.org/EnvInvoke

    Closing

     
  • V.Chandra Mohan

    V.Chandra Mohan - 2004-10-09

    Logged In: YES
    user_id=815619

    Invoke as you mentioned elsewhere has lot of overhead and
    not suitable if only a part of frame needs to be resized.I want
    a function ythat can resize into a given area from the
    selected portion of input frame. Something like bitblt function
    that can be called.

     
  • Klaus Post

    Klaus Post - 2004-10-11

    Logged In: YES
    user_id=578300

    Invoke is very efficient, if you don't change input
    parameters (ie. don't recreate the filter on each frame).

    Furthermore the crop parameters can be used for only
    rescaling part of the picture.

    I see no need for anything further, unless you can give more
    specifics on why Invoke isn't good enough.

    (Reopening for a while)

     
  • Klaus Post

    Klaus Post - 2004-10-11
    • status: closed --> open
     
  • Klaus Post

    Klaus Post - 2004-10-26
    • status: open --> closed
     
  • V.Chandra Mohan

    V.Chandra Mohan - 2004-10-27

    Logged In: YES
    user_id=815619

    The Resizing parameters change from frame to frame. Crop
    parameters also change frame to frame. Can one use Invoke
    efficiently then?

     

Log in to post a comment.