Move the slice mode enum to the public header

This simplifies setting the slice mode in the public API.
Use the slice mode enum in BaseEncoderTest
Merge the slice mode comments with the enum
Merge pull request #450 from mstorsjo/publish-slice-mode-enum

Move the slice mode enum to the public API