Aspect ratio correction through matrix processing (no OpenGL)


    May 27 2016 | 4:26 pm
    Hi. I need to build thumbnails of images imported through a jit.movie to a fixed jit.pwindow (1:1 ratio for instance). As the images may differ in aspect ratio from the jit.pwindow, is there an easy solution using matrix processing to generate the thumbnails while keeping its proper aspect ratio and adding horizontal or vertical black bars accordingly?
    I'm not talking about jit.gl.videoplane, jit.gl.cornerpin or jit.gl.render manipulation, just straight matrix processing. Has anyone done it before?
    Thanks.

    • May 28 2016 | 4:07 pm
      I suggest taking a look at Jitter Tutorial 14: Matrix Positioning. You can use 'dstdimstart' and 'dstdimend' messages to a jit.matrix object to place a video within a desired submatrix of a matrix (in your case, a square matrix).