lib: map the position enum to the correct subpicture alignment bitmasks