Parse options with 'getopt'.

Ambiguous long option detection doesn't work, --v[e[r]] resolves to
--verbose.
Replace swap_odd with frame_no.
Select copy method between RGB or BGRA manually or switch at runtime.