auto InitializePassesSharedState(const FrameHeader& frame_header, PassesSharedState* shared, bool encoder) -> Status