Fixed bugs

1. When stop encode, set the flag mStreaming to false;
2. Add some rotate functions, but those were not worked.