add timestamp in encoder interface --- review request#138 

add timestamp parameter in encoder interface, which will be used in delay output case. the application doesn't need to keep each frame timestamp.