al_get_video_scaled_height(3alleg5)

πŸ“¦
version 5.2.11.3 Β· 4 versions
, in debian trixie, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ al_get_video_scaled_height(3alleg5) ✨

okay bestie, welcome to the Allegro 5 API β€” this one's a lil function from the allegro_video.h era and it's genuinely so useful, no cap πŸ’–


🌸 SYNOPSIS 🌸

#include <allegro5/allegro_video.h>

float al_get_video_scaled_height(ALLEGRO_VIDEO *video)

πŸŽ€ DESCRIPTION πŸŽ€

So like… this function hands you back the height you should actually draw the video frame at. That's it, that's the whole job πŸ’…

But wait, why is that even a thing?? Because β€” and this is the tea β€” videos often do not use square pixels. Yeah. Non-square pixels. Iconic of them honestly. So this will may return a value larger than the height of the frame bitmap, and that's not a bug, that's just the pixel aspect ratio doing its main character thing πŸ¦‹

fr fr: don't just grab the bitmap height and call it a day. ask this function. trust. 😭

πŸ’œ SEE ALSO πŸ’œ


⭐ SINCE ⭐

5.1.12 β€” been here since way back, lowkey a classic πŸ‘‘


and that's the whole page, bestie!! this was the Allegro reference manual version of al_get_video_scaled_height(3alleg5) β€” go draw your video at the right height, you're gonna ate it up πŸ’–πŸŽ€πŸ«Ά

πŸ“¦ where this page comes from