use function pointer in reference frame management

reviewed at : https://rbcommons.com/s/OpenH264/r/273/

1. there are many differences in reference management module for screen content and video camera
   it is better to use the different functions for these two usage types.
2. this review doesn't contain the implementation for screen content. will do it in the next update.