GstMfx: Add a helpers.

helpers:
  Add GST_STATE_CHAGE_DIR

GstMfxBase/Enc/Scl:
  Use GST_STATE_CHAGE_DIR
GstMfxBase/Enc/Scl: Register override virtual functions.
GstMfxScl: Remove unused variables.