Re: [AD] Plan for the video addon

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 09/13/2015 07:49 AM, Polybios wrote:
If I understand correctly, with your redesign, you'll know the
dimensions of the bitmaps you'll be getting only after you ... have got
the first frame.  As they'll all be the same size and because it's
actually a property of the video, why not (re-)add something like
al_get_video_raw_width/height?
IMHO, it'd be perfectly fine to leave it to the documentation to make
clear what the difference is and that scaled drawing is expected to deal
with it. Besides, as Elias has pointed out, there is still the option to
encode videos in such a way that no scaling is needed.

In my mind, I expect al_get_video_frame to return a valid frame at all times, so you'd just call al_get_bitmap_width/height(al_get_video_frame()) to get the raw dimensions. I guess if that's too silly, then we can keep the aspect_ratio function, as I'd rather not have two sets of get_width/height functions.

-SL




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/