mfvideoenc: Remove duplicated class registration code
Each codec subclass has the same code for class/element registration, so we can move the code into one helper methodm and that will make future enhancement simple.
Each codec subclass has the same code for class/element registration, so we can move the code into one helper methodm and that will make future enhancement simple.