[jit.gl.videoplane preserve_aspect 1] - report real size (scale)


    Apr 23 2019 | 11:51 am
    Dear Friends
    Do you know how to get real size (scale?) of the jit.gl.videoplane when preserve_aspect 1 attribute is set? I need to sync the "real size" of the jit.gl.videoplane object with several other parameters.
    So it is a trivial task if preserve_aspect attribute is not set (in this case scale is everything I need), but when preserve_aspect attribute is set things become more... misterious.
    I will be grateful for all the hints.

    • Apr 23 2019 | 8:55 pm
      Yeah, I think you can only access the global scale value, the preserve_aspect attribute is working behind closed doors... You could always ignore the preserve_aspect functionality and build your own...
    • Apr 23 2019 | 9:04 pm
      Dear Pedro
      Thank you for the tips and the very nice patch. I had a similar solution in my head, so I will follow your lead ;-)
    • Apr 23 2019 | 10:09 pm
      Added a zl.change to only process the aspect ratio calculations when the size of the video changes.