Move getParameterDescriptor and setParameters calls to after configure/start, since they require the codec to be in the Executing state. Always set KEY_COLOR_TRANSFER_REQUEST in the format before configure as the primary tone-mapping mechanism.
Co-authored-by: Milan Stevanovic <milan@signal.org>