add memory allocation for screen content

approved at: https://rbcommons.com/s/OpenH264/r/312
1. add memory allocation for screen content
2. some modification for screen content coding