Add flags to file writer API

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Add video control support

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Map control values to 0-255 range

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
Change libjpeg header include

There's this situation where we want to use a custom bundled version of
libjpeg, so load its header first.

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>