updated to latest VideoCore; use constants instead of magic numbers