Line stride can get longer to hold 1280, so make it 16 bits now and get rid of NUM_PIXELS_PER_LINE stuff.