Thread: Yadifmod
View Single Post
Old 13th August 2014, 17:12   #4  |  Link
jackoneill
unsigned int
 
jackoneill's Avatar
 
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
Might I suggest you use more functions, so you don't have so much code in GetFrame? It's good for readability.

It's also good to use the multiplication and division operators when you mean to multiply and divide, instead of bit shifts. Compilers are smart enough to turn "x * 2" into "x << 1" on their own.
__________________
Buy me a "coffee" and/or hire me to write code!

Last edited by jackoneill; 13th August 2014 at 17:17.
jackoneill is offline