Remove dead code
lcu_order_count in (leaves) encoder
Move some init code to encoder_state_new_frame
Add is_leaf to encoder_state
Leaf encoder uses encoder_state->lcu_order
Leaf bitstream write
Bitstream for leaves can be computed in parallel
context_copy function
Some initial code to support wpp and slices
Rewrite of encoder_state_write_bitstream_leaf: handle slice + tiles + wavefronts correctly
Wavefront also needs entrypoints
LCU borders
Fix missing offset in LCU range computation for wavefronts
Partial support for wavefront
Entry points
Fix compilation for VS2010.
Merge branch 'stream_enhancements'